./pkgtools/libnbcompat, Portable NetBSD compatibility library

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 20240319, Package name: libnbcompat-20240319, Maintainer: pkgsrc-users

libnbcompat is a portable NetBSD compatibility library for use by
the pkgsrc tools and other sources from NetBSD (and elsewhere).

It is also helpful for providing definitions and functions missing from
other Unix platforms.


Required to build:
[pkgtools/cwrappers]

Version history: (Expand)


CVS history: (Expand)


   2024-03-20 00:18:21 by Nia Alarie | Files touched by this commit (1)
Log message:
libnbcompat: Rework in-place linking.

Prevent libtool from detecting -lnbcompat in the command line arguments
then declaring it as a dependency in the resulting libtool archive.

Filter -lnbcompat from all of the environment when compiling an
in-place copy to prevent circular dependencies.

Drop LIBNBCOMPAT_USE_PIC, I can't find anywhere this is used in the
tree, it's incomplete (needs handling in mk/) and complicates things
needlessly.

What still needs to be done is figure out why certain packages don't
seem to properly link with libnbcompat when USE_FEATURES is used - it's
a long-term problem, might be related to some newer build systems not
using ${LIBS}.

Bootstrap tested on Darwin and NetBSD.
   2024-03-19 01:59:01 by Nia Alarie | Files touched by this commit (8)
Log message:
libnbcompat: Add memrchr.
   2024-03-17 22:44:21 by Thomas Klausner | Files touched by this commit (1)
Log message:
libnbcompat: revert previous, breaks cwrappers on NetBSD

Reported by John D. Baker on pkgsrc-users.
   2024-03-17 14:40:14 by Nia Alarie | Files touched by this commit (1)
Log message:
libnbcompat: When linking with an "in-place" copy of libnbcompat in each
piece of software that needs to pull functions from it, prevent libtool
from detecting -lnbcompat in the command line arguments then declaring
it as a dependency in the resulting libtool archive.
   2024-01-12 20:14:19 by Thomas Klausner | Files touched by this commit (1)
Log message:
libnbcompat: remove sys/cdefs.h include from strndup.c

The file already includes nbcompat/cdefs.h.

Fixes build on Solaris 10, reported and tested by Dan Clough in PR 57838.
   2023-11-09 19:55:19 by Nia Alarie | Files touched by this commit (7)
Log message:
libnbcompat: Add strndup(3) for Mac OS X 10.4.
   2023-09-04 21:51:19 by Jonathan Perkin | Files touched by this commit (3)
Log message:
libnbcompat: Update to 20230904.

Pull in changes from revision 1.13 of NetBSD sha2.c from 14 years ago to
fix type punning issues seen with newer GCCs.

Fixes "pkg_admin digest" on SmartOS with GCC 12, where the output was
completely wrong, causing bulk builds to rebuild every package every time
now that USE_PKG_ADMIN_DIGEST=yes is the default.
   2023-06-27 11:31:09 by Taylor R Campbell | Files touched by this commit (2)
Log message:
libnbcompat: Bump package date for recent configure changes.

Record my test on NetBSD.