Commit Graph

97 Commits

Author SHA1 Message Date
apb 0b92f0fef9 Ue ${GZIP_N_FLAG} instead of -n when setting GZIPFLAGS or GZIP_FLAGS.
This will allow -nT instead of just -n to be passed to pigz.
2014-08-05 15:45:49 +00:00
uebayasi 0bf7a3d460 Execute sub-${MAKE} from within a source directory. 2014-06-09 01:17:44 +00:00
apb 36f73837c6 Teach "make sortlists" to ignore .#* files (sometimes created by cvs),
and to squeeze multiple blank lines.
2014-05-15 16:32:07 +00:00
apb a452d8c9e2 Pass the -n flag to gzip invocations.
This prevents it from embedding a timestamp in the output.  We pass
"-n" unconditionally, not conditional on MKREPRO, because many other
invocations of gzip already passed the -n flag unconditionally.
2014-01-27 21:37:17 +00:00
apb 36ef98548b Use ${TOOL_GZIP} instead of just gzip in all Makefiles
outside */dist/* subdirectories.

When USE_PIGZGZIP=yes, bsd.own.mk sets TOOL_GZIP=${TOOL_PIGZ},
so there's no need to test USE_PIGZGZIP in these Makefiles.
2014-01-27 08:18:07 +00:00
apb 9c0097bee2 Remove time= keywords from METALOG.sanitised.
The times add unnecessary differences to the DESTDIR trees for MKREPRO
builds, and they are not needed by anything.  (maketars, the chief
consumer of METALOG.sanitised, explicitly ignores the time fields.)

Also factor out some duplicated code and update comments.
2014-01-23 21:45:27 +00:00
christos 2b043c75b6 eliminate use of bsd.sys.mk from Makefiles 2014-01-16 01:15:32 +00:00
apb 77d5075faf In "make sortlists", if the file was already sorted then don't
change its timestamp.
2013-10-30 15:17:01 +00:00
apb 442a1a4fdf Add "make sortlists", for sorting the set lists. This may be
run manually, before committing changes to the lists files.
2013-10-27 09:29:42 +00:00
christos e7fd4058d5 Remove -s "stable" flag, since it is not posix. 2013-02-21 14:08:50 +00:00
christos 077ff08983 Use sort -s to get a stable sort, even if that is the default for ours. We
prolly need a TOOL_SORT...
2013-02-18 00:22:13 +00:00
christos 33dedf2c47 only do the keep last in update builds and explain why. 2013-02-18 00:00:55 +00:00
christos 656c32c03e keep only the last entry for each file, before sorting. 2013-02-17 23:56:52 +00:00
jmcneill 539ce5845b when sorting the metalog for unpriv builds, first run it through sort so
mtree doesn't fail with:
  nbmtree: .: missing directory in specification
  nbmtree: failed at line 1 of the specification
2011-08-09 15:02:30 +00:00
uebayasi 3b6fd6df32 Comment. 2011-02-16 06:14:01 +00:00
uebayasi 2757d34aaa RCSMETALOG: treat initial clean_METALOG nicely. 2011-02-16 06:02:01 +00:00
uebayasi 70e2a9ceac Add a hook to version METALOG using rcs(1). 2011-02-16 05:18:35 +00:00
mrg 25c3593d4e add new option to build/use tools/pigz for compressing sets. for now
USE_PIGZGZIP defaults to "no".  (it depends upon local <pthread.h> and -lz.)

you can set it to "yes" on most modern platforms just fine.
2010-08-15 07:27:33 +00:00
mrg 656d5ec56d export PIGZ=${TOOL_PIGZ} (not yet used.) 2010-06-29 05:51:53 +00:00
uebayasi 930c6ee6c5 Clean up debug knobs. 2009-12-15 06:18:07 +00:00
uebayasi d7fe4afc2b Set $rundir before calling sets.subr as other scripts do. 2009-12-11 15:25:05 +00:00
uebayasi 5b7db8face Style. 2009-12-10 13:29:14 +00:00
uebayasi 69c8fc601b sh -> ${HOST_SH} 2009-12-10 05:57:23 +00:00
uebayasi 7638dd5a18 Add print_mkvars make target for debug. 2009-12-10 05:15:28 +00:00
apb fdf694944f Remove definition of GREP variable, which was unused. The only use
of this variable was removed in revision 1.67.
2009-12-04 12:43:56 +00:00
uebayasi 6519114ccc Pass ${TOOL_PKG_CREATE} to scripts for syspkg creation. 2009-12-01 09:11:45 +00:00
uebayasi d166c4bf28 Support "extsrc", externally added programs and libraries. Users can write
their own reach-overs, cross-build, install, and get set files just like base
and X11 / X.org.  (These sets are not included as TNF releases.)
2009-11-30 16:13:22 +00:00
snj f2a7edf211 Only generate SHA512 and MD5 checksums for releases. 2009-09-19 07:09:53 +00:00
apb 06867cdace If there are errors in creating a ${set}.tgz tar file, then don't
just press on regardless.
2009-09-12 11:01:55 +00:00
apb 7461501a27 Add "-M" flag to the mtree invocation in sanitise_METALOG. This should
avoid errors in cases where a build poduct changes type (e.g. a file
becomes a symlink) between one build with older sources and a subsequent
update build with newer sources.
2009-07-12 12:30:31 +00:00
apb 3ae1376a23 Clean up the handling of METALOG.sanitised:
* Don't change METALOG in place while creating METALOG.sanitised in the
  sanitise_METALOG target.  This makes it easier to manually inspect
  METALOG to find the order in which lines were added during a build.

* Add a clean_METALOG target, to be invoked from src/Makefile early in
  the build, to prevent unbounded growth of METALOG during multiple
  MKUPDATE builds.

* Remove the old hack of incorporating etc/mtree/NetBSD.dist into
  METALOG.sanitised.  It was needed only during a short transition
  period when people might have done MKUPDATE builds starting from
  existing DESTDIR and OBJDIR trees that had been created before
  revision 1.317 of src/etc/Makefile.

* Since etc/mtree/NetBSD.dist is no longer added, there's will not
  be any "optional" lines, so there's no need to filter them from
  METALOG.sanitised.

* There's no need for two different METALOG.unpriv and
  METALOG.sanitised.unpriv variables; combine them into a single
  METALOG.unpriv variable whose value is "-M ${METALOG}.sanitised".

* Reorder some lines in the Makefile, to bring related targets,
  variables and comments together.
2009-04-23 09:37:03 +00:00
apb c62615c020 In various places that manipulate mtree specs, use "mtree -CS" to sort.
Remove some now-redundant standalone sort commands.
2009-04-11 15:09:32 +00:00
apb c89f08d79b Add support for new MAKEVERBOSE levels 3 and 4. The complete list is now:
0   Minimal output ("quiet")
 1   Describe what is occurring
 2   Describe what is occurring and echo the actual command
 3   Ignore the effect of the "@" prefix in make commands
 4   Trace shell commands using the shell's -x flag

The default remains MAKEVERBOSE=2.
2008-11-13 20:40:11 +00:00
mrg 9c8df5ee67 - retire MKXORG from public use
- introduce X11FLAVOUR to choose src/x11 vs src/external/mit/xorg
  for the X11 to build if MKX11=yes is set.  it takes the values
  of either Xorg or XFree86.
- default to Xorg on alpha, i386, macppc, shark, sparc and sparc64
- remove MKXORG_WITH_XSRC_XSERVER, unused and never useful
2008-11-09 23:02:28 +00:00
apb 89799ead73 Pass SED=${TOOL_SED:Q} in the environment to scripts run during the build. 2008-10-25 22:23:55 +00:00
apb 96230fab84 Use ${TOOL_AWK} instead of ${AWK} or plain "awk" in make commands.
Pass AWK=${TOOL_AWK:Q} to shell scripts that use awk.
2008-10-19 22:05:19 +00:00
lukem e95c8a6849 Remove set lists for the non-cross-compiled ("vendor provided") build of
XFree86; we've used our src/x11 framework for four years.
2008-08-31 00:19:33 +00:00
lukem d6e6997551 Improve support for MKXORG!=no to enable builds into external/mit/xorg.
This will be mutually exclusive to MKX11!=no.
2008-08-28 07:21:49 +00:00
matt 7cd6f44757 Change remaining instances of ${RELEASEDIR}/${MACHINES} to
${RELEASEDIR}/${RELEASEMACHINEDIR}
2008-06-23 02:16:53 +00:00
apb 3ba96f4940 If MAKETARS_SERIAL is set to "YES" or "yes", then the tar sets will be
made in series, even if make's "-j" flag requests multiple parallel
jobs.  This is useful on systems that exhibit poor performance when
running multiple parallel disk-intensive operations.  The default is
MAKETARS_SERIAL=NO, which will obey the "-j" flag passed to the make
command.

Requested in tech-toolchain.  Reverts the change made in revision 1.56.
2008-05-02 19:25:42 +00:00
lukem 6c8d08d4c7 Add '-q' to maketars and makesrctars, to quieten them.
Improve MAKEVERBOSE support.
2008-03-16 07:02:22 +00:00
apb 959aea0471 Serialise making the "sets" tarballs in the maketars target.
On many systems, making them in parallel causes very poor
system performance due to disk I/O.  (Requested by jmmv.)
2007-03-10 20:34:57 +00:00
apb 686a052354 Let do-${tar} depend on sanitise_METALOG. 2007-01-27 06:46:43 +00:00
he 2e013abffa Ensure that ${METALOG} does not grow without bounds as an effect of
repeated unprivileged UPDATE builds.

Discussed with lukem@
2006-11-05 18:04:44 +00:00
mrg db19e89e04 remove support for building (with) GCC 2.95. also:
- always install <stdbool.h>
- don't generate a fake one for vax / gettext.
2006-06-02 22:16:18 +00:00
mrg 0db1500b43 retire HAVE_GCC3/HAVE_GCC4 and introduce HAVE_GCC that is set to 2, 3 or 4. 2006-04-07 19:38:58 +00:00
apb 69a903d0c3 Prepend etc/mtree/NetBSD.dist to the metalog before passing it to
${TOOL_MTREE}.  Previously this was done by maketars.  In the long
term there should be a better solution.  In the short term, this
should fix the build for people who do unprivileged update builds and
who had an old METALOG from before the recent syspkg-related changes.

Reviewed by christos
2006-01-06 18:08:59 +00:00
apb f644cbcf33 Add a "makedeps" target, to update the "deps" file.
XXX: Why is "deps" checked in to the source tree, instead of
just being created as necessary?

Reviewed by agc
2006-01-04 15:11:07 +00:00
apb 5b62001b7b * Add new user-visible "syspkgs" target, and internal "makesyspkgs" and
"makesyspkgsums" targets for it to use internally.
* Add internal "sanitize_METALOG" target that uses "${TOOL_MTREE} -C ..."
  to sanitise the METALOG file before invoking anything that will
  want to parse the METALOG (checkflist, regpkgset, maketars, or
  installsets).  Previously, maketars used to do this itself, but its
  better to do it only once.
* Add internal "checkflist_if_DESTDIR" target, which invokes checkflist iff
  DESTDIR is set and not empty.  Use it where appropriate.
* Add a few more host tools to SETSENV.
* A few minor related changes.

Reviewed by agc
2006-01-04 14:58:58 +00:00
jmc 4afc9e5b49 Restructure how makesrctars works so it spits out source balls that look like
they would from a release (files owned by root:wsrc, perms set, etc)
2005-10-07 20:00:54 +00:00