Commit graph

60 commits

Author SHA1 Message Date
rillig
efd0e15ce9 The security/kth-krb4 package does not install bin/ftp anymore (since
February 2004), so it doesn't conflict with bootstrap-pkgsrc.
2006-02-12 05:00:33 +00:00
rillig
d9f528e7fb Added "pre-build>" identifier to two echo commands. 2006-02-11 23:54:25 +00:00
rillig
d846e3c2b5 When in "set -e" mode, the Solaris /bin/sh exits when "cd" fails, even
if it occurs as the condition of a "while" or "if", or in combination
with && or ||. This, of course, introduces a race condition if someone
removes the directory between the two "cd"s. The result would be that
the bulk build terminates, but that's not a big issue, as in this case
there must be something much more severely broken.
2006-02-07 21:34:48 +00:00
rillig
c22e7cd031 Don't test(1) and cd(1), cd(1) directly. As long as "set -e" is not
activated this prevents unexpected behavior.
2006-01-29 23:07:04 +00:00
rillig
550a2c6284 Prefixed all status messages with "pre-build>" to show the user where they
come from.
2005-12-08 21:21:15 +00:00
rillig
0e9febc62e Added missing "quotes" around many variables. 2005-12-06 09:15:29 +00:00
rillig
4f04fb18f4 Removed CVS_USER, as announced on pkgsrc-bulk.
See <http://mail-index.netbsd.org/pkgsrc-bulk/2005/11/24/0003.html>.
2005-12-03 01:00:37 +00:00
joerg
013ea94433 Fix usage of BULKFILESDIR:
1. Ensure that it exists before trying to use anything inside of it.
2. Prefix files correctly with BULKFILESDIR to match the rest of
the tree.
3. Most importantly, create the .broken.html files for bootstrap tools
in BULKFILESDIR, otherwise e.g. bmake would be removed in the middle of
a bulk build on non-NetBSD.

Discussed-with: rillig@
2005-11-30 17:31:06 +00:00
rillig
eca9c2c140 Added "" quotes to all arguments to echo(1). 2005-11-20 15:25:39 +00:00
rillig
a4b630d89c Moved the "export BROKENF" command from the top of the program to the
point where it is actually used, which is when mk/bulk/pre-build.local
is executed for allowing user-specific modifications before the build
begins. That way it's easier to see why this command is necessary at
all.
2005-11-20 14:55:13 +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
02a66dd2b2 Create intermediate directories as required when creating PKG_DBDIR. 2005-08-26 07:19:05 +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
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
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
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
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
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
seb
94bd18b74a Fix pasto. 2004-04-19 23:09:55 +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
grant
5fdae71af5 zoularis is deprecated, don't backup zoularis.mk. 2004-02-14 04:06:29 +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
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
agc
09c5eb4c93 Make the cvs update work for all shells, not just csh. 2003-12-07 11:43:22 +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
6c4ff55ea4 Catch error from su, and report it to the calling script (pkgsrc/mk/build) 2003-11-20 00:02:59 +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
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
a536eabe59 Actually pass CVS_FLAGS propperly to the su'd "cvs update" 2002-11-03 22:59:21 +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
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
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
e9be9f5f83 nuke /var/wwwoffle - pointed out by fred bruckman 2002-03-14 00:13:29 +00:00
dmcmahill
02a6401010 don't try and do 'mount -o async -u /usr' because we don't know that the user
even has a file system called /usr or that thats the right one.
2001-07-21 19:58:32 +00:00
hubertf
b66dfe005e OK, let's try this the other way 'round: first clean out *everything*,
then start preparing the bulk build (cvs update, distfile cleanout, ...)
2001-05-09 03:05:24 +00:00
dmcmahill
334c20eca8 when installing pkglint before the bulk build do it with PRECLEAN=yes.
This should fix pkg/12808.  Adding the PRECLEAN as a fix was suggested
by Hubert.

Also, while here don't hardcode LOCALBASE and X11BASE.
2001-05-05 14:01:09 +00:00
dmcmahill
8cd8ec3101 allow for a pre-build.local script. If mk/bulk/pre-build.local exists,
then run it at the end of pre-build.  This lets users do things like:

echo "I do not have enough disk space to build this pig." \
	> games/crafty-book-enormous/$BROKENF
2001-04-14 17:20:07 +00:00
hubertf
db0f1b495e clean up a few more shards 2001-04-02 14:25:24 +00:00
dmcmahill
c341f514d3 -add support for a BULK_PREREQ make variable. BULK_PREREQ contains a list
of packages which must stay installed during the build, but are not pulled
 in by the DEPENDS for each package.  Currently, BULK_PREREQ will always include
 pkgtools/digest.  At this time, the primary use will be to add
 BULK_PREREQ+=pkgtools/xpkgwedge
 in /etc/mk.conf to do an xpkgwedge'd bulk build.  It is up to the user to make
 sure that the list of packages in BULK_PREREQ is a flattened list (ie all the
 DEPENDS are listed too).  Again, at this time, xpkgwedge is really the only
 package that should be added to the list.

-add an ADMINSIG build.conf variable.  This is the signature at the end of the
 email report.  Maybe now I'll quit forwarding reports signed as "-Hubert".

-while here, eliminate grep|awk lines and `grep >/dev/null` replacing them
 with pure awk and grep -q.
2001-03-19 11:25:39 +00:00
hubertf
58443dd82f make sure CVS_RSH gets set to 'ssh' before cvs updating 2001-03-14 15:04:03 +00:00