Commit Graph

231 Commits

Author SHA1 Message Date
cegger 8690c1d646 remove OSX specific fix where CLOCK_REALTIME is not defined.
It has been properly fixed in
http://mail-index.netbsd.org/source-changes/2010/03/26/msg008200.html
2010-03-27 07:16:57 +00:00
cegger 1359eca921 toolchain buildfix on OSX with MKDTRACE=yes:
The host <sys/time.h> doesn't provide CLOCK_REALTIME but ctf uses it.
See http://mail-index.netbsd.org/current-users/2010/03/20/msg012963.html

No comments.
2010-03-26 07:16:12 +00:00
roy 98eb889579 Userland now builds and uses terminfo instead of termcap.
OK: core@, jdc@
2010-02-03 15:34:37 +00:00
tsutsui 766937a0b1 Regen this properly per procedure described in src/tools/compat/configure.ac. 2010-01-21 12:55:04 +00:00
asau 76d4b3bdab Regenerate. 2010-01-15 11:27:01 +00:00
asau 9f9e90f73c Test for <sys/endian.h> and provide HAVE_SYS_ENDIAN_H.
Fixes FreeBSD hosted builds (PR 42440 and PR 42470).

Approved by <dholland>.
2010-01-15 11:26:25 +00:00
christos f9076c1664 undef and redefine instead of checking if it is define, from joerg 2010-01-14 21:38:19 +00:00
christos 76aa0f6aa7 provide __arraycount for those that don't have it. 2010-01-14 21:26:56 +00:00
tron b99b4b6003 Revert most of revision 1.73:
We cannot user_from_uid(3) or group_from_gid(3) unless the system
also supports pwcache_userdb(3) and pwcache_groupdb(3). The build will
use the hosts password and user database otherwise. Switch back to the
old behaviour to only the native functions if they are all present.
This fixes cross builds under Mac OS X and FreeBSD.

Fix based on problem analysis provided by Akihiko Hayashi.
2009-11-11 21:53:46 +00:00
joerg 14197c258c Define __RCSID and __COPYRIGHT as structure, so that the following
semicolon is consumed.
2009-11-06 18:26:06 +00:00
christos 2802d8b5af split all the password and group translation functions into individual
ifdefs instead of having a large one.
2009-10-02 18:03:19 +00:00
christos 6709212e45 add fpurge 2009-06-17 23:34:45 +00:00
christos fb04944064 add fpurge; needed by awk. 2009-06-16 22:35:34 +00:00
sketch 7ce9d1c8ea Make 'build.sh tools' work with the Sun Studio compiler, although bugs in
some of the generated tools still prevent building a full release using them.
2009-02-24 22:25:24 +00:00
dbj 5ae3d13a2f do not require sys/mtio.h for a tools build of pax 2009-02-03 05:22:40 +00:00
dbj 117ba68f3f avoid including grp.h 2009-02-03 05:18:42 +00:00
apb a0e618bba1 Use hex instead of decimal in #if FOO_MAX == 0xffff.... tests, and
append "U" to make the constants unsigned.
2009-01-18 21:59:19 +00:00
apb 270cb3d9e7 Provide definitions for PRI{d,i,o,u,x,X}{16,32,64}. Many tools
already use [u]int{16,32,64}_t types, and a few already had their own
#ifndef/#define/#endif code for a few of these macros.  A future commit
will remove that now-redundant code in the affected tools.
2009-01-18 21:09:47 +00:00
christos f5c11c0781 Fix struct passwd time fields. From Shin'ichiro TAYA 2009-01-18 01:44:09 +00:00
agc 0d5ba1b500 Apply part of the patch from Julio M. Merino Vidal in
http://mail-index.netbsd.org/source-changes/2009/01/05/msg214884.html

to make the toolchain cross-build on Mac OS X. Nozaki-san has addressed
the other issues.
2009-01-06 19:15:39 +00:00
tnozaki 2af58f1cce 1. reworking PR lib/40317:
libnbcompat already contains empty fparseln.lo
so previous fix doesn't work correctly.
i've just added broken fparseln check to configure script.

2. reworking cross build breakage under FreeBSD/MacOS X.
FreeBSD/MacOS X still have public /usr/include/runetype.h
derived from 4.4BSD-Lite.  so i renamed out private header from
src/lib/libc/locale/runetype.h to src/lib/libc/locale/runetype_local.h
to solve this problems.

3. fix build breakage when CITRUS=no was set.
2009-01-05 06:11:43 +00:00
dbj 9e00aa9431 include unistd.h where getmode is traditionally declared 2008-11-04 23:31:32 +00:00
apb debdeec730 The tools/compat versions of mkstemp() and mkdtemp() need to call the
internal function that's usually named "__gettemp".  However in a cross
build, "__gettemp" is in a namespace reserved for the host system, so we
can't use that.  Use "__nbcompat_gettemp" instead, following the example
of several other functions or macros in tools/compat.  Previously, this
was handled by using the name "gettemp", but that conflicts with the
local gettemp() function in dist/nawk.
2008-10-20 10:28:38 +00:00
dogcow 13a2178397 Define __USE_ISOC99 for linux, making the isblank() proto appear.
This is probably not the Right Thing, but it seems to not break anything.
2008-10-20 07:48:21 +00:00
tsutsui e610f24a9a Regen from configure.ac rev 1.67:
> Prepare dummy <resolv.h> and <arpa/nameser.h> to make asn1_compile and
> compile_et compile on systems which don't have these BIND headers like Cygwin.
2008-10-18 16:27:19 +00:00
tsutsui 0dbe1e872b Prepare dummy <resolv.h> and <arpa/nameser.h> to make asn1_compile and
compile_et compile on systems which don't have these BIND headers like Cygwin.

Tested by "build.sh -m i386 -U release" on CYGWIN_NT-5.1-1.5.25,
and should close PR toolchain/29032.
2008-10-18 16:25:04 +00:00
tsutsui 9f5daccbf0 Regen autoconf stuff using tools version of autoconf (in src/tools/autoconf),
as per suggestion from apb@ on tech-toolchain.
Tested 'build.sh -U release iso-image' on NetBSD/i386 4.99.73.
2008-10-14 15:23:26 +00:00
martin 3028e483e4 Convert to new 2 clause license 2008-04-29 06:53:00 +00:00
martin ce099b4099 Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
christos 170bdd7b66 make it so that we always use our own version of getopt_long as the comment
says.
2007-11-08 20:30:59 +00:00
tls 918f0e5e02 Try to address mess with user_from_uid and friends by ensuring we always
get our versions if any of the functions aren't present on the host system.

Still assumes if the functions are all there, they work like ours, which
may be a problem too.
2007-10-30 20:23:35 +00:00
christos 93c52e3c71 I am now convinced of the error of my ways, and I am checking for all the
decls mtree is using.
2007-10-19 15:56:53 +00:00
christos e8cbe68183 Move linux block up higher as it was before. noted by apb 2007-10-18 16:04:24 +00:00
christos a3b8c83a7e - define the NetBSD options before including any files
- add the _NETBSD_TOOLS define to make more symbols visible
- user_from_uid and group_from_gid are renamed only if we don't have them
2007-10-18 02:27:10 +00:00
lukem 9b5022a3a6 add raise_default_signal 2007-09-28 09:12:49 +00:00
lukem 339d6e2876 regen for raise_default_signal 2007-09-28 09:12:19 +00:00
lukem 5f778f6e61 Add raise_default_signal(). 2007-09-28 09:11:11 +00:00
apb 46427a7162 Regen after recent changes to configure.ac and compat_defs.h.
(Most of the changes seem to result from somebody having used
non-tools versions of autoconf and autoheader in the past.)
2007-08-07 08:29:15 +00:00
apb a7b292d021 Update the instructions to say that regen should be done again
to pick up changed RCS IDs.
2007-08-07 08:27:41 +00:00
apb 0da2db6cd1 Provide definitions for {be,le}{16,32,64}{enc,dec} if necessary.
This is adapted from the very detailed fix provided by
Giles Lean in PR bin/36678.

Only one simplified implementation is provided, instead of the
two implementations conditional on __GNUC_PREREQ__(2,95) that are
provided in NetBSD's <sys/endian.h>.  The use of memcpy instead of
__builtin__memcpy, and the absence of __inline or __unused, should make
it independent of GCC.
2007-08-07 08:22:04 +00:00
apb 581beaff5e More detailed instructions for what to do when editing configure.ac.
In particular, discourage the use of non-tools versions of
autoconf and autoheader.
2007-08-07 07:47:50 +00:00
jmmv ecd360e001 sys/queue.h now requires sys/null.h, so add a compatibility header file.
Fixes build of tools under, e.g. Mac OS X.
2007-07-19 13:49:12 +00:00
nakayama 0c74dffd74 Add strndup(3) to libnbcompat, since estrndup(3) added into efun.c calls it. 2007-07-03 12:11:09 +00:00
dogcow 4af19d6ae8 Back out this addition; it's The Wrong Thing when other system headers get
included.
2007-01-28 10:10:16 +00:00
dogcow f7c54e5b52 Due to recent changes in the cd9660 code, crosscompilation of tools/makefs
now fails due to the use of [be]e{16,32}dec. Add a compat header, and force
the inclusion of <sys/endian.h>.
2007-01-28 09:19:33 +00:00
ginsbach 37ee0e11e5 Fix tools build, binstall/xinstall, for systems without id_t, e.g.
MacOS X 10.3.9.  This should better match the NetBSD definition of id_t
in sys/sys/types.h.
2007-01-09 17:34:27 +00:00
agc 06c3bf82f1 Fixes to allow veriexecgen to be built as a host tool. 2006-12-20 22:03:20 +00:00
he 0a97c3f688 Complete the move of string_to_flags() and flags_to_string() from the
bin/ls sources to libutil:
 o Bump libutil minor version number
 o Fix uses to include <util.h> to pick up the function definitions
 o Fix most uses of flags_to_string() to release the now-malloc()ed result
2006-12-14 20:09:35 +00:00
dogcow 9070e87821 ...and one more for xcompilation (due to lib/libc/hash/sha1/sha1hl.c, sigh.) 2006-10-29 06:56:01 +00:00
dogcow 2b33ff3b97 cross (and native) building works again. woo. 2006-10-29 06:17:08 +00:00