Commit graph

1080 commits

Author SHA1 Message Date
Ruslan Ermilov 042df2e2da Enable GCC stack protection (aka Propolice) for userland:
- It is opt-out for now so as to give it maximum testing, but it may be
  turned opt-in for stable branches depending on the consensus.  You
  can turn it off with WITHOUT_SSP.
- WITHOUT_SSP was previously used to disable the build of GNU libssp.
  It is harmless to steal the knob as SSP symbols have been provided
  by libc for a long time, GNU libssp should not have been much used.
- SSP is disabled in a few corners such as system bootstrap programs
  (sys/boot), process bootstrap code (rtld, csu) and SSP symbols themselves.
- It should be safe to use -fstack-protector-all to build world, however
  libc will be automatically downgraded to -fstack-protector because it
  breaks rtld otherwise.
- This option is unavailable on ia64.

Enable GCC stack protection (aka Propolice) for kernel:
- It is opt-out for now so as to give it maximum testing.
- Do not compile your kernel with -fstack-protector-all, it won't work.

Submitted by:	Jeremie Le Hen <jeremie@le-hen.org>
2008-06-25 21:33:28 +00:00
Marcel Moolenaar 70d8932f66 Don't use disklabel for the MFS root. The DoFS.sh script creates
a bogus partition table and puts the file system on the whole
partition. geom_part doesn't expose the 'c' partition as it's an
artifact of the BSD label and not to be used. Secondly, gpart(8)
is the preferred tool for partitioning disks on ia64.
2008-02-21 03:16:36 +00:00
David E. O'Brien 569acadf29 Make it easier to experiment with alternate compression.
Reviewed by:	kensmith
2007-12-09 04:24:09 +00:00
Ken Smith 5876d743c3 When compiled with the combination of flags used to build crunched
binaries for the fixit floppy bin/ed/main.c causes a gcc warning
message about argc possibly being clobbered by longjmp or vfork.
We have threatened to ditch floppies for 8.0 but I don't want to
do quite that much rototilling yet so for now turn off -Werror while
building ed (and everything else) for the fixit floppy.

Thanks to jb for pointing out NO_WERROR.
2007-12-04 02:22:35 +00:00
Simon L. B. Nielsen f24c80e2ef Remove kernel and module symbol files from disc1 (and the livecd if it
is enabled).  This saves around 80MB (for i386) on the ISO images.

Note that this is only from the install media, not the installed
system where the symbols are still installed, if part of the release.

Should anybody want the symbols which match disc1/livecd, they can
just be extracted from the kernel distribution files.

Reviewed by:	kensmith
2007-11-22 20:06:50 +00:00
Ken Smith 1bf7496cff The i386 disc1 size wandered above what fits on 650Mb media which has been
our target previously.  So i386 joins the others that have switched over
to a separate livefs iso image.
2007-11-16 13:14:27 +00:00
Yoshihiro Takahashi c6e7f7df5a pccard.conf is gone. 2007-11-09 15:32:04 +00:00
Ken Smith c15e0967df To honor the birth of RELENG_7 bump HEAD to 8.0-CURRENT.
Approved by:	re (implicit)
2007-10-11 04:28:08 +00:00
Bruce A. Mah 5c12c7bf5a Remove one more reference to the installation notes, this time in the
floppies directory.

Pointed out by:	kensmith
Approved by:	re (blanket for installation notes removal)
2007-08-17 14:13:39 +00:00
Bruce A. Mah f08071c084 Don't copy the installation guide to the release media (i.e.
floppies or ISO images).  We retain the concept of MD
release documentation for now, although it's fairly unlikely
that we'll ever do this again.

Approved by:	re (blanket for installation guide removal)
2007-08-14 20:02:55 +00:00
Ken Smith eb173edb43 The amd64 monthly snapshots began overflowing disc1 (and that's without any
packages...).
2007-05-10 12:04:29 +00:00
Bruce A. Mah e1ae210ad5 Reflect that the hardware notes is now an MI document. 2007-02-16 02:28:15 +00:00
Ken Smith 7404bf519f Boot floppy for i386 overflowed during Jan. 2007 snapshot build, fix
it before Feb. 2007 snapshot build...
2007-02-01 15:12:44 +00:00
Bruce A. Mah ae6f6d9295 Teach release builds and release documentation snapshots that release
notes are no longer MD documents.
2006-12-06 18:07:40 +00:00
Ken Smith 639fe104d8 Move the documentation to its own separate disc to make room for more
packages on disc2.  This will also let users decide if they want to
have a CD of the docs at all - unless they're disconnected from the
net they will probably find the Web site more useful.

Reviewed by:	ru
MFC after:	3 days
2006-11-16 23:09:35 +00:00
Ruslan Ermilov e50a1ba261 Enforce RELEASENOUPDATE if EXTSRCDIR is used.
Suggested by:	jb
2006-11-11 23:18:28 +00:00
Ruslan Ermilov 9f5cc52fb6 The AUTO_KEYBOARD_DETECT is useful on amd64 as well. 2006-10-24 21:00:49 +00:00
Ruslan Ermilov 2c9f74ef32 Remove hint.atkbd.0.flags="0x1" from the installation device.hints;
kbdmux(4) is available during install and should take care of USB
keyboards.
2006-10-24 20:52:06 +00:00
Ruslan Ermilov 95dc12e160 Make it possible again to build -CURRENT snapshots on -STABLE.
Reported by:	Angelo Turetta
2006-09-11 13:15:09 +00:00
Ruslan Ermilov 710989358e Stop cutting the tarball names to eight symbols. This makes
it possible to e.g. distribute kernels with config names larger
than eight symbols, without the clash.  Previousy, LALALALA
and LALALALA-SMP would be the same tarball.  (I think this
comes from the old days where tarballs were put on the MS-DOS
formatted diskettes.)

MFC after:	3 days
2006-09-08 19:54:37 +00:00
Ruslan Ermilov 2b46c64c9c Remove alpha left-overs. 2006-08-22 08:03:01 +00:00
Colin Percival c5897626b9 When deleting empty directories prior to building the release tarballs,
pass the "-empty" flag to find(1).  This change has no effect other
than to get rid of a few pages of "rmdir: ...: Directory not empty"
error messages.  (Note that the "-empty" flag has been supported by
find(1) since 4.3-RELEASE.)
2006-06-09 03:40:04 +00:00
Yoshihiro Takahashi ef6cf7f1f1 Make a bootable CD on pc98. 2006-05-16 14:22:37 +00:00
Yoshihiro Takahashi deff04b4f7 Fix the acpi.ko path for boot.flp.
PR:		misc/96466
Submitted by:	Nobuyuki Koganemaru
MFC after:	1 day
2006-04-29 14:03:17 +00:00
Ruslan Ermilov 4963cb9355 Assert that /dev/null is a character device in a chroot early. Otherwise,
we might get surprises later, like /dev/null having error in the 4th line
reported by make(1).  :-)

Tested by:	Dmitriy Kirhlarov (who attempted to make release in a jail)
2006-03-23 07:48:58 +00:00
Sam Leffler cbfec51a4b make sure install scripts are executable
Submitted by:	Ceri Davies
2006-03-21 15:50:08 +00:00
Ruslan Ermilov 5740a2b62d Convert NO_PROFILE and NO_LIB32 to new style. 2006-03-18 21:37:05 +00:00
Ruslan Ermilov e1fe3dba5c Reimplementation of world/kernel build options. For details, see:
http://lists.freebsd.org/pipermail/freebsd-current/2006-March/061725.html

The src.conf(5) manpage is to follow in a few days.

Brought to you by:	imp, jhb, kris, phk, ru (all bugs are mine)
2006-03-17 18:54:44 +00:00
Ruslan Ermilov 11a07768f7 Remove NO_SENDMAIL leaked from the days when building non-crypto
stuff for release was evil.
2006-03-17 09:43:39 +00:00
Sam Leffler fdb71eeeff fix handling of default kernels
Reviewed by:	ru
2006-03-11 18:59:16 +00:00
Ruslan Ermilov eb765a4d80 Fix this to what I've actually submitted. 2006-03-09 17:55:08 +00:00
Sam Leffler d336d34dba handle KERNELS as before
Submitted by:	ru, andrew
2006-03-09 17:11:17 +00:00
Sam Leffler 9fe7600bbe Revamp base system packaging of kernels to enable up/smp selection
at runtime and to support distributing additional kernels:
o remove kernel from the base tarball
o add new kernel tarballs
o build + package both SMP and GENERIC kernels when an <arch>/conf/SMP
  config file is present
o add sysinstall support for multiple kernels
o update sysinstall to probe for the number of cpus on a system
  and auto-select smp/up kernel accordingly
o add a post-kernels install hook to fixup /boot/kernel
o add -ldevinfo to boot crunch for sysinstall's cpu probing logic

Notes:
1. On HEAD this code is not currently used because GENERIC kernels
   include SMP.  This work is mainly intended for RELENG_6 where the
   GENERIC kernel is UP.  If HEAD changes to match then just enable
   WITH_SMP in sysinstall/Makefile.
2. The cpu probing support is done with acpi and MPTable; this means
   some systems will require work for auto-detection to work.
3. The handling of /boot/kernel may need to be revisited; for now
   we rename one kernel at the last moment (SMP if installed, otherwise
   GENERIC).  There are other, possibly better, approaches.

Lots of help from ru, emaste, scottl, and jhb.
2006-03-08 18:02:32 +00:00
Hiroki Sato 4a457aa663 Fix a bug which puts an incorrect checksum of CHECKSUM.MD5
into the CHECKSUM.MD5 file itself.

Approved by:	re (scottl)
MFC after:	3 days
2006-02-08 11:18:29 +00:00
Ken Smith 65030cb84d Enable splitting up the MFSROOT floppy on amd64, the contents now overflow
one floppy's worth of space.
2006-01-30 14:24:31 +00:00
Marcel Moolenaar 9bc245fb48 Fix the missing CD_VOLUME=1 in the cdrom.inf file on disc1 for the
livecd != disc1 case (i.e. ia64). The line was appended to the
non-existing cdrom.inf file, which was created only later. Move the
line to after the file is created.

MFC after: 1 day
2006-01-29 20:16:25 +00:00
John Baldwin c5245e57e6 Enable boot floppies for amd64. I just copied the needed variables over
from i386.

Tested by:	Markus Trippelsdorf markus at trippelsdorf dot de
Approved by:	scottl
MFC after:	1 week
2006-01-04 18:02:56 +00:00
Yoshihiro Takahashi fcb9ab1e8e Add EXTPORTSDIR like EXTSRCDIR and EXTDOCDIR.
PR:		misc/83287
Submitted by:	Gabor Kovesdan
MFC after:	1 week
2006-01-02 13:29:58 +00:00
Yoshihiro Takahashi 91dda5000a Request boot floppy after loading mfsroot floppy because beastie.4th exists
in boot floppy.

Submitted by:	Nobuyuki Koganemaru < n-kogane at syd dot odn dot ne dot jp >
MFC after:	1 week
2006-01-02 07:29:22 +00:00
Ian Dowse 25298bc2b6 Remove one more reference to usbd.conf. 2005-12-15 01:14:35 +00:00
Ruslan Ermilov f9b5f9c1cf Be cross-arch friendly. 2005-11-03 07:27:50 +00:00
Ruslan Ermilov d24864f785 Refactor (some more) installation of kernel and module objects.
Try to make everyone happy: David (to have debug kernels installed
by default), Warner (to be able to override that), and myself (for
actually making it all work and to be consistent).

Now, if kernel was configured for debugging (through DEBUG=-g in
the kernel config file or "config -g"), doing "make install" will
install debug versions of kernel and module objects with their
canonical names,

	kernel.debug -> /boot/kernel/kernel
	if_fxp.ko.debug -> /boot/kernel/if_fxp.ko

Installing a kernel not configured for debugging, or debug kernel
with INSTALL_NODEBUG variable defined, will install non-debug
kernel and module objects.

Also, restore the install.debug and reinstall.debug targets that
are part of the existing API (they cause some additional gdb(1)
scripts to be installed).
2005-10-25 09:05:07 +00:00
Ken Smith 0f12c50ed7 Add SHA256 checksums to the release build.
Requested by:		cperciva (so)
Reviewed/improved by:	ru
MFC after:		2 days
2005-09-28 12:39:00 +00:00
Marcel Moolenaar 1e36c0be6d Unbreak release builds. Now that NO_INFO also affects the installation
of texinfo and we need makeinfo to build world, we cannot have NO_INFO
anymore when we populate the chroot.
2005-09-07 04:34:11 +00:00
Ken Smith 4900836a01 Adjust for HEAD being 7.0 now.
Approved by:	re (implicit)
2005-07-11 15:50:29 +00:00
Scott Long 091040346a Adapt the mfsroot environment of sysinstall to the needs of the new dhclient.
This involves having passwd bits available so that seteuid("_dhcp") work,
and creating /var/empty so that chroot(_VAR_EMPTY) works.  My gut feeling
is that the better solution is to make privsep and chroot optional in
dhclient, but this works well for now and is low-risk.

Approved by: re
2005-07-11 03:59:25 +00:00
Ruslan Ermilov ece6831d38 Provide 32-bit runtime support on amd64 as a separate distribution, lib32.
Prodded by:	obrien
Nodded by:	peter
Approved by:	re
2005-06-16 18:16:14 +00:00
Peter Grehan 24aade12eb Make the liveCD separate ala ia64 - the combined live/install is
too large.
2005-05-23 03:14:56 +00:00
Ruslan Ermilov b6bdead975 Strip the initial world some more. 2005-05-17 14:24:33 +00:00
Marcel Moolenaar 9bae572bd7 Allow specifying which INDEX file to use by setting PKG_INDEX. By default
the INDEX file is taken from the package source tree as defined by the
PKG_TREE variable. This change allows using the (possibly incomplete)
packages on pointyhat.

MFC after: 2 days
2005-05-03 04:11:56 +00:00
John Baldwin a1b193b540 - Move the doc project docs over to disc2 to free up some room for future
bloat on disc1.
- Output a message letting the user know that we are generating MD5 sums
  during the long pause after the last mkisofs invocation in the iso.1
  target.

MFC after:	3 days
2005-03-31 16:19:26 +00:00
John Baldwin b22009642f What should be the last major changes to the ISO layout:
- When a separate livefs ISO is used, change the name of the tree directory
  to be R/cdrom/livefs and change the name of the iso to livefs.iso rather
  than using disc2.  Instead, disc2 is now always going to be the packages
  disc regardless of the presence of a separate livefs which makes things
  simpler.
- Build a very simple disc2 tree under R/cdrom that just includes the
  cdrom.inf file that the packages need.  Also, build a disc2.iso image
  in the iso.1 target.  Disc 2's volume label is "FreeBSD_Packages".
- Retire CD_EXTRA_BITS and replace it with CD_PACKAGE_TREE.  CD_EXTRA_BITS
  was specific to disc1, but CD_PACKAGE_TREE instead should point to a
  directory that has disc1 and disc2 subdirectories that contain the extra
  bits for each image.
- Rename the bootonly volume label to "FreeBSD_bootonly" and just hardcode
  the disc1 and livefs volume names and iso suffixes.
2005-03-23 15:01:54 +00:00
Tai-hwa Liang 0cdbdea6e4 The live CD itself no longer has /stand since a long time ago; however,
there are still a couple of places under src/release such like fixit.profile
assumed that system binary can be retrivied from /stand(ex: boot with the
live CD and run "disklabel -e" in the fixit CD shell).

Since /stand is still functional in fixit floppy, and there are more than
one places in src/release needs to be updated(document for example) if we
want to make use of something like /mnt2/rescue/vi.  This commit try to
deal with aforementioned inconsistency with minimal effort by simply
create a symbolic link to /rescue.

Reviewed by:	jhb, sam (mentor)
2005-03-23 02:51:19 +00:00
John Baldwin e738d1ea3d Add a new package splitting mechanism to replace print-cdrom-packages.sh.
The new system tries to be more automated so that there is less work for
the re's to do.  It also no longer uses a /usr/ports tree as its input,
but uses the generated package build including its INDEX file as its input.
It parses the INDEX file, determines which packages should go on which ISO
images, and then builds full-fledged trees of packages that can be added
as an argument to mkisofs along with the tree built by 'make release' to
build a full CD image.  The INDEX files in the populated trees are
generated with volume media number to make use of sysinstall's multiple
volume support so that the user is kindly prompted to insert the
appropriate disc for a package if it is not on the current disc.  There is
still some more tweaking to be done here, but this part needs to be
committed.  This stuff will all be used to prep the 5.4 release as well.

Tested by:	kensmith, others on re@
Reviewed by:	re
2005-03-21 19:17:48 +00:00
Bruce A. Mah 52957bbfd8 When building release documentation for release builds or for
release documentation snapshots, force URLS_ABSOLUTE.  This
allows us to relocate HTML renderings anywhere without worrying
about breaking relative links to pages on the Web site.  This can
happen when we use &base; as part of a URL.

I wonder if we should do this for all release documentation builds,
but I'm not quite sure what all the cases are.
2005-03-20 17:59:17 +00:00
John Baldwin f16d1c7c6a Always use a separate disc for the livefs on ia64 since the merged image
doesn't fit on one disc.

Tested by:	marcel
X-MFC after:	30 seconds
2005-03-04 20:37:20 +00:00
John Baldwin 92f6e2c87f Rework how we layout the CD/DVD ISO images for releases. Note that this
is only the first stage and does not yet handle packages (which will move
to their own disc(s)).
- By default, include the live filesystem on disc1, so that disc1 is now
  both an install disc and a fixit disc.  The images can still be split
  into two separate discs by specifying SEPARATE_LIVEFS=yes.
- Remove /usr/ports from the live filesystem disc as the merged images
  do not fit on even i386 otherwise.  Also, the merged image already
  contains a tarball of the entire ports tree, so /usr/ports was a
  duplicate anyway.
- Stop building port READMES for the release sinc they are no longer used
  (/usr/ports in the live filesystem was the last remaining user).
- Split cdrom.1 into three targets.  cdrom.1 builds the live filesystem
  image.  cdrom.2 builds the disc1 image.  Note that if SEPARATE_LIVEFS
  is not specified these both write to the same area.  cdrom.3 builds
  the bootonly image and the UFS miniroot.
- The various distribution directories are now in a <buildname>
  subdirectory of disc1 rather than being in the root so that the merged
  image's root is not quite as cluttered.
- The disc1 image is now called disc1.iso and we no longer build a
  miniinst.iso image.  If CD_EXTRA_BITS is defined, then the iso.1 target
  will simply include those bits in the disc1 image that it builds.

MFC after:	1 day
Requested by:	re (scottl, etc.)
2005-03-02 22:46:07 +00:00
John Baldwin 3b090ef7d3 Use the shiny, new top-level 'distribution' target when populating the
chroot area.  This fixes make release of HEAD on systems that have a
/usr/src with bsd.endian.mk and a matching /usr/obj but haven't installed
the world in /usr/obj and thus have no bsd.endian.mk /usr/share/mk.
2005-03-02 14:57:45 +00:00
Ruslan Ermilov 37966461c0 Safer version of the chflags command. 2005-01-13 08:29:51 +00:00
Ruslan Ermilov f45a5bbda4 NOCLEAN -> NO_CLEAN
NOCLEANDIR -> NO_CLEANDIR
2004-12-21 12:21:26 +00:00
Ruslan Ermilov 582ef25f94 NOHTML -> NO_HTML 2004-12-21 12:05:11 +00:00
Ruslan Ermilov 39a855c2a1 NOGAMES -> NO_GAMES 2004-12-21 10:36:54 +00:00
Ruslan Ermilov 83c7ade90a NOSHARED -> NO_SHARED 2004-12-21 09:59:45 +00:00
Ruslan Ermilov ab7a294721 NODOCCOMPRESS -> NO_DOCCOMPRESS
NOINFO -> NO_INFO
NOINFOCOMPRESS -> NO_INFOCOMPRESS
NOLINT -> NO_LINT
NOPIC -> NO_PIC
NOPROFILE -> NO_PROFILE
2004-12-21 09:33:47 +00:00
Ruslan Ermilov e653b48c80 Start the dreaded NOFOO -> NO_FOO conversion.
OK'ed by:	core
2004-12-21 08:47:35 +00:00
Ruslan Ermilov b51a042e9a Actually put hint.atkbd.0.flags="0x1" in /boot/device.hints on CD-ROMs.
(Brought to my attention by Brooks while sitting together on the floor
in "Kairo".)
2004-11-02 11:59:27 +00:00
Ruslan Ermilov d885836c32 Pass WORLD_FLAGS down to the distributeworld target, so it's
possible to build releases with customizations such as with
NOPROFILE.

Problem found and fix tested by Roman Neuhauser.
2004-10-21 08:54:10 +00:00
Ken Smith 88f69650e5 It turns out the ia64 architecture's disc2 overflows if we put the
ports/ tree on it.  This makes putting the ports/ tree on disc2 at
all dependent on the NOPORTREADMES knob as well as the NOPORT knob
(at the moment NOPORT may be set while NOPORTREADMES isn't, that
should probably be revisited).  And it hardcodes ia64 for NOPORTREADMES
by request the ia64 release builder.

While here really get rid of the temp file 'make index' leaves behind.

Tested by:	i386 and ia64 'make release'
Reviewed by:	marcel
MFC after:	1 day
2004-09-30 22:59:47 +00:00
Ken Smith 485b926865 Fix-ups for a few problems reported with how ports are handled in the
release:

	- run 'make index' as part of release build, INDEX* files in
	  CVS no longer updated and likely to be removed from CVS soon
	- don't include README.html files in ports.tgz tarball because
	  they cause cvsup problems for users later
	- put a copy of /usr/ports on disc2 that does include README.html
	  files so users have access to them

Reviewed by:	ru (found one bug, several clean-up suggestions)
Tested by:	'make release'
MFC before:	BETA6 build (this isn't likely to be tested in -current
		anyway...)
2004-09-24 02:10:06 +00:00
Bruce A. Mah 39fa2d282b Don't attempt to install the (obsolete and disconnected) Early Adopters
Guide on release media.
2004-09-17 21:46:17 +00:00
Giorgos Keramidas 6b6ec8eb57 The early-adopter doesn't exist in HEAD anymore. The source is there,
but it's disconnected from the build.  Remove it from the architecture
independent release documentation set, because it breaks "make release"
when NODOC is undefined.

Reviewed by:	hrs
2004-09-17 19:28:46 +00:00
Brooks Davis 3f332bb341 Use "cp -f" instead of "rm" and "cp" to break the hardlink to
device.hints.

Submitted by:	ru
2004-09-15 05:14:21 +00:00
Brooks Davis f09470addf Add 'hint.atkbd.0.flags="0x1"' back to /boot/device.hints on the
install media on i386 and amd64.  While the current default is very
useful in server environments, the ability to use USB keyboards is
vastly more important then the ability to use PS/2 keyboards the admin
forgot to plug in during the install process.

PR:		kern/71443
2004-09-14 04:01:57 +00:00
Ruslan Ermilov 37c3815396 Correct a typo in a comment.
Submitted by:	Xin LI
2004-09-08 06:05:19 +00:00
Ruslan Ermilov 182d7632d4 Document the following knobs: CD_EXTRA_BITS, EXTRA_SRC, HTTP_PROXY
and FTP_PROXY.  Removed bitrot (BOOT_CONFIG).

PR:		misc/71465
Submitted by:	Jon Passki <cykyc@yahoo.com>
2004-09-07 14:26:02 +00:00
David E. O'Brien c6d8b958f1 Start the de-orbital burn of our previous FreeBSD version compat libs
living in usr/src.  We need to use them from ports to record dependencies.

Discussed with:	re(scottl)
2004-08-29 18:27:00 +00:00
Ruslan Ermilov 85231d66d4 Fixed the shell arithmetic to work with 4.x /bin/sh.
Tested by:	make release of HEAD on 4.10-STABLE
2004-08-26 19:15:20 +00:00
Ruslan Ermilov a4ff160f47 Meet the new era of 6.0-CURRENT. 2004-08-19 10:34:59 +00:00
Peter Grehan fa7bd2839d PPC definitions required for 'make release'
Reviewed by:	ru
Submitted by:	ssouhlal
2004-08-18 11:11:46 +00:00
David E. O'Brien f04142310d Bring back 'NO_FLOPPIES', but as a user external knob.
The internal logic knob remains MAKE_FLOPPIES.

Suggested by:	ru
2004-08-16 10:25:43 +00:00
David E. O'Brien 94223a53dc Follow 'MAKE_ISOS' in naming and s/FLOPPIES/MAKE_FLOPPIES/g
Submitted by:	ru
2004-08-16 08:56:50 +00:00
David E. O'Brien b9e0905e14 Accept the fact that floppies either aren't applicable or relevant on most
platforms.  So make the floppy logic easier to read.
2004-08-16 08:28:58 +00:00
Marcel Moolenaar 9090f0c261 Now that make(1) passes variables that were given on the command line
to subordinate make(1) invocations through MAKEFLAGS, we cannot add
CFLAGS onto the make(1) command line. This will conflict with the
individual makefiles wanting to append to it, which is not respected
when CFLAGS is given on the command line. Hence build breakage.
So, put CFLAGS in the environment instead.
2004-08-06 17:07:40 +00:00
Ruslan Ermilov 7b07d01f0e Clean up after mechanical renumbering. 2004-08-06 10:04:06 +00:00
Colin Percival 5355286a0a Crypto is now part of the "base" distribution, and the old "release.3"
target no longer exists.  Renumber the old release.[4-9] targets to
release.[3-8].

Reminded by:	ru
2004-08-06 08:49:51 +00:00
Colin Percival d37df47d31 Join the 21st century: Cryptography is no longer an optional component
of releases.  The -DNOCRYPT build option still exists for anyone who
really wants to build non-cryptographic binaries, but the "crypto"
release distribution is now part of "base", and anyone installing from a
release will get cryptographic binaries.

Approved by:	re (scottl), markm
Discussed on:	freebsd-current, in late April 2004
2004-08-06 07:27:08 +00:00
John Baldwin db8714af52 Remove some serious foot-shooting potential from the release Makefile. For
some unknown reason, when LOCAL_PATCHES and LOCAL_SCRIPT were originally
added, they were silently ignored if the actual file did not exist.  As a
result, if one mistyped the pathname to a patch or script, then the release
silently succeeded.  However, it was not built with the desired changes and
no warning was given to inform the builder either.  This commit explicitly
checks to see that all of the defined patches and scripts exist up front
and bails if any of them do not exist.  I lost several hours of valuable
sleeping time this evening due to this "feature" so I've finally gone and
ripped out.  I've tripped over this in the past several other times as
well.

Glanced at by:	scottl
2004-07-15 04:52:57 +00:00
Brian Somers ab5e865567 Die if make buildworld fails -- don't wait 'till installworld can't find
what it needs.
2004-06-10 19:33:26 +00:00
Hiroki Sato 9f2d40ab25 Add URLS_ABSOLUTE=YES into the doc.1 target. 2004-05-05 13:06:40 +00:00
Ken Smith 4f27387d5c Sorry for doing this backwards, but as with most release related stuff
we only pay attention to it during release time and at the moment it's
a -stable release in progress.

This is a MFS I guess, moving rev 1.536.2.113 to HEAD.  I ran out of
time to follow through with doing this last night.  Sorry for the delay.

Adding a couple of variables to make tweaking the CD-ROM label and .iso
filenames easier.
2004-04-30 13:52:09 +00:00
John Baldwin aaf3e5b065 - Only build a fixit floppy on i386 and pc98.
- Reenable boot floppies for Alpha.
2004-03-25 20:37:59 +00:00
John Baldwin 13ff581d3d - Use a stock loader with forth support on the boot floppies.
- Use the regular forth scripts including the stock device.hints file on
  the boot floppies.
- gzip all the various text files on the boot floppy that are larger than
  one sector to save on space.
- Generate a loader.conf to load the kernel, acpi.ko, and mfsroot making
  use of the 'module_before' variables to prompt for a floppy to be entered
  when required and use a stock loader.rc.  This enables the beastie menu
  on i386.
- PC98 has been changed to split the mfsroot for now so that the floppies
  fit.  When the PC98 bootstrap is updated to work with ELF files (which
  needs to happen anyway), then SPLIT_MFSROOT can be turned off for PC98.
2004-02-03 22:05:55 +00:00
John Baldwin d943f83bf0 - Tweak order of arch fs options to stick all floppy options together and
all MFS root options together and in the same order on all archs.
- Drop support for using the no longer existing 2.88 floppy image for CD
  booting on i386 via the EMUL_BOOT variable.
- Use a stock loader on the boot floppy rather than one without forth.
- Force the gzip of the mfsroot in release.9 to succeed.  This is useful
  when doing lots of rereleases when testing floppy changes.
- If an acpi kernel module exists, stick it on the boot floppy and for
  now always load it after the kernel.
2004-01-29 19:01:58 +00:00
Ruslan Ermilov e45b43aad2 Two nits from rev. 1.835:
- Fixed spelling of NO_FLOPPIES to unbreak snapshot building on
  architectures that don't support them (as installation source).

- Don't rely on CVS setting execution bits on the shell script.
  (This is also consistent with the rest of this makefile.)

Reviewed by:	jhb
2004-01-29 16:21:00 +00:00
Yoshihiro Takahashi 6ab88893be The name of small boot floppy should be boot-small.flp to avoid conflicting
normal size floppy.

Reviewed by:	jhb
2004-01-29 15:14:59 +00:00
Ruslan Ermilov 5179f5c3b9 Revert revision 1.833 -- the reinstallkernel.debug target calls the
installkernel.debug target (in the kernel build directory) which is
only defined if the kernel was configured for debugging which it is
not the case for GENERIC kernels on release branches.
2004-01-28 09:19:16 +00:00
Ruslan Ermilov 1118e5b37a Only i386 and Alpha have the compat4x distribution. 2004-01-28 09:12:00 +00:00
John Baldwin c0731f81d3 Overhaul our boot floppy generation system so that it scales better and
requires minimal care and feeding for future releases.
- Consolidate multitude of floppy related constants down to a normal
  FLOPPY set for 1.44 floppies and on PC98 a SMALLFLOPPY set for 1.2
  floppies.  Also, cleanup the i386 arch section by not duplicating
  constants that are the same on both machine types (i386 and pc98).
- Update the ZIPNSPLIT macro to generate a file chunks that will actually
  fit onto 1.44 floppies formatted with UFS1.  Unfortunately, split(1)
  seems to be somewhat buggy, so the files generated are slightly larger
  than the argument passed to split.
- Split the release.10 target into 3 targers: floppies.1, floppies.2 and
  floppies.3 that are added to EXTRAS only if NOFLOPPIES is defined.
  floppies.1 builds the install floppies, floppies.2 builds the fixit
  floppy, and floppies.3 generates the md5 sums and READMEs for the
  floppies/ directory.
- Drop the by now largely obsolete and less useful boot.flp picture.  This
  was more useful when the mfsroot lived inside the kernel rather than
  being loaded from a separate file by the loader.
- Only build a single mfsroot containing no modules that is used for all
  installation methods.
- Use split-file.sh to split up a gzipped GENERIC kernel into however many
  floppies it takes for the boot kernel.  Currently, a stock 5.2 GENERIC
  kernel including WITNESS, INVARIANTS, DDB, and other assorted bloat fits
  onto 2 additional floppies besides the boot floppy with some room to
  spare.
- If SPLIT_MFSROOT is defined, the mfsroot.gz file is similar split into
  however many floppies are needed.  Currently it is not defined as the
  mfsroot.gz fits onto the current boot.flp with room to spare.
- Add a 'makeFloppySet' target which builds a floppy set for a file that
  was split using split-file.sh.
- Rename the doMFSKERN target to 'buildBootFloppy' as that more closely
  matches what it does now.  We no longer build a custom BOOTMFS kernel for
  each boot floppy.
- We no longer build a 2.88 boot.flp image to use with emulated CD booting.
  The non-emulated cdboot works for almost everyone who boots off of CD and
  if it doesn't work on a particular machine, the user can always boot from
  the 1.44 floppy images.
- We no longer build a driver floppy or stick kernel modules in the mfsroot
  since we now use a stock kernel when booting from floppy.
2004-01-26 19:58:38 +00:00
Ruslan Ermilov bbe8270c50 - Run makewhatis(1) in etc/Makefile at the end of "install".
- Removed redundant and undocumented NO_MAKEDB_RUN knob.
2004-01-22 08:18:37 +00:00
Ruslan Ermilov 4591175cd8 Use the reinstallkernel.debug target, now that we have it. 2004-01-21 08:24:44 +00:00
Makoto Matsushita d9aeaacb6f Fix "5.x release on 4.x box" support.
It is required to check /etc/rc.d/ldconfig before use, because
${CHROOT} sandbox is sometimes 4.x world.  If /etc/rc.d/ldconfig
is not there, run ldconfig(8) directly.

Discussed with: imp, obrien, ru
2004-01-19 13:35:46 +00:00
Ruslan Ermilov 90165ba56f Once upon a time we had both "crypto" and "krb5" distributions,
and rebuilt some bits with crypto but without Kerberos support
(most notably SSH) during "make release", to put them into the
"crypto" distribution.

Now that we don't ship the separate "krb5" distribution anymore
(it's now part of the "crypto" distribuion), don't waste time
recompiling SSH bits without crypto and without Kerberos support
in an attempt to put them in the "base" distribution -- it just
doesn't work as SSH always uses crypto code.

We avoid this by not rebuilding KPROGS from kerberos5/Makefile in
release/Makefile and adding "libpam" to SPROGS in secure/Makefile
to ensure it's still rebuilt without crypto support for the "base"
distribution.  (Disabling crypto (NOCRYPT) also disables building
of Kerberos-related PAM modules, and it's OK to depend on this.)

This should be a no-op change saving some "make release" time.
2004-01-17 19:22:36 +00:00
Ruslan Ermilov a2cd4a0de6 MFRELENG_5_2: Default the snapshot versioning to 5.2.
PR:		misc/61402
Submitted by:	Chris Knight
2004-01-17 18:25:43 +00:00
Yoshihiro Takahashi ba547cb42d Add missing '\' in previous change. 2004-01-15 10:17:43 +00:00
David E. O'Brien b34a415e58 * if-like-constructs now use <TAB>body consistently.
* Long statements with '\' continuation now use <4 spaces>continuation
  consistently.
* wraps some long lines
* More consistent on how very simular repeated commands are wrapped.
2004-01-13 18:46:09 +00:00
Yoshihiro Takahashi ab0a016c08 Use /etc/rc.d/ldconfig script rather than the ldconfig command directly.
Submitted by:	matusita
2004-01-12 08:37:32 +00:00
Yoshihiro Takahashi e818ceb452 Run ldconfig in the chroot environment to find shared libraries in
/usr/local/lib.
2004-01-11 12:45:41 +00:00
David E. O'Brien eb9bb3ee55 Automatically generate the CHECKSUM.MD5 file for ISO's.
Approved by:	scottl
2003-12-01 10:46:45 +00:00
Jun Kuriyama bc5ffda652 Generate minimal /etc/group file for mfsroot tree.
This fixes newfs failures at installation.

Reviewed by:	re (scottl)
2003-11-15 03:58:12 +00:00
Jun Kuriyama 8a34b67a07 Fix ${LOCAL_PATCHES} (chdir was ignored). 2003-11-14 08:21:21 +00:00
Ruslan Ermilov 875ec8bdcf Combining "all" and "install" in one invocation is a very bad idea as
conditional evaluation is done only once in this case, and this may
not account for the fact that some conditionals would be evaluated
differently if "all" has already been run, like is the case with the
loader.help existance check in sys/boot/alpha/common/Makefile.common,
beforeinstall target.  This should fix Alpha snapshot builds.
2003-10-31 13:15:07 +00:00
Ruslan Ermilov 71c8601453 Correct the description of what the release.3 stage does nowadays. 2003-10-06 11:52:34 +00:00
Ruslan Ermilov 9c758be211 Make LOCAL_PATCHES accept multiple patch files, as its name suggests. 2003-09-21 06:33:14 +00:00
Ruslan Ermilov 3fb6c17186 For boot floppies, build a lightweight version of loader(8)
without Forth support.  Saves 28K of kern.flp and boot.flp
on i386.

Reviewed by:	jhb
2003-09-19 09:06:15 +00:00
David E. O'Brien 5bff585104 2nd part of making the name of the release running script overrideable. 2003-08-11 04:21:58 +00:00
David E. O'Brien 0febff82b7 Make the name of the release running script overrideable. 2003-08-10 09:54:22 +00:00
Ruslan Ermilov a4f9e93c39 Added the new knob MINIROOT that, when set, causes the creation
of the bootable UFS image, miniroot.ufs, fully identical to the
contents of the "bootonly" CD-ROM.  The image is made available
on FTP as miniroot/miniroot.ufs.gz, for resemblance with NetBSD.

This replaces the boot.flp image for sparc64, making the latter
as coming with NO_FLOPPIES.

Reviewed by:	jhb
Tested by:	hrs
2003-08-08 21:00:57 +00:00
Ruslan Ermilov 8bf7ab359a - Eliminate the "rm" command that was causing us trouble in rev. 1.799.
- Normalize doRELEASE to avoid seeing "`ftp.1' is up to date." warning
  when doing "make rerelease", and ftp.1 was already built.

Reviewed by:	jhb
2003-08-07 18:22:34 +00:00
Ruslan Ermilov 3cd22041ce - Unbreak Alpha snapshots (we were still attempting to build a
no longer existing "fixit" crunched binary).

- Simplify the CRUNCH_TARGETS variable's initialization.

- Simplify the release.5 logic a bit by accounting for the fact
  that release/*_crunch.conf files were removed two years ago.
2003-08-06 08:09:40 +00:00
Andrey A. Chernov 087b057d37 Back out LC_ALL=C since tr here supposed to run under clean env -i
environment always.

Pointed by:     ru
2003-08-05 05:35:56 +00:00
Andrey A. Chernov 90862ca23d LANG->LC_ALL
Pointed by:     ru
2003-08-04 21:31:53 +00:00
Andrey A. Chernov 38407b8757 Prepend LANG=C to all tr 'a-z' 'A-Z' and vice versa.
Note: this is POSIX requirement, c-c ranges are portable only in POSIX locale
2003-08-04 15:47:43 +00:00
Ruslan Ermilov 8189277801 - Removed vestiges of the IA64 boot floppy support.
- Fixed the bootable CD-ROM support for IA64.

Reviewed by:	marcel
Tested by:	marcel
2003-08-03 15:06:00 +00:00
Ruslan Ermilov 6daa108fd1 - Boot-only CD-ROM support (bootonly.iso).
Submitted by:	jhb, ru

- Moved the creation of the ports distribution to release.7.
- Call MFS root floppy mfsroot.flp even on a small PC98 disk.

Submitted by:	jhb

Reviewed by:	ru, jhb
2003-08-02 18:21:02 +00:00
Ruslan Ermilov 6d44eb567d From now on, Alpha releases will come with NO_FLOPPIES.
Approved by:	consensus on freebsd-alpha

A replacement (miniboot.iso) is currently under development.
2003-07-31 07:28:58 +00:00
Ruslan Ermilov eed31dc939 Revert last delta, sys/conf/kern.pre.mk,v 1.33 does the job.
OK'ed by:	scottl
2003-07-31 07:13:54 +00:00
Ruslan Ermilov 74345a8f83 The -Os kernel build with GCC 3.3.1 also requires -fno-strict-aliasing
to survive.

Discussed with:	bde
Tested on:	i386 and pc98
2003-07-30 14:46:46 +00:00
Ruslan Ermilov 9b72ad91bf Initialize the FIXCRYPTO, BINMAKE and related variables (that use
the != operator) only when needed.

This change allows me to check out the current version of release/
makefiles only (co -l) to /tmp/release, and use that directory to
build a release (supplying the correct WORLDDIR).

Without this, attempt to "make release" caused an endless fork bomb
while trying to evaluate FIXCRYPTO, and the only way I could get
away from this on a remote box was to "kill -INT 1", thanks to
tcsh(1) and its internal "kill" command.
2003-07-30 14:33:32 +00:00
Ruslan Ermilov f2eeb85de6 Embed a simplistic version of the dokern.sh script directly into
release/Makefile.

Reviewed by:	marcel

The original patch also removed ia64/dokern.sh, but this was OBE.
2003-07-30 07:40:45 +00:00
Ruslan Ermilov f8cc06bea8 Moved the MFS root floppies creation code from release.10 to
doMFSKERN (where it logically belongs).
2003-07-30 07:13:31 +00:00
Ruslan Ermilov 0902bdbe14 Make IA64 a second port that comes with NO_FLOPPIES.
Reviewed by:	marcel
2003-07-29 18:29:44 +00:00
Scott Long 2272d4a4cb Bah, I go and get all preachy, and then commit from the wrong branch. Revert
the use of '-j8'.

Apologies to:	ru
2003-07-26 06:47:40 +00:00
Scott Long 1263297ba1 Fix the release build with a forgotten '-f'. 2003-07-26 05:57:52 +00:00
Ruslan Ermilov 9dd993a7be Make the PC98 small boot floppy usable again.
Spotted by:	nyan
Reviewed by:	nyan
2003-07-25 13:39:11 +00:00
Ruslan Ermilov a3a2d24e9c The RELEASE9 knob is now OBE.
OK'ed by:	jhb
2003-07-25 08:55:51 +00:00
Ruslan Ermilov 3d610ec8a3 Moved the boot floppy generation code out from release.9 to release.10.
The release.9 target is now responsible only for generation of MFS root
file systems, that are built for all architectures, even those that do
not provide a floppy installation option.  The release.10 target is now
responsible for creation of a set of boot, MFS root, and fixit floppies,
and the NO_FLOPPIES variable now affects only this target.

Also, replaced the FIXIT_TARGET variable with a check of whether the
*FIXITSIZE variables are present for a given architecture, similar to
how this is done when generating boot floppies.

Discussed with:	jhb
2003-07-25 08:54:41 +00:00
Mark Murray 98b2ae09c6 Get the correct set of cryptographically-infected binaries
automagically from the (secure|kerberos5)/Makefile:[KS]PROG.
2003-07-24 17:28:52 +00:00
Ruslan Ermilov d3c93cef78 Replaced the hardcoded target names in the touch(1) commands with
${.TARGET}, to ease maintenance.
2003-07-24 13:45:05 +00:00
Ruslan Ermilov 6ebe96017d Added the (undocumented) EMUL_BOOT variable (for TARGET=i386 only)
that causes the bootable ISO images to be created using the floppy
emulation (the old method) as opposed to the new "cdboot" method.

Only copy boot.flp to the 2nd CD-ROM if this variable is defined.

Reviewed by:	murray
2003-07-23 20:53:37 +00:00
Ruslan Ermilov 00a7eeeb0e Added the WORLDDIR variable (defaulting to ${.CURDIR}/..) that
points to a directory where "make buildworld" was run.  Useful
for building 5.x snapshots on 4.x.
2003-07-23 14:40:51 +00:00
Ruslan Ermilov 1dae6ea919 Make NO_FLOPPIES really mean "no floppies", including not even
creating the "floppies" directory on FTP and CD-ROMs.  Enforce
NO_FLOPPIES on amd64.

Tested for:	amd64, i386 with -DNO_FLOPPIES
2003-07-23 12:12:53 +00:00
Ruslan Ermilov c70692752f Revert revision 1.788, and explain a bit the intent of having
the boot.flp image on the second CD-ROM.

Explained by:	jhb
Desired by:	vendors
2003-07-23 06:00:56 +00:00
Ruslan Ermilov aebf3f7627 Do not define BIGBOOTSIZE and the friends for amd64; it serves
no useful purpose other than wasting CPU time in "make release"
creating useless boot.flp.

Desired by:	peter
2003-07-23 05:53:52 +00:00
Ruslan Ermilov 51096483bc /floppies/boot.flp is no longer necessary on bootable i386 CD-ROMs.
Forgotten by:	jhb
2003-07-22 09:04:09 +00:00
Ruslan Ermilov eedbbe40d1 Fixed the last-minute bug I made in previous commit. 2003-07-04 14:39:17 +00:00
Ruslan Ermilov 5dc6311712 Fixed style bugs related to parentheses in Makefile.inc1.
Submitted by:	bde

Fixed nearby bug: propagate the root Makefile's idea of
the appropriate "make" binary down to release/Makefile.
2003-07-04 14:27:06 +00:00
Ruslan Ermilov 01b198099c MFRELENG_5_1: Default the release makefile to 5.1. 2003-06-26 11:23:36 +00:00
Ruslan Ermilov d2ae13098f Be laconic. 2003-06-26 11:21:04 +00:00
Peter Wemm 2d7d81e9fb Add amd64 support 2003-06-26 00:55:33 +00:00
Peter Wemm c07665ebc0 TARGET_ARCH == amd64 also has /boot/mbr. 2003-06-04 22:24:43 +00:00
Marcel Moolenaar d422eae9e8 Have the port readmes follow the same logic as buildworld. We skip
doing make readmes if /tmp/.skip_ports exists. This file is created
after a complete run, which avoids that we do the lengthy operation
again for a rerelease.
When NOPORTS or NOPORTREADMES are defined, we create the file prior
to starting the release.
2003-06-04 05:17:18 +00:00
John Baldwin 6fa3a9dd4f Add some missing items to the make clean target. 2003-06-02 20:15:12 +00:00
David E. O'Brien 5da30ee2ba Remove alpha-specific floppy build target for now.
Approved by:	re(jhb)
2003-05-21 21:19:54 +00:00
Scott Long 9f61ec8fdb Move the isp driver back to the alpha BOOTMFS kernel, and trim the size
of inodes for the alpha driver floppy.  With this patch, alpha actually
built a full release!

Submitted by:	ru
2003-05-20 01:46:09 +00:00
Juli Mallett a4b4ec9905 For EXT*DIR, use -H in addition to -R, so that a symlink may be
used in the EXTSRCDIR case, for example, if one finds it useful
to symlink /usr/src to an actual source tree, and use /usr/src
as the EXTSRCDIR.

This has no effects on release builds not using external directories.

Reviewed by:	ru
Approved by:	scottl (re)
2003-05-18 19:34:03 +00:00
Ruslan Ermilov 5795760c45 disklabel(8) is spelled bsdlabel(8) or sunlabel(8) these days.
Also make sure bsdlabel(8) (along with the disklabel(8) compat
link) still appear on the fixit floppies of platforms that use
it natively (alpha, i386, and pc98).

Approved by:	re (scottl)
2003-05-17 19:16:28 +00:00
David E. O'Brien 65162a6169 release.9 has become the biggest festering pile of spaghetti s(*^% code.
Duplicate the target for Alpha so I can start hacking and slashing bits out.

Approved by:	re(blanket to make Alpha build)
2003-05-08 03:25:17 +00:00
Mark Murray dbf104e68d Turn MAKE_KERBEROS5 into NO_KERBEROS by negating the logic. Some extra
cleanups were necessary in release/Makefile, and the tinderbox code
was syntax checked, not run checked.
2003-05-05 07:58:44 +00:00
Murray Stokely 98f15514b4 Move the setting of the BOOTABLE flag outside of .if MAKE_ISOS so that
bootable CDs can still be created if the iso.1 target is called
directly.

PR:		misc/47191
Submitted by:	Joost Bekkers <joost@bps.jodocus.org>
MFC after:	1 week
2003-05-05 05:29:10 +00:00
Mark Murray bb7f32f06a KerberosIV removal. Also crunch down the "krb5" distribution into
"secure".
2003-04-30 17:54:19 +00:00
Jun Kuriyama ef812d2f36 Removing comment in some text files for fixit floppy overflow.
Approved by:	re (murray)
2003-04-25 06:08:11 +00:00
Ruslan Ermilov c9030dc84d Presumably fix sparc64 "make release". (The breakage was due to
sunlabel(8) no longer being linked to disklabel(8).)

Reviewed by:	phk
2003-04-23 09:01:35 +00:00
John W. De Boskey 9327e08b68 continuation not needed 2003-04-18 02:30:40 +00:00
Ruslan Ermilov a07872b53c Don't play with MAKEFLAGS in one other place too; it's dangerous. 2003-04-15 09:54:19 +00:00
Ruslan Ermilov 10646d5f83 Makefile.inc1 rev. 1.341 broke release.5 -- the fuss with MAKEFLAGS
here interferenced with one in Makefile.inc1.  Since we can't avoid
the jugglery in Makefile.inc1 (we want -m /usr/src/tools/build/mk
to come first, before any other -m specified on the command line),
avoid it here.

Reported by:	imp
2003-04-15 06:36:38 +00:00
Ruslan Ermilov 0dbc5e389c Revert revision 1.639 -- the "nodev" mount(8) option restriction
does not apply to ${CHROOTDIR} file system since revision 1.712.
2003-03-31 11:46:49 +00:00
Ruslan Ermilov dbc9acf4e4 Strip the .comment section out from the BOOTMFS kernel. 2003-03-31 11:16:53 +00:00
David E. O'Brien 919b002617 s/loaded as a module/available as a module/g
Submitted by:	ru
2003-03-23 04:23:10 +00:00
Ruslan Ermilov 55852204e3 Use the target arhitecture's disktab(5) file. 2003-03-21 13:41:17 +00:00
Ruslan Ermilov e3940ce7c3 Pass the target machine architecture down to disklabel(8).
Do it so that systems without the -m option in disklabel(8),
e.g. 5.0-RELEASE, can still build current snapshots.

While here, drop the -s option from doFS.sh; we have not
been using the .size files for a long time.
2003-03-20 23:46:22 +00:00
David E. O'Brien 5262ab2453 In rev 1.603 I should have changed it to mdconfig rather than remove it.
I don't recall now, but for some reason I didn't think it was needed.
Also place the mdconfig right before the chroot call, to make it stand out
this needs to be done in the standard environment, as we've tried doing it
in the chroot environment before.
2003-03-17 18:49:46 +00:00
Ruslan Ermilov c1fc2282ba Unbreak iso.1. 2003-03-17 17:49:57 +00:00
David E. O'Brien 30fa49841a Use positive logic rather than harder-to-read negative logic. 2003-03-17 05:46:10 +00:00
David E. O'Brien 3ea0ca53aa Make PREFETCHDISTFILES the default. Set NO_PREFETCHDISTFILES if you don't
like this.  Also make it easier to issue the distfile fetching on command.
2003-03-16 22:59:00 +00:00
David E. O'Brien 437077b04d Add PORTREADMES_FLAGS which can really speed up the build on SMP machines
when set to -j<3*#CPU's>
2003-03-16 22:42:26 +00:00
Mark Murray 0b5a594ed5 KerberosIV de-orbit burn continues. Disconnect from "make release". 2003-03-08 09:56:09 +00:00
Marcel Moolenaar cd9568c73e o Run make readmes (ports) from within CHROOTDIR to avoid pollution
and/or breakages due to /etc/make.conf on the host. Move it after
   make world and put it in an if-block so that we can include the
   commands in the script even if we're not going to make the readmes.
o  When building docproj, make sure we propagate the setting of the
   FTP_PASSIVE_MODE environment variable. Not propagating the envvar
   may cause fetch failures. This increases the number of cases for
   which one does not have to prefetch the packages.
2003-03-08 08:51:25 +00:00
Ruslan Ermilov b4f721685e If we are told to update the sources in "make rerelease", we also
probably want to re-buildworld.

If we are not going to rebuild (make rerelease -DRELEASENOUPDATE
and the file ${CHROOTDIR}/tmp/.world_done exists), do not touch
${CHROOTDIR}/usr/src/sys/conf/newvers.sh, as the only effect that
is has is upsetting release.2.  Hey, have you ever seen this
"touch: not found" during rerelease?  :-)
2003-02-26 15:32:12 +00:00
Ruslan Ermilov 8eb4e096d5 At least we don't need the whole <bsd.prog.mk> glue.
(I did test build the original change, but apparently
forgot to include it to LOCAL_PATCHES.  It happens.)
2003-02-23 19:15:55 +00:00
John W. De Boskey 270ee878ff mk file needed for 'make obj' done by $CHROOTDIR/mk 2003-02-23 06:27:21 +00:00
Ruslan Ermilov dba36bb912 Fixed synopsis.
Mention that md(4) should be active (from release(7)).
Yet, this has nothing to do with bsd.prog.mk.
2003-02-21 22:37:18 +00:00
Makoto Matsushita 77d79f0c60 Pass FTP_PASSIVE_MODE, FTP_PROXY, and HTTP_PROXY variables to chroot sandbox.
These variables will be used by pkg_add, which installs mkisofs package
while MAKE_ISOS=YES.  See src/release/${arch}/mkisoimages.sh if you doubt.

No objection heard from:	current@FreeBSD.org
Suggested by:			des, nectar (about *_PROXY variables)
2003-02-16 08:34:11 +00:00
Ruslan Ermilov c54fbe8dde Run kgzip(8) in a right environment and pass it the correct loader object. 2003-02-04 16:07:20 +00:00
Ruslan Ermilov 55ee3f14e3 Part 2/3 of unbreaking cross releases:
Use the right strip(1) binary.
2003-01-29 08:39:28 +00:00
David E. O'Brien a177c01fae Use checksum-recursive rather than fetch-recursive-list in PREFETCHDISTFILES
so as to catch errors ASAP rather than later between the ports cvs checkout
and docs cvs checkout.  If a distfile doesn't checksum OK, it is very
hard to restart the release with "make rerelease" as that target assumes
all the cvs checkout's happened OK, and if that is not the case the cvs
update that is attempted fails..
2003-01-19 04:31:53 +00:00
Scott Long f7ad577f4d Fix 'make release' from erroring out if this is an arch without driver
floppies.

Submitted by:   nyan
Reviewed by:   jhb
2003-01-16 16:51:52 +00:00
John Baldwin 5613943cd8 If there is a driver floppy for this arch, then add a line to the loader.rc
on the boot floppies to set the 'driver_floppy' variable in the loader so
that it ends up in the kernel environment and sysinstall will prompt for the
diskette.  Booting from CD-ROM does not use this loader.rc file, so folks
booting from CD to do an install will not be prompted.

X-MFC after:	as soon as I finish committing to current
Approved by:	re (blanket)
2003-01-15 21:49:50 +00:00
David E. O'Brien bb6972ab6e Make iso.1 more readable. 2003-01-11 20:34:34 +00:00
Warner Losh a3929677dd Backout phk's backout of obrien's change.
Hat: core
2003-01-02 20:18:42 +00:00
Poul-Henning Kamp b364d93eda Reduce size of individual bits of the dists to 240640 bytes again
so snapshots can be installed.

I have no idea what breaks, but at least the passive FTP install
goes haywire.
2002-12-31 15:17:24 +00:00
Poul-Henning Kamp f54846c3ec Setup a symlink to the distribution name in the root of the first CD image
so that it can be used as a anon-ftp area.
2002-12-31 10:27:58 +00:00
Yoshihiro Takahashi a6c5babf64 Change 'mfsroot' filename in mfsroot-small floppies from 'mfsroot-small'
to 'mfsroot'.

This is MFC candidate.

Noticed by:	Toru Morimoto <too@os.gulf.or.jp>
2002-12-28 16:23:42 +00:00
Ruslan Ermilov 3e4ac74d53 MFS: Split export list. 2002-12-26 12:20:25 +00:00
David E. O'Brien 222d79cde9 Split files into 1.44MB chunks rather than a tiny, high-ftp overhead size.
Approved by:	rwatson
2002-12-17 20:19:37 +00:00
David E. O'Brien 1e2d480ce8 Strip out any .comment ELF sections from crunchgen'ed binaries. 2002-12-17 20:18:13 +00:00
Murray Stokely 8e414f48c1 Move the creation of the DRIVERS.TXT file to a more appropriate area
of this file, so it will be created for other platforms that use a
third floppy disk, not just i386.

Approved by:	re
2002-12-13 06:54:33 +00:00
Bruce A. Mah e27933a498 Add ${BUILDNAME} and ${TARGET} to the filenames of ISO images
generated during release builds.

For the most part, re@ was doing this manually before putting ISO images
on ftp-master, but not always.  This should make naming more consistent
and descriptive.

Requested by:	jason andrade <jason@dstc.edu.au>, hubs@
Approved by:	re (rwatson)
MFC after:	1 month
2002-12-10 16:35:44 +00:00
Murray Stokely 9314e0a12e Only create the DRIVERS.TXT file on i386 for now.
Approved by:	re
2002-12-09 16:42:23 +00:00
Murray Stokely fdd57f1a0c Create DRIVERS.TXT file to describe the contents of drivers.flp.
Approved by:	re
2002-12-09 16:14:46 +00:00
Dag-Erling Smørgrav 4844a5f4fc Add lib/libfetch and usr.bin/fetch to FIXCRYPTO since they need the crypto
libraries for SSL support.

Approved by:	re (rwatson)
2002-12-03 04:02:13 +00:00