Commit Graph

102 Commits

Author SHA1 Message Date
thorpej
ecfc315cde Always build this if a HOSTPROG (MKBFD only affects native progs). 2002-05-09 17:12:36 +00:00
lukem
2c1cfc8e8c - in <bsd.files.mk>, don't clear FILES after using it, as that prevents
make -V FILES
  from being useful (and given that every other variable can be
  extracted using make -V, the behaviour was unusually inconsistent
  given that the original reason for clearing it doesn't seem to be
  relevant anymore)
- use <bsd.prog.mk> instead of directly including <bsd.files.mk>
  (and possibly <bsd.man.mk> or <bsd.own.mk>)
- remove obsolete NOPROG
2002-04-24 08:18:45 +00:00
thorpej
2b0761b3c8 Obey USE_YP. 2002-04-10 22:05:47 +00:00
bjh21
d14e3d0f51 Don't use __RCSID or __COPYRIGHT unless they're defined. 2002-04-08 14:20:41 +00:00
thorpej
002142a2b5 * Don't use NetBSD's ELF headers, use those provided by BFD.
* Use bfd_{get,put}_{16,32,64}() rather than NetBSD's htobe32(), etc.
2002-04-01 21:58:09 +00:00
mrg
eff7936f87 include <string.h> as necessary. 2002-03-02 12:21:14 +00:00
wiz
4da241dfa0 Whitespace nits. 2002-02-23 17:01:20 +00:00
thorpej
2365d7ec78 Add a '-s' option which will cause mdsetimage to write back the
actual image size copied back into the kernel.
2002-02-23 02:30:37 +00:00
lukem
e2311f6fa0 use ${INSTALL_FILE} as appropriate 2002-02-09 09:21:47 +00:00
perry
84a067585a postqueue needs to be sgid maildrop. 2002-02-04 02:39:06 +00:00
perry
13b9b0e653 And install the script as a SCRIPT... 2002-02-03 00:50:36 +00:00
perry
a292bb8303 Install post-install and postfix-files.
This is likely not enough yet.
2002-02-03 00:47:49 +00:00
perry
1f31e11b0f update reachovers for postfix 1.1.2 2002-02-02 23:21:45 +00:00
tv
9fbd88883c Roll in fixes to permit cross-compiling from non-NetBSD hosts. This
round has been tested on Solaris/x86 and Linux hosts.

* Add host tools cap_mkdb, ctags, m4, uudecode.
* Protect __RCSID() and __COPYRIGHT() better.
* Reduce the number of places that need to include "config.h", to keep
  sources closer to their "vanilla" versions.
* Add more compat #defines and autoconf-checked functions.
2002-01-31 22:43:33 +00:00
tv
5b071d154b Conditionally define M4 so it can be used as a host tool. 2002-01-31 19:12:43 +00:00
tv
a328e34106 Make almost all tools compile and run properly on non-NetBSD hosts. (In
particular, most tools now run correctly on Solaris 7.)
2002-01-29 10:20:28 +00:00
tron
cb9b650951 Define "HAVE_ERR_H" to fix native build. 2002-01-22 13:50:53 +00:00
tv
5c99654526 Add hooks for cross-hosting on non-NetBSD platforms. 2002-01-21 19:22:53 +00:00
cgd
6d4088dbde Convert this code to use read/write rather than mmap followed by read
into the mmap'd region.  (reviewed by thorpej.)

This is done to facilitate use as a host tool on not-necessarily-NetBSD
host systems.  Specifically, it works around problems discovered on
linux (mostly tested on 2.4.2-smp / RH 7.1, but also seen on other
variants) in which mmap(...MAP_SHARED...) on NFS files doesn't work
properly:

74 [hardy] RAMDISK.EB % uname -a
Linux hardy 2.4.2-2smp #1 SMP Sun Apr 8 20:21:34 EDT 2001 i686 unknown
75 [hardy] RAMDISK.EB % cat /etc/issue

Red Hat Linux release 7.1 (Seawolf)
Kernel 2.4.2-2smp on a 2-processor i686

76 [hardy] RAMDISK.EB % df .
Filesystem           1k-blocks      Used Available Use% Mounted on
fs:/home/cgd
                     104857600  98764968   6092632  95% /home/cgd
77 [hardy] RAMDISK.EB % date ; md5sum netbsd
Thu Dec 27 17:31:41 PST 2001
a1f35f085f130983892933df92d23be4  netbsd
78 [hardy] RAMDISK.EB % nbmdsetimage netbsd ~/proj-local/rd
79 [hardy] RAMDISK.EB % date ; md5sum netbsd
Thu Dec 27 17:31:49 PST 2001
740cbfb0a8432b7d3a6bf3421655e270  netbsd
80 [hardy] RAMDISK.EB % date ; md5sum netbsd
Thu Dec 27 17:31:51 PST 2001
a8c60aae879ead6893f074e83c23d70a  netbsd
81 [hardy] RAMDISK.EB % date ; md5sum netbsd
Thu Dec 27 17:31:54 PST 2001
a8c60aae879ead6893f074e83c23d70a  netbsd
82 [hardy] RAMDISK.EB % date ; md5sum netbsd
Thu Dec 27 17:31:55 PST 2001
a1f35f085f130983892933df92d23be4  netbsd
83 [hardy] RAMDISK.EB % date ; md5sum netbsd
Thu Dec 27 17:31:57 PST 2001
a1f35f085f130983892933df92d23be4  netbsd
84 [hardy] RAMDISK.EB %

("isn't that cool?")
2002-01-03 06:21:47 +00:00
thorpej
89b1a9ca73 Introduce 3 new MK* variables that have effect in the USE_NEW_TOOLCHAIN
case:

	MKBFD	If set to "no", disables building of libbfd, libiberty,
		and all things that depend on them (binutils/gas/ld, gdb,
		dbsym, mdsetimage).

	MKGDB	If set to "no", disables bulding of gdb.

	MKGCC	If set to "no", disables building of gcc and the
		gcc-related libraries (libg2c, libgcc, libobjc, libstdc++).

These are useful for building platforms for which either of the following
situations are true:

	(1) You have no userland from which to run toolchain2netbsd
	    in order to build the appropriate toolchain build framework.

	(2) The platform which you are building requires a newer set
	    of tools than are currently in the tree (e.g. x86-64, ia64).
2001-12-31 23:04:11 +00:00
yamt
3dd7e76ccf fix typo. (.o in SRCS) 2001-12-20 22:18:50 +00:00
thorpej
9b744bba67 Descend into dbsym. 2001-12-15 03:23:39 +00:00
lukem
b0b0a32ad7 Set NOxxx= before <bsd.own.mk> is pulled in (even indirectly).
Otherwise the appropriate MKxxx=no won't be defined .
2001-12-12 12:24:19 +00:00
tv
8e6f7afb5b MKfoo=no -> NOfoo 2001-12-12 01:48:43 +00:00
tv
b5cd2489b2 Major overhaul of src/tools and host toolchain. Summary of changes:
* Rewrite src/tools Make logic to work like the rest of the tree wrt
  "dependall" and "install".  The old "make build" hack is gone.

* Remove the MKTOOLS logic.  This was linked to the "make build" hack,
  and was only needed because TOOLDIR originally had no writable default.

* Redo the GNU configure/make logic to make it fit reasonably in a
  BSD make wrapper.  Use new ${.ALLTARGETS} variable to scan for
  targets in $(srcdir), and mark them with .MADE: to prevent rebuilding.

* Only build cross tools in src/tools; remove some messy logic in
  src/usr.* and src/gnu/usr.* that would do target filename rewriting
  (improves consistency and readability).

* Add the ability to build cross gdb at tool build time by setting
  MKCROSSGDB (default no) to "yes" in mk.conf.

* Add src/tools/groff and set up paths to work with this cross groff.
2001-11-12 23:16:17 +00:00
itojun
ebdef2d397 backout IPv6 patch to postfix. IPv6 support for "mynetworks" check was
left unimplemented, and postfix daemon could become an open relay for
IPv6 connectivity.  it seems that we need to torture-test IPv6 patch outside
of the tree more.
From moley@wide.ad.jp
2001-11-11 05:26:50 +00:00
wiz
1c65d6114b Remove a trailing space. 2001-11-09 09:30:59 +00:00
thorpej
2436e0546d This is not a Sun3-specific program. 2001-11-09 07:43:16 +00:00
thorpej
028f694d86 Make an error message more informative. 2001-11-09 07:36:03 +00:00
thorpej
aeeee8c24d New BFD-using dbsym(8) written by Simon Burge, with some code
derived from the BFD-using mdsetimage(8).

TODO:
* Use loadfile(), rather than home-grown ELF parsing code (requires
  some changes to loadfile()).
* Support a.out like the gwr's dbsym(8) (this comes for free when
  we switch to loadfile()).
2001-11-09 05:52:20 +00:00
thorpej
f2cc4f7bb2 Give the host tool build more control over the HOST_CPPFLAGS. 2001-10-25 02:37:18 +00:00
thorpej
a0e5722800 Descend into mdsetimage. 2001-10-24 23:58:58 +00:00
thorpej
e46fa74fd3 Add support for building as a target-prefixed cross-tool from src/tools. 2001-10-24 23:56:38 +00:00
simonb
ced4db818c Bah, move ".include <bsd.own.mk>" to before USE_NEW_TOOLCHAIN check. 2001-10-22 03:31:41 +00:00
simonb
83a2424500 Add a Makefile for mdsetimage that tries to do the new/old toolchain
dance to get to libbfd.  Tested on new and old toolchain, makefile
messiness to be verified before being enabled.
2001-10-22 03:23:00 +00:00
simonb
ad8890a6fa Add the bfd-mdsetimage pkgsrc version of mdsetimage - this is Chris
Demetriou's origianal mdsetimage with modifications by Kazuki Sakamoto
to use libbfd.  It lives in gnusrc because libbfd is GPL, not LGPL.
2001-10-22 03:19:29 +00:00
tv
d20ff568a2 Remove all traces of "aux.m4" so as not to conflict with Microsoft host OS's.
(Since we aren't A/UX, this is not much of a loss for a NetBSD host.)
2001-10-19 02:53:02 +00:00
itojun
3c86caea97 sync wth 20010228-pl04. 2001-08-09 08:10:17 +00:00
itojun
731b8156e5 sync with 8.11.4. 2001-05-29 04:18:24 +00:00
tron
904d063d8b Update list of dynamically generated source files. 2001-03-29 09:59:09 +00:00
thorpej
f01ebf7a51 Re-enable IPv6 -- Itojun has fixed all the bugs :-) 2001-03-26 22:57:17 +00:00
itojun
c82eaba9eb enable STARTTLS, gshapiro@sendmail says it works just fine on freebsd.
report if there's any problem.
2001-03-21 17:37:11 +00:00
thorpej
eb899dbdce Disable the IPv6 support in postfix for now; there are some
Problems.  I'll see if Itojun and I can get them fixed this
coming week at IETF.
2001-03-18 07:53:02 +00:00
itojun
6288e2e767 correct installation location for postfix flush/spawn/lmtp 2001-03-15 12:03:11 +00:00
itojun
802ae96ef7 pull latest IPv6 patch in. 2001-03-13 18:34:19 +00:00
itojun
a76e001301 upgrade in-tree postfix to release-20010228. 2001-03-13 18:13:16 +00:00
itojun
5b8682b0d6 no longer need to replace relative path in netbsd-proto.mc 2001-02-28 04:16:04 +00:00
itojun
b2ba60b861 no longer need to ship IPv4-only sendmail.cf. 2001-01-15 17:57:44 +00:00
itojun
ef39bb4e09 pull DaemonPortOptions modifier for "optional address", from
8.12.x change (Modifiers=O).
this will let us use the same sendmail.cf file on IPv4/v6, and IPv4-only
kernels. (we do not really need netbsd-proto-IPv4only.cf any more)
2001-01-15 17:49:25 +00:00
enami
5d9e26fa5b - Use PRINTOBJDIR and .WAIT where appropriate.
- Define PARALLEL in gdb/Makefile since multiple yacc might run.
2001-01-09 08:52:56 +00:00