Commit Graph

2778 Commits

Author SHA1 Message Date
David E. O'Brien
eb1c57d872 On the sparc64 platform we install this as "gawk" as Gawk is currently
borked on the sparc64.  We are using BWK's AWK at the moment.
2002-03-05 19:40:25 +00:00
David E. O'Brien
e4753251f7 Matching contrib/gcc/gcc.c commit of rev 1.23, remove misleading comment
about 'STANDARD_EXEC_PREFIX'.  It is used now and is needed if one does not
set 'MD_EXEC_PREFIX'.

Do not define a 'MD_EXEC_PREFIX'.  It is not needed, not used in the
cross case, and just ends up causing "/usr/libexec" being added to the
library search path.
2002-03-05 00:39:29 +00:00
David E. O'Brien
a370115d7d Allow for better control over the GCC front-end when building a cross
compiler.

* Undo the diking out of cross compiler logic from gcc.c rev 1.16.
* Add the `CROSS_STARTFILE_PREFIX' knob.
* Add our own definition of `STANDARD_INCLUDE_DIR'.  This should have been
  included in freebsd-native.h rev 1.5.
2002-03-05 00:17:24 +00:00
David E. O'Brien
3d3dea1bbc Move the creation of the insn-*.c files from cc_tools to cc_int.
This gets rid of a cross build problem we have because we build
everything in cc_tools during the `make build-tools' (or `make depend')
stage.
2002-03-02 08:53:36 +00:00
David E. O'Brien
c21c782ba5 Clean up the style a little bit. 2002-03-02 01:06:42 +00:00
David E. O'Brien
4a88cacfed MFC: rev 1.13 (use libgcc_p.a when -pg is in effect) 2002-03-02 00:54:17 +00:00
David E. O'Brien
4cef291124 Use libgcc_p.a when -pg is in effect.
I am committing this here rather than in gcc/config/freebsd.h because the
profiled libgcc only exists with the native system compiler.  It is not
created by a stock FSF build and we will never be able to get these bits
committed to the FSF CVS repo.  Thus this is very much a FreeBSD "native"
issue.
2002-02-24 06:05:22 +00:00
Daniel Eischen
68ace64ebe Sync this up to recent changes to our (userland) thread structure. 2002-02-23 19:28:01 +00:00
David E. O'Brien
d46d3a1c02 Update for binutils_2_12_anoncvs_20020221. 2002-02-22 18:49:37 +00:00
David E. O'Brien
e2c76cd6de Update for binutils_2_12_anoncvs_20020221. 2002-02-22 05:35:18 +00:00
David E. O'Brien
9237b562e5 Allow for better control over the GCC front-end when building a cross
compiler.

* Undo the diking out of cross compiler logic from gcc.c rev 1.16.
* Add the `CROSS_STARTFILE_PREFIX' knob.
* Add our own definition of `STANDARD_INCLUDE_DIR'.  This should have been
  included in freebsd-native.h rev 1.5.
* Minimize a little bit more, things we dike out in the FREEBSD_NATIVE case.

Submitted by:	ru & obrien
2002-02-20 19:41:54 +00:00
David E. O'Brien
11dc790e85 Clean up the style a little bit. 2002-02-20 03:57:21 +00:00
David E. O'Brien
8f625d4e6c Do not define a 'MD_EXEC_PREFIX'. It is not needed, not used in the
cross case, and just ends up causing "/usr/libexec" being added to the
library search path.

Also remove misleading comment about 'STANDARD_EXEC_PREFIX'.  It is needed
if one does not set 'MD_EXEC_PREFIX'.

Submitted by:	ru
2002-02-20 03:10:54 +00:00
Andrew Gallatin
c48944beea Fix kgdb in the face of the last round of KSE commits.
The alpha world may actually build now..
2002-02-18 14:13:59 +00:00
Dag-Erling Smørgrav
5e56d86768 Add some verbiage to the comments at the top of the PR template:
- point at the FDP article rather than GNU's send-pr documentation
 - warn the user that PRs are public information and will be published in
   mailing lists and on the web
 - suggest that the user contact security-officer@ directly if the report
   concerns sensitive security issues.
2002-02-18 09:13:44 +00:00
Daniel Eischen
a06523b4f6 Don't rely on <sys/signal.h> to include <sys/ucontext.h>. 2002-02-17 17:19:14 +00:00
Mark Murray
535cc97895 Nice set of fixes to use SCRIPT instead of PROG, thus fixing up
a lot of nasty STRIP= problems. This has the added side effect
if neatening up some leaf makefiles very nicely.

Submitted by:	ru
2002-02-10 19:48:19 +00:00
David E. O'Brien
e68669d2ae Update this to 5.006. 2002-02-10 12:37:52 +00:00
Ruslan Ermilov
fac6ec1f62 FreeBSD 4.1 bootstrapping aid (setproctitle(3) is in -lutil).
This backs out (sort of) delta 1.18 to perl/miniperl/Makefile.
Update to the ld(1) comment by peter in this revision:

ld(1) built as part of the cross-tools stage of buildworld has
been fixed to look for dynamic dependencies in the right place,
${WORLDTMP}/usr/lib, effective binutils/ld/Makefile,v 1.20.

Approved by:	markm
2002-02-08 13:09:08 +00:00
Ruslan Ermilov
a87e0b35bf Fixed RCSLOCALID buffer overflow (by making an overflow condition fatal).
Spotted by:	John Johnson <bio.metrix@gte.net>
2002-02-08 11:57:43 +00:00
Peter Wemm
489b85b027 Add missing & 2002-02-08 04:17:33 +00:00
Peter Wemm
656c73dbdf Make this part compile and try and use the p_threads tailq. It might work
but I am not sure, I haven't been able to compile the rest of gdb yet.
2002-02-08 03:19:56 +00:00
Mike Barcroft
80db0611da Add -i option (SUSv3) to patch(1). This allows one to specify a
patch file on command line instead of stdin.

Submitted by:	Joseph Mallett <jmallett@xMach.org>
MFC after:	1 month
2002-02-08 02:05:32 +00:00
David E. O'Brien
d85bf1887e We do not need to use -I- any longer.
Presumably the issue was with arparse.[ch].  Those are now in FREEBSD-Xlist
and FREEBSD-deletelist.  So we do not import the Bison produced files that
was causing the problem.

Submitted by:	ru
2002-02-07 17:35:49 +00:00
Maxim Sobolev
12397b2bad When unpacking compressed archive check exit status of the child (gzip or bzip)
and exit with error code if that status != 0.

PR:		30876
Submitted by:	Simon Gerraty <sig@juniper.net>
2002-02-07 10:38:16 +00:00
David E. O'Brien
25a59bcfe7 Set the SCRIPTDIR to be rooted at TOOLS_PREFIX rather than DESTDIR.
(the two may be different (ie, build vs. runtime))
Allow ldscript's SEARCH_DIR do be rooted somewhere other than `/'.
(in this case at TOOLS_PREFIX)

These changes are most helpful during `make buildworld' so that the shared
libs built in the middle of `make buildworld' are used vs. the ones in
/usr/lib on the build machine.

Submitted by:	ru
2002-02-07 01:37:53 +00:00
David E. O'Brien
985e77de7b I missed adding a file that was needed on the Alpha (and will be needed
on x86_64 also.

Submitted by:	ru
2002-02-04 17:06:30 +00:00
David E. O'Brien
5cc5c73a03 Upgrade to a Binutils 2.12.0 snapshot. 2002-01-28 19:12:51 +00:00
David E. O'Brien
65136367b7 Special case the foreign platform vs. the native one. 2002-01-28 19:08:29 +00:00
David E. O'Brien
69c3ab3a81 Upgrade to a Binutils 2.12.0 snapshot. 2002-01-28 19:07:31 +00:00
David E. O'Brien
de52820198 Support cross building from 64-bit machines. 2002-01-28 19:00:11 +00:00
David E. O'Brien
31b63f3e33 Upgrade to a Binutils 2.12.0 snapshot. 2002-01-28 18:58:59 +00:00
David E. O'Brien
90b3020b4f Upgrade to a Binutils 2.12.0 snapshot. 2002-01-28 18:52:26 +00:00
David E. O'Brien
a1a1118a96 Change the way the version strings are handled. 2002-01-27 22:47:22 +00:00
David E. O'Brien
04f69e4432 Upgrade to a Binutils 2.12.0 snapshot. 2002-01-27 13:10:59 +00:00
David E. O'Brien
19d2231085 Style fix. 2002-01-27 13:09:36 +00:00
David E. O'Brien
fb0944a619 Add files new with 2.12.0. 2002-01-27 13:09:08 +00:00
David E. O'Brien
c3b0e33288 Style fixes. 2002-01-27 13:04:21 +00:00
David E. O'Brien
e1a1c7d331 Add files new with 2.12.0. 2002-01-27 13:03:58 +00:00
David E. O'Brien
23e896a740 We are now at a 2.12.0 pre-release snap version. 2002-01-27 13:02:31 +00:00
Jacques Vidrine
57813231df Use mktemp(1) when creating temporary files. 2002-01-25 15:02:01 +00:00
Ruslan Ermilov
322628519e Reincarnate SETUID code in man(1), not compiled in by default.
The code will be fixed for all known security vulnerabilities,
and a make.conf(5) knob (ENABLE_SUID_MAN) will be provided for
those who still want it installed setuid for whatever reasons.
2002-01-22 15:15:38 +00:00
Ruslan Ermilov
318e66375a GC spurious -m in the usage(). 2002-01-18 16:08:29 +00:00
Ruslan Ermilov
30843b9337 Do not install man(1) setuid ``man''.
The catpaging and setuidness features of man(1) combined make
it vulnerable to a number of security attacks.  Specifically,
it was possible to overwrite system catpages with arbitrarily
contents by either setting up a symlink to a directory holding
system catpages, or by writing custom -mdoc or -man groff(1)
macro packages and setting up GROFF_TMAC_PATH in environment
to point to them.  (See PR below for details).

This means man(1) can no longer create system catpages on a
regular user's behalf.  (It is still able to if the user has
write permissions to the directory holding catpages, e.g.,
user's own manpages, or if the running user is ``root''.)

To create and install catpages during ``make world'', please
set MANBUILDCAT=YES in /etc/make.conf.  To rebuild catpages
on a weekly basis, please set weekly_catman_enable="YES" in
/etc/periodic.conf.

PR:		bin/32791
2002-01-15 14:11:05 +00:00
Ruslan Ermilov
b9de8f2010 Now that we have the original BSD man(1)'s ${MACHINE} feature
back (as of man.c,v 1.45), change the meaning of the -m option
from poorly documented and badly coded "alternate system" to a
much more useful "different architecture for the same system".

PR:		docs/31261
2002-01-11 15:12:00 +00:00
Ruslan Ermilov
20cea81ba1 The -pthread -> -lc_r change didn't reach here. 2002-01-11 11:42:16 +00:00
Ruslan Ermilov
438b157a57 Forgot to commit these two files for the recent .Dt change. 2002-01-11 11:30:14 +00:00
Crist J. Clark
57d04f4edc Fix what was a pointless conditional. Use $GCC_EXEC_PREFIX if
/etc/gnats does not exist.

PR:		gnu/33682
Submitted by:	Alan Eldridge <ports@geeksrus.net>
2002-01-10 07:43:38 +00:00
John Baldwin
6662e3f437 Back out the previous revision for now. Instead, the current sparc64
Makefile changes are in the sparc64 p4 tree.
2002-01-07 19:27:50 +00:00
John Baldwin
7855d28a28 Don't build csu or libgcc on sparc64 for the time being. 2002-01-03 19:57:35 +00:00
Ruslan Ermilov
ec60ea2faa MFV: FreeBSD 4.4, FreeBSD 4.5, NetBSD 1.6, POSIX.1-2001. 2001-12-24 08:59:48 +00:00
David E. O'Brien
a19de87a67 I used this for one of the gcc 2.97 snapshots.
It is here in case we decide we want the directory to match the binary name
since neither the binary nor the source file(s) are named 'cccp' any longer.
2001-12-18 03:24:18 +00:00
David E. O'Brien
05f25aae14 Changes in order to compile GCC 3.0.2. 2001-12-18 03:22:23 +00:00
David E. O'Brien
3dbb6175cd Working changes for GCC 3.0.2. 2001-12-18 03:21:49 +00:00
David E. O'Brien
523a651a6f Changes in order to compile GCC 3.0.2.
The for-GCC-only preprocessor is now built using cpplib.
2001-12-18 03:20:31 +00:00
David E. O'Brien
8561d1123d Changes in order to compile GCC 3.0.2.
Really irritating changes are the "forced" layering of malloc + friends
in order to use the GNU versions.  Sorry, we have a *very* fine malloc,
and we will use it.  Period.  Even more irritating is that the GNU people
now want to replace ctype also!!  So we partially dike it out here.
2001-12-18 03:19:11 +00:00
David E. O'Brien
e5d7f6b935 Regenerated for GCC 3.0.2. 2001-12-18 03:15:02 +00:00
David E. O'Brien
9aef790094 Changes in order to compile GCC 3.0.2.
Boy did a lot of files get added or moved around.
2001-12-18 03:13:22 +00:00
David E. O'Brien
9018d6738b Changes in order to compile GCC 3.0.2. 2001-12-18 03:12:24 +00:00
David E. O'Brien
3a7789cfeb Working changes for GCC 3.0.2. 2001-12-18 03:11:35 +00:00
David E. O'Brien
1a2f149713 Working changes for GCC 3.0.2.
We now have to use the GCC stdarg.h varargs.h.  We simply have no choice
as it has an internal representation that we really cannot properly define
in our headers.
2001-12-18 03:10:56 +00:00
David E. O'Brien
2c8b5b1291 Working changes for GCC 3.0.2.
This thing grew.  We now have to link with many more files as if it
were one of the driver programs.  We also have to deal with the very
irritating layering of malloc and friends.  Our malloc works *very*
well thank you.  Thus we will use it.
2001-12-18 03:09:26 +00:00
David E. O'Brien
0d4ffb0f07 Working changes for GCC 3.0.2.
We now fake out the native libgcc.mk + GNU autoconf'ed Makefile.
This gives us the flexability we will need to support our new arches
(StrongARM, Sparc64, PowerPC, and IA-64).  If this new way proves to
be too much a hassle, I still have a close-to-being-finished version
that is more like the 2.95 version of this file.
2001-12-18 03:05:22 +00:00
Ruslan Ermilov
2902dbbd45 Install files via FILES. 2001-12-17 16:45:09 +00:00
Ruslan Ermilov
a7aaf57e4a FILES support for bsd.prog.mk. See bsd.README for details.
Stolen from:	NetBSD
2001-12-17 13:59:35 +00:00
Ruslan Ermilov
00e43343a6 Add .Lb entry for -lpam. 2001-12-17 12:12:17 +00:00
John Baldwin
b0492e310b Catch up to the globaldata -> pcpu changes. 2001-12-12 21:15:30 +00:00
Peter Wemm
8dc7644269 *** empty log message *** 2001-12-11 07:04:48 +00:00
Peter Wemm
303451da31 Recognize numeric digits inside $id$ tags, eg: $XFree86$
PR: 30666
Submitted by: Tony Finch <dot@dotat.at>
2001-12-10 20:44:31 +00:00
Ruslan Ermilov
d49fa169c0 December 6th -- the IEEE Standards Board approves the Austin Group
Specification as IEEE Std 1003.1-2001.  Yay!
2001-12-08 19:02:36 +00:00
David E. O'Brien
5a31fd21e9 Upgrade to Binutils 2.11.2. 2001-12-06 03:10:42 +00:00
Ruslan Ermilov
973698b38b Fixed memory leak in dialog_gauge(3).
PR:		gnu/32260
Submitted by:	Igor Pokrovsky <tiamat@telegraph.spb.ru>
MFC after:	3 days
2001-11-29 07:42:13 +00:00
Ruslan Ermilov
ad48dba20f CFLAGS is not suitable for `optimize' thing; it spams Config.pm
with -nostdinc which breaks Perl ports building.

This change will be re-applied if BDE agrees on having COPTFLAGS
in userland.

PR:		bin/31877
2001-11-27 16:28:26 +00:00
Ruslan Ermilov
95693bfc00 Add .Lb entry for -lpam.
Requested by:	des
2001-11-27 15:08:42 +00:00
Ruslan Ermilov
b4c43aef50 Removed glibc specific stuff.
PR:		docs/31431
2001-11-27 08:23:38 +00:00
Bruce Evans
7f78280b08 Fixed style bugs (tab corruption) on every changed line in previous commit. 2001-11-11 02:16:52 +00:00
Andrey A. Chernov
486ca7cb9d Back out switching from libreadline to libedit:
1) It is capabilities degradation: f.e. libedit can't process ~/.inputrc files
2) It have no sense to try to un-GNU GNU program.
2001-11-09 17:09:42 +00:00
Doug Rabson
98f862356c Clone the alpha config for ia64. 2001-11-03 16:06:05 +00:00
David E. O'Brien
2335a3d70a Bring Gawk back. There just isn't any other POSIX compliant AWK out there.
The biggest thing missing from Bell-Labs AWK is the character class regexes.
2001-11-02 23:48:32 +00:00
David E. O'Brien
5bd4695b64 Update to Gawk 3.1.0. 2001-11-02 23:46:57 +00:00
David E. O'Brien
2f863af288 Bring Gawk back. There just isn't any other POSIX compliant AWK out there.
The biggest thing missing from Bell-Labs AWK is the character class regexes.
2001-11-02 23:43:07 +00:00
David E. O'Brien
aab8cd4cfe -v must have a space between it and the variable.
Submitted by:	David Wolfskill <david@catwhisker.org>
                (did I mention he should be a committer? :-) )
2001-11-01 07:11:10 +00:00
Mark Murray
c4ebcaa7ca tip(1) can do cu(1). We don't need this anymore. 2001-10-30 19:36:57 +00:00
David E. O'Brien
43cfcf106d Switch to the One True AWK from Bell-Labs, away from GNU AWK. 2001-10-30 08:56:50 +00:00
Ruslan Ermilov
ead097220a There are users of FreeBSD 4.5 already. 2001-10-26 17:01:15 +00:00
Ruslan Ermilov
fe5e2a2c52 It's safe to assume that ${.OBJDIR} == ${.CURDIR} in the
NOOBJ-hinted Makefiles.
2001-10-24 09:16:23 +00:00
David E. O'Brien
d80e71799d Make the logic more explicit. 2001-10-19 20:20:16 +00:00
Ruslan Ermilov
1680d03276 Respect system ${CFLAGS} when building Perl modules.
bsd.obj.mk -> bsd.prog.mk in modules makefiles, as the
latter automatically includes ../Makefile.inc and adds
-I${DESTDIR}/usr/include to ${CFLAGS} needed for "make
world" which is built with -nostdinc.

Reviewed by:	MAINTAINER timeout
2001-10-19 12:58:22 +00:00
Bruce Evans
d2f659e3f9 Fixed style bugs in previous commit:
- don't comment out the old version; just modify it.
- don't 2 sets of 3 style bugs that weren't present in the old version.
2001-10-19 12:45:59 +00:00
Matthew N. Dodd
9c77d65883 Turn on the libedit support in bc. Turn off libreadline. 2001-10-19 00:24:39 +00:00
David E. O'Brien
f6181588d5 We don't use the IA-64 psABI ELF_DYNAMIC_INTERPRETER, so remove it. 2001-10-15 03:10:48 +00:00
David E. O'Brien
d4c06e2f81 Clean this up. 2001-10-15 02:14:08 +00:00
David E. O'Brien
e1382dde0b Binutils 2.11.2 build framework for the FreeBSD/IA-64 target. 2001-10-15 02:13:26 +00:00
David E. O'Brien
7a54260771 We don't support GDB for IA-64, PowerPC, or sparc64 yet. 2001-10-15 01:57:13 +00:00
David E. O'Brien
edb338ea02 We can easily share obj-format.h and targ-env.h files across all FreeBSD
platforms, which reduces the upgrade effort.
Also tidy up the Makefiles.
2001-10-15 01:43:23 +00:00
David E. O'Brien
462c450905 More cleaning. 2001-10-15 01:18:51 +00:00
David E. O'Brien
7e605691b0 Adjust for the movement of `as' headers. 2001-10-14 02:15:58 +00:00
David E. O'Brien
b3119f80e8 You know the last revision will work better if the TARGET_TUPLE is set
conditionally....
2001-10-14 02:13:55 +00:00
David E. O'Brien
4ac9161617 Allow easier override of the configure tuple, in case you wanted to build
as "powerpc-obrien-freebsd" rahter than "powerpc-unknown-freebsd" for example.
2001-10-14 02:12:40 +00:00
David E. O'Brien
44fdcd56ee Need to look in additional places for BFD's config.h now. 2001-10-14 02:07:26 +00:00
David E. O'Brien
8f0d33af07 Clean up a little bit more. 2001-10-14 01:58:18 +00:00
David E. O'Brien
4ab605cf6d Clean up the formatting. 2001-10-14 01:57:19 +00:00
David E. O'Brien
80eaeb4242 We do "sparc64", not "sparc". 2001-10-14 01:57:07 +00:00
David E. O'Brien
83735fac63 Clean up the formatting. 2001-10-14 01:47:30 +00:00
David E. O'Brien
51598dc8ec We do "sparc64", not "sparc". 2001-10-14 01:33:07 +00:00
David E. O'Brien
cd9d63ec3f Clean up the formatting. 2001-10-14 01:31:37 +00:00
David E. O'Brien
5c73b63da5 We can easily share a single config.h file across all FreeBSD platforms,
which reduces the upgrade effort.
2001-10-14 01:24:07 +00:00
David E. O'Brien
51a64fa24f Update for Binutils 2.11.2. 2001-10-14 01:08:32 +00:00
David E. O'Brien
b164377e77 We support sparc64, not plain sparc. 2001-10-14 01:00:29 +00:00
David E. O'Brien
bbd7c7f077 Clean up the formatting. 2001-10-14 00:58:59 +00:00
Bruce Evans
43ea907a42 Backed out "Compensate for header dethreading [mistakes]" mistakes in
alpha files too.
2001-10-13 04:38:46 +00:00
Bruce Evans
6eabd84580 Compensate for "Compensate for header dethreading" by backing it out. 2001-10-10 17:48:44 +00:00
Ian Dowse
3c7bcedd06 Remove the Xresume* labels from the i386 interrupt handlers; the
code in ipl.s and icu_ipl.s that used them was removed when the
interrupt thread system was committed. Debuggers also knew about
Xresume* because these labels hide the real names of the interrupt
handlers (Xintr*), and debuggers need to special-case interrupt
handlers to get the interrupt frame.

Both gdb and ddb will now use the Xintr* and Xfastintr* symbols to
detect interrupt frames. Fast interrupt frames were never identified
correctly before, so this fixes the problem of the running stack
frame getting lost in a ddb or gdb trace generated from a fast
interrupt - e.g. when debugging a simple infinite loop in the kernel
using a serial console, the frame containing the loop would never
appear in a gdb or ddb trace.

Reviewed by:	jhb, bde
2001-10-09 19:54:52 +00:00
Ian Dowse
e5cef9b61f Catch up with the SMPng reduced interrupt frame size. The corresponding
change was made to DDB months ago (i386/i386/db_trace.c revision 1.37).

Reviewed by:	bde
2001-10-08 12:46:01 +00:00
Ruslan Ermilov
eea399e3ac Removed mentions of TARGET_ARCH from non-cross places. 2001-10-04 14:13:16 +00:00
Ruslan Ermilov
3d8712c3a1 Unbreak standalone `make depend' in gnu/usr.bin/perl.
Noticed by:	bde
2001-10-04 11:45:38 +00:00
Bruce Evans
d703551558 Fixed missing return type in synopsis. 2001-10-03 04:01:51 +00:00
Ruslan Ermilov
3180756901 Document how manpath(1) handles user's path directories that end in "/bin".
PR:		docs/30940
MFC after:	3 days
2001-10-01 16:58:30 +00:00
Ruslan Ermilov
32eef9aeb1 mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
Kris Kennaway
536d2f0588 Phase I of UUCP migration to ports. This leaves behind a minimal build
environment for cu, which is still useful.
2001-10-01 06:22:53 +00:00
Ruslan Ermilov
4448c79e47 Fix cross-building, etc:
1.  To cross-build, one now needs to set TARGET_ARCH, and not the
    MACHINE_ARCH.  MACHINE_ARCH should never be changed manually!

2.  Initialize DESTDIR= explicitly for bootstrap-tools, build-tools,
    and cross-tools stages.  This fixes broken header and library
    dependencies problem.  We build them in the host environment,
    and obviously want them to depend on host headers and libraries.
    The problem with broken header dependencies for bootstrap-tools
    and cross-tools was already partially solved (see BOOTSTRAPPING
    tests in bsd.prog.mk and bsd.lib.mk), but it was still there for
    build-tools if the user ran "make world DESTDIR=/foo".  Also,
    for all of these stages, the library dependencies were broken
    because of how bsd.libnames.mk define DPADD members.

    We still provide a glue to install bootstrap- and cross-tools
    under the ${WORLDTMP}.

    Removed PATH overrides for bootstrap-, build-, and cross-tools
    stages.  There is just no reason why we would need to override
    it, and the hacks to clean up the ${WORLDTMP} in the -DNOCLEAN
    case are no longer needed with fixes from this step.

    That is, we now never use ${WORLDTMP} headers and libraries,
    and we don't use any ${WORLDTMP} installed binaries during
    these stages.  Again, these stages depend solely on the host
    environment, including compiler, headers, and libraries.

3.  Moved "miniperl" back from cross-tools (it has nothing to do
    with a cross-compiler) to build-tools where it belongs.  The
    change from step 1 let to do this.  Also, to make this work,
    build-tools targets of "cc_tools" and "miniperl" were modified
    to call "depend".  Here follow the detailed explanations.

    There are two categories of build tools, for now.  In the first
    category there are "cc_tools" and "miniperl".  They occupy the
    whole (sub)directory, and nothing needs to be done in this
    subdirectory later during the "all" stage.  They are also
    constructed using system makefiles.  We must build the .depend
    early in the build-tools stage because:

    1)  They use (and depend on) the host environment.

    2)  If we don't do this in build-tools, the "depend" stage of
        buildworld will do this for us; wrong library and header
        dependencies will be recorded (DESTDIR=${WORLDTMP}) and,
        what's worse, the "all" stage may then clobber the
        build-architecture format tools (that we built in the
        build-tools stage) with the target-architecture format
        ones, breaking cross build.

    In the second category there are all other build-tools.  They
    share their directory with the "main" module that needs them
    in the "all" stage, and they don't show up themselves in the
    .depend file.  The portion of this fix was already committed
    in gnu/usr.bin/cc/cc_tools/Makefile,v 1.52.

4.  "libperl" is no longer a build tool, and "miniperl" is the
    stand-alone application.  I had to make this change because
    build-tools and "all" stages share the same object directory.
    Without this change, if we cross compile, libperl.a is first
    built for the build architecture during the build-tools stage
    (for the purposes of immediate linkage with "miniperl").
    Later on, the "all" stage sees this library as up-to-date,
    and doesn't rebuild it.  The effect is that the wrong format
    static libperl library is installed with installworld.

5.  Fixed "includes" to install secure/lib/libtelnet headers if
    required.

Reviewed by:	bde
2001-09-29 13:17:54 +00:00
Jonathan Lemon
750c427849 Add support for 28800 baud to sio.
PR: 30906
Submitted by: "Daniel O'Connor" <darius@chowder.dons.net.au>
2001-09-29 04:49:11 +00:00
David E. O'Brien
838bc11f60 We need to build ``.depend'' early in the "build-tools" for the GCC
"build-tools".  If we do not do this, the "depend" stage of
"buildworld" will build ``.depend'' and it will record the wrong
library and header dependencies (DESTDIR=${WORLDTMP}).  Even worse,
the "all" stage may clobber build-architecture-format build tools
built in the "build-tools" stage with target-architecture-format ones.

Submitted by:	ru
2001-09-27 17:14:33 +00:00
David E. O'Brien
7d437141ba Unconditionally use basename.c source vs. only doing this if the libc we
are linking against does not have basename().  There is a buffer overflow
bug in lib/libc/gen/basename.c rev 1.1.  There is no way for us to test
what revision of basename() we have in libc, thus this change.

Requested by:	ru
2001-09-26 20:51:51 +00:00
Ruslan Ermilov
946b7fa17e Fixed the buildworld breakage in cross-tools caused by
misuse of /usr/src/include headers.  This REALLY fixes
the 20010919 src/UPDATING entry.

With this patch the 4.2-RELEASE box was able to survive
the 5.0-CURRENT "make world".

Beat over the head with this patch:	obrien
2001-09-24 09:25:05 +00:00
Mark Murray
e284cfe41e [ Very nasty nautical expletive removed ]
Remove debugging code that should never have been committed.
2001-09-21 13:50:31 +00:00
Mark Murray
b6c358a73d Through some hackery-pokery, allow folks to cd to src/gnu/usr.bin/perl
and do the usual "make obj && make depend all".

This sort of stuff makes my teeth itch, but folks wanted it badly
enough, so here it is.
2001-09-20 12:22:27 +00:00
Peter Wemm
d1c276c383 Fix alpha gdb -k on "live" kernels. Use offsetof() instead of some evil
hand-rolled macros to do the same thing.
2001-09-20 06:31:23 +00:00
Bill Fenner
9c52cf5785 Don't try to dereference a kernel pointer in userland; use offsetof()
to get the right address.

This fixes kernel GDB after KSE2.

Reviewed by:	jhb, jake
2001-09-19 18:42:19 +00:00
Ruslan Ermilov
096f9ef53b In FreeBSD, -Z is reserved for zgrep(1), and only
a long version of the --null option is supported.

PR:		gnu/30644
2001-09-19 07:22:30 +00:00
David E. O'Brien
dd1cd2eb67 Rev 1.10 bogusly tested the kernel version, not the libc version.
The version of the kernel has no bearing on what is in libc.
We now search for basename in libc to determin if we need to include
the libiberty version in the build.

This is all still a bit bogus as it will (like the sysctl method) cause
basename.o to be linked into the cross-build as well as the host build.  It
would probably be better to test if we were doing the initial host build and
unconditionally include that.  Once we've generated the target libc we know
that basename is available.  (maybe test for $TOOLS_PREFIX or something).

Submitted by:	peter
2001-09-14 23:07:02 +00:00
Peter Wemm
e433a4a84b Update this to compile on the Alpha. 2001-09-14 11:08:44 +00:00
Ruslan Ermilov
9de6241784 Fixed some of style bugs. 2001-09-12 10:04:42 +00:00
Julian Elischer
b40ce4165d KSE Milestone 2
Note ALL MODULES MUST BE RECOMPILED
make the kernel aware that there are smaller units of scheduling than the
process. (but only allow one thread per process at this time).
This is functionally equivalent to teh previousl -current except
that there is a thread associated with each process.

Sorry john! (your next MFC will be a doosie!)

Reviewed by: peter@freebsd.org, dillon@freebsd.org

X-MFC after:    ha ha ha ha
2001-09-12 08:38:13 +00:00
David E. O'Brien
447ac70c38 I am no longer the FreeBSD GCC maintainer. 2001-09-10 16:05:39 +00:00
Matthew Dillon
ea079e4650 Make sure that all non-root-owned binaries in standard system
paths are chflaged 'schg' to prevent exploit vectors when run
by cron, by a root user, or by a user other then the one owning the
binary.  This applies to most of the uucp binaries, cu, tip, and
man (man was already installed properly).

MFC will occur when approved.
2001-09-09 04:54:10 +00:00
David E. O'Brien
6d87bbdf3a Fix the upgrade path from 4.1 and earlier. 2001-09-06 22:59:31 +00:00
Ruslan Ermilov
6efca31685 SECURITY.
Avoid using setre[ug]id() calls.
Removed the setgid stuff we don't need.
2001-09-06 11:54:28 +00:00
Peter Wemm
72d4bf59e9 Implement .previous (swap section back to the last section)
This enables:
	.data
	.asciz "foo"
	.previous
.. just like on current binutils
2001-09-04 23:04:48 +00:00
Bruce Evans
b14046f4b2 Fixed style bugs in rev.1.4, including clobbering of the "Don't generate
y.output" part of rev.1.11.
2001-08-31 11:15:49 +00:00
Eric Melville
ae0b7d588a Properly move cursor when home and end keys are used. 2001-08-31 01:56:06 +00:00
Peter Wemm
fd131b1483 Dynamically adapt to kernbase changes on crashdumps, falling back to
KERNBASE if the "kernbase" symbol is not present on older kernels.
2001-08-24 09:12:04 +00:00
Nik Clayton
682d574173 Note that submitted patches are assumed to be under the same license as
the file they patch.
2001-08-20 12:52:59 +00:00
David E. O'Brien
fcd08e35ec Define _KERNEL as this grubs around where no userland should go. 2001-08-16 20:47:01 +00:00
David E. O'Brien
d549989694 Add the `WANT_FORCE_OPTIMIZATION_DOWNGRADE' knob. If set to an integer
value, it forces GCC to not optimize above this level.  For intance, GCC
made with "WANT_FORCE_OPTIMIZATION_DOWNGRADE=1" is a good setting for the
Alpha platform when building ports.
2001-08-16 06:05:18 +00:00
Ruslan Ermilov
b100cf6afb The .Rv macro support zero and more than one arguments. 2001-08-15 08:25:55 +00:00
Ruslan Ermilov
753d686d34 mdoc(7) police: s/BSD/.Bx/ where appropriate. 2001-08-14 10:01:54 +00:00
Peter Wemm
ee5f51df8f msg_out is already initialized 2001-08-13 21:55:41 +00:00
Peter Wemm
f949006c58 Turn cvs back on. It seems that there's nothing outright broken, but there
are some odd things I've run into.. eg: log message formatting, etc.
2001-08-13 19:04:26 +00:00
Ruslan Ermilov
d013e3f544 mdoc(7) police: s/NetBSD/.Nx/ where appropriate. 2001-08-13 17:00:36 +00:00
Ruslan Ermilov
c5e7e03a14 Spell "FreeBSD" with "F" and "BSD" in uppercase. 2001-08-13 16:33:00 +00:00
Ruslan Ermilov
8af1452cf8 Removed duplicate VCS ID tags, as per style(9). 2001-08-13 14:06:34 +00:00
Dima Dorfman
3ec77b1f25 Remove libgmp build infrastructure. 2001-08-10 18:35:08 +00:00
Peter Wemm
fcd12d096e Use some slightly less horrible make magic for doing the version stuff. 2001-08-10 11:24:23 +00:00
Peter Wemm
bebb0ae143 One more version related tweak after cvs-1.11 -> 1.11.1p1 2001-08-10 11:18:35 +00:00
Peter Wemm
ca68170342 Update build rules for .in and tidy up. 2001-08-10 11:03:29 +00:00
Peter Wemm
a8833905d7 Tools dir is now empty and unused 2001-08-10 10:47:28 +00:00
Peter Wemm
dded7a88d2 Generate version.c on the fly rather than using a generated file. 2001-08-10 10:29:04 +00:00
Peter Wemm
8653f7fd3c Get the version source from the (more) correct place.
Remove the obsolete cvsbug.sh script
2001-08-10 10:22:43 +00:00
Peter Wemm
4241f99d9e *** empty log message *** 2001-08-10 09:55:48 +00:00
Peter Wemm
f6020148f3 Add annotate.c, remove rtag.c for 1.11.1p1 2001-08-10 09:54:52 +00:00
Peter Wemm
635a163b6a Temporarily turn off cvs builds for the (short) duration of
import/verification.
2001-08-10 09:35:58 +00:00
Ruslan Ermilov
ac0450b530 Skip empty calls in the NAME section after the .Nm macro call.
This makes the following difference:

-groff_mdoc(7), -(7)      - groff_mdoc reference for groff's mdoc implementation
+groff_mdoc(7)            - reference for groff's mdoc implementation
2001-08-09 15:42:40 +00:00
Ruslan Ermilov
9023135631 An empty request (single dot on the line) is treated as an
empty line by troff(1) and is ignored.  Teach makewhatis(1)
about this.  This makes the following difference:

-groff_man(7), . groff_man(7) - groff `man' macros to support generation of man pages
+groff_man(7)             - groff `man' macros to support generation of man pages
-groff_mdoc(7), -(7)      - . groff_mdoc reference for groff's mdoc implementation
+groff_mdoc(7), -(7)      - groff_mdoc reference for groff's mdoc implementation
-troff(1), . . troff(1)   - format documents
+troff(1)                 - format documents

Noticed by:	yar
2001-08-09 15:23:30 +00:00
Ruslan Ermilov
b07badb7bd Teach makewhatis(1) about mdoc(7) .Xr macro.
% whatis finger.conf
finger.conf(5) - finger 1 alias configuration file

% whatis finger.conf
finger.conf(5) - finger(1) alias configuration file

Reviewed by:	MAINTAINER timeout
2001-08-09 15:12:59 +00:00
Eric Melville
eb84be870e Handle keys consistently. 2001-08-09 01:14:09 +00:00
Ruslan Ermilov
c4d9468ea0 mdoc(7) police:
Avoid using parenthesis enclosure macros (.Pq and .Po/.Pc) with plain text.
Not only this slows down the mdoc(7) processing significantly, but it also
has an undesired (in this case) effect of disabling hyphenation within the
entire enclosed block.
2001-08-07 15:48:51 +00:00
Ruslan Ermilov
4ad7956eb6 dialog(3) -> dialog_noyes(3). 2001-08-07 12:13:22 +00:00
Eric Melville
2180c55b9c Update man page to actually match the source.
PR:		7456
2001-08-01 06:23:00 +00:00
Dima Dorfman
7bd0b86765 Enable the new libmp in the build, and disable libgmp and its
henchmen.
2001-07-29 08:58:22 +00:00
David E. O'Brien
8a61321605 Hook up the manpage. 2001-07-29 07:21:39 +00:00
Eric Melville
5dc547c27e Properly update cursor position when the list is scrolled. 2001-07-26 05:35:19 +00:00
Eric Melville
b48baf886a Handle keys consistently. 2001-07-26 03:34:43 +00:00
David E. O'Brien
50ea040994 Add lbasename which is used in the `LD' fix for -current. 2001-07-20 03:53:28 +00:00
David E. O'Brien
6f6c5dce4e Update the version string so I can identify this new variant. 2001-07-20 03:51:17 +00:00
Eric Melville
87aaead2f8 Improve the interface provided by libdialog. Move a cursor around over
the components and trigger actions based on its position. This reduces
the need to remember the functions of various keys, and makes the
interface more consistant across library.
~
2001-07-18 05:21:37 +00:00
Ruslan Ermilov
280835fe49 Restore vendor CVS keywords; eliminate troff(1) warnings. 2001-07-12 13:13:37 +00:00
Peter Wemm
da81118c1b Use the real structure names explicitly. Note that this is mostly for
reading old a.out core files, which are totally 100% non-understandable
to the gdb floating-point reader if you have SSE turned on.

This should be the last of the world build breakers...
2001-07-12 13:01:17 +00:00
Ruslan Ermilov
ed5a93a7c2 Restore UUCP VCS IDs; eliminate troff(1) warnings. 2001-07-12 12:35:00 +00:00
Ruslan Ermilov
26e7668052 Fixed CLEANFILES. 2001-07-12 08:48:36 +00:00
Ruslan Ermilov
eb89426722 mdoc(7) police: removed punctuation after the last SEE ALSO xref. 2001-07-10 18:00:19 +00:00
Ruslan Ermilov
83f96682da Add $FreeBSD$ CVS tag. 2001-07-10 17:23:07 +00:00
Ruslan Ermilov
edfa7141c3 Upgrade to Groff 1.17.2. 2001-07-10 17:15:52 +00:00
Ruslan Ermilov
63919764c2 mdoc(7) police: removed HISTORY info from the .Os call. 2001-07-10 10:42:19 +00:00
Dima Dorfman
70d51341bf mdoc(7) police: remove extraneous .Pp before and/or after .Sh. 2001-07-09 09:54:33 +00:00
Brian Somers
7bc6d0158f Fix the type of the NULL arg to execl()
Idea from: Theo de Raadt <deraadt@openbsd.org>
2001-07-09 09:24:06 +00:00
Ruslan Ermilov
5521ff5a4d mdoc(7) police: sort SEE ALSO xrefs (sort -b -f +2 -3 +1 -2). 2001-07-06 16:46:48 +00:00
Kris Kennaway
95897b0fae Silence a non-constant format string warning.
MFC after:	1 week
2001-07-05 10:49:43 +00:00
David E. O'Brien
c46eebd508 Upgrade to Binutils 2.11.2. 2001-06-29 07:49:41 +00:00
David E. O'Brien
1b1d481112 Style fix. 2001-06-26 18:32:20 +00:00
David E. O'Brien
f6c9428e6e Add the IA-64 unwind handling (needed for readelf). 2001-06-26 18:29:47 +00:00
David E. O'Brien
e3ffd96636 Upgrade to Binutils 2.11.2. 2001-06-26 18:20:46 +00:00
David E. O'Brien
d4d994956c Upgrade to 2.11.2. 2001-06-26 17:13:11 +00:00
Andrey A. Chernov
b15d61cf16 Rewrite locale handling using nl_langinfo(CODESET), so aliases not needed here
now
2001-06-25 21:11:43 +00:00
Dima Dorfman
cfd1472cef When processing -a, strip off the path of the argument before copying
it to the output.

Reviewed by:	alex
2001-06-18 21:57:24 +00:00
Alexander Langer
f0849acde3 Document the -a flag. 2001-06-17 11:22:57 +00:00
Dima Dorfman
8a89f037e9 Add an -a option which will make send-pr copy the specified file into
the Fix: section.  Binary files (as determined by file(1)) are
uuencode'd.

Submitted by:	alex
2001-06-17 00:35:46 +00:00
Anton Berezin
90270b8e6f Fix the build of C programs that link against libperl, and use the
blessed way of doing this:

   cc -o interp interp.c `perl -MExtUtils::Embed -e ccopts -e ldopts`

In order for this to work, ldopts should contain -lcrypt.

PR:		21804
Reviewed by:	markm
2001-06-13 20:37:03 +00:00
Andrey A. Chernov
baf58b5622 In debug mode don't print error for C,POSIX,ASCII,US-ASCII locales 2001-06-10 23:42:31 +00:00
Andrey A. Chernov
3a068c3b67 Fix for new locale names 2001-06-10 16:03:56 +00:00