| History log of /src/tools/compat/Makefile |
| Revision | | Date | Author | Comments |
| 1.96 |
| 22-Oct-2025 |
roy | rbtree: Rename rb.c to rbtree.c to match it's header rbtree.h
While here rename RBTEST to RBLOCAL to give a better meaning as we want to include the local rbtest.h rather than the system one.
Also allow to compile outside of NetBSD source tree by guarding some things we would otherwise expect to be defined.
|
| 1.95 |
| 18-Sep-2025 |
christos | Add more functions needed by mandoc
|
| 1.94 |
| 14-May-2025 |
riastradh | branches: 1.94.2; tools/compat: Don't leave unfinished config.cache around on error.
|
| 1.93 |
| 31-Oct-2024 |
jakllsch | Add shquote to libnbcompat
|
| 1.92 |
| 30-May-2023 |
lukem | branches: 1.92.2; tools/compat: use autoreconf, support MAKEVERBOSE
Use autoreconf instead of autoconf + autoheader; we'll need aclocal in the near future.
If MAKEVERBOSE >= 2, add -v to autoreconf.
|
| 1.91 |
| 23-May-2023 |
lukem | tools/compat: MAKEVERBOSE support in regen
|
| 1.90 |
| 18-Sep-2021 |
christos | branches: 1.90.2; Patch the build script and toolchain to allow passing through HOST_CPPFLAGS, HOST_CXXFLAGS, but not LIBRARY_PATH because it breaks the build. These variables are necessary to support building NetBSD from a GNU Guix or NixOS host, where /usr/include, /lib, and all but /bin/sh do not exist. In many cases, support for HOST_CPPFLAGS was incomplete. From Ryan Sundberg
|
| 1.89 |
| 25-Feb-2021 |
christos | Add reallocarray; this is used by the new regex code and we don't want to convert it to reallocarr so the code is kept similar with the original from FreeBSD.
|
| 1.88 |
| 13-Jun-2020 |
lukem | tools: configure --silent if MAKEVERBOSE == 0
|
| 1.87 |
| 08-May-2019 |
thorpej | branches: 1.87.2; Fix building libprop as a host tool library on platforms that don't have the Matt Thomas rbtree:
- Include rb.c in libnbcompat, and provide a nbcompat sys/rbtree.h header. - Make sure libprop's source file include prop_object_impl.h before anything else, and pull in nbtool_config.h from there.
Tested by simulating such a host system by renaming the host's <sys/rbtree.h> out of the way (which reproduced the build failure) and verifying that the host-tool installboot contained the rb_* functions in its own .text segment.
|
| 1.86 |
| 30-Aug-2018 |
christos | deal with getsubopt and strncasecmp (needed by mdocml)
|
| 1.85 |
| 16-Aug-2018 |
christos | add strncasecmp
|
| 1.84 |
| 11-Aug-2018 |
christos | Add strcasecmp
|
| 1.83 |
| 01-May-2018 |
christos | branches: 1.83.2; Create a new bsd.hostinit.mk file and put the build definitions for all host programs there; make all Makefiles that use bsd.hostprog.mk include it. Namely turn off MKREPRO and don't make lint, man pages, info files etc. Remove the Makefile.inc files that contained these same settings, and remove the settings from Makefile.host
|
| 1.82 |
| 01-May-2018 |
christos | PR/53238: Robert Elz: Disable MKREPRO in tools; the host compiler might not support the necessary options. This is done thusly:
1. Set MKREPRO=no in Makefile.host. This handles all the Makefiles that use it and don't include bsd.own.mk. 2. Create Makefile.inc and set MKREPRO=no in it. Change the Makefiles that include bsd.own.mk, to include bsd.init.mk which includes Makefile.inc first. This will also allow us to control other tools options from a single location if we need to.
XXX: pullup-8
|
| 1.81 |
| 06-Mar-2016 |
aymeric | branches: 1.81.8; 1.81.14; add our libc's regex implementation to libnbcompat.
This way, nbsed picks it up and it unbreaks the build of xf86-video-intel-old's man page under Linux and probably other future changes which rightfully expect the (net)bsd behaviour.
Full release tested on ArchLinux and NetBSD 7.0_STABLE
|
| 1.80 |
| 01-Mar-2016 |
martin | Revert to rev 1.77 for now on Aymeric's request
|
| 1.79 |
| 01-Mar-2016 |
aymeric | remove regsub.c from the list of files to build because it unbreaks the build and this API is not yet endorsed. OK christos@
|
| 1.78 |
| 29-Feb-2016 |
aymeric | add our libc's regex implementation to libnbcompat.
This way, nbsed picks it up and it unbreaks the build of xf86-video-intel-old's man page under Linux and probably other future changes which rightfully expect the (net)bsd behaviour.
|
| 1.77 |
| 09-Jan-2016 |
christos | lex source moved.
|
| 1.76 |
| 17-Sep-2015 |
christos | undo previous; include is in ${.OBJDIR}
|
| 1.75 |
| 17-Sep-2015 |
christos | make this more robust by using .CURDIR to cd.
|
| 1.74 |
| 26-Jul-2015 |
kamil | Add reallocarr(3) to tools/compat
This should unbreak libutil(3) creation on systems withot reallocarr(3).
|
| 1.73 |
| 18-Jan-2015 |
christos | add strtoi strtou (Kamil Rytarowski)
|
| 1.72 |
| 16-Jan-2014 |
christos | branches: 1.72.4; Add the {v,}{err,warn}c functions
|
| 1.71 |
| 09-Jan-2014 |
apb | Declare and define strnlen if necessary.
|
| 1.70 |
| 11-Dec-2013 |
joerg | Allow kernel code to access constant databases by moving cdbr(3) and the required mi_vector_hash(3) into src/common.
|
| 1.69 |
| 06-Aug-2013 |
apb | Compile snprintb.c into libnbcompat. The source file is found in the common/lib/libutil directory.
|
| 1.68 |
| 05-Mar-2013 |
christos | add dprintf
|
| 1.67 |
| 10-Dec-2012 |
christos | first define HOSTLIB and then include bsd.own.mk!
|
| 1.66 |
| 09-Dec-2012 |
christos | restore the find loop to include files generated by configure
|
| 1.65 |
| 09-Dec-2012 |
christos | handle the list of files and directories generated dynamically by configure
|
| 1.64 |
| 09-Dec-2012 |
christos | make this work
|
| 1.63 |
| 09-Dec-2012 |
christos | Include <bsd.own.mk> to give a chance to ${TOOLDIR} to be defined before using it in rules. Before there was another .mk file included before ${TOOLDIR} was used.
|
| 1.62 |
| 09-Dec-2012 |
apb | Use a "find | while read" loop to install all *.h files anywhere under ${.OBJDIR}/include, and remove the previous hack of touching a "dummy" file in each subdirectory. This should fix a problem on some platforms where include files directly under ${.OBJDIR}/include (not in a subdirectory) were not installed.
|
| 1.61 |
| 02-Dec-2012 |
apb | Make tools/compat/Makefile install the library in ${TOOLDIR}/lib/libnbcompat.a, install the include files in ${TOOLDIR}/include/compat/**, and install defs.mk in ${TOOLDIR}/share/compat/defs.mk. Previously, nothing from tools/compat was installed under TOOLDIR.
Adjust tools/compat/Makefile to use an uninstalled copy of host-mkdep from the .OBJDIR of tools/host-mkdep, and an uninstalled copy of the install program from the .OBJDIR of tools/binstall. This allows it to be built after tools/host-mkdep is built but before tools/host-mkdep is installed; and to be installed after tools/binstall is built but before tools/binstall is installed.
|
| 1.60 |
| 02-Dec-2012 |
apb | Teach tools/compat/Makefile to use an uninstalled copy of host-mkdep from the.OBJDIR of tools/host-mkdep. This is in preparation for building all three of tools/host-mkdep, tools/compat, and tools/binstall, before installing any of them.
While here, also move the regen target to the end.
|
| 1.59 |
| 04-Jun-2012 |
joerg | branches: 1.59.2; Add cdbr(3) support to tools/compat.
|
| 1.58 |
| 04-Jun-2012 |
joerg | Build getcap.c only once.
|
| 1.57 |
| 03-Jun-2012 |
joerg | Add a special seeder for cdbw_output that gives stable results. Hook up cdbw(3) for the tool build.
|
| 1.56 |
| 18-Feb-2012 |
njoly | Adjust libyywrap.c location.
|
| 1.55 |
| 03-Nov-2011 |
joerg | branches: 1.55.2; Add getline.c here too.
|
| 1.54 |
| 03-Feb-2010 |
roy | branches: 1.54.6; Userland now builds and uses terminfo instead of termcap.
OK: core@, jdc@
|
| 1.53 |
| 17-Jun-2009 |
christos | add fpurge
|
| 1.52 |
| 18-Oct-2008 |
tsutsui | 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.
|
| 1.51 |
| 28-Sep-2007 |
lukem | add raise_default_signal
|
| 1.50 |
| 07-Aug-2007 |
apb | branches: 1.50.2; More detailed instructions for what to do when editing configure.ac. In particular, discourage the use of non-tools versions of autoconf and autoheader.
|
| 1.49 |
| 03-Jul-2007 |
nakayama | Add strndup(3) to libnbcompat, since estrndup(3) added into efun.c calls it.
|
| 1.48 |
| 14-Dec-2006 |
he | 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
|
| 1.47 |
| 29-Oct-2006 |
dogcow | branches: 1.47.2; 1.47.4; ...and one more for xcompilation (due to lib/libc/hash/sha1/sha1hl.c, sigh.)
|
| 1.46 |
| 27-Oct-2006 |
mrg | add ${.CURDIR}/../../common/lib/libc/hash/{rmd160,sha2} to the .PATH so that these sources are found after this code moved.
(hi christos!)
|
| 1.45 |
| 08-Oct-2006 |
thorpej | Put common/lib/libc/stdlib into .PATH. From Hisashi T Fujinaka.
|
| 1.44 |
| 26-Aug-2006 |
christos | Some tools need efuns.
|
| 1.43 |
| 20-May-2006 |
christos | Don't remove files that are needed for a build after make clean. Before 'make clean; make' failed in tools because necessary configure generated files were removed. The failure manifested itself with string_to_flags being undefined in binstall.
|
| 1.42 |
| 11-Feb-2006 |
wiz | Redo previous differently: use AH_TOP and AH_BOTTOM macros to insert header and footer into nbtool_config.h.in directly.
|
| 1.41 |
| 11-Feb-2006 |
wiz | Make using autoheader easier: split off the autogenerated file into nbtool_config_internal.h, and let nbtool_config.h be a file with the proper wrappers.
This way you can just change configure.ac, run autoconf and autoheader, verify the result, and commit, but don't have to edit nbtool_config*in manually every time.
|
| 1.40 |
| 20-Dec-2005 |
christos | Search the new common framework.
|
| 1.39 |
| 24-Sep-2005 |
elad | Sync with recent MD2 changes.
|
| 1.38 |
| 24-Sep-2005 |
elad | Sync with recent changes.
|
| 1.37 |
| 13-Sep-2005 |
christos | We don't need any ndbm sources.
|
| 1.36 |
| 13-Sep-2005 |
christos | don't use the _foo.c files; all the code is in foo.c now.
|
| 1.35 |
| 13-Sep-2005 |
christos | compat reorg.
|
| 1.34 |
| 26-Aug-2005 |
elad | Pull in SHA2 routines from libc to nbcompat.
|
| 1.33 |
| 19-Aug-2005 |
christos | 64 bit inode changes
|
| 1.32 |
| 28-Nov-2004 |
jmc | branches: 1.32.2; Add heapsort to libnbcompat
|
| 1.31 |
| 20-Jun-2004 |
jmc | Completely rework how tools/compat is done. Purge all uses/references to _NETBSD_SOURCE as this makes cross building from older/newer versions of NetBSD harder, not easier (and also makes the resulting tools 'different')
Wrap all required code with the inclusion of nbtool_config.h, attempt to only use POSIX code in all places (or when reasonable test w. configure and provide definitions: ala u_int, etc).
Reviewed by lukem. Tested on FreeBSD 4.9, Redhat Linux ES3, NetBSD 1.6.2 x86 NetBSD current (x86 and amd64) and Solaris 9.
Fixes PR's: PR#17762 PR#25944
|
| 1.30 |
| 18-Jun-2004 |
thorpej | Use ${_TOOL_PREFIX} as appropriate.
|
| 1.29 |
| 03-May-2004 |
jmc | Make this build on non-NetBSD again (specifically linux). Exclude __ndbm13.c from the imported db sources as well
|
| 1.28 |
| 27-Oct-2003 |
lukem | branches: 1.28.2; Overhaul how `build.sh tools' are used:
* Rename "config.h" to "nbtool_config.h" and HAVE_CONFIG_H to HAVE_NBTOOL_CONFIG_H. This makes in more obvious in the source when we're using tools/compat/config.h versus "standard autoconf" config.h
* Consistently move the inclusion of nbtool_config.h to before <sys/cdefs.h> so that the former can provide __RCSID() (et al), and there's no need to protect those macros any more.
These changes should make it easier to "tool-ify" a program by adding: #if HAVE_NBTOOL_CONFIG_H #include "nbtool_config.h" #endif to the top of the source files (for the general case).
|
| 1.27 |
| 26-Oct-2003 |
lukem | Use ${HOST_SH} instead of `sh'.
If necessary, pull in <bsd.sys.mk> to get the definition of HOST_SH; Makefiles that pull in one of (most of) <bsd.*.mk> will get this anyway.
|
| 1.26 |
| 01-Aug-2003 |
lukem | Rework how dependency generation is performed:
* DPSRCS contains extra dependencies, but is _NOT_ added to CLEANFILES. This is a change of behaviour. If a Makefile wants the clean semantics it must specifically append to CLEANFILES. Resolves PR toolchain/5204.
* To recap: .d (depend) files are generated for all files in SRCS and DPSRCS that have a suffix of: .c .m .s .S .C .cc .cpp .cxx
* If YHEADER is set, automatically add the .y->.h to DPSRCS & CLEANFILES
* Ensure that ${OBJS} ${POBJS} ${LOBJS} ${SOBJS} *.d depend upon ${DPSRCS}
* Deprecate the (short lived) DEPENDSRCS
Update the various Makefiles to these new semantics; generally either adding to CLEANFILES (because DPSRCS doesn't do that anymore), or replacing specific .o dependencies with DPSRCS entries.
Tested with "make -j 8 distribution" and "make distribution".
|
| 1.25 |
| 29-Jul-2003 |
fredb | Must add "configure.lineno" to CLEANFILES after updating to autoconf 2.57.
|
| 1.24 |
| 03-Jun-2003 |
uwe | Add atoll(3) to libnbcompat. We need it when building target's gcc for a 64-bit target on a 32-bit host.
NB: There seems to be a bug in either gcc itself or the way we import it, b/c the incorrect #define HAVE_ATOLL is picked from (e.g. for sparc64) gnu/usr.bin/gcc/arch/sparc64/auto-host.h - so when gen* auxilary (host) programs are built in gnu/usr.bin/gcc/backend, they incorrectly pick-up target's HAVE_ATOLL.
For now providing atoll(3) in libnbcompat is a simple and sufficient workaround.
|
| 1.23 |
| 28-Apr-2003 |
bjh21 | Add a new feature-test macro, _NETBSD_SOURCE. If this is defined by the application, all NetBSD interfaces are made visible, even if some other feature-test macro (like _POSIX_C_SOURCE) is defined. <sys/featuretest.h> defined _NETBSD_SOURCE if none of _ANSI_SOURCE, _POSIX_C_SOURCE and _XOPEN_SOURCE is defined, so as to preserve existing behaviour.
This has two major advantages: + Programs that require non-POSIX facilities but define _POSIX_C_SOURCE can trivially be overruled by putting -D_NETBSD_SOURCE in their CFLAGS. + It makes most of the #ifs simpler, in that they're all now ORs of the various macros, rather than having checks for (!defined(_ANSI_SOURCE) || !defined(_POSIX_C_SOURCE) || !defined(_XOPEN_SOURCE)) all over the place.
I've tried not to change the semantics of the headers in any case where _NETBSD_SOURCE wasn't defined, but there were some places where the current semantics were clearly mad, and retaining them was harder than correcting them. In particular, I've mostly normalised things so that _ANSI_SOURCE gets you the smallest set of stuff, then _POSIX_C_SOURCE, _XOPEN_SOURCE and _NETBSD_SOURCE in that order.
Tested by building for vax, encouraged by thorpej, and uncontested in tech-userlevel for a week.
|
| 1.22 |
| 14-Mar-2003 |
thorpej | Add a putc_unlocked().
|
| 1.21 |
| 13-Mar-2003 |
thorpej | Disable pre-compiled headers on Darwin.
|
| 1.20 |
| 04-Dec-2002 |
lukem | Tweak dependencies so that defs.mk depends upon config.cache, and config.cache depends upon 'include/.stamp configure config.h.in defs.mk.in' and runs configure. Forcebly remove config.cache before running configure.
This change means that config.cache is (still) retained between "make clean" (but not "make cleandir") runs, but is flushed if configure or config.h.in is changed, as the cache may contain incorrect information in that case.
|
| 1.19 |
| 30-Nov-2002 |
lukem | - Migrate fparseln(3) from libutil to libc, where it should have been in the first place... - Bump libutil major (to 7.0) and libc minor (to 12.91).
|
| 1.18 |
| 29-Nov-2002 |
lukem | replace missing strsuftoll(3)
|
| 1.17 |
| 08-Oct-2002 |
lukem | Implement replacements for lchflags(), lchmod(), and lchown(), which first lstat(2) the target and return EINVAL if it's a symlink, and then call ch{flags,mod,own} as appropriate. Removes the need for hokey code inside the tools themselves...
|
| 1.16 |
| 06-Oct-2002 |
lukem | Provide strtoll() in libnbcompat. Should fix relevant build issue on HP-UX and MacOS X hosts.
|
| 1.15 |
| 14-Sep-2002 |
thorpej | * Check for mkstemp() and mkdtemp(), and build them into libnbcompat if necessary. * mktemp is now a host-tool, so nuke the lame script (which isn't even properly installed during the tools bootstrap).
|
| 1.14 |
| 13-Sep-2002 |
thorpej | * Always include the NetBSD glob(3) in libnbcompat, as the host tools use some features of glob(3) that are not available on all systems. * Always include the NetBSD vis(3) in libnbcompat, since vis(3) is not really standardized, and the vis(3) present on some systems is different from ours. * Always include the NetBSD MD2, MD4, MD5, RMD160, and SHA1 implementations in libnbcompat. The host tools use features of the NetBSD versions which aren't present on all systems that include those functions. * Add a check for random(3) -- the Heimdal host tools want it. * Add a check for termios.h -- the Heimdal host tools want it. * Update the README to indicate the current state of building the host tools on Solaris 8 (for SPARC).
|
| 1.13 |
| 18-Apr-2002 |
tv | branches: 1.13.2; Actually put the include directory timestamp under the "include" directory, such that nuking the dir by hand also nukes the timestamp.
|
| 1.12 |
| 18-Apr-2002 |
bjh21 | Add a stub issetugid() for platforms that don't have it. For now, we assume that no host program will be installed set-id, so the stub function always returns 0.
|
| 1.11 |
| 01-Apr-2002 |
bjh21 | Revert addition of mkdtemp() to libnbcompat. I don't think we need mktemp(1) after all.
|
| 1.10 |
| 31-Mar-2002 |
bjh21 | Add mkdtemp to libnbcompat, since glibc doesn't have it an mktemp(1) will need it.
|
| 1.9 |
| 31-Mar-2002 |
bjh21 | Add the md[245], sha1 and rmd160 functions to libnbcompat, conditional on their not being in the host libc. This will be necessary to make cksum into a host tool.
|
| 1.8 |
| 26-Feb-2002 |
tv | Add some more bits of host compatibility.
|
| 1.7 |
| 31-Jan-2002 |
tv | 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.
|
| 1.6 |
| 29-Jan-2002 |
tv | Make almost all tools compile and run properly on non-NetBSD hosts. (In particular, most tools now run correctly on Solaris 7.)
|
| 1.5 |
| 24-Jan-2002 |
lukem | - Replace pwcache(3) if necessary (pwcache_userdb(3) is checked for). Tested on -current and 1.5.3. - Wrap some long lines.
|
| 1.4 |
| 21-Jan-2002 |
lukem | reachover to ../../lib/libutil for fparseln.c
|
| 1.3 |
| 21-Jan-2002 |
tv | Make many host tools compile on non-NetBSD hosts. Not complete, but very nearly there.
|
| 1.2 |
| 04-Jan-2002 |
lukem | Add replacement fgetln(3) (from lukemftp/libukem), as fparseln(3) uses it
|
| 1.1 |
| 11-Dec-2001 |
tv | Add the framework for autoconf-based src/tools/compat structure. This will (after it is more fleshed out) allow the host tools to work more cleanly on non-NetBSD hosts.
|
| 1.13.2.3 |
| 12-Jul-2004 |
he | Pull up revision 1.17 (requested by cgd in ticket #1719): Implement replacements for lchflags(), lchmod(), and lchown(), to enable cross-building on more host systems.
|
| 1.13.2.2 |
| 30-Nov-2002 |
he | Pull up revision 1.15 (requested by thorpej in ticket #807): o Check for mkstemp() and mkdtemp(), and build them into libcompat if necessary. o mktemp is now a host-tool, so remove the now obsoleted script.
|
| 1.13.2.1 |
| 03-Nov-2002 |
he | Pull up revision 1.14 (requested by thorpej in ticket #797): Include various more functions in libnbcompat, mostly becuase our tools use features not universally present in other versions. This applies to glob(3), vis(3), and the MD2, MD4, RMD160 and SHA1 implementations. Also add checks for random(3) and termios.h for the Heimdal host tools. Update README to indicate the current state of building the host tools on Solaris 8 (for SPARC).
|
| 1.28.2.1 |
| 22-Jun-2004 |
tron | branches: 1.28.2.1.2; Pull up revision 1.31 (requested by jmc in ticket #527): Completely rework how tools/compat is done. Purge all uses/references to _NETBSD_SOURCE as this makes cross building from older/newer versions of NetBSD harder, not easier (and also makes the resulting tools 'different') Wrap all required code with the inclusion of nbtool_config.h, attempt to only use POSIX code in all places (or when reasonable test w. configure and provide definitions: ala u_int, etc). Reviewed by lukem. Tested on FreeBSD 4.9, Redhat Linux ES3, NetBSD 1.6.2 x86 NetBSD current (x86 and amd64) and Solaris 9. Fixes PR's: PR#17762 PR#25944
|
| 1.28.2.1.2.1 |
| 06-Apr-2005 |
he | Pull up revision 1.32 (requested by jmc in ticket #1026): Convert remaining host tools for amiga to correct cross tools. Now allows complete amiga builds on non-NetBSD and non-BSD hosts.
|
| 1.32.2.1 |
| 08-Sep-2005 |
tron | Apply patch (requested by elad in ticket #743): Introduce SHA2 hashing routines in userland, including the common helper routines.
|
| 1.47.4.1 |
| 03-Sep-2007 |
wrstuden | Sync w/ NetBSD-4-RC_1
|
| 1.47.2.2 |
| 18-Nov-2008 |
snj | Pull up following revision(s) (requested by tsutsui in ticket #1224): tools/compat/Makefile: revision 1.52 tools/compat/configure.ac: revision 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. Tested by "build.sh -m i386 -U release" on CYGWIN_NT-5.1-1.5.25, and should close PR toolchain/29032.
|
| 1.47.2.1 |
| 30-Aug-2007 |
pavel | Pull up following revision(s) (requested by apb in ticket #827): tools/compat/Makefile: revision 1.50 tools/compat/compat_defs.h: revision 1.60 tools/compat/configure.ac: revision 1.62-1.64 More detailed instructions for what to do when editing configure.ac. In particular, discourage the use of non-tools versions of autoconf and autoheader. 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. Update the instructions to say that regen should be done again to pick up changed RCS IDs.
|
| 1.50.2.1 |
| 06-Nov-2007 |
matt | sync with HEAD
|
| 1.54.6.5 |
| 22-May-2014 |
yamt | sync with head.
for a reference, the tree before this commit was tagged as yamt-pagecache-tag8.
this commit was splitted into small chunks to avoid a limitation of cvs. ("Protocol error: too many arguments")
|
| 1.54.6.4 |
| 16-Jan-2013 |
yamt | sync with (a bit old) head
|
| 1.54.6.3 |
| 30-Oct-2012 |
yamt | sync with head
|
| 1.54.6.2 |
| 17-Apr-2012 |
yamt | sync with head
|
| 1.54.6.1 |
| 10-Nov-2011 |
yamt | sync with head
|
| 1.55.2.2 |
| 23-Jun-2012 |
riz | Pull up following revision(s) (requested by joerg in ticket #328): lib/libc/gen/devname.c: revision 1.22 distrib/sparc64/instfs/dot.profile: revision 1.7 distrib/i386/cdroms/install.sh: revision 1.3 tests/lib/libcurses/director/director.c: revision 1.10 lib/libc/include/reentrant.h: revision 1.15 distrib/amd64/cdroms/install.sh: revision 1.3 tests/include/t_paths.c: revision 1.12 share/man/man7/hier.7: revision 1.101 etc/rc.d/sysdb: revision 1.24 include/stdlib.h: revision 1.99 tests/lib/libcurses/Makefile: revision 1.3 distrib/sparc64/cdroms/installcd/install.sh: revision 1.3 distrib/i386/cdroms/Makefile.cdrom: revision 1.27 lib/libc/gen/ttyname.c: revision 1.25 usr.bin/tic/Makefile: revision 1.2 tools/compat/Makefile: revision 1.57 lib/libterminfo/compile.c: revision 1.7 lib/libc/gen/ttyname.c: revision 1.26 lib/libterminfo/compile.c: revision 1.8 tools/compat/Makefile: revision 1.59 tools/compat/cdbw.h: revision 1.1 distrib/i386/installimage/install.sh: revision 1.2 lib/libc/include/namespace.h: revision 1.154 usr.bin/tic/tic.c: revision 1.13 usr.bin/tic/tic.c: revision 1.14 usr.bin/tic/tic.c: revision 1.15 distrib/sets/lists/base/mi: revision 1.996 usr.bin/tic/tic.c: revision 1.16 usr.sbin/dev_mkdb/dev_mkdb.8: revision 1.13 usr.bin/tic/tic.c: revision 1.17 usr.bin/tic/tic.c: revision 1.18 tools/compat/cdbr.h: revision 1.1 distrib/sparc64/instfs/list: revision 1.25 usr.bin/tic/tic.c: revision 1.19 lib/libc/cdb/cdbw.c: revision 1.4 lib/libc/cdb/cdbw.3: revision 1.4 lib/libc/cdb/cdbw.3: revision 1.5 share/terminfo/Makefile: revision 1.3 usr.sbin/dev_mkdb/dev_mkdb.c: revision 1.29 usr.sbin/dev_mkdb/Makefile: revision 1.8 lib/libc/gen/ttyname.3: revision 1.23 lib/libc/gen/ttyname.3: revision 1.24 lib/libc/cdb/cdbr.c: revision 1.3 include/cdbw.h: revision 1.2 distrib/sparc64/cdroms/installcd/Makefile: revision 1.15 lib/libc/gen/devname.3: revision 1.12 tools/compat/compat_defs.h: revision 1.85 tools/compat/compat_defs.h: revision 1.86 lib/libterminfo/term_private.h: revision 1.10 lib/libterminfo/term.c: revision 1.14 usr.bin/tic/tic.1: revision 1.10 lib/libterminfo/term.c: revision 1.15 lib/libterminfo/Makefile.hash: revision 1.5 lib/libterminfo/term.c: revision 1.16 distrib/amd64/installimage/install.sh: revision 1.2 share/man/man5/rc.conf.5: revision 1.152 distrib/sets/lists/tests/mi: revision 1.472 distrib/amd64/cdroms/Makefile.cdrom: revision 1.7 include/paths.h: revision 1.41 bin/ps/ps.1: revision 1.101 lib/libterminfo/terminfo.5.in: revision 1.16 usr.bin/tic/tic.c: revision 1.20 lib/libterminfo/terminfo.5.in: revision 1.17 Prefer __printflike. Use queue(3) Replace linear lookup with hash table, reducing runtime by 60%. Use e* from util.h. One more strdup -> estrdup. Maintain nalias and nterm on the fly. Add void for ttyslot prototype. Use memcmp in place of strncmp, since length is known to no longer than either of the arguments. Fix a number of memory leaks. Keep final loop of the cleanup in tic(1) under #ifdef __VALGRIND__ though. Add __predict_true / __predict_false definitions. Add a special seeder for cdbw_output that gives stable results. Hook up cdbw(3) for the tool build. Prototype for cdbw_stable_seeder. Provide a usable thr_once for !_REENTRANT Switch device database to cdb(5). Rework ttyname(3) and ttyname_r(3) to depend on new devname_r(3) as heart. Add /dev/pts magic directly to devname(3). While it can lead to returning non-existing paths, the behavior is more consistent that way. Drop caching layer in devname(3), it doesn't buy anything for the common case of having access to the database. Teach devname(3) proper fallback behavior of scanning /dev. Create both old-style and new-style database for now in /etc/rc.d/sysdb. Switch terminfo(3) to cdb(5). Fix typos. Make Alan Barrett happy and add (). Add cdbr(3) support to tools/compat. Bump date for previous. Relax consistency to make it possible to match valid entries. Prefix devname's buffer with /dev/ as ttyname is supposed to return the full path. Reported by Dave Huang.
|
| 1.55.2.1 |
| 23-Feb-2012 |
riz | Pull up following revision(s) (requested by tron in ticket #19): usr.bin/lex/version.h: file removal usr.bin/lex/main.c: file removal usr.bin/lex/libmain.c: file removal usr.bin/lex/COPYING: file removal usr.bin/lex/misc.c: file removal usr.bin/lex/Makefile: file removal usr.bin/lex/dfa.c: file removal tools/compat/Makefile: revision 1.56 external/bsd/flex/dist/libmain.c: revision 1.2 usr.bin/lex/flexdef.h: file removal usr.bin/lex/flex.1: file removal usr.bin/lex/ecs.c: file removal usr.bin/lex/FlexLexer.h: file removal usr.bin/lex/libyywrap.c: file removal usr.bin/lex/config.h: file removal usr.bin/lex/ccl.c: file removal usr.bin/lex/NEWS: file removal usr.bin/lex/flex.skl: file removal usr.bin/lex/scan.l: file removal usr.bin/lex/gen.c: file removal usr.bin/lex/yylex.c: file removal usr.bin/lex/VERSION: file removal usr.bin/lex/initscan.c: file removal usr.bin/lex/sym.c: file removal usr.bin/lex/tblcmp.c: file removal usr.bin/lex/nfa.c: file removal usr.bin/lex/mkskel.sh: file removal external/bsd/flex/dist/libyywrap.c: revision 1.2 usr.bin/lex/parse.y: file removal this has not been used for ages. Adjust libyywrap.c location. fix prototypes
|
| 1.59.2.3 |
| 20-Aug-2014 |
tls | Rebase to HEAD as of a few days ago.
|
| 1.59.2.2 |
| 23-Jun-2013 |
tls | resync from head
|
| 1.59.2.1 |
| 25-Feb-2013 |
tls | resync with head
|
| 1.72.4.1 |
| 22-Apr-2015 |
snj | Pull up following revision(s) (requested by roy in ticket #648): common/lib/libc/stdlib/_strtoi.h: revisions 1.1, 1.2 common/lib/libc/stdlib/strtoi.c: revision 1.1 common/lib/libc/stdlib/strtou.c: revision 1.1 distrib/sets/lists/base/ad.aarch64: patch distrib/sets/lists/base/ad.arm: patch distrib/sets/lists/base/ad.mips: patch distrib/sets/lists/base/ad.powerpc: patch distrib/sets/lists/base/md.amd64: patch distrib/sets/lists/base/md.sparc64: patch distrib/sets/lists/base/shl.mi: patch distrib/sets/lists/comp/mi: revision 1.1939 distrib/sets/lists/debug/ad.aarch64: patch distrib/sets/lists/debug/ad.arm: patch distrib/sets/lists/debug/ad.mips: patch distrib/sets/lists/debug/ad.powerpc: patch distrib/sets/lists/debug/md.amd64: patch distrib/sets/lists/debug/md.sparc64: patch distrib/sets/lists/debug/shl.mi: patch include/inttypes.h: revision 1.11 lib/libc/shlib_version: patch lib/libc/stdlib/Makefile.inc: revision 1.84 lib/libc/stdlib/strtol.3: revisions 1.27-1.31 lib/libc/stdlib/strtoul.3: revisions 1.26-1.29 sys/lib/libkern/Makefile.libkern: revision 1.37 sys/lib/libkern/libkern.h: revision 1.117 tools/compat/Makefile: revision 1.73 tools/compat/compat_defs.h: revision 1.101 tools/compat/configure.ac: revision 1.83 tools/compat/configure: revision 1.82 tools/compat/nbtool_config.h.in: revision 1.36 add strto{i,u} from Kamil Rytarowski as discussed in tech-userlevel. -- strtoi and strtou additions -- strtoi and strtou for the kernel -- strtoi and strtou additions -- strtoi and strtou man pages -- strto{i,u} -- regen -- Remove trailing whitespace. -- match variable names with man page (Kamil Rytarowski) -- cleanups from (Kamil Rytarowski) -- add strtoi strtou (Kamil Rytarowski) -- PR/49640: Kamil Rytarowski: Improve error printing -- Use existing month for Dd.
|
| 1.81.14.2 |
| 06-Sep-2018 |
pgoyette | Sync with HEAD
Resolve a couple of conflicts (result of the uimin/uimax changes)
|
| 1.81.14.1 |
| 02-May-2018 |
pgoyette | Synch with HEAD
|
| 1.81.8.1 |
| 05-May-2018 |
martin | Pull up following revision(s) (requested by christos in ticket #796):
tools/mdsetimage/Makefile: revision 1.15 tools/compat/Makefile: revision 1.82 tools/gdb/Makefile: revision 1.35 tools/lorder/Makefile: revision 1.13 tools/gcc/Makefile: revision 1.85 tools/dtc/Makefile: revision 1.3 tools/cvslatest/Makefile: revision 1.2 tools/ctfmerge/Makefile: revision 1.8 tools/libelf/Makefile: revision 1.9 tools/libdwarf/Makefile: revision 1.8 tools/ctfconvert/Makefile: revision 1.7 tools/makekeys/Makefile: revision 1.2 tools/gettext/Makefile: revision 1.7 tools/binstall/Makefile: revision 1.12 tools/libfdt/Makefile: revision 1.3 tools/libctf/Makefile: revision 1.7 tools/binutils/Makefile: revision 1.27 tools/mandoc/Makefile: revision 1.11 tools/Makefile.host: revision 1.32 tools/dbsym/Makefile: revision 1.13 tools/genassym/Makefile: revision 1.7 tools/Makefile.inc: revision 1.14
PR/53238: Robert Elz: Disable MKREPRO in tools; the host compiler might not support the necessary options. This is done thusly:
1. Set MKREPRO=no in Makefile.host. This handles all the Makefiles that use it and don't include bsd.own.mk. 2. Create Makefile.inc and set MKREPRO=no in it. Change the Makefiles that include bsd.own.mk, to include bsd.init.mk which includes Makefile.inc first. This will also allow us to control other tools options from a single location if we need to.
XXX: pullup-8
|
| 1.83.2.1 |
| 10-Jun-2019 |
christos | Sync with HEAD
|
| 1.87.2.1 |
| 19-Oct-2025 |
martin | Pull up following revision(s) (requested by mrg in ticket #1973):
tools/compat/configure.ac: revision 1.111 tools/compat/compat_defs.h: revision 1.126 tools/compat/compat_defs.h: revision 1.127 usr.bin/nbperf/nbperf.c: revision 1.7 bin/pax/options.c: revision 1.120 tools/compat/nbtool_config.h.in: revision 1.59 (patch) tools/compat/Makefile: revision 1.95 (patch) tools/compat/configure.ac: revision 1.110 (patch) tools/compat/configure (patch for regen from above)
Don't use arc4random for the tools build on NetBSD either. compat_defs.h explicitly forces _POSIX_SOURCE and this hides the prototype in stdlib.h. pax: need <strings.h> for ffs()
Fixes warning as host tool on NetBSD 9.99
Add more functions needed by mandoc
add vsyslog decl check
|
| 1.90.2.2 |
| 19-Oct-2025 |
martin | Pull up following revision(s) (requested by mrg in ticket #1174):
tools/compat/configure.ac: revision 1.111 (patch) tools/compat/compat_defs.h: revision 1.126 (patch) tools/compat/compat_defs.h: revision 1.127 (patch) bin/pax/options.c: revision 1.120 tools/compat/nbtool_config.h.in: revision 1.59 (patch) tools/compat/Makefile: revision 1.95 (patch) tools/compat/configure.ac: revision 1.110 (patch)
pax: need <strings.h> for ffs()
Fixes warning as host tool on NetBSD 9.99
Add more functions needed by mandoc
add vsyslog decl check
|
| 1.90.2.1 |
| 17-Nov-2024 |
martin | Pull up following revision(s) (requested by kre in ticket #1004):
tools/compat/configure: revision 1.106 lib/libc/string/__strsignal.c: revision 1.26 tools/compat/configure.ac: revision 1.108 tools/compat/nbtool_config.h.in: revision 1.57 usr.bin/elf2aout/elf2aout.c: revision 1.24 tools/compat/Makefile: revision 1.93 sys/arch/macppc/stand/fixcoff/fixcoff.c: revision 1.13 tools/compat/compat_defs.h: revision 1.123
Include <arpa/inet.h> for htonl() (From Jan-Benedict Glaw) Probably this should be using htobe32() instead of htonl() (and so <endian.h> rather than <arpa/inet.h>) as there is no sign of any network anywhere near here. But that's for another day, and to be done by someone who can test it.
Portability fixes from Jan-Benedict Glaw The args to help() and usage() need to be const char * and main() should be declared as returning int.
Add shquote to libnbcompat Include shquote() in configure tests Regen for added shquote()
Stop attempting to return a (char*) in place of (const char *) This removes a cast that was added in 1994, when __strsignal() returned a char * to convert the const char * element of sys_siglist into a type that matched.
It should have been removed when __strsignal() was changed to return const char * in 1998. But wasn't.
This should fix an inane warning (treated as an error) from a compile stupid enough to allow a natural char * (as in char buf[N]) to be returned as a result (which is, of course, fine), but complains about returning (char *) applied to a (const char *).
|
| 1.92.2.1 |
| 02-Aug-2025 |
perseant | Sync with HEAD
|
| 1.94.2.1 |
| 19-Oct-2025 |
martin | Pull up following revision(s) (requested by mrg in ticket #56):
tools/compat/configure.ac: revision 1.111 tools/compat/compat_defs.h: revision 1.126 tools/compat/compat_defs.h: revision 1.127 tools/compat/nbtool_config.h.in: revision 1.60 tools/compat/nbtool_config.h.in: revision 1.61 lib/libc/stdio/mkstemps.c: revision 1.2 tools/compat/configure: revision 1.108 tools/compat/configure: revision 1.109 tools/compat/nbtool_config.h.in: revision 1.59 tools/compat/Makefile: revision 1.95 tools/compat/configure.ac: revision 1.110
Add more functions needed by mandoc
regen
add vsyslog decl check
regen
Do the nbtool dance.
|