Commit Graph

64 Commits

Author SHA1 Message Date
Marcel Moolenaar
2f161397d0 o Build geom for all platforms.
o  Don't build bsdlabel for ia64.
o  Don't build fdisk and gpt for ia64.
2007-11-04 00:44:10 +00:00
Yaroslav Tykhiy
eb4e404868 Add some essential tools to rescue(8) in order to make it
a versatile emergency tool:

o sed(1) as a multi-purpose text filter -- can do grep's job and much more.
o head(1), tail(1), and tee(1) as idiomatic text filters.
o mt(1) to control tape drives (PR misc/98383).
o chown(8) aka chgrp(8) to complement the ch* subset.
o pkill(1) aka pgrep(1) to control running processes easily and thus to be
  able to recover from a serious problem or a fatal typo in an otherwise live
  system w/o a reboot.  (It also deserves adding to rescue(8) for its having
  triggered a latent bug in crunchgen(1), but we had better add a regression
  test for that. :-)

The resulting change in rescue(8) size has the following order of magnitude
on i386: 3787656 - 3727872 = 59784, i.e. just a tad.

Discussed on:   -hackers (I seem to have wearied all opponents :-)
PR:             misc/98383
2007-10-27 18:18:58 +00:00
Robert Watson
2b851aeb63 Disconnect netatm from the build as it is not MPSAFE and relies on
NET_NEEDS_GIANT, which will shortly be removed.  This is done in a
away that it may be easily reattached to the build before 7.1 if
appropriate locking is added.  Specifics:

- Don't install netatm include files
- Disconnect netatm command line management tools
- Don't build libatm
- Don't include ATM parts in rescue or sysinstall
- Don't install sample configuration files and documents
- Don't build kernel support as a module or in NOTES
- Don't build netgraph wrapper nodes for netatm

This removes the last remaining consumer of NET_NEEDS_GIANT.

Reviewed by:	harti
Discussed with:	bz, bms
Approved by:	re (kensmith)
2007-07-14 21:49:24 +00:00
Rong-En Fan
534046e301 - Remove UMAP filesystem. It was disconnected from build three years ago,
and it is seriously broken.

Discussed on:   freebsd-arch@
Approved by:	re (mux)
2007-06-25 05:06:57 +00:00
Xin LI
9a9ea25f4a Replace the GNU gzip with a slightly modified NetBSD gzip. The
NetBSD version is a feature-to-feature re-implementation of GNU
gzip using the freely-redistributable zlib and this version is
expected to be mostly bug-to-bug compatible with the GNU
implementation.

 - Because this is a piece of mature code and we want to make
   changes so it is added directly rather than importing to
   src/contrib.
 - Connect newly added code to src/usr.bin/ and rescue/rescue
   build.
 - Disconnect the GNU gzip code from build for now, they will
   be eventually removed completely.
 - Provide two new src.conf(5) knobs, WITHOUT_BZIP2_SUPPORT and
   WITHOUT_BZIP2.

Tested by:	kris (full exp-7 pointyhat build)
Approved by:	core (importing a 4-clause BSD licensed file)
Approved by:	re (adding new utility during -HEAD code slush)
2007-01-26 10:19:08 +00:00
Craig Rodrigues
c89454cb0f Remove mount_ext2fs. 2006-11-22 22:55:54 +00:00
Craig Rodrigues
6543fe0d72 Remove references to mount_devfs, mount_fdescfs, mount_linprocfs, mount_procfs.
Reminded by:	ru
2006-11-22 00:23:11 +00:00
Ruslan Ermilov
2b46c64c9c Remove alpha left-overs. 2006-08-22 08:03:01 +00:00
Yaroslav Tykhiy
bb963f1908 Respect MK_INET6_SUPPORT. 2006-07-27 12:28:05 +00:00
Ruslan Ermilov
428d65f189 Pass -DCRUNCH down to standard targets in individual makefiles. 2006-04-10 09:32:50 +00:00
Olivier Houchard
6e7fd77b9e *sigh*
Move the -lbsdxml after -lgeom, so that ld doesn't get confused and pretend
he can't find the symbol from libbsdxml needed in libgeom.
This should fix the rescue build breakage.
2006-03-27 12:56:29 +00:00
Ruslan Ermilov
cea557add0 Extend coverage of the MK_IPX build option to the following:
- <netipx> headers [1]
- IPX library (libipx)
- IPX support in ifconfig(8)
- IPXrouted(8)
- new MK_NCP option

New MK_NCP build option controls:

- <netncp> and <fs/nwfs> headers
- NCP library (libncp)
- ncplist(1) and ncplogin(1)
- mount_nwfs(8)
- ncp and nwfs kernel modules

User knobs: WITHOUT_IPX, WITHOUT_IPX_SUPPORT, WITHOUT_NCP.

[1] <netsmb/netbios.h> unconditionally uses <netipx> headers
so they are still installed.  This needs to be dealt with.
2006-03-20 14:24:58 +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
John Baldwin
04ddb211d5 Install nextboot in /rescue as /rescue/nextboot rather than
/rescue/nextboot.sh to match the name in /sbin (/sbin/nextboot).

Reviewed by:	gtetlow
MFC after:	1 week
2005-12-15 18:29:01 +00:00
Poul-Henning Kamp
3d86554c20 Respect the YES_HESIOD build variable. 2005-08-06 16:53:55 +00:00
Brooks Davis
d420868948 Fix path to dhclient-script and reconnect to build. 2005-06-07 04:51:24 +00:00
Brooks Davis
12bc1dc061 Temporarily disconnect dhclient from the build while I import the
OpenBSD version.
2005-06-07 03:59:26 +00:00
Darren Reed
cf4ee2c933 Patches from Ruslam Ermilov to remove NetBSD bits from Makefiles and cleanup
build problems with rescue.
2005-04-28 16:26:35 +00:00
Colin Percival
8b0bf216d6 Run "make obj" before "make build-tools" in the directories used for
building the rescue binary.  This fixes a problem with NO_TCSH, where
the "make obj" stage of buildworld doesn't recurse into bin/csh,
resulting in csh build-tools being put into /usr/src/bin/csh.

Pointed out by:	dougb (on hackers@)
2005-03-18 12:55:07 +00:00
Tom Rhodes
c71158d453 Wrap BSD r* commands in NO_RCMDS.
Change NO_RCMDNS to NO_RCMDS and do the switch in bsd.compat.mk.

Discussed with: ru, nectar
2005-03-02 11:53:22 +00:00
Dag-Erling Smørgrav
ad02aba633 Add chroot. It can be a real lifesaver, and adds less than 2 kB. 2005-02-07 21:19:18 +00:00
Ruslan Ermilov
60c3f10368 Ignoring MAKEFLAGS in rev. 1.15 was a very bad idea. This causes
wrong share/mk files to be used, which can be fatal with upgrades
or downgrades, e.g., when building RELENG_5 on HEAD.

Reported by:	glebius

For now, just exclude -P from MAKEFLAGS when running crunchgen(1).
(Note that it will still break when run with certain -d options.)

The real solution is to fix make(1) to not print stuff on stdout
when it's not supposed to, e.g., through the -P and -dX options,
and to fix crunchgen(1) to not redirect stderr to stdout when
running make(1).  Once this is implemented, this hack can go.
2005-01-20 10:43:43 +00:00
Ruslan Ermilov
4a17c736bf Don't call "objs" target in rescue.mk twice. 2004-12-23 10:16:46 +00:00
Ruslan Ermilov
9efddb06f1 Make "===> " prefixes look sane. 2004-12-23 10:13:17 +00:00
Ruslan Ermilov
731db6a428 NOINET6 -> NO_INET6 2004-12-21 10:49:29 +00:00
Ruslan Ermilov
a216173556 NOCRYPT -> NO_CRYPT 2004-12-21 10:16:04 +00:00
Ruslan Ermilov
07736e20e9 NOATM -> NO_ATM 2004-12-21 09:08:06 +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
2cf24569af Add missing dependencies of $(OUTPUTS) on source makefiles.
Caught by:	make -DNOCLEAN buildworld
2004-12-18 17:30:53 +00:00
David E. O'Brien
cc7f976211 Replace GNU tar with BSD tar. 2004-12-04 08:24:36 +00:00
Bjoern A. Zeeb
6c58990d47 Add knob NO_NIS (fka NO_YP_LIBC) and make world compileable when set.
If turned on  no NIS support and related programs will be built.

Lost parts rediscovered by:	Danny Braniss <danny at cs.huji.ac.il>
PR:		bin/68303
No objections:	des, gshapiro, nectar
Reviewed by:	ru
Approved by:	rwatson (mentor)
MFC after:	2 weeks
2004-11-13 20:40:32 +00:00
Poul-Henning Kamp
0f7d7a368a Remove references to NO_VINUM 2004-11-04 12:57:40 +00:00
Ruslan Ermilov
a35d88931c For variables that are only checked with defined(), don't provide
any fake value.
2004-10-24 15:33:08 +00:00
Marius Strobl
cc795cb4ce As with the non-rescue version don't build fore_dnld when NOATM is defined. 2004-08-16 03:16:48 +00:00
Poul-Henning Kamp
043fc26983 Remove dangling raidctl reference 2004-03-16 13:42:23 +00:00
Dag-Erling Smørgrav
7ad67863d4 Add id(1) (aka groups(1) aka whoami(1)) since it is used by install.sh. 2004-03-12 13:10:04 +00:00
Tim Kientzle
665d6246c3 Revision 1.7 of this file added information
about the location of each program's source.

This update optimizes the build a bit by giving that
information to crunchgen rather than asking crunchgen
to do a directory search to locate sources.

Approved by: gordon (Mentor)
2004-01-18 22:24:23 +00:00
Ruslan Ermilov
4e923ac583 Properly spell make binary as ${MAKE}.
This fixes buildworld for systems with old make(1) binaries.

Reported by:	Benjamin Close
2003-12-24 10:59:33 +00:00
Warner Losh
e21833dceb Remove cxconfig and add sconfig
# maybe we can remove sconfig later from rescue?

Submitted by: Roman Kurakin <rik@cronyx.com>
Approved by: re@ <scottl>
2003-12-03 17:12:35 +00:00
Brooks Davis
bf164734d4 Reconnect ipfstat, ipnat, and ipftest to the build now that if_xname
support is enabled.

Approved by:	re (scottl)
2003-12-02 21:52:14 +00:00
David E. O'Brien
dcae43e905 Alternate version of rev 1.20.
Comment out rather than totally remove the ipfilter pieces that we need
reconnected some day.  This is now only ipnat as it is for configuring NAT.
ipfstat is meant for reporting statistics/filter lists.  For /rescue it is
enough to configure lists but not view the installed ones.
2003-11-09 01:22:27 +00:00
Brooks Davis
709f2f3096 Temporarily disable ipfstat and ipnat in /rescue to fix world. 2003-10-31 19:48:40 +00:00
Mark Murray
d4bac1558f No need to check for the directory, fols are assumed to have all the
correct sources. Only check the crypto macros.
2003-09-27 17:27:02 +00:00
Max Khon
c4f02a891f - Support for multibyte charsets in LIBICONV.
- CD9660_ICONV, NTFS_ICONV and MSDOSFS_ICONV kernel options
(with corresponding modules).
- kiconv(3) for loadable charset conversion tables support.

Submitted by:	Ryuichiro Imura <imura@ryu16.org>
2003-09-26 20:26:25 +00:00
Poul-Henning Kamp
4035396918 Teach rescue about NOATM, NO_VINUM and NOINET6 2003-09-02 06:43:58 +00:00
Hartmut Brandt
513b02ffb9 Build the atmconfig utility into rescue. 2003-08-12 14:33:48 +00:00
Gordon Tetlow
b7ca2f2822 When using crunchgen, blow away MAKEFLAGS. This fixes make -j <#> -P
from passing the -P flag to crunchgen which seems to confuse crunchgen
horribly. This is the preferable solution to modifing crunchgen to
unset the MAKEFLAGS environment variable.

Submitted by:	gad@
2003-08-01 09:04:32 +00:00
Gordon Tetlow
44dde923fc Fix rescue build using -j. The problem appears to be make not being able
to find the source when the object was specified as <directory>/foo.o.

The fix makes the build go through a make objs before compiling the rest
of the crunchgen. This ensures that the dhclient bits are built in the
correct place where they are picked up for the final compile of rescue.

I'd like to thank dwhite@ and gad@ for helping me track down the problem.

Fast testing box provided by:	phk@ (thanks)
2003-07-24 07:42:42 +00:00
David E. O'Brien
78c3dbd909 Missed one, remove one more. 2003-07-21 02:47:04 +00:00
David E. O'Brien
39ae372d78 Trim /rescue.
Discussed on:	freebsd-arch@
2003-07-19 20:40:37 +00:00