Commit Graph

561 Commits

Author SHA1 Message Date
Kris Kennaway
4a1dd67a59 This script may be run on a client machine to force it to flush its squid
cache.  This is useful if the client is holding a bad or stale cached
copy of a package that is causing problems for package builds.
2005-12-11 04:41:38 +00:00
Kris Kennaway
dc26cbf0be Bump the file size limit to 300MB now that openoffice distfiles exceed
256MB.  Clarify a comment.
2005-12-11 04:40:27 +00:00
Kris Kennaway
4e0a14315c Shuffle the order of a cd 2005-12-11 04:36:47 +00:00
Kris Kennaway
57164dfa7a Remove 0-sized entries to avoid misbehaviour 2005-12-11 04:36:23 +00:00
Kris Kennaway
2f084309ba Don't use a lockfile, the script will be called with lockf -t0 instead to
avoid problems with stale lockfiles after a reboot.
2005-12-11 04:35:44 +00:00
Kris Kennaway
1ace35e972 Don't use a lockfile, the script will be called with lockf -t0 instead
to avoid problems with stale lockfiles after reboots.
2005-12-11 04:35:04 +00:00
Kris Kennaway
ba996790a4 Update the list of quickports 2005-12-11 04:34:20 +00:00
Kris Kennaway
d06e2470ca Don't set -nocopy when -norsync is set, otherwise the setupnode script
doesn't completely prep the client.
2005-12-11 04:33:55 +00:00
Kris Kennaway
29d910959f Don't use a lock file, the script will be called with lockf -t 0 instead.
This avoids problems from stale lockfiles after reboots.
2005-12-11 04:32:29 +00:00
Kris Kennaway
70ca5470b7 Mount the md image async since this gives much better performance 2005-12-11 04:31:08 +00:00
Edwin Groothuis
3d8bb0ca76 Utility: A tool to identify similar pkg-descr files
The ports tree contains many tools with almost-similar names
	and no helpful pkg-descr difference. The goal of pkg-descr
	would be to aid the user in his choice of port version.
	Ergo, similar pkg-descr files are bad.

PR:		ports/89432
Submitted by:	Jonathan <afarsec@012.net.il>
2005-11-26 01:15:20 +00:00
Kris Kennaway
391855dc68 Remove, don't comment out, unused variables 2005-10-11 04:02:49 +00:00
Kris Kennaway
f03134ec0a Remove unused variables. Don't bother protecting against negative
queue lengths since that doesn't arise.
2005-10-11 04:02:05 +00:00
Kris Kennaway
29028363d7 Update lockf to lockf -k in example usage 2005-10-11 03:56:42 +00:00
Kris Kennaway
bd58a06a02 Update the lockf command to add -k in example usage 2005-10-11 03:56:20 +00:00
Kris Kennaway
94cda32b84 When -norsync is set, don't bother to run md5 over the bindist.tar
and copy it to the client.  This has two benefits:

1) Avoids spamming the master with dozens of md5 processes when
   dosetupnode is spawned for all client machines at ocne

2) Avoids silly copy attempts on disconnected nodes for which the file
   is copied to itself
2005-10-11 03:55:27 +00:00
Kris Kennaway
ac6980959a Change lockf to lockf -k in a commented-out command, just in case it's
ever uncommented.
2005-10-11 03:53:39 +00:00
Kris Kennaway
b63664dd37 Add support for use_md_swap 2005-10-11 03:53:02 +00:00
Kris Kennaway
0faac9ad5f Add support for use_md_swap. When this variable is set in a
portbuild.conf, builds will each be done in a separate swap-backed md.
This dramatically improves build performance since

* Every transaction is not written to disk, so disk bandwidth is not
  a bottleneck

* Multiple builds do not contend with each other for the same set of
  filesystem locks and other per-device resources

The size of the md devices is controlled by the md_size variable.  '2g'
seems to be a good size.

Currently we mdconfig -u each device after each port build, since
otherwise dirty blocks accumulate and the md eventually uses a full
amount of backing store (2g in the above example).  This is a problem
if there is unsufficient swap backing to accomodate them all.

XXX This should be made configurable to avoid the performance penalty on
systems that do have enough swap backing
2005-10-11 03:52:37 +00:00
Kris Kennaway
f873829934 No need to hold the queue lock while polling client load 2005-10-11 03:48:11 +00:00
Kris Kennaway
86a1e3f264 * Use lockf -k instead of lockf. If there is ever contention from >1
process, you must use -k or lockf can give out two locks at once
2005-10-11 03:47:33 +00:00
Kris Kennaway
da7e71facd * Add support for use_md_swap 2005-10-11 03:45:49 +00:00
Kris Kennaway
e93c55ca9b * Unmount linprocfs around pkg_adding dependencies, to try and work
around silly failures in some ports when it is present

* Add a footer to completed builds that is recognised by pdispatch to
  retry truncated builds

* If ALWAYS_KEEP_DISTFILES is not present in the environment or port
  makefile, then clean up DISTDIR after the build finishes, to prevent
  collection of distfiles for this port.

* Finish flipping the switch on -noplistcheck - this is activated by
  passing in the NOPLISTCHECK environment variable instead of
  using PLISTCHECK in the opposite case
2005-10-11 03:40:57 +00:00
Kris Kennaway
917dfa95ab * Finish flipping the switch on -noplistcheck - this is activated by
passing in the NOPLISTCHECK environment variable instead of
  using PLISTCHECK in the opposite case

* Remove the unused -nodummy function

* Pass in ALWAYS_KEEP_DISTFILES when -distfiles is set
2005-10-11 03:37:57 +00:00
Kris Kennaway
353d47ddd9 * Remove support for the unused -nodummy function
* Finish flipping the switch on -noplistcheck - this is activated by
  passing in the NOPLISTCHECK environment variable instead of
  using PLISTCHECK in the opposite case

* Always pull in the distfiles from the client if they exist (needed
  for forthcoming ports tree changes to satisfy GPL license requirements)

* If the build did not complete "cleanly", e.g. it was interrupted by a
  network outage or client machine panic, then retry it until it succeeds
  instead of just leaving a dirty truncated log
2005-10-11 03:36:50 +00:00
Kris Kennaway
1a15382c52 * Remove unused -nodummy argument
* Finish flipping the switch on -noplistcheck; set NOPLISTCHECK instead
  of PLISTCHECK in the opposite case

* Clean up the distfiles/ directory when starting build, so it is not
  contaminated by old distfiles

* Remove commented-out code to don't back up old distfiles/ directory,
  it's just too big to do this.
2005-10-11 03:31:41 +00:00
Kris Kennaway
85ae134a79 Silence some possible errors from chflags -R 2005-10-11 03:27:36 +00:00
Kris Kennaway
ddd72ac387 Silence possible errors from some recursive commands 2005-10-11 03:27:19 +00:00
Renato Botelho
2a6ad7961f - Add a new option -L, it works like -l but uses pkg-descr to create
commit message.

Approved by:	will (maintainer)
2005-10-04 16:26:37 +00:00
Kris Kennaway
310ce3b0a4 Remove some hardcoded values to hopefully stop random users from shooting
their feet off in public.

Suggested by:	adamw
2005-09-08 17:57:37 +00:00
Pav Lucistnik
6d4f3ffef5 - Handle different INDEX filename on 5.X and above
PR:		ports/85281
Submitted by:	Vasil Dimov <vd@datamax.bg>
2005-09-04 23:11:15 +00:00
Kris Kennaway
0280b07725 Check for extra files on !i386 also 2005-07-24 20:38:06 +00:00
Kris Kennaway
5faf427bee Support FreeBSD 7.x 2005-07-24 20:37:31 +00:00
Kris Kennaway
ea1d96a8a9 Drop the removed openoffice 1.0 ports from the quickports list 2005-07-24 20:37:20 +00:00
Kris Kennaway
a42f81135d Correct typo 2005-07-24 20:35:07 +00:00
Joe Marcus Clarke
898c84cdf7 Add prototypes for all the subroutines which fixes compilation with
Perl 5.8.7.

Reported by:	mezz
2005-07-10 22:18:55 +00:00
Volker Stolz
ac482a872e Fix typos
Approved by: sobomax
2005-04-18 14:03:05 +00:00
Volker Stolz
c53968b206 As discussed on the cvs-ports-list, make 'addport' print a warning if the directory
name contains upper-case characters as it makes finding a port harder.

PR:		ports/79679
Approved by:	will, portmgr(krion)
2005-04-12 11:03:49 +00:00
Anton Berezin
bbd85008bd Add a splitpatch.pl utility, a small script to convert multi-file
patches to several appropriately named single-file patches.

Requested by:	flz
2005-04-12 10:56:08 +00:00
Florent Thoumie
75dd621ca0 - Add bump_revision.pl, a small script to bump the PORTREVISION variable
of ports which are depending on a port with a changed shared lib version.

Edwin dedicates this script to his son Dirk, born few days ago :)
Congrats (again) !

PR:		ports/63915
Submitted by:	edwin
2005-04-12 09:22:59 +00:00
Florent Thoumie
a9c04539e5 - Replace pkg-comment with COMMENT to reflect latest (*sigh*) changes
in the ports framework.

PR:		ports/62767
Submitted by:	Igor Pokrovsky <tiamat@comset.net>
Approved by:	maintainer timeout (> 8 months)
2005-04-11 22:21:41 +00:00
Kris Kennaway
aa820a71ce Use WRKDIRPREFIX instead of hardcoded value.
Clean up after we're done.
2005-04-11 22:08:14 +00:00
Kris Kennaway
d23d4aaa34 Change rsync -l to -L for the tarballs/ directory (so that dangling
symlinks are not created on the target) and rsync the entire
directory so that extra files are deleted.
2005-04-03 04:37:09 +00:00
Kris Kennaway
9ebdc14d1d Build packages with WRKDIRPREFIX=/work (which does not exist by
default) instead of /tmp, since some packages incorrectly search this
build path at runtime to try to load things.

Requested by:	nectar
2005-04-02 20:20:21 +00:00
Kris Kennaway
3bb948c483 Increase the nc poll timeout to better deal with network latencies. 2005-04-02 20:19:03 +00:00
Kris Kennaway
da08048084 Flip over the -plistcheck switch to -noplistcheck since we now want to
make it the default behaviour.
2005-04-02 20:18:28 +00:00
Kris Kennaway
37d3297837 Update the list of files and directories to filter from the plist checking. 2005-04-02 20:17:47 +00:00
Volker Stolz
3ddc5c643b Checkout Templates from CVS as well since ports with GNU_CONFIGURE will
need them when building from 'addport -a -t'.

Approved by: will
2005-03-20 17:32:52 +00:00
Kirill Ponomarev
c0c72653c1 Put $FreeBSD$ for ident(1)'ing. 2005-03-13 08:49:38 +00:00
Kirill Ponomarev
4bfcaa5b4c Hopefully last try to fix readmes build.
Submitted by:	Christopher Kelley <bsd at kelleycows.com>
Pointyhat to:	krion
2005-03-11 21:25:16 +00:00