Commit graph

256 commits

Author SHA1 Message Date
Erwin Lansing
ba594074e3 Add support for INDEX-9 2009-08-23 10:47:02 +00:00
Erwin Lansing
3accf1e172 Explicitly override LOCALBASE to make sure we don't get
confused by locally installed ports that might influence
PKGNAME or other variables.

Suggested by:	pav
2009-07-14 07:58:50 +00:00
Erwin Lansing
ca91e7339b Force cleaning of the environment from customized local settings. 2009-06-05 16:22:45 +00:00
Erwin Lansing
3f3cfcfe52 Use zfs snapshots that are periodically updated on pointyhat for the
normal builds instead of a local cvs update.  This speeds up the
script several times and easies I/O on pointyhat.
2009-05-28 15:54:38 +00:00
Philip M. Gollucci
5d1e7f6179 note mark_safe.pl 2009-05-17 11:40:16 +00:00
Philip M. Gollucci
1e47318f7d o don't set anything in ports with NO_BUILD
o fix rubygem skipping
o next, not die
2009-05-17 11:12:24 +00:00
Philip M. Gollucci
0df0ef1432 Do not mark rubygem ports, its a NO-OP
Discussed with: pav on irc (#bsdports)
2009-05-16 01:51:40 +00:00
Ion-Mihai Tetcu
3fb7a3d1a2 Make previous commit work for both context and unified input patches. 2009-05-10 16:34:20 +00:00
Ion-Mihai Tetcu
ec5050b6b2 When naming the split patch files, replace the original path '/' with '__'
instead of a single '_' to follow the current patch naming guidelines.
2009-05-10 16:28:52 +00:00
Philip M. Gollucci
f700032948 - fix --port support
- don't change the Makefile if MAKE_JOBS_(UN)SAFE is already present
2009-04-29 21:16:43 +00:00
Philip M. Gollucci
4dfe2a9982 - Start some docs
- Add --ports -p to specify a list on the cli
2009-04-29 21:08:53 +00:00
Philip M. Gollucci
4fa6707cf8 Script to set MAKE_JOBS_(UN)SAFE= yes for a MAINTAINERs ports.
Please be sure to completely test the results of running this _BEFORE_ committing
several times and in a Tinderbox

Feel free to commit to this file
2009-04-22 00:33:44 +00:00
Christian Weisgerber
1895bc9e69 Use diff -p both when first creating and when updating a patch.
Previously a patch created by update-patches would be changed again
by the next update-patches run.
2009-02-15 16:16:33 +00:00
Gerald Pfeifer
a351950aad Factor out the code that performs the PORTREVISION bump for one port.
Approved by:	edwin
2009-01-07 21:33:17 +00:00
Erwin Lansing
9f53e58103 Reduce per branch code duplication
Submitted by:	pgollucci
2008-12-27 21:24:30 +00:00
Maxim Sobolev
3fe7e87724 Make sure we don't add ${WRKDIR}. 2008-10-21 21:32:08 +00:00
Edwin Groothuis
17e6ef1c06 Have a different approach on how to check if the modules file has changed.
Because the $FreeBSD$ keyword isn't expanded in the new version, we can't
just do a diff, check the return value and ignore the output.

Every new modules file, changed or not with regarding to the contents,
has at least four lines in the diff output (line number, old line,
seperator, new line). Only commit it if there are more than four
lines difference between it.
2008-07-14 03:56:23 +00:00
Edwin Groothuis
00809d33a0 Keep the sources of the CVSROOT-ports/modules update script safely
in the ports CVS repository.
2008-07-08 21:03:42 +00:00
Edwin Groothuis
de831ac6da [PATCH] Tools/scripts: Some cleanups, additions to bump_version.pl
- added -c, doesn't change anything
	- added -n, deal with an already checkouted tree
	- removed negative logic in favor of 'unless'
	- switch to 3 arg form of open()
	- don't use globs for filehandles, this is been obsolete
	  since at least 5.6.1
	- handle possible errors in close()
	- allow CVSROOT to be overriden in the ENV

PR:		ports/125025
Submitted by:	"Philip M. Gollucci" <pgollucci@p6m7g8.com>
2008-07-06 02:00:52 +00:00
Erwin Lansing
e4bbe0c85e CVSROOT/modules no longer contains an entry per port, remove support
for this from these scripts.
2008-06-19 22:09:01 +00:00
Edwin Groothuis
4937bd57bd Add support for "PORTREVISION?=" and "PORTEPOCH"
Tested on: devel/gettext bump
2008-06-06 05:52:57 +00:00
Erwin Lansing
cdb5013c48 Remove support for FreeBSD 5.x 2008-06-01 09:26:12 +00:00
Andrew Pantyukhin
0b5ca793be Add a tiny sh hack - ardiff - compares two archives. 2008-05-06 16:17:01 +00:00
Renato Botelho
e89241beff Fix a problem when add new ports on ports-mgmt category. ports-mgmt/Makefile
lines has 3 spaces before SUBDIR word and all other categories has 4.

I've asked pav@ if there is a default format of category Makefiles and he said
the number of spaces doesn't matter, so, i fix addport to respect the current
number of spaces and/or tabs the file has.

Reported by:	miwi, erwin
2007-12-19 16:54:37 +00:00
Erwin Lansing
0a56075360 - Add support for FreeBSD 8.0
- Be more robust about param.h and allow space as well as tab as seperator
  while determining OSVERION
2007-10-25 21:51:07 +00:00
Renato Botelho
d54475429d s/query-pr.real/query-pr/ to fix getpr after freefall migration
Discussed at:	#bsdports
2007-10-15 19:37:31 +00:00
Gerald Pfeifer
957d2a35c5 Replace two further instances of /var/db/pkg by $PKG_DBDIR. 2007-09-16 22:24:12 +00:00
Gerald Pfeifer
df787b975d Use PKG_DBDIR instead of hard-coding /var/db/pkg/. Do not silently revert
to defaults for PORTSDIR and PKG_DBDIR if the respective directory does
not exist, but bail out.

Approved by:	netchild
2007-09-08 16:23:13 +00:00
Alexander Leidinger
0d7a3e7e9f explicit_lib_depends.sh:
- check if an installed libtool records dependencies recursively and
   print a warning if it does
       currently it prints the warning on every system which has libtool
       installed from ports (only my local version doesn't do this, the
       version in the ports is not correctly patched for this, a patch
       similar in complexity (= simple) like the ltdl.m4 one in the
       libtool-port-patch-directory is needed)
 - enhance the regex which is responsible to not print a dependency to
   the port we are just checking
 - add a work in progress (not executed) to collapse the USE_* which
   can have more than one value

neededlibs.sh:
 - we also care about shared libs

resolveportsfromlibs.sh:
 - take care about USE_OPENSSL, USE_EFL, USE_GL, USE_FAM, USE_OPENLDAP,
   USE_SDL
 - search in the "ldconfig -r" output if we can not find the lib ourself
 - a better way of getting the first part of the LIB_DEPENDS stuff
   (lib/libXYZ.so can be specified now too)
 - some line wrapping + whitespace
 - print the origin for the USE_* too (except USE_OPENSSL), so an user
   can make some sanity checks and the explicit_lib_depends.sh can DTRT
   if we check the USE_* port itself
 - warn if we can not determine the right component (can happen for XORG)
   unambiguously.
2007-09-04 19:32:36 +00:00
Alexander Leidinger
5c2c9f05ad One more sanity check, else /+CONTENS will be searched. 2007-08-30 16:48:33 +00:00
Alexander Leidinger
142947601f USE_FREETYPE is for v1, not for v2. Use a perfect match in the case statement. 2007-08-30 16:47:11 +00:00
Alexander Leidinger
bd34c2cc9c Do not list libs which come with the port itself. 2007-08-26 15:03:55 +00:00
Alexander Leidinger
1fc8d4fdd0 Add explicit_lib_depends.sh. 2007-08-26 15:02:24 +00:00
Alexander Leidinger
dd65a20d30 - Add USE_FREETYPE.
- Print the portsdir variable in front of the origin for easy copy und paste
  of the output.
2007-08-26 14:43:52 +00:00
Alexander Leidinger
63e512d248 We should also look into sbin/ (not only bin/ and lib/). 2007-08-24 15:30:31 +00:00
Alexander Leidinger
2733307251 explicit_lib_depends.sh shows you the current explicit dependency list of
libs for a given installed port, e.g.:
	# ./explicit_lib_depends.sh gnome-vfs-2.18.1_2
	USE_GETTEXT=yes
	USE_GNOME+=gconf2
	USE_GNOME+=glib20
	USE_GNOME+=gnomevfs2
	USE_GNOME+=libxml2
	USE_GNOME+=orbit2
	USE_ICONV=yes
	avahi-client:net/avahi
	avahi-common:net/avahi
	avahi-glib:net/avahi
	dbus-1:devel/dbus
	dbus-glib-1:devel/dbus-glib
2007-08-24 14:29:42 +00:00
Alexander Leidinger
011560cf37 Teach about USE_ICONV, USE_GETTEXT, USE_GNOME and USE_XORG. 2007-08-24 14:29:03 +00:00
Alexander Leidinger
43b63893be Add 2 scripts which help in port maintenance to list all direct library
dependencies of a port:
	neededlibs.sh
		Extract direct library dependencies (filenames) from binaries.
	resolveportsfromlibs.sh
		Prints the name(s) of ports(s) given a library filename,
		suitable for direct use (copy&paste) in LIB_DEPENDS.

Example usage is included in the scripts. The following combined usage may
be helpful for further porting/testing automation:
	resolveportsfromlibs.sh -b /usr/local $(neededlibs.sh /test/bin/*)

Requested by:	kris, lofi (sort of)
2007-08-12 12:49:23 +00:00
Gabor Kovesdan
4c9cd257fd - Extract command variable definitions from bsd.port.mk, they are now stored in
bsd.commands.mk and can be easily reused within the infrastructure.
- Revert old DESTDIR implementation.
- Add a new, fully chrooted DESTDIR implementation as bsd.destdir.mk.

Sponsored by:	Google Summer of Code 2007
Approved by:	portmgr (pav)
2007-08-04 11:37:24 +00:00
Erwin Lansing
afade85a8a ARCH may be set in the environment for cross building, so only
set it conditionally.

Submitted by:	kris
2007-06-12 15:14:29 +00:00
Erwin Lansing
87b364f5fd Set default architecture to i386. 2007-06-11 21:18:46 +00:00
Florent Thoumie
d4f0d0048a - Welcome X.org 7.2 \o/.
- Set X11BASE to ${LOCALBASE} for recent ${OSVERSION}.
- Bump PORTREVISION for ports intalling files in ${X11BASE}.
2007-05-19 20:36:56 +00:00
Renato Botelho
75b87da473 Fix addport to work correctly with ports-mgmt category.
Reported by:	miwi
Tested by:	miwi
2007-04-20 12:45:01 +00:00
Vasil Dimov
101df1b468 Use echo instead of printf because external commands cannot be executed
with very long arguments (>400000 characters).

The problem reveals for example if
/usr/ports/Tools/scripts/rmport -d print/ghostscript-gnu
is executed - it does
printf "%s\n" "... 451109 chars ..."

Spotted by:	rafan
2007-03-28 20:39:18 +00:00
Vasil Dimov
eed3828ab1 * Run cvs update just before cvs commit to sync a potentially changed files
in the repository. Suggested by: gabor@
* Fix typo in the output
2007-02-19 07:24:36 +00:00
Kris Kennaway
2c759cf3d0 Retire PORTOBJFORMAT 2007-02-01 03:28:03 +00:00
Erwin Lansing
f3f3875210 Drop the build on RELENG_4 2007-01-30 14:49:21 +00:00
Vasil Dimov
92615ddfc4 A bunch of cosmetic changes - add one empty line to make the output more
readable and use double quotes everywhere.
2007-01-26 14:25:39 +00:00
Vasil Dimov
a62c886fca Make output messages more useful 2007-01-26 10:19:23 +00:00
Vasil Dimov
0d451e0598 * Make it possible to skip existing dependencies and ports references in LEGAL
and continue with removal anyway. Requested by miwi@
* Pipe dependencies information (if any) through a PAGER because INDEX lines
  are very long and hard to read when wrapped
2007-01-19 15:49:49 +00:00