Commit graph

173 commits

Author SHA1 Message Date
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
cjep
c892115b8e 1. On SunOS populate /dev in the sandbox with devfsadm and ucblinks.
2. Introduce sandboxDirs, a list of directories that need to be
null mounted. This is different (e.g. on SunOS).
2002-12-31 15:09:01 +00:00
cjep
a00ddfac74 1. Introduce mountflags so that we can tune the mount command for Solaris
(et al.).
2. Use the loopback filesystem on Solaris.
2002-12-31 13:52:50 +00:00
cjep
bdb0556788 Introduce idprog so that Solaris survives the root test. 2002-12-31 13:41:16 +00:00
cjep
6259f8a7b2 If the pkg tools are not update, upgrade them. 2002-12-31 12:42:37 +00:00
schmonz
a2849a9dca Replace IGNORE into PKG_FAIL_REASON and PKG_SKIP_REASON, so pkgsrc
can stop builds when a dependency is broken, yet continue builds
when a dependency is merely skipped (usually because it duplicates
functionality in the base system). Thus IGNORE_FAIL, the
oft-misunderstood and naught-documented option, goes away.

This addresses many people's complaints on tech-pkg@ and other
lists, as well as PR pkg/18157.
2002-12-07 02:37:56 +00:00
agc
d9242dfee4 Apply patches from Sergey Svishchev in PR 19221 to get the correct value
for localpatches and to make that directory available in the sandbox.
2002-12-03 18:49:39 +00:00
dmcmahill
d77e699759 add some more error checking. In particular if the bulk-cache creation
fails, then abort the build.
2002-12-01 05:53:43 +00:00
agc
7f9686ba08 Fixes from Robert Elz to:
+ umount filesystems in the reverse order from that which they were mounted

+ null-mount /lib and /libexec in a way more consistent with the original
2002-11-20 16:23:09 +00:00
dmcmahill
9c4f6cfe7f - When listing the current version of the package, don't create a hyperlink
back to the current page, just list it as regular text.

- Put each dependency hyperlink on a separate line in the README.html file.

These were both noted by Thomas Klausner in a private email.
2002-11-16 02:15:15 +00:00
dmcmahill
35b7efca9b - when creating a new database, make sure that the old one is gone first to
avoid simply appending to it.

- add some additional error checks when using the -r/--restart options to
make sure that the database exists and give a useful error message if it
doesn't
2002-11-14 14:05:46 +00:00
dmcmahill
24b3feedec add a 'SINGLEPKG' variable which can be set on the command line to the
directory of a single package (e.g. graphics/gimp) for which a README.html
is to be generated.  This provides the required hook to be able to use this
script to generate a README.html file for a single package as well as
for all packages.
2002-11-14 07:10:05 +00:00
dmcmahill
0204d6ca73 move the pruning of readme's to the very end of the job. 2002-11-13 15:12:17 +00:00
dmcmahill
218cd311ec - add some more error checking. In particular, if any of the template files
don't exist, exit with a fatal error and don't try and make empty README.html
  files.

- fix a bug which caused some duplication in category README.html files.
  Problem noted on netbsd-help@ by Nicolas Saurbier ( Nicolas dot Saurbier at biodata dot de)
2002-11-13 15:08:29 +00:00
dmcmahill
1e48a03c4b add a -S,--save-database option which doesn't delete the database files
after the run.  Useful for debugging since this preserves the intermediate
result of the most time consuming portion of the script.
2002-11-13 11:12:04 +00:00
dmcmahill
429e45ec44 only update the README-IPv6.html file if it has changed 2002-11-13 10:14:04 +00:00
dmcmahill
6415f887e0 - replace & with &amp; _before_ replacing < with &lt; and > with &gt; when
escaping html output.

- properly escape the URL in the link and the displayed URL in the vulnerability
  list to handle the '&' character in URL's.
2002-11-13 01:05:03 +00:00
dmcmahill
afa9aa5dd4 start warning output on a new line to make it easier to read 2002-11-13 00:59:35 +00:00
dmcmahill
54a10c8ebb - added progress meter when extracting database. Useful for those of us
with slow machines.

- fix minor bug which left some temp files laying around in /tmp/mkreadme.
2002-11-12 13:45:36 +00:00
dmcmahill
1629f82b0b add timestamp to output messages 2002-11-12 02:17:58 +00:00
dmcmahill
3d2524d328 add scripts for generating the README.html files in a much more efficient
way than the previous recursive make approach.  The 'mkreadme' script is
the top level script.  'mkreadme -h' or 'mkreadme --help' for complete
documentation on its use.  Generates README.html files more than two orders
of magnitude faster than the recursive make approach by only calling make(1)
once per pkg.
2002-11-11 21:51:04 +00:00
seb
ca66a9af3a Take care of -current's /lib and /libexec.
Noted by Julio Merino <jmmv at menta dot net> in PR pkg/18968, I had this
in my trees for weeks and I forgot about it...
2002-11-08 10:26:51 +00:00
hubertf
a536eabe59 Actually pass CVS_FLAGS propperly to the su'd "cvs update" 2002-11-03 22:59:21 +00:00
dmcmahill
b89364002b fix typo in comment and an error in the usage output (position of
bar and libbar were swapped).
2002-10-06 20:15:05 +00:00