1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-01 01:17:02 +00:00
Commit Graph

573 Commits

Author SHA1 Message Date
Edwin Groothuis
295732eff2 Small tool to check the necessary lines in the distinfo files, based
on the contents of the distinfo files.

#
# Small tool to find distinfo with missing MD5/SHA256/SIZE statements,
# based on the assumption that if there is one of the MD5/SHA256/SIZE
# statements, then there should be all of them (except for SIZE
# when MD5/SHA256 is set to IGNORE).
#
# Usage: distinfochecker [-v] [-d directory]
# -v    - verbose (print)
# -d    - use directory instead of /usr/ports
#
2006-01-24 07:30:07 +00:00
Kris Kennaway
b3f6037efa Support 7.x INDEX builds
Add a few more local configuration variables
Minor cleanups
2006-01-22 20:45:11 +00:00
Kris Kennaway
f708dd4383 Don't bother mounting doc tree, it's not needed by any ports
Use LOCALBASE/X11BASE values from buildenv

xorg uses the stock BSD.x11-4.dist now.
2006-01-22 04:56:37 +00:00
Kris Kennaway
560f97f20b Remove -nodoccvs option, it turns out mounting the doc tree is not
required by any ports
2006-01-22 04:55:28 +00:00
Kris Kennaway
d715faf967 Also clean up linprocfs mounts 2006-01-22 04:55:03 +00:00
Kris Kennaway
c4f994d99b Pull in buildenv for LOCALBASE/X11BASE locations
Don't bother cleaning up doc mounts, they are not needed.
2006-01-22 04:54:49 +00:00
Kris Kennaway
b713f62e3b Use LOCALBASE and X11BASE from buildenv 2006-01-22 04:54:24 +00:00
Kris Kennaway
9b356bb99d Allow for the possibility of overriding LOCALBASE and X11BASE 2006-01-22 04:53:59 +00:00
Kris Kennaway
15ac5c6724 Exit with the correct error code when a make target fails
PR:             ports/64930
Submitted by:   Damir Kiramov <damirycha@damirycha.net.ru>
2006-01-15 04:18:14 +00:00
Kris Kennaway
c7d2049938 Back out last commit, it was the wrong file 2006-01-15 04:17:48 +00:00
Kris Kennaway
f83ac9920c Exit with the correct error code when a make target fails
PR:		ports/64930
Submitted by:	Damir Kiramov <damirycha@damirycha.net.ru>
2006-01-15 02:35:47 +00:00
Daichi GOTO
e1ad7a3739 Add portsvar.sh schell script into Tools/scripts.
portsvar.sh
  - print out variable defined through bsd.port.mk

example:
   % portsvar.sh PORTSDIR OSVERSION
   PORTSDIR = /usr/ports
   OSVERSION = 600034
   % portsvar.sh -e "PORTS[^_]"
   PORTSDIR = /usr/ports
   PORTSSUPFILE = /usr/share/examples/cvsup/ports-supfile
   % portsvar.sh USE_RUBY=yes RUBY_VER RUBY_ARCH
   RUBY_VER = 1.8
   RUBY_ARCH = i386-freebsd6
   % portsvar.sh -w ruby RUBY_VER RUBY_ARCH
   RUBY_VER = 1.8
   RUBY_ARCH = i386-freebsd6
   % portsvar.sh -w kde -e KDE_
   KDE_MAINTAINER = will@FreeBSD.org
   KDE_ORIGVER = ${KDE_VERSION}
   KDE_PREFIX = ${LOCALBASE}
   KDE_VERSION = 3.5.0
   MASTER_SITE_KDE_kde = ${kmaster:S@%SUBDIR%/@@g}
   % portsvar.sh -a
   list all variables through bsd.port.mk
   % portsvar.sh -a -w kde
   list all variables through bsd.port.mk including kde

portsvar.sh is easy tool to check out the variables used in
/usr/ports/Mk/bsd.*.mk.
2006-01-11 07:06:51 +00:00
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