Commit graph

41 commits

Author SHA1 Message Date
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
dmcmahill
6d09a84540 - when deleting packages, don't try and delete packages which have already
been deleted.

- when removing the '.start' file, don't remove them all, only the one we
  created.  Prevents clashes when pkgsrc is shared among multiple machines.
2001-02-01 08:25:39 +00:00
dmcmahill
c93e1e611d move the code which determines the BROKENFILE and BUILDLOG file names out
of the top level build script and into the {pre,post}-build scripts.  This
ensures that either of those scripts may be run directly and not rely on
a variable being set by the top level script.

Thanks to Hubert Feyrer for pointing out the problem in a private email.

These changes do not require any user changes to the build.conf file and
should be transparent to the user.
2000-12-31 17:38:32 +00:00
dmcmahill
da395b7a6b further cleanup of handling the .broken.files and .make.files
- set BROKENF and BLDLOG in the 'build' script and pass those variables
  down to {pre,post}-build in the environment to make sure we only set them
  in one place.  The values are determined by a
      make show-var VARNAME=BROKENFILE
  This causes the default (set in bsd.bulk-pkg.mk) or the user overridden
  value from /etc/mk.conf or the environment to be correctly determined.  This
  is more robust that relying on a build.conf setting which may or may not be
  correctly set.

- have pre-build only clean up BROKENF and BLDLOG files instead of
  .broken* and .make*
  This avoids conflicts when pkgsrc is shared among different machines.
2000-12-30 14:53:28 +00:00
dmcmahill
1c4434b644 make the pruning of distfiles be controlled by a build.conf setting.
this way if you have 2 different pkgsrc trees sharing a distfiles directory
you don't nuke distfiles which may still be needed.
2000-12-22 01:35:33 +00:00
hubertf
c163ced9d9 An old version of a (broken) useradd created /nonexistang, and pop3d
didn't like this. Make sure it's nuked.
2000-12-15 23:08:42 +00:00
hubertf
5f90fbdce2 If cvs and ssh are in base, don't pkg_add them 2000-12-05 16:33:27 +00:00
hubertf
cbff95cff4 Install cvs and ssh and do 'cvs update' only if CVS_USER is set in build.conf.
(Set to "" to prevent update e.g. on sparc64 where we don't have a working
ssh yet)
2000-09-29 04:27:42 +00:00
hubertf
75e412d56f make lintpkgsrc operate on the right dir - with out -P, it goes for
/usr/pkgsrc instead of the current dir. Bad!
2000-09-24 16:22:08 +00:00
hubertf
0e02ae3631 rcs id police 2000-09-15 22:27:16 +00:00
hubertf
0e7843f045 Bulk build framework 2000-09-15 22:05:46 +00:00