Commit graph

196 commits

Author SHA1 Message Date
grant
002e1324e0 make this work on Solaris by using perl's internal grep(). it is
faster, and (f)grep can't handle very long word lists.
2004-01-20 12:37:08 +00:00
grant
15a0f7f8f5 reverse some "if ! command;" statements so this works with Solaris'
/bin/sh, which doesn't deal with !

bulk builds now work out-of-the-box on Solaris. woo :-)
2004-01-20 09:41:52 +00:00
grant
39935c10c4 missed a uname -p 2004-01-20 07:39:24 +00:00
grant
87c28cdc91 get and use the value of ${MACHINE_ARCH} instead of uname -p to
correctly reflect the pkgsrc arch.

(uname -p returns "unknown" on (my) Linux, which is not very helpful..)
2004-01-20 07:01:18 +00:00
grant
c0baecbda3 tiny whitespace tweak 2004-01-20 05:56:34 +00:00
grant
94317ffdac on Linux, use --bind arg to mount(8) and call 'MAKEDEV generic' to
make the device files, as this is what Linux systems seem to use...
2004-01-20 01:01:56 +00:00
grant
3e8b8b3148 portability fixes:
- use AWK, GREP, SED and MAIL as set by defs.opsys.mk.
- use $? to test exit code of programs
2004-01-17 09:38:18 +00:00
grant
5128c89aa8 minor whitespace cleanup. 2004-01-17 06:22:20 +00:00
grant
630c8ab0c6 use GREP and SED as set by defs.opsys.mk so this works on non-NetBSD. 2004-01-17 03:39:35 +00:00
grant
e9653fdcdc ensure we call chroot with the full path to 'sh'. 2004-01-15 10:02:54 +00:00
grant
f410fa1585 'export VAR=value' doesn't work in some brain-dead shells. use
'VAR=value; export VAR' instead.
2004-01-15 09:57:50 +00:00
sketch
122c819022 Replace hardcoded '/usr/pkgsrc' in comments. 2003-12-10 13:59:06 +00:00
agc
09c5eb4c93 Make the cvs update work for all shells, not just csh. 2003-12-07 11:43:22 +00:00
sketch
4324dba117 Missing terminating quote. 2003-12-03 17:49:33 +00:00
sketch
fed8dd643d Make sure programs compatible with pkgsrc are used, rather than relying
on the first in path.  Fixes possible issues with Solaris.
2003-12-03 17:13:02 +00:00
hubertf
472520bfe8 Catch if the user given to "su" is bogus/non-existing, but if
the "cvs" command inside the su returns an error, that should be ignored.
(Aparently cvs returns "1" even if it's done a successful update but if
there were some files removed on purpose).
2003-11-28 22:46:48 +00:00
hubertf
8d6cbb6f70 Catch errors from pre-build, and abort if it's not 0. 2003-11-20 00:04:12 +00:00
hubertf
6c4ff55ea4 Catch error from su, and report it to the calling script (pkgsrc/mk/build) 2003-11-20 00:02:59 +00:00
grant
93835fcfa7 find the right GREP and SED programs and use them. 2003-10-11 02:39:24 +00:00
hubertf
bba9c15fbd This patch addresses three problems:
1) When checking if any of the required binary pkgs is newer, it's
   not good to look into the (already existing) binary pkg, as that
   might be unchanged. Instead, look at the DEPENDS.

   In the context of the recent jpeg changes, the gd package itself was
   not changed, but the DEPENDS were (via buildlink files). Now looking
   into the existing gd binary pkg still said it wanted jpeg-6b instead
   of the now-wanted jpeg>=6b, which was only available via the DEPENDS.

   That's the first chunk of the patch below.

2) While debugging this, I found that the change in rev. 1.48 was
   wrong, as can be seen throughout the last bulk build, search for errors
   like:

	find: "/usr/cvs.local/pkgsrc/packages/i386/All/gd-2.0.15.tgz": No such file or directory

   As the whole operation is really on two files (as assured by "pkg_admin
   lsbest" for pkg and REFS by definition), the quotes can be ommitted.

   Why this wasn't caught when that change was tested is beyond me - maybe
   different sh(1) behaviour? (The error happened on 1.6.1_STABLE, see
   e.g. http://smaug.fh-regensburg.de/~feyrer/ftp/pub/NetBSD/pkgstat-i386/last/www/p5-Template-Toolkit/.broken.yui.html).

   Anyways, that's addressed in the second part of the patch below, too.

3) Use ${FIND} while there.
2003-10-10 21:45:55 +00:00
grant
b03c7fbafc apply patch from Jonathan Perkin on tech-pkg@, bringing the list of
files to preserve in sync with reality.
2003-09-16 17:21:36 +00:00
jlam
841b57441b Merge pkgviews-mk branch into the HEAD by running:
cd pkgsrc/mk
	cvs update -Pd -A
	cvs update -Pd -j pkgviews-mk-base -j pkgviews-mk
2003-09-02 06:59:37 +00:00
hubertf
5ae8aa8373 Clean up a few things in /tmp before building 2003-08-26 08:18:09 +00:00
gavan
8f1aedda6a Replace [ $A -nt $B ] with a portable equivalent 2003-08-21 16:24:31 +00:00
gavan
2cf3251b24 Avoid keyword substitution in keyword matching pattern 2003-08-19 15:24:01 +00:00
gavan
44c0f50903 Remove dependence on ident and awk. This aids portability to Solaris. 2003-08-19 09:35:26 +00:00
jklos
bc9344585a Added text describing major.minor-latest directories for binaries built
from pkgsrc current.
2003-08-19 08:55:53 +00:00
cjep
f958dadcb5 Get the OS name from "uname -s" instead of assuming NetBSD.
Observed from Gavan's Solaris bulk build.
2003-08-18 19:19:33 +00:00
seb
e9ea51f5ad Also create /var/log/lastlog{,x} in the sandbox if they exist in the
hosting system.
2003-08-10 20:33:53 +00:00
grant
1ea30e1f8f quote some args to ${GREP}.
from gavan@.
2003-08-08 08:51:01 +00:00
seb
95c657b976 Rename sandboxDirs to sandboxMountDirs.
Introduce sandboxEmptyFiles a list of files to create empty in the
sandbox if they exist on the hosting system. Hence put /var/run in
sandboxEmptyDirs list.

Use $cppprog instead of cp.
2003-07-30 09:25:13 +00:00
seb
4a21457080 Whitespace. 2003-07-30 09:14:04 +00:00
seb
ac47c58a83 Introduce sandboxEmptyDirs a list of directories to create empty
in the sandbox if they exist on the hosting system: put /var/spool/mqueue
as it was already created before and add /var/log for now (needed
for various packages, like security/ssh2).

Only create /var/run/utmp(x) if they exist on the hosting system.
XXX this may better be an opsys dependent action.
2003-07-29 20:31:05 +00:00
dmcmahill
30b1a989cb replace the -u and -d options to tflat with 'up' and 'down' as the former
causes problems with some awks.  Patch provided by Jonathan Perkin in
PR pkg/22246
2003-07-25 11:29:33 +00:00
grant
58657ac9cf portability fixes:
quote a shell test, and run ${AWK} -f tflat instead of using
#!/usr/bin/awk.
2003-07-11 23:54:32 +00:00
jschauma
435145eb16 If we want to try a bulk-build on a non-NetBSD platform, we need to take
care not to blow away our bootstrap-pkgsrc stuff in the initial phase.
Also mark devel/bmake and devel/mk-files as broken on non-NetBSD so as not
to blow away our precious files from the bootstrap process in the middle
of a bulk-build.  Now let's see if bulk-building works on Linux...
2003-06-06 18:28:47 +00:00
jmmv
f1446ddf2b Drop trailing whitespace. Ok'ed by wiz. 2003-05-06 17:40:18 +00:00
hubertf
fdd884a853 now REALLY use the right dir... doh 2003-04-22 14:35:57 +00:00
hubertf
7da5db08da Make sure binary pkgs are found :) 2003-04-22 14:31:18 +00:00
cjep
290d5262aa Set BATCH=1 and set DEPENDS_TARGET. (BATCH=1 is certainly needed for
the bulk-install target to work.)
2003-04-21 16:47:37 +00:00
wiz
9afd3677f1 Fix typos, remove duplicate entry security, nits. 2003-04-16 09:55:53 +00:00
cjep
7dfa1c9d90 PR#21087. Some files are missing in bulk build sandboxes created by
mksandbox. From Brook G. Milligan.
2003-04-13 11:28:01 +00:00
dmcmahill
5fb18e1827 Add some notes with thoughts on what a parallel bulk build system should do. 2003-03-16 13:45:12 +00:00
cjep
895c1a56cf Use CVS_USER for RSYNC options. 2003-03-09 15:46:00 +00:00
dmcmahill
4e23ffd1d9 correct the 'broken due to depends' processing. This change makes the
summary email list correctly the packages which are broken because of
their dependencies.  Problem noted on Huberts most recent bulk build.
2003-02-13 22:51:03 +00:00
kei
2a95fc68a5 honor PKG_SKIP_REASON as well as PKG_FAIL_REASON, like normal build does. 2003-02-08 23:27:00 +00:00
dmcmahill
98812f4595 move bulk/{mkreadme,genreadme.awk} to scripts/ as this is a more suitable
location.  They are not really part of the bulk build stuff.
2003-01-04 21:13:34 +00:00
cjep
3bcfb29272 Introduce a variable called kernel which is either empty or contains the
full pathname to the kernel file (e.g. for NetBSD /netbsd, OpenBSD /bsd, etc)
2002-12-31 17:46:12 +00:00
cjep
7b08a3ada9 Loopback mount /proc on SunOS. shells/tcsh successfully builds in the sandbox
except for one peculiar thing: bmake does not pick up a definition for CC.
Something is missing (for SunOS).
2002-12-31 17:42:32 +00:00
cjep
9c42c5520e Add /usr/ccs, /usr/ucb and /usr/xpg4 for SunOS in sandboxDirs.
Provided that I copy a working gcc and the binaries from the bootstrap kit
into the sandbox manually, this gets me as far as having a pkgsrc
sandbox that can build pkg_tools/pkg_install.
2002-12-31 15:33:56 +00:00