summaryrefslogtreecommitdiff
path: root/pkgtools/libnbcompat
AgeCommit message (Collapse)AuthorFilesLines
2005-02-20don't use the implied source in the `bits' rule, just specify thegrant1-2/+2
source. appeases make(1) on Solaris.
2005-02-15redo previous in a slightly different way to appease NetBSD make(1).grant1-2/+4
2005-02-15Revert previous, since it breaks compilation on 2.0 and -current.wiz1-4/+3
See PR 29387.
2005-02-15honour LDFLAGS when linking the `bits' binary.grant1-3/+4
2005-02-04src2nbcompat uses \n backreferences in gensub, which isn't supported injlam1-2/+2
the NetBSD 2.0 awk, so make explicit that we're using gawk.
2005-01-06Don't "cp -p" for *source* files. Builds are usually done as an unprivilegedtv1-2/+2
user, so it's not nice to try to use an option that will try to chown if the repository isn't owned by the builder. (Some OS's do in fact cause an error when the chown in "cp -p" fails.)
2004-12-12update config.{sub,guess} for various bootstrap tools. fixes build ongrant2-173/+374
newer platforms such as DragonFly. fixes PR pkg/28579 from Todd Willey.
2004-12-04re-work workaround for __unvis13 namespace clash by renaming it togrant1-6/+6
__nbcompat_unvis13. fixes build on older NetBSD and Linux/sparc.
2004-12-03fix previous.grant1-3/+3
2004-12-03backout previous; it causes build failure on Solaris. must investigategrant1-8/+2
further...
2004-12-03add workaround for __unvis13 symbol clash on NetBSD 1.4.3. bootstrapgrant1-3/+9
now builds successfully on NetBSD 1.4.3.
2004-10-24fix detection of poll() for Darwin 7.x which has a poll()grant3-5/+9
compatibility function, but none of the required headers. fixes bootstrap on Darwin 7.5.0 with gcc and xlc.
2004-09-23Capitalize first letter of COMMENT.reed1-2/+2
2004-09-11Bump build dependency to latest libnbcompat.jlam1-2/+2
2004-09-11Update pkgtools/libnbcompat to 20040911. Changes from version 20040822jlam6-64/+37
include fixing fgetln() to account for \0 characters due to implementing it using fgets() (analysis provided by Urban Boquist). Also add a definition for __restrict if not present since it is used in the regex implementation code from src HEAD. This has been tested to work correctly on: FreeBSD-4.8/i386 NetBSD-1.6.2/i386 Solaris 9
2004-08-31Change the way that we disable unwanted code regions... just #undef _LIBC.jlam3-21/+21
2004-08-23Fix minor problem in #if condition.jlam1-3/+3
2004-08-23Update pkgtools/libnbcompat to 20040822. Changes from version 20040814jlam84-2604/+4024
include: * Rework the way that poll() is detected so that it more closely follows how the rest of the replacement functions are detected. * Split err*() and warn*() functions into separate err.c and warn.c files so that we can more finely isolate the objects files pulled in by the linker. This should fix building textproc/nbsed on Solaris. * Move more definitions from nbcompat.h into nbcompat/*.h. This makes it more clear which NetBSD headers are expected to provide which function declarations and macro definitions. * Clean out nbconfig.h by moving all of the relevant definitions into the correct nbcompat/*.h files. * Update all of the library functions to the latest from src HEAD. Also change the way that sources are modified when imported -- we now include <nbcompat.h> before the first system header, include <nbcompat/*.h> versions of headers instead of system ones where available, and "#if 0" the sections that make no sense when being built outside of the NetBSD source tree. This should make future updates from src HEAD, e.g. for security updates or bug fixes, easier. * Move all private headers into a subdirectory and include the headers from the private directory. This avoids any nameclashes with system headers with the same name.
2004-08-21Fix error in the use of "next"... it means to skip the line, not skip tojlam1-11/+11
the next pattern.
2004-08-21Fix the version number of the package in the configure script, and modifyjlam4-32/+38
the Makefiles so that they can be built by really basic make programs. Move the awk script in the Makefile into a separate file for clarity, and so that really basick make programs won't choke on the continuation lines.
2004-08-20Fix a spell-o and add a strategically valuable comma.schmonz1-3/+3
2004-08-20Deal with HAVE_NBTOOL_CONFIG_H in some sources on the HEAD.jlam1-1/+9
2004-08-20Allow copying individual files instead of whole directory trees.jlam1-39/+67
2004-08-19Works on Interix 3.5.schmonz1-1/+2
2004-08-17Works on Red Hat Enterprise Linux 3.schmonz1-1/+2
2004-08-16Update pkgtools/libnbcompat to 20040814. Changes from version 20040813jlam44-763/+4927
include: * Adding a regex(3) implementation for those platforms that don't have one, e.g. IRIX 5.3. * Allow nbcompat.h to be included multiple times in case it's needed to override values of set by config.h in bootstrap packages. This should fix problems with building pkg_install and pax on platforms that have /usr/include/glob.h. * Remove namespace.h, which should be a no-op since we're building a userland library separate from the NetBSD sources. * Remove HAVE_CONFIG_H checks from sources since we're always going to have and and we're always going to be including it. * Rename all inclusion guards in nbcompat/*.h to be _NBCOMPAT_*_H_ so that it won't get triggered by any settings in system headers. This has been tested on: FreeBSD-4.8/i386 Debian Linux 3.0 (woody) IRIX 6.5 MacOS X 10.2.8 MacOS X 10.3.5 NetBSD-1.6.2/i386 NetBSD-2.0_BETA/i386 Red Hat Linux 7.3 Solaris 7/sparc Solaris 8/sparc Solaris 9/sparc
2004-08-13Add a Makefile fragment that can be used in place ofjlam1-0/+27
libnbcompat/buildlink3.mk where it is included. This can be used to build a bootstrap package without needing to install libnbcompat.
2004-08-13Note working status on Solaris 2.7 (from PR pkg/26625).jlam1-1/+2
2004-08-13Update pkgtools/libnbcompat to 20040813. Changes from version 20040809jlam5-35/+34
include working around an apparent bug in an autoconf macro defined in aclocal.m4. This should now cause getopt_long() to be built on systems that are missing getopt.h. This version of libnbcompat has been tested on the following platforms: FreeBSD-4.8/i386 MacOS X 10.2.8 NetBSD-1.6.2/i386
2004-08-11Verified to build on OpenBSD-3.3/i386.jlam1-1/+2
2004-08-10Update pkgtools/libnbcompat to 20040809. Changes from version 20040805jlam27-610/+1249
include: * Re-adding a default value for pkg_use_nbcompat_vis; this was causing the configure script to fail on platforms that had funky versions of vis(). This should fix reported problems on Solaris 8 and on IRIX 5.3. * Added setgroupent() and setpassent() compatibility functions so that pwcache.c will build without complaining about an incompatible pointer type assignment. * Remove unused tests for <arpa/nameser.h>, <netdb.h>, h_errno and hstrerror(). These were originally used to bootstrap lukemftp, but tnftp doesn't need libnbcompat to build nowadays, so we don't need these anymore. * Cleanup: in cases where we test for a function using AC_REPLACE_FUNCS, move the function prototype into a nbcompat header that is the same name as the NetBSD header that contains that declaration, and include that file in place of the original one within nbcompat.h. This version has been tested to build on the following systems: FreeBSD-4.8/i386 NetBSD-1.6.2/i386 FreeBSD-5.2.1/i386 NetBSD-2.0_BETA/i386 IRIX 6.5 Red Hat Linux 8.0 MacOS X 10.3.4 Solaris 8 MacOS X 10.3.5 Solaris 9
2004-08-06Update pkgtools/libnbcompat to 20040805. Changes from version 20040512jlam23-2534/+2120
include: (1) Add a statvfs() implementation based on statfs(), and remove the statfs() NetBSD-compatibility implementation. statvfs() is used in src/usr.sbin/pkg_install on the HEAD branch. (2) Add a fnmatch() implementation, needed by IRIX. fnmatch() is used in src/usr.sbin/pkg_install on the HEAD branch. (3) Remove fseeko(), inet_ntop(), inet_pton(), sl_*() strptime(), and timegm() as they're not used by any of the bootstrap packages that require libnbcompat (pax, mtree, pkg_install). All that's left is what's necessary to bootstrap those three packages.
2004-05-12bump to 20040512 (another poll.h fix)grant1-2/+2
2004-05-12don't include poll.h or sys/poll.h, but instead, undefine HAVE_POLL_Hgrant1-8/+4
and HAVE_SYS_POLL_H if we don't have a native poll() implementation. prevents including of libnbcompat's poll.h as well as the system's poll.h where we should be ignoring the system's poll.h. fix tested by Jeff Rizzo on MacOSX 10.3.3.
2004-05-09Unused.wiz1-28/+0
2004-04-23make sure we define HAVE_POLL if a usable poll() implementation isgrant3-33/+49
found, and re-arrange the test a little for clarity. fixes build on (at least) FreeBSD 5.x.
2004-04-20bump version to 20040420 (Darwin 7 poll() fix).grant1-2/+2
2004-04-20workaround poll() being a compatibility function on Darwin 7grant4-18/+404
(MacOSX 10.3) by adding a custom test for _POLL_EMUL_H_ which is defined in poll.h on some MacOSX 10.3 systems. not all 10.3 systems have poll.h, so only do the poll() test if at least one of the header files is found.
2004-04-20no need to test for poll() twice.grant2-4/+3
2004-04-18Include limits.h if available to shut down warnings about UINT_MAX onheinz2-1/+9
Unixware. Also tested on Linux, Solaris and NetBSD.
2004-04-16Use statvfs on UnixWare, similar to Solaris and IRIX.heinz2-5/+5
2004-03-28remove NO_TOOLS. we need the tools stuff to have the .sunpro/.gccgrant1-2/+1
links created so the compiler can be found. fixes build problem in sketch's bulk build.
2004-03-21bump to 20040321 for vis.c multiple char[] fix.grant1-2/+2
2004-03-21Some compilers (e.g. Sunpro) emit one char[] per string, even whenbouyer1-5/+7
multiple identical strings appear in a source file. As a result, comparing char *o to the "" pointer gives the wrong result in vis.c, as the "" pointer we're checking against isn't the same as the "" which initialised char *o. Use a global pointer initialised to "", and use it for MAKEEXTRALIST() calls. Thanks to Christos Zoulas for suggesting the right solution :)
2004-03-12#if 0 out the __weak_alias stuff, which isn't needed here. should fixgrant6-11/+23
build on OpenBSD ELF platforms.
2004-03-11Solaris has fsid_t in sys/vfs.h, so include appropriately.sketch2-1/+7
This gets the new pkgsrc bootstrap working on Solaris.
2004-03-11bump to 20040311 for Interix changes.grant1-2/+2
2004-03-11adding a file to cvs requires "cvs add". duh.grant1-0/+59
2004-03-11catch up with bootstrap-pkgsrc changes.grant6-6/+228
- check for existence of fsid_t type, and typedef it if missing - check for existence of struct statvfs.f_basetype field - if <sys/mkdev.h> is included and makedev() is missing, try to use mkdev() - add replacement library file for utimes() by wrappering utime()
2004-03-11catch up with bootstrap-pkgsrc changes.grant1-1/+6
Protect from multiple inclusion, in case system headers try to pull it in (happens on Interix).