Commit graph

171 commits

Author SHA1 Message Date
grant
a77ed0a130 back out revision 1.22 which broke statfs() on Linux and FreeBSD
systems which have both statfs() and statvfs().

while it would be nice to have an OS-independent way of testing
whether to use our statfs() implementation, in reality it is much more
reliable to only use it where required.
2003-09-11 11:26:09 +00:00
grant
fb5ee43622 ensure S_ISTXT is defined if not defined in sys/stat.h. 2003-09-11 10:57:20 +00:00
grant
122e470b55 update version according to autoconf to match reality 2003-09-06 23:05:40 +00:00
grant
8e24fcd47f fix some rcsids 2003-09-06 23:03:00 +00:00
jlam
573a9192d0 Also check for presence of <sys/statfs.h>, and pretend we don't have it if
we use libnbcompat's statfs.
2003-09-06 12:45:47 +00:00
jlam
caa5e5f5b4 Remove the PKG_INSTALLATION_TYPES setting again... this shouldn't be here
yet.
2003-09-06 12:22:26 +00:00
jlam
7943cdd0f8 Modify autoconf tests so that we'll reliably implement BSD statfs()
using statvfs() on systems that provide it.  I'm assuming that the
SVR4 statvfs() is a standardized call across systems that have it.
This should allow IRIX to build the statfs call into libnbcompat.
2003-09-06 12:21:45 +00:00
jlam
d722e66da4 Ensure that struct option is defined properly before accepting that having
getopt.h implies having getopt_long.  Also Fix checks for setmode, pwcache,
and vis so that if any of a list of functions is missing, then use the
nbcompat versions.
2003-09-06 06:13:46 +00:00
grant
8b31674747 fix missing include of getopt.h by including nbcompat.h. 2003-09-06 04:28:16 +00:00
jlam
bdc7bb06a9 Oops, we're not supposed to convert packages to be able to use pkgviews
yet (BTW, this Just Works for anyone interested).
2003-09-06 01:39:29 +00:00
jlam
def1651b81 nbcompat/sha2.h is no more in libnbcompat-20030830. 2003-09-06 01:37:17 +00:00
jlam
880fe6e4f7 Update pkgtools/libnbcompat to 20030830. Changes from the previous
version are removing sha2* object files from libnbcompat.a.  It turns
out that the functions defined there aren't provided by NetBSD, so it
makes no sense for libnbcompat to define them, and none of the
utilities in pkgsrc that link against libnbcompat actually use these
functions anyway.
2003-09-06 01:35:07 +00:00
jlam
5685de4d03 Add back setmode.c which is still needed on systems that don't have
{get,set}mode() that was accidentally deleted.
2003-09-05 22:19:30 +00:00
jlam
60207a145d Update pkgtools/libnbcompat to 20030829. Changes from previous version
include:

    * Move headers out of the global namespace and into the nbcompat
      directory.  Since there are no headers other than nbcompat.h in
      ${PREFIX}/include/libnbcompat, just install it directly in
      ${PREFIX}/include.  Using libnbcompat is now a matter of including
      nbcompat.h at the top of *.c files and linking against -lnbcompat.

    * Only build functions into libnbcompat.a if they aren't already in
      the system libraries.

    * Move several *.[ch] files that are pax- or mtree-specific out
      of libnbcompat (they should belong with those packages).

On NetBSD 1.6 systems, libnbcompat.a now contains just the bare minimum:
the sha2 routines.
2003-09-05 18:35:49 +00:00
jlam
4e37479c34 Use AH_TEMPLATE when we use AC_DEFINE so that autoheader can generate the
symbol and comment in nbconfig.h.in for us in the correct place.  The
previous way of using AH_BOTTOM also worked but separated the symbol
definition from the accompanying C comment text, which was a little harder
to maintain.
2003-09-04 20:20:08 +00:00
jlam
a4fd047c90 Update pkgtools/libnbcompat to 20030828. Changes from previous version
include making mkdtemp() return the correct values on systems that use
libnbcompat's mkdtemp.  Fix by jschauma@netbsd.org.
2003-09-04 01:51:15 +00:00
jlam
ee4ef77170 Update pkgtools/libnbcompat to 20030827. Changes from previous version
include only building __fts13.o into libnbcompat.a if the fts_*()
functions aren't present in the system.
2003-09-03 16:38:36 +00:00
jlam
5fe1f0551a Add and remove some files I forgot to in the last commit. 2003-09-03 13:35:54 +00:00
jlam
deadfb61c8 Add and remove some files I forgot to in the last commit. 2003-09-03 13:35:45 +00:00
jlam
16ddd24bdb Update pkgtools/libnbcompat to 20030826. Changes from previous version:
* Properly declare statfs() and fstatfs() if we use the libnbcompat
      versions.

    * Move some headers into a private directory in the installed
      location so that they don't override headers of the same name
      on the system.

    * Define TAILQ_HEAD_INITIALIZER if it doesn't exist.

    * Add a poll() implementation using select() for poll()-less systems.
      Thanks for Charles Blundell for the implementation!

    * Fix the vis.h check for systems whose vis() is not as featureful
      as NetBSD's.
2003-09-03 13:11:11 +00:00
jlam
f8184589ff Update pkgtools/libnbcompat to 20030825. Changes from version 20030824
are moving the definitions of the TAILQ accessor methods into the top level
of nbcompat.h.  This should fix using nbcompat.h to replace sys/queue.h
on Linux systems.
2003-09-03 07:07:04 +00:00
tron
2016c74f49 Add missing include files. 2003-09-03 06:16:08 +00:00
jlam
5619137743 Actually, extern.h and stat_flags.h are used by pkgtools/mtree.
XXX This should really be done in a different way than installing some
XXX globally-accessible header called "extern.h".
2003-09-03 03:43:45 +00:00
jlam
63ea2414a6 Update pkgtools/libnbcompat to 20030824. Changes from previous version:
* Don't install namespace.h, extern.h and stat_flags.h, which are
      only used internally.

    * Clean up util.h by using '#if !HAVE_xxx' instead of
      '#ifndef !HAVE_xxx', removing some LIST_* definitions that are
      defined by <nbcompat.h>, and removing static declarations.

    * If fparseln is in libutil (as it is in NetBSD), then don't build
      it into libnbcompat.a.
2003-09-03 03:28:23 +00:00
jlam
eecbe2144e Use '#if !HAVE_xxx' instead of '#ifndef HAVE_xxx' to cover cases when
-DHAVE_xxx=0 is set on the command-line.
2003-09-03 01:55:56 +00:00
jlam
4ff65f12e6 If the package uses GNU_CONFIGURE, then automatically add the necessary
options to find the headers and libnbcompat.
2003-09-02 22:19:03 +00:00
jlam
287bd97a65 BUILDLINK_LDADD.libnbcompat contains the options to add to the compiler to
link against libnbcompat.
2003-09-02 22:14:51 +00:00
jlam
fa35a58150 Solaris needs to include <sys/vfs.h> to get definitions for statvfs(). 2003-09-02 02:05:22 +00:00
jlam
ecf2225023 Older awks don't like gensub() so use sub() instead. 2003-09-02 01:54:39 +00:00
jlam
3319ebf79b We only need to step carefully in the Solaris case for statfs(), but
otherwise we can trust statfs() if it's on the system.
2003-09-02 01:45:14 +00:00
jlam
0c71abea7b Bump version to 20030823:
* Add mkdtemp, TAILQ_*, and statfs.

* Install a nbconfig.h file containing the discovered system information
  and include it directly in nbcompat.h.  Make all files use nbconfig.h
  instead of config.h.  Ensure that all installed headers don't include
  any local header files.  This makes libnbcompat more self-contained.

* Consistently use "#if HAVE_HEADER_H" instead of "#ifdef HAVE_HEADER_H"
  since sometimes people put -DHAVE_HEADER_H=0 on their command lines.
2003-09-01 15:31:14 +00:00
jlam
716e03ab32 Tighten up this file by removing an unnecessary inclusion of bsd.prefs.mk. 2003-08-31 20:22:09 +00:00
jlam
241e4f4fb2 This package is needed to bootstrap pkgsrc, so don't do tools, buildlink,
or run mtree.  Also ensure that we call the pkg_install commands with no
options so that we install properly without recent pkg_install tools.
2003-08-31 12:02:56 +00:00
jmmv
d34c1dce87 Drop advertising clause from UCB licensed code, following changes done in
NetBSD's source files.
2003-08-27 12:25:40 +00:00
jschauma
7fe8dcf6a6 Add the err.h header, so we can use it on systems that don't provide err.h
(functionality already in the library, just the header was missing).
Bumpt date to today.
2003-07-31 22:40:26 +00:00
grant
dc2db97466 bump to 20030718 2003-07-19 03:05:39 +00:00
grant
c1356280a6 test for time.h, sys/time.h and inclusion of both.
include system fts.h if we have one, or our own.
2003-07-19 03:05:00 +00:00
grant
e43a695067 bump to 20030717 2003-07-17 19:55:06 +00:00
grant
a046577418 don't test for fparseln in libutil for now. 2003-07-17 19:53:54 +00:00
grant
aec55e892f force nbtypes.h to be built, and run ranlib after building the static
archive.
2003-07-17 19:36:43 +00:00
grant
1a0804c285 move stuff from deprecated acconfig.h to configure.ac. 2003-07-17 06:22:32 +00:00
grant
ac5af43e48 do away with AC_CONFIG_SRCDIR 2003-07-15 05:36:03 +00:00
grant
b76a6c0cd6 bump to 20030715 2003-07-15 05:33:33 +00:00
grant
8c13cfdcce fix getopt_long() test to avoid overriding it. 2003-07-15 05:33:04 +00:00
grant
0fb424ba9a bump to 20030713 2003-07-13 02:36:47 +00:00
grant
394bcaacf9 setenv.c - include strings.h for bcopy prototype
add prototypes for getmode, lchmod, lchown

eliminates implicit declaration warnings building pax and mtree with
Forte compiler on Solaris.
2003-07-13 02:36:17 +00:00
grant
6c0c7208c7 setenv() returns an int, so make it believe that. 2003-07-12 19:43:53 +00:00
grant
e5f742fbf2 bump to 20030630 2003-06-30 15:18:02 +00:00
grant
0bdef15848 s/#if !/#ifndef/, since the former confuses some C pre-processors 2003-06-30 15:14:46 +00:00
grant
d0b0537213 fix rcsid 2003-06-30 15:13:17 +00:00
grant
79aba7a3d8 remove config.h in distclean target, not clean. 2003-06-30 14:48:00 +00:00
jschauma
0e81cc9882 Make pax compile on Irix by including pwcache.h, which now includes
forward declarations of the uid_from_user functions.
2003-06-24 14:09:21 +00:00
grant
47276e6a4b add prototype for isblank() to avoid implicit declaration
add RCS Id
2003-06-24 06:22:23 +00:00
grant
fc4ac99b0b not all systems define all of the time related constants we
need in tzfile.h, avoid redefinition warnings.
2003-06-23 13:15:59 +00:00
grant
6c5b7cfc7a add getopt, getopt_long.
include tzfile.h and sys/mkdev.h in nbcompat.h.

bump to 20030622.
2003-06-23 11:33:06 +00:00
grant
d37b862505 use wildward for installed header files rather than listing each
individually.
2003-06-10 06:35:27 +00:00
grant
a6d4a8363a protect against multiple inclusion 2003-06-10 06:33:24 +00:00
grant
f332b2a802 test for both getmode() and setmode(). 2003-06-10 05:59:16 +00:00
grant
7ea7d74ab1 regen after bumping date 2003-06-09 17:21:15 +00:00
grant
09187eb341 add isblank() and strmode().
bump to 20030609.
2003-06-09 17:19:48 +00:00
jschauma
1c848ef71f Commit the recent 'setmode' change here, too, as pointed out by grant. 2003-05-25 18:54:34 +00:00
jschauma
68800f0751 Add some more protoypes in extern.h and check for setmode to shut up some
warnings.
2003-05-22 18:10:43 +00:00
grant
a6c6bcd860 work around the need for rpl_malloc (induced by config.h), since we
don't need a GNU compatible malloc() here.

a GNU compatible malloc() is still used in libnbcompat.a if it is
required.

fixes build on (at least) Tru64.
2003-04-27 16:42:29 +00:00
grant
8aec634c95 remove deprecated NO_PATCH.
(perhaps I should update my pkglint?)
2003-04-03 12:55:21 +00:00
grant
8c72cb472c make sure LIST_EMPTY, LIST_FIRST and LIST_NEXT are defined (linux
doesn't have these in sys/queue.h).

noted by Jeremy C. Reed on tech-pkg.
2003-04-03 12:48:45 +00:00
grant
01609239ae change around some #ifdefs, since Darwin has only some vis functions. 2003-03-31 08:52:58 +00:00
grant
94d3410739 run ranlib in the install target, to appease Darwin's linker. 2003-03-31 08:41:06 +00:00
grant
9c12af20e6 s/nb-types.h/nbtypes.h/ 2003-03-31 05:56:35 +00:00
grant
a17d644a29 test for fparseln in libutil. 2003-03-31 05:34:35 +00:00
grant
9b2e1cde61 clean up cruft from when this was called 'libpkgsrc', some whitespace
tweaks.
2003-03-31 05:07:52 +00:00
grant
706e3fa728 Initial import of libnbcompat-20030331, a portable NetBSD compatibility
library for use by the pkgsrc tools and other sources from NetBSD.
2003-03-31 05:02:17 +00:00