Commit graph

548 commits

Author SHA1 Message Date
rillig
55af86eea4 Replaced a complicated expression with the equivalent ${PKGWILDCARD}. Added
the :Q operator to all instances of ${PKGWILDCARD}.
2005-11-05 16:58:34 +00:00
rillig
cbec277885 - Added a comment above each paragraph explaining what goes on there.
- Removed the perl5_dir variable, as it has only been used in one place.
- Added error checking for the installation of the prerequisite packages
  after the main build.
2005-11-05 16:36:16 +00:00
rillig
0151c1d3b4 - Added an alias --resume for --restart, as "restart" sounds too much like
"from the beginning".
- Moved the code to get the value of BULK_PREREQ some lines up, as there
  are also 19 other variables using the same code. This saves one extra
  check if the pkglint directory exists.
- Added BULK_PREREQ to the variables whose value is printed before starting
  the actual build.
- When installing prerequisite packages, print a nice sentence instead of
  a simple "echo $pkgdir".
2005-11-05 16:10:06 +00:00
rillig
023a548473 - Added a function post_filter_cmd() that can be overridden in bulk.conf.
The default function prepends the well-known "date, progress, pkgdir" to
  each line.
- Check that the environment variable USR_PKGSRC is given and is an
  absolute pathname.
- Introduced variables for the various directories. Their names all end in
  _dir, and they contain absolute pathnames. Changed all instances of
  ${USR_PKGSRC}/pkgtools/pkglint to ${pkglint_dir}. Likewise for the other
  directories.
- Added more error checking. The bulk build is terminated if the
  pkg_install package cannot be updated or the prerequisite packages
  cannot be installed.
2005-11-05 15:41:53 +00:00
kristerw
1a69e27f40 Remove the cleaning of pre-requisite packages before and after building
a package.

This functionality consumed an enormous amount and time, and did not
do much useful work:
* It is not needed when doing a bulk build of the full pkgrsrc tree,
  since the pre-requisite packages already have been built and cleaned.
* It does not work when doing a bulk build of a subset of the packages,
  since it only cleans the direct dependencies, and not the full list.
2005-11-05 15:02:28 +00:00
rillig
94954ddd5c - Added a shell function die() that is used to provide consistently
formatted error messages in case of failure. It also helps shortening
  the code.
- Replaced many uses of "exit 1" with die().
2005-11-05 14:33:17 +00:00
rillig
26baa4afc0 - Removed trailing white-space from the --help output.
- All error messages go to stderr instead of stdout.
- Added variable quoting.
- Reindented some code for better readability.
- Changed "Build Temporary Files" caption to "Some variables used in the
  bulk build", which is more appropriate.
2005-11-05 14:23:30 +00:00
rillig
e4641e5562 Completely rewrote the printindex tool.
- Now it starts with "set -e", preventing unwanted continuing after
  errors have occured.
- Added more error checking and handling.
- All variables are properly quoted (if at all possible).
- Merged the two loops for checking packages into one loop.
- Instead of first checking if a directory exists and then changing
  into it, the tool now tries to cd, and handles failure.
- Fixed the check for duplicates. Some packages might have been skipped
  unintentionally.
2005-11-05 14:01:07 +00:00
rillig
61ecef8c03 As the printdepends program takes quite a long time, every 50 packages a
status line is printed on stderr to get an impression about how the
program gets along.
2005-11-05 10:14:43 +00:00
rillig
1fa22c0a3d Export the BULK_BUILD_CONF variable so that subprocesses can see it. Rewrote
the code a little.
2005-11-05 08:34:10 +00:00
rillig
74d06614c0 Added a command line option --config that allows to specify a custom
build.conf file. The only way to do this before had been to set the
(undocumented) environment variable BULK_BUILD_CONF. This is a
conservative extension.
2005-11-05 02:20:52 +00:00
rillig
0c15f61e98 Fixed a typo. 2005-11-05 02:12:56 +00:00
rillig
84d18d23bb Environment and pkgsrc variables used by the bulk build. 2005-11-05 01:57:01 +00:00
tv
601fcf276c Microoptimization: awk has BRE pattern matching, so use it instead of
"grep | awk".
2005-11-02 05:33:38 +00:00
tv
975ce705a3 Add lang/perl5 early, but not specifically as part of BULK_PREREQ, so that
it is available at tflat time.
2005-10-27 13:04:54 +00:00
tv
8365241b72 Use Perl-based tflat, which is up to 90% faster than the awk-based one
(necause it was forking off "sort" subprocesses on every package).
2005-10-26 16:54:04 +00:00
tv
ea9310e16a Add USE_BULK_BROKEN_CHECK variable, default 'yes'; if set to 'no', skips
the extra BROKEN/PKG_FAIL_REASON/PKG_SKIP_REASON checks when marking
dependent packages as broken.
2005-10-16 17:35:25 +00:00
jschauma
b7d81330d8 Finally remember to commit this:
Make use of find(1) instead of ls(1) to find the broken files.
This prevents the generation of an empty report due to 'too many arguments'
to ls on certain platforms.
2005-09-25 15:05:40 +00:00
reed
de26529572 Make the directory before creating the pkgsrc-results text file in it.
(Maybe the BUILDDATE is not needed since by default the directory
has the specific date stamp in it.)
2005-09-21 15:46:06 +00:00
xtraeme
1ec80de24c Add a new command line option "-e | --no-email" to not send the email
with the results to ADMIN.

Now the file will be created if the option is not defined and the
email will be sent too, otherwise only the file will be created.

The file with the results will be created in
${FTP}/pkgsrc-results-${DATE}.txt.
2005-09-20 18:54:37 +00:00
reed
f351e3c89b Use PKG_TOOLS_BIN, so it doesn't run wrong pkg_* tools found in the PATH. 2005-08-26 07:24:53 +00:00
reed
1a9bb2d079 Add todo item: Generate list of packages that were "Successfully packaged". 2005-08-26 07:21:47 +00:00
reed
02a66dd2b2 Create intermediate directories as required when creating PKG_DBDIR. 2005-08-26 07:19:05 +00:00
reed
1f611d7e2f Make sure TEE is defined.
I saw:
-a: not found
2005-08-25 22:57:29 +00:00
reed
69eb1bfee2 iUse "up-to-date" instead of "upto date" to be consistent. 2005-08-25 22:56:03 +00:00
grant
91a2d8e88e fix some non-portable statements, allowing this to work properly
on Solaris.
2005-07-28 00:37:43 +00:00
ben
af63d72ec7 Fix the following error:
Can't use an undefined value as an ARRAY reference at mk/bulk/post-build line 470.

In the case that no packages were broken, getBroken returns a hash
without the key "topten".  When Perl tries to use that undefined value
as an array reference, it croaks.
2005-07-17 13:38:01 +00:00
rillig
2649c7e107 Removed superfluous "--" arguments from the command line, as the
argument following the "--" is guaranteed not to start with a dash.
Fixes pkg/30362.
2005-07-13 22:07:46 +00:00
rillig
cd217d9e1f Fixed the quoting. The shell is hard-coded to /bin/sh instead of relying
on which(1). Correctly pass all arguments (even the first one) to the
build script. See PR 30362 for details.
2005-06-27 18:37:22 +00:00
rillig
63d76b7f93 Fixed the quoting. The shell is hard-coded to /bin/sh instead of relying
on which(1). Correctly pass all arguments (even the first one) to the
build script. This fixes PR 30362.
2005-06-27 16:04:08 +00:00
sketch
4228902141 Use ${PERL5} instead of `perl' and relying on $PATH order. 2005-06-24 13:37:51 +00:00
dillo
334a53f8dc lang/perl58 has been renamed to lang/perl5 (hi johnny!) 2005-06-24 08:29:59 +00:00
jlam
c2fb31ba79 Drop the perl-5.6.x package from pkgsrc. Remove lang/perl58 and update
lang/perl5 to perl-5.8.6nb4.  Modify packages that referred to
lang/perl58 to point to lang/perl5 instead.
2005-06-24 06:43:43 +00:00
sketch
e2eb7e8270 mk.conf needs to be backed up as part of the bootstrap files. 2005-06-10 13:09:07 +00:00
rillig
e3aa46eedc Added a leading underscore to the names of the *_COOKIE variables, as they
are not part of the public interface.
2005-06-04 20:56:47 +00:00
dillo
00369f3c0a list all the extracted variables, not just some of them 2005-05-19 22:58:21 +00:00
kristerw
9fbb603b11 Use MACHINE_ARCH instead of arch to be consistent with things like the
subject line in the bulk mail.  This also prevents the quoting problem
on Darwin, where arch contains a space.
2005-05-19 20:56:36 +00:00
kristerw
ec780b54f1 Convert the last remaining usage of GTAR to use PAX instead. 2005-05-19 19:50:25 +00:00
jlam
a743d24806 Use PAX instead of GTAR since pax is provided on all systems while gtar
isn't.
2005-05-19 19:24:59 +00:00
jlam
87110dbd7b PERL5_PKGSRCDIR is no more. Explicitly use "lang/perl58" for the
location of the perl package to install for bulk builds.
2005-05-19 15:18:13 +00:00
sketch
7cdf1cbaf4 Reinstall BULK_PREREQ before running the post-build script as there may be
dependancies required for that script, an smtpd for example, as well.
2005-05-18 20:12:49 +00:00
jschauma
a3fb779cec When generating the report, add a list of top ten offenders at the top.
This makes it easy for people to track down which packages should receive
immediate attention.
2005-05-16 19:11:19 +00:00
kristerw
1400eaeabd Do not add the things in pkgsrc/regress to the bulk build since they
are not meant to be built -- regress testing is done using the
pkgtools/pkg_regress tool.
2005-05-09 16:03:58 +00:00
wiz
e86bd09e3c Changes to the upload script:
vulnerable packages are uploaded directly into the vulnerable subdir.

While here:
quote variables
better handling of the temporary directory
remove some backwards compatibility code that's been here long enough
opsys-specific package handling was doing the same as non-opsys
specific, so fold them together.

Written together with dillo.
2005-05-08 13:29:09 +00:00
wiz
af43f6cfdc Refer doc/pkgsrc.txt instead of Packages.txt. 2005-05-07 22:16:38 +00:00
rillig
1c499d648b Properly quote the &, <, and > characters when generating BROKENWORKLOG.
Approved by wiz.
2005-05-06 00:52:30 +00:00
jlam
0044ab65dc Teach the bulk build scripts about the new tools framework. 2005-05-03 16:34:02 +00:00
jschauma
b4cb11f8f8 s/upto date/up-to-date/ 2005-04-30 21:35:06 +00:00
dmcmahill
51352eff3c by default don't try to include src and xsrc in the list of things to
mount in the sandbox.  Then in the individual OS section, turn it back
on if needed.  Right now, just turn on NetBSD.  At some point we should
probably fill out the other supported OS's or figure out a way to pull
in the information from the makefiles which already define much of whats
needed.
2005-04-21 21:44:56 +00:00
agc
c42f7878b8 Be more informative when cleaning packages and pre-requisites, and clean
up the English in two informational messages. No functional changes.
2005-04-11 11:18:01 +00:00
jschauma
3751e8f33e uncomment the checksums for IRIX
(the commented version was committed by mistake)
2005-04-10 21:44:04 +00:00
reed
9fbd7c3f0c The last revision to this file added a check for removing packages.
If they existed, it cd to that package database directory.

This broke the code later which assumed to be running from
the pkgsrc directory.

So cd to the USR_PKGSRC after this.
2005-03-31 23:36:15 +00:00
hubertf
cb95f0b61b If SIGN_AS is not set, remind the user to please sign the checksum
files manually.

Suggested and OK'd by jschauma@
2005-03-30 22:36:18 +00:00
hubertf
18989c5968 libkver please 2005-03-30 22:32:27 +00:00
hubertf
1910d8dbb2 Before calculating checksums, print a line that says what's happening.
With a slow NFS server (as mine), this can take a lot of time.
2005-03-30 22:26:37 +00:00
kristerw
7555b9f1e3 Remove the packages added when pruning files etc. before starting
the real bulk build.  This ensures that the bulk build is started
in a consistent state, regardless of how the pre-build things are
configured.
2005-03-30 20:21:07 +00:00
hubertf
bbe230ce97 Run download-vulnerability-list before bulk-builds if
UPDATE_VULNERABILITY_LIST is set to 'yes' in pkgsrc/mk/bulk/build.conf.
2005-03-29 00:55:50 +00:00
tv
0facf8765f With the SORT=gsort hack for Interix, all hell breaks loose on pkg_add
because pkginstall encodes it into its scripts.  sigh.

Hack around this.  For bulk builds on Interix only, use gsort for "tflat";
use the system-supplied sort for the rest of the build.
2005-03-28 15:04:07 +00:00
tv
432b696c8e Correctly pass ${SORT} to tflat. Interix needs something other than the
OS-supplied one (currently, it will use gsort from coreutils).
2005-03-24 16:47:34 +00:00
wiz
f358bade15 Change default to 2005Q1. 2005-03-22 16:42:52 +00:00
dmcmahill
a6bbcb2584 fix broken sed regexp which sometimes causes a failed pkg fail in marking others as broken 2005-03-17 22:49:15 +00:00
dmcmahill
ef23058a67 Avoid feeding very long lines to grep/egrep. The grep/egrep implementation
on some systems, e.g. solaris, will simply drop long lines.  These longs
lines are found in the flattened up and down dependency lists in the bulk
cache files.  Instead, use sed to deal with this.

Fixes problems noted in Solaris bulk builds.  Patch tested on NetBSD-2.0
and Solaris-2.9
2005-03-12 13:27:03 +00:00
hubertf
d77f01809b Document doing a pkgsrc-current build 2005-02-26 17:17:16 +00:00
grant
3f3afebafb on Linux, we need more than just /proc in the sandbox. :) 2005-02-10 03:20:00 +00:00
sketch
b6aec517bc Pass the correct programs to the mkdatabase script. 2005-01-27 17:55:42 +00:00
grant
857b601b7b only try to run the build if "cd /usr/pkgsrc" is successful. 2005-01-25 08:47:55 +00:00
jschauma
0c0134061b Per default, only create md5 and sha1 checksums.
(These are available on all platforms via digest(1).)
Set commands for other checksums on a per OPSYS basis.

Set MKSUSM=yes back as the default.
2005-01-24 15:00:48 +00:00
tv
51a7a67d08 Not all OS's have all the checksum tools available to make MKSUMS=yes work.
Default it to "no" instead.
2005-01-24 13:21:13 +00:00
jschauma
d004e03093 Add MKSUMS and SIGN_AS (the former defaulting to yes, the latter commented
out).
2005-01-24 13:08:19 +00:00
jschauma
bb18a86029 Add bits to allow bulk-builders to generate checksums for the binary
packages they upload (by setting the optional variable MKSUMS=yes) and,
also optionally, PGP signing them (by setting SIGN_AS=username@NetBSD.org,
for example).
2005-01-24 03:41:34 +00:00
tv
23c895bb83 The pipe triggers a subshell even though () is not used. So use "exit" and
|| on the outside of the command to determine whether the packages found
in the loop are up to date.
2005-01-21 13:24:13 +00:00
tv
737cb046a6 Fix missing {} around variable name, noted by wiz.
Change one instance of $(...) to `...` per policy.
2005-01-21 13:11:46 +00:00
tv
913dfa54a2 Add LINTPKGSRC_CACHE support to reuse .lintpkgsrc.db created by pre-build.
"cd" to $USR_PKGSRC automagically so this can be called from any dir.
2005-01-20 02:02:50 +00:00
tv
76a832fa68 Fix error in previous; add explicit version check first, then the optionally
excluded timestamp check.
2005-01-19 22:12:27 +00:00
tv
5b254ab9a7 * Add USE_BULK_TIMESTAMPS (default "yes") to control whether dependency
binpkg timestamps, and ${PKGDIR} file timestamps, will be used to
  determine if a rebuild is necessary.  If changed to "no", then rebuilds
  will only happen when PKGNAME actually changes.

* Add LINTPKGSRC_DB (and companion USE_LINTPKGSRC_CACHE, default "no") to
  make pre-build generate a reusable database with "lintpkgsrc -E"; helps
  with nfs-mounted pkgsrc.  A future change will allow use of this in the
  upload script.

* Add entry for PRUNEPACKAGES in build.conf-example (this was missing).
2005-01-19 20:58:00 +00:00
tv
81e40c318f Turn distfile pruning back off by suggestion of wiz@. It's only binpkg
pruning that needs to be on by default.
2005-01-18 15:04:34 +00:00
tv
9a80a01fb8 Turn on all pruning by default. This avoids problems with @blddep matching
in the current incarnation of pkg_install.
2005-01-18 14:11:11 +00:00
jmmv
cd4de569dd Add a blank line between multiple "broken due to a broken dependency"
messages for better readability.
2005-01-17 08:52:50 +00:00
tv
d59d4df63a Work around an undef-in-string warning caused by unexpanded $NetBSD$
id tags.  Noticed by kristerw.
2005-01-15 01:53:00 +00:00
tv
782903ea16 "uptodate-pkgtools" is actually a dead target these days. Use "fetch" in
pkgtools/pkglint to determine if pkg_install needs an update.
2005-01-14 15:32:34 +00:00
jmmv
e05f3f488a For those packages where the maintainer field can't be determined by
grepping, run make to get MAINTAINER's value.  I've tested this with
a script that tries to "simulate" this one without problems, but I
can't test it "in place".
2005-01-14 13:08:28 +00:00
tv
e4cc383421 * Clean up syntax ambiguities, e.g. (my $foo = $bar) =~ ....
* Add optional verbosity to show most commands as they are being executed.

* "use strict" and "use warnings".

* Slurp in the varables from build.conf and bmake in one shot (amazing
  startup speed boost with nfs pkgsrc); put them in a hash to make
  "use strict" much happier with the namespace.

* Fix a bunch of undef-dereference errors evidenced by "use warnings".

* Exclude PKG_DBDIR from leftovers list if it is inside LOCALBASE.

* Convert some <a name="..."/> constructs to <a name="..."></a> to make
  non-XHTML-compliant browsers happier.
2005-01-13 19:29:28 +00:00
tv
7ac5f2db44 Fix checking of up to date binary packages. The problem with DEPENDS
containing constructs of the form

    {perl>=5.8.3nb1,perl-thread>=5.8.3nb1}

is that a Bourne shell "for" interprets this as two separate items in the
list, nuking the {}s.  The above will never succeed and thus always cause
Perl-dependent packages to be rebuilt unconditionally.

Just adding more \s isn't enough -- the parsing of the depends list has to
be moved out of the "for" clause.  So, echo them one per line and use "read"
to pull them in without allowing the shell to peek at those characters.
2005-01-12 22:51:54 +00:00
tv
1b0eb440fd nfs-pkgsrc friendliness change:
Add a knob to relocate all the global bulk state files in one setting.
BULKFILESDIR; defaults to PKGSRCDIR as before.
2005-01-11 18:44:10 +00:00
tv
71b0501db3 Some shells can cache * lookups, so do all the rm -f's of */*/<something>
on one line.  Add a message prior to doing the leftover log cleanup, as
it will take a while if pkgsrc is on nfs.
2005-01-11 18:33:16 +00:00
hubertf
d2b3d61718 rc is in /usr/pkgsrc/, even in sandboxes 2005-01-10 20:00:30 +00:00
hubertf
8f1c2afbd1 Upload pkgs built in sandbox
(wrapper to 'upload' script, similar to do-sandbox-build).
2005-01-10 18:52:25 +00:00
kristerw
fdb6419bd5 The documentation claims you can use -m as an alias for --mirror_only.
Make it so.
2004-12-11 02:49:57 +00:00
jlam
4952f1a79c Don't hard-code "lang/perl58". Instead, use the value of PERL5_PKGSRCDIR
which is computed based on whether perl or perl-thread should be the
default.
2004-11-23 19:44:02 +00:00
jlam
19c97f1019 Fix the find command used to print out all of the .broken* files. It now
prints out both the .broken.html and .broken.work.html files instead of
just the latter.
2004-11-23 19:31:46 +00:00
wiz
1d2852cb72 Change perlfiles var to look for files from perl*,
not only perl, so that perl-thread files are not marked as leftovers.
2004-11-22 12:53:56 +00:00
jlam
b2320b8957 Preserve the .work.log file from a broken build as .broken.work.html
in the package directory, and add a link to it from .broken.html at
the point where the build fails.  Also adjust the auxilliary scripts
to handle/cleanup .broken.work.html files.

This should enhance the ability of developers to debug broken builds
by providing important information about what is happening as a build
progresses and fails.
2004-11-16 18:34:12 +00:00
jlam
d13b06f317 Bulk builds should be defaulting to building perl58. 2004-11-12 15:39:22 +00:00
agc
a920ff2b3c Allow the xsrc directory to be specified on the command line, defaulting to
/usr/xsrc if not specified, and check for its existence.
2004-10-24 22:54:25 +00:00
jlam
17c3aafac1 * Make PKGSRC_TOPDIR a private variable by renaming it to _PKGSRC_TOPDIR,
as it's only used internally by bsd.prefs.mk.

* Make _PKGSRCDIR a public variable by renaming it to PKGSRCDIR.
  Also, generate its value from ${_PKGSRC_TOPDIR} so it's less fragile
  than the old method of stripping off the last two components of
  ${.CURDIR}.  PKGSRCDIR may now be used after bsd.prefs.mk is defined.

* Change all references to _PKGSRCDIR to PKGSRCDIR.
2004-10-07 02:01:37 +00:00
mason
d1a4ff1d2c Typo - "ressource". 2004-09-22 16:42:29 +00:00
cjep
8d4dc2e04d Make and mount the local patches directory when relevant. Fixes PR#26951
from Masanori Mikawa.
2004-09-16 09:55:42 +00:00
grant
b0bef53ef5 many kernel-grovelling tools in Linux need /proc mounted to do
anything useful.

make it so.
2004-09-02 07:04:54 +00:00
sketch
58a29490d5 Properly quote the NICE_LEVEL variable to prevent errors. 2004-08-12 22:18:07 +00:00
sketch
868a80d864 Unset CDPATH variable in the user environment which prints the cwd to stdout
when changing directory, breaking the resulting tsort from the printindex
script output.
2004-08-06 10:41:51 +00:00
grant
51bd835ca8 correctly use PKG_SUFX instead of ".tgz".
this fixes a problem where bulk builds with PKG_SUFX=.tbz would
needlessly, repeatedly rebuild dependency packages because
${PKGNAME}.tgz did not exist.
2004-07-25 08:40:46 +00:00
agc
047727a341 Abstract out the "nice -n 20" clause, so that it can be set to something
else if desired.

Print out dates in the form: yyyy/mm/dd
2004-07-22 14:26:42 +00:00
grant
fc250c5bd6 add anchors for jumping to the top and each section of the HTML report. 2004-07-15 11:57:26 +00:00
grant
562864ccd0 only include broken packages in the email output. 2004-07-15 11:39:11 +00:00
grant
7c66293290 fix typo 2004-07-10 14:37:36 +00:00
grant
06d1f588de add /var/sadm so that Solaris pkgchk(8) can read the package database,
xpm/builtin.mk uses this to determine whether Solaris has xpm.
2004-07-03 21:42:37 +00:00
grant
eca521ff8e the timezone file on Solaris is /etc/TIMEZONE. 2004-07-01 13:18:20 +00:00
dmcmahill
f2b6b7c157 make sure we get BMAKE set when calling printdepends and printindex 2004-06-25 13:45:00 +00:00
grant
492fa68c52 on Solaris, ensure /usr/tmp and /var/tmp are created in the sandbox,
as nroff(1) and others complain if these directories don't exist.
2004-06-06 01:33:17 +00:00
grant
455f44b853 remove "local" variable scope, it is not required and is NetBSD sh(1)
specific.
2004-06-06 01:30:31 +00:00
dmcmahill
5e1b3f9aca add missing -r option that the usage claimed existed. Noted by garbled@ 2004-04-29 02:23:26 +00:00
dmcmahill
0436456e1c add a -s | --specific-pkgs option which will set SPECIFIC_PKGS=1 for the
build.  Suggested by Christoph Badura.
2004-04-24 01:22:49 +00:00
seb
94bd18b74a Fix pasto. 2004-04-19 23:09:55 +00:00
hubertf
5420388150 Deprecate RSYNC_DST_SPECIFIC and RSYNC_DST_OTHER and replace them
by RSYNC_DST. Warn if any of them is not set properly, and in
general adjust to the new layout on the FTP server.
2004-04-19 18:39:09 +00:00
hubertf
307e455bf2 Catch UPDATE_VULNERABILITY_LIST being unset, default to be conservative
and run it if it's not explicitly set to "no"
2004-04-12 13:01:52 +00:00
jschauma
f78237671a According to egrep(1):
Portability note: unlike GNU grep, traditional grep did not con-
  form to POSIX.2, because traditional grep lacked a -q option and
  its  -s option behaved like GNU grep's -q option.  Shell scripts
  intended to be portable to traditional grep should avoid both -q
  and -s and should redirect output to /dev/null instead.

And, guess what, that's exactly what we run into when we call IRIX'
egrep(1) with '-q' (which it doesn't know).  So let's follow this
suggestion and use neither '-q' nor '-s' and redirect output to
/dev/null instead.
2004-04-10 16:23:00 +00:00
jschauma
2cca9690d9 Commentary cleanup:
- If it's a full sentence, start capitalize first letter and end with a
  period.
- Break comments at ~80 chars so it fits into a terminal.[*]

(* This should be done for the code as well, but then it'll need testing.
   I'll do this at another point in time.)
2004-04-09 18:43:14 +00:00
jschauma
f060c78ebf On some systems, bootstrap also installs ${LOCALBASE}/bin/install-sh --
if that is removed, the bulk-build will fail immediately.  So tar it up,
too.  (Note that this will give a warning on systems that don't have it.)
2004-04-09 18:29:37 +00:00
dmcmahill
4886d69430 Add a --mirror_only option to the bulk build script. When combined with
setting SPECIFIC_PKGS=1, this is a convenient way to make sure you have
all required distfiles before starting a build.  In particular, you will
get all distfiles for all required dependencies of the explicitly listed
packages.  As part of this make the option processing part of this script
a bit more general purpose and add a -h|--help option.
2004-04-09 11:06:35 +00:00
dmcmahill
eb0a5dcca7 Add support in the bulk build code to properly deal with SPECIFIC_PKGS=1.
In particular, when SPECIFIC_PKGS is set in /etc/mk.conf, you can now do

  sh mk/bulk/build

and have the right thing happen.  Only those packages explicitly listed
and those which are depended upon are considered for the build.  Other
than the restricted list of packages, the bulk build works the same way
as a full bulk build.
2004-04-07 22:56:34 +00:00
agc
6e27f19f69 Rearrange the wording slightly in an informational message, to avoid
some email filters and false positives.
2004-03-28 20:35:29 +00:00
jlam
24fff0c6d9 Attribute "my thoughts" to the original author. 2004-03-26 08:22:55 +00:00
jschauma
e114a3e62b If BULK_BUILD_CONF points to an absolute path, don't try to use it
with a leading "./".
2004-03-22 21:54:48 +00:00
grant
511c9e8b95 don't assume there will always be broken packages. noted by wiz. 2004-03-18 14:27:20 +00:00
hubertf
51c65d9891 Enforce vulnerability list being installed & correct & upto-date
before trying to upload anything.
2004-03-16 13:55:51 +00:00
wiz
8f8df9c339 Remove some more of the "last touched by" code. 2004-03-13 11:55:40 +00:00
hubertf
399ce0a3ff Remove 'blame' column, OK'd by grant@. 2004-03-11 01:42:11 +00:00
grant
b6f7f60e16 s/netbsd.org/NetBSD.org/ 2004-02-25 09:20:59 +00:00
grant
3f7c436cf4 GNU tar on netbsd-1-6 doesn't grok "-T -" at the end, but pax-as-tar
does, so rearrange the arguments so that "-f -" is always at the end.
noted by krister@.

while I'm here, make sure we use the same tar(1) program pkgsrc does.
2004-02-25 09:05:40 +00:00
hubertf
4b44008c84 Add RCS ID 2004-02-16 20:25:35 +00:00
grant
b56215fa53 avoid another long command line calling tar(1). 2004-02-15 06:17:10 +00:00
grant
5fdae71af5 zoularis is deprecated, don't backup zoularis.mk. 2004-02-14 04:06:29 +00:00
grant
f426c40c92 when copying the broken files, use find(1) instead of a shell glob
to avoid a command line too long for sh(1) on some platforms.
2004-02-14 04:00:18 +00:00
grant
7430d655d9 on Solaris, mount /opt/SUNWspro in the sandbox if it exists. 2004-02-13 23:53:13 +00:00
grant
727d3d4ea3 print date and time in UTC. 2004-02-08 12:54:05 +00:00
grant
bb4eec4fb6 include the total number of binary pkgs created in the report. fix
some HTML nits.
2004-02-08 09:13:43 +00:00
grant
2b04192e07 extract OPSYS and OS_VERSION from pkgsrc and use them in the report
email subject.
2004-02-05 23:57:54 +00:00
grant
e3a6dc7dd8 show build start time in localtime, not seconds-since-epoch :) 2004-02-05 23:53:16 +00:00
sketch
8ebd17f97c Remove a local change which crept in with the last update. 2004-02-05 10:59:40 +00:00
grant
4ddc97c628 fix typo in comment 2004-01-31 03:37:24 +00:00
grant
68315859d7 improve report layout:
- move the build summary to the top and include build start/end
  times.
- break the report up into three sections for easier navigation:
  Broken, Broken dependencies, and Not packaged.
- HTML report now uses a subset of the www.NetBSD.org stylesheet.
- improve some of the text.
2004-01-31 03:30:49 +00:00
grant
226bb2c88f shut up a warning from gawk. 2004-01-30 11:10:47 +00:00
grant
aa090d4366 allow the user to set the packages to build in build.conf (PKGLIST).
cache the list in printdepends so that printindex doesn't need to
run the same command(s) again at the start of a bulk build.
2004-01-30 10:54:36 +00:00
grant
3b338ae7b6 print a useful error if the pkgsrc directory or src directory
doesn't exist.
2004-01-30 08:51:29 +00:00
grant
fb2aa67691 if an unknown option is given, don't treat it as a sandbox
directory, print the usage message instead.
2004-01-30 08:34:28 +00:00
agc
c156ab5d49 Replace all occurrences of the "MAIL" definition with MAIL_CMD, since
some shells can set MAIL to be the mailbox of the user, and
environment variables will override assignments in make when using
conditional assignments.
2004-01-27 16:11:47 +00:00
grant
d84262f580 add /usr/5bin for Solaris. 2004-01-26 22:32:30 +00:00
agc
1e90841f0d Add a new definition, _PRESERVE_WRKDIR, which defaults to "no". This
definition is not intended to be set by the user, and so has a leading
'_', and is undocumented.

If set to "yes", then a "make clean" of the package will not be done,
thereby preserving the working directory.  This is useful for
debugging problems in bulk builds.
2004-01-26 21:24:41 +00:00
heinz
4d478bb0cf Use $FIND with "-print". Noted by Georg Schwarz in PR pkg/24248 2004-01-26 21:10:31 +00:00
grant
c7be5308d1 sandboxed builds also need /usr/dt and /usr/ucblib on Solaris. 2004-01-22 13:08:32 +00:00
grant
3764132f99 make date format string more portable. 2004-01-22 09:08:34 +00:00
grant
b61400f8a3 add archivers/pax, net/tnftp, security/kth-krb4 and textproc/nbsed to
the packages to skip on non-NetBSD because they blow away
bootstrap-pkgsrc installed files.

only create ${PKG_DBDIR} if it doesn't already exist.
2004-01-20 12:44:30 +00:00
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
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
jlam
b119dbc8ef Merge pkgsrc/mk from the buildlink2 branch back into the main trunk. 2002-08-22 08:21:26 +00:00
hubertf
7508b153db Add CVS_FLAGS that will be passed to 'cvs update' before builds.
Allows specifying a branch ("-rnetbsd-1-6") or the trunk ("-A") easily
from the build.conf file.
2002-08-20 02:17:56 +00:00
seb
ae89e1a1e1 Actually Alistair was right: $packages and $distfiles also need to be
$mkdirprog'ed, it helps on a fresh/virgin/cleaned up bulk building system.
2002-08-15 10:42:19 +00:00
agc
a4d0d788d6 Make sure that /var/games exists in the sandbox, and has the correct
permissions.
2002-08-12 16:33:11 +00:00
seb
9ddc0ee2a9 New feature: this script now create $sandbox/sandbox, a shell script
to ease the use of the sandbox.

$sandbox/sandbox umount
  Umount the null mounts from the sandbox
$sandbox/sandbox mount
  Mount the null mounts required by the sandbox (useful across reboots, ...).
$sandbox/sandbox whatever
  Runs the command passed as arguments, chrooted into the sandbox.
  Typical usage would be `$sandbox/sandbox /my/favourite/shell'.
$sandbox/sandbox
  Same as `$sandbox/sandbox /bin/sh'

Approved by agc.
2002-08-12 15:19:49 +00:00
seb
5670256c19 - Remove $sandbox/etc/localtime before copying /usr/share/zoneinfo/GMT over.
This prevent surprise when /etc/localtime -previously copied over in the
  sandbox by pax/tar- is a symlink to /usr/share/zoneinfo/whatever.
- Improve somewhat some messages.
- Make sure $sandbox/$packages and $sandbox/$distfiles are created instead of
  $packages and $distfiles.
2002-08-12 14:47:07 +00:00
agc
e9822c16a7 In the build script, set BATCH=1 and DEPENDS_TARGET=bulk-install in the
environment, and pass them down to the bulk build. This means that the
/etc/mk.conf (or $MAKECONF) can be shared between ordinary builds and
bulk builds.
2002-08-12 14:20:59 +00:00
agc
335e691b7a Don't null-mount all of /var - just do /var/mail for just now, so that
the packages which expect a sane mail delivery set up can configure and
build within the sandbox.
2002-08-12 10:12:09 +00:00
agc
c57f1d48cf Also null-mount /var from inside the sandbox 2002-08-12 09:55:35 +00:00
agc
7832e64d14 Don't assume that this is a shell script - instead, realise that it's
written in perl, and call the environment variable "BMAKE" accordingly
(it's set to the name of the NetBSD make(1) program).
2002-08-12 08:46:54 +00:00
agc
7d725beb1b Correct the position of a closing parenthesis in a comment 2002-08-07 12:14:12 +00:00
agc
742d20ca58 A small shell script to set up a sandbox (usually for a pkgsrc bulk
build), using null mounts.
2002-08-07 12:03:00 +00:00
agc
9a4f22c0ba Make these scripts useful on platforms other than NetBSD by using a BMAKE
environment variable, which contains the name of the make(1) program to
invoke - suggestion by Julien Letessier some time ago, the confusion mine,
since I thought he was referring to something else completely.

Don't rely on there being a POSIX tr(1) in the path by default - test
explicitly for both "yes" and "YES".

Set the default for PRUNEDISTFILES to "no", since we can't assume that
the user wants us to delete something which he may have been keeping
around, and there are other ways of accomplishing this aim (lintpkgsrc
-o, for example).

Clean up some superfluous white space at the end of lines.
2002-08-07 10:56:11 +00:00
agc
b1e763d5bc Add a missing "-o" from the compound test in the if statement 2002-08-06 18:14:49 +00:00
mrauch
740ad47954 Make bulk builds aware of packages with INTERACTIVE_STAGE and mark them as
"not packaged" instead of "broken".
2002-07-21 11:53:18 +00:00
dmcmahill
187edbfd07 don't hard code the start time stamp file as .start.${arch} but allow
OBJMACHINE and OBJHOSTNAME to work.  Also don't hardcode /usr/pkg and
/usr/X11R6 for LOCALBASE and X11BASE.  Finally, fix a few typos in messages
while here.
2002-06-29 03:33:34 +00:00
agc
d770bff3a2 fix typo 2002-06-28 08:46:38 +00:00
agc
33334d61db Don't hardcode the value /var/db/pkg - this may not be the desired value
of PKG_DBDIR. Instead, get the value using "make show-var".
Pass this value down through the environment to pkg_info and pkg_delete
2002-06-28 07:54:36 +00:00
hubertf
507d240872 Allow restarting a chrooted build:
sh mk/bulk/do-chroot-build restart
2002-03-16 10:00:17 +00:00
hubertf
e9be9f5f83 nuke /var/wwwoffle - pointed out by fred bruckman 2002-03-14 00:13:29 +00:00
hubertf
d91f40b832 Move documentation where it belongs.
Add paragraph "Setting up a sandbox for chroot'ed build" to
Packages.txt and xref it from do-sandbox-build script
2002-03-13 06:30:12 +00:00
hubertf
207d50e572 Use <pre> to surround build logs - monospaced fonts are so much more readable.
OK'd by Dan McMahill
2002-03-04 21:10:47 +00:00
dmcmahill
0aa7588bd1 add some html markup to the .broken files (which now have .html extenstion).
The primary purpose is so when a package is broken due to broken depends,
there are links to the build logs of the broken dependencies.

Suggested by Brook Milligan on tech-pkg.
2002-01-20 03:07:05 +00:00
dmcmahill
d99a79b2eb add the OBJHOSTNAME functionality that appeared in 1.901 of bsd.pkg.mk.
When OBJHOSTNAME is set, the various cache files and log files will include
the hostname in their names.  Useful when multiple machines of the same
architecture share pkgsrc.
2002-01-12 02:25:59 +00:00
dmcmahill
f68e56c389 - add 'bulk-cache' and 'clean-bulk-cache' targets to create and remove
the cache files used during a bulk pkgsrc build.

- replace the code in the build script that used to create the cache
  files with a 'make bulk-cache' call.
2001-12-17 02:32:22 +00:00