pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/devel/libbsd devel/libbsd: update to version 0.11.7
details: https://anonhg.NetBSD.org/pkgsrc/rev/097667b23225
branches: trunk
changeset: 390456:097667b23225
user: vins <vins%pkgsrc.org@localhost>
date: Mon Dec 19 16:05:43 2022 +0000
description:
devel/libbsd: update to version 0.11.7
# Changes (local):
* Add new dependency on devel/libmd.
* Rework buildlink file to use overly linking mode.
* Add a test target for regression tests.
* Update licese.
* Fix bug with Makefile caused by lack of an implicit
$(RM) variable in bmake.
# Changes (upstream):
* libbsd 0.11.7
- Portability fixes for the Hurd.
- Fix ELF support for big endian SH.
- Sync the arc4random(3) implementation from OpenBSD.
- Adjust declaration shadowing to match new glibc additions.
- Manual pages and documentation cleanups.
- Document non-overlay mode as discouraged, future releases might emit
warnings when using it.
* libbsd 0.11.6
- Build system and test suite fixes for musl.
- Remove arc4random() support for OpenBSD.
- LoongArch support for nlist().
* libbsd-0.11.5
- Build system and test suite regression fixes.
- Documentation on how to build the project.
* libbsd 0.11.4
- Fix build on GNU/kFreeBSD due to missing linking against libmd.
- Fix build with LTO.
- Add link-time warnings to MD5 wrapper functions
- Various build system fixes.
- Various portability fixes.
- Various documentation fixes.
* libbsd 0.11.3
- Rework of the libmd wrapping code to not require users to explicitly
link against libmd.
- Switch libmd wrapper to use dlsym()
- Various build system fixes.
- Various portability fixes.
* libbsd 0.11.2
- Update <sys/queue.h> from FreeBSD.
- Import some closefrom() changes from sudo.
- Make closefrom() use close_range() syscall on Linux when available.
- Update libbsd(7) man page with updates in 0.11.0.
* libbsd 0.11.1
- Export provided function strnvisx().
- New recallocarray() and freezero() from OpenBSD.
- New pwcache module from OpenBSD.
- New timespec(3bsd) man page alias to timeval(3bsd).
- New progname implementation for Windows.
- New LIBBSD_VIS_OPENBSD selection macro.
- Switch from embedded hashing function implementations to use libmd.
- Various man pages cleanups.
- Various portability fixes.
- Various memory leak fixes.
* libbsd 0.10.0
- Several security related fixes for nlist()
- Fix for a leak in the vis family of functions.
- Fix for a configure check to not unnecessarily link against librt.
- General portability fixes for musl, uClibc, macOS and GNU/kFreeBSD.
- New architectures support for nlist().
- Switch the <err.h> *c() functions to be standalone and add err(),
warn(), errx() and warnx() familiy of functions in case the system
lacks them.
- Several man page fixes.
diffstat:
devel/libbsd/Makefile | 28 ++++++++++++++++++++++------
devel/libbsd/PLIST | 21 ++++++++++++++++++++-
devel/libbsd/buildlink3.mk | 9 +++++++--
devel/libbsd/builtin.mk | 6 +++---
devel/libbsd/distinfo | 9 +++++----
devel/libbsd/patches/patch-src_Makefile.am | 15 +++++++++++++++
6 files changed, 72 insertions(+), 16 deletions(-)
diffs (233 lines):
diff -r 280ae23e5cb2 -r 097667b23225 devel/libbsd/Makefile
--- a/devel/libbsd/Makefile Mon Dec 19 15:14:34 2022 +0000
+++ b/devel/libbsd/Makefile Mon Dec 19 16:05:43 2022 +0000
@@ -1,18 +1,34 @@
-# $NetBSD: Makefile,v 1.2 2022/08/15 22:56:37 tnn Exp $
+# $NetBSD: Makefile,v 1.3 2022/12/19 16:05:43 vins Exp $
-DISTNAME= libbsd-0.10.0
+DISTNAME= libbsd-0.11.7
CATEGORIES= devel
-MASTER_SITES= http://libbsd.freedesktop.org/releases/
+MASTER_SITES= https://libbsd.freedesktop.org/releases/
EXTRACT_SUFX= .tar.xz
-MAINTAINER= matthias%rampke.de@localhost
+MAINTAINER= vins%NetBSD.org@localhost
HOMEPAGE= https://libbsd.freedesktop.org/
COMMENT= Compatibility library for BSD functions under other systems
-LICENSE= original-bsd
+LICENSE= original-bsd AND modified-bsd AND 2-clause-bsd
+LICENSE+= AND isc AND mit AND beer-ware
-NOT_FOR_PLATFORM= NetBSD-*-* FreeBSD-*-* OpenBSD-*-*
+NOT_FOR_PLATFORM= NetBSD-*-* FreeBSD-*-*
+NOT_FOR_PLATFORM+= OpenBSD-*-* DragonFly-*
GNU_CONFIGURE= yes
USE_LIBTOOL= yes
+USE_TOOLS+= pkg-config autoconf automake autoreconf
+CFLAGS+= -ffat-lto-objects
+
+pre-configure:
+ set -e; cd ${WRKSRC} && autoreconf -fiv
+
+do-test:
+ ${RUN} cd ${WRKSRC} && ${SETENV} ${TEST_ENV} ${MAKE} check
+
+PKGCONFIG_OVERRIDE+= src/libbsd-ctor.pc.in
+PKGCONFIG_OVERRIDE+= src/libbsd-overlay.pc.in
+PKGCONFIG_OVERRIDE+= src/libbsd.pc.in
+
+.include "../../devel/libmd/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
diff -r 280ae23e5cb2 -r 097667b23225 devel/libbsd/PLIST
--- a/devel/libbsd/PLIST Mon Dec 19 15:14:34 2022 +0000
+++ b/devel/libbsd/PLIST Mon Dec 19 16:05:43 2022 +0000
@@ -1,13 +1,15 @@
-@comment $NetBSD: PLIST,v 1.1 2020/12/09 11:21:46 cheusov Exp $
+@comment $NetBSD: PLIST,v 1.2 2022/12/19 16:05:43 vins Exp $
include/bsd/bitstring.h
include/bsd/bsd.h
include/bsd/err.h
include/bsd/getopt.h
+include/bsd/grp.h
include/bsd/inttypes.h
include/bsd/libutil.h
include/bsd/md5.h
include/bsd/netinet/ip_icmp.h
include/bsd/nlist.h
+include/bsd/pwd.h
include/bsd/readpassphrase.h
include/bsd/stdio.h
include/bsd/stdlib.h
@@ -30,6 +32,8 @@
lib/pkgconfig/libbsd-ctor.pc
lib/pkgconfig/libbsd-overlay.pc
lib/pkgconfig/libbsd.pc
+man/man3/LIST_CLASS_ENTRY.3bsd
+man/man3/LIST_CLASS_HEAD.3bsd
man/man3/LIST_EMPTY.3bsd
man/man3/LIST_ENTRY.3bsd
man/man3/LIST_FIRST.3bsd
@@ -70,6 +74,8 @@
man/man3/RB_REMOVE.3bsd
man/man3/RB_RIGHT.3bsd
man/man3/RB_ROOT.3bsd
+man/man3/SLIST_CLASS_ENTRY.3bsd
+man/man3/SLIST_CLASS_HEAD.3bsd
man/man3/SLIST_EMPTY.3bsd
man/man3/SLIST_ENTRY.3bsd
man/man3/SLIST_FIRST.3bsd
@@ -86,6 +92,7 @@
man/man3/SLIST_REMOVE.3bsd
man/man3/SLIST_REMOVE_AFTER.3bsd
man/man3/SLIST_REMOVE_HEAD.3bsd
+man/man3/SLIST_REMOVE_PREVPTR.3bsd
man/man3/SLIST_SWAP.3bsd
man/man3/SPLAY_EMPTY.3bsd
man/man3/SPLAY_ENTRY.3bsd
@@ -104,6 +111,8 @@
man/man3/SPLAY_REMOVE.3bsd
man/man3/SPLAY_RIGHT.3bsd
man/man3/SPLAY_ROOT.3bsd
+man/man3/STAILQ_CLASS_ENTRY.3bsd
+man/man3/STAILQ_CLASS_HEAD.3bsd
man/man3/STAILQ_CONCAT.3bsd
man/man3/STAILQ_EMPTY.3bsd
man/man3/STAILQ_ENTRY.3bsd
@@ -124,6 +133,8 @@
man/man3/STAILQ_REMOVE_AFTER.3bsd
man/man3/STAILQ_REMOVE_HEAD.3bsd
man/man3/STAILQ_SWAP.3bsd
+man/man3/TAILQ_CLASS_ENTRY.3bsd
+man/man3/TAILQ_CLASS_HEAD.3bsd
man/man3/TAILQ_CONCAT.3bsd
man/man3/TAILQ_EMPTY.3bsd
man/man3/TAILQ_ENTRY.3bsd
@@ -184,11 +195,14 @@
man/man3/fmtcheck.3bsd
man/man3/fparseln.3bsd
man/man3/fpurge.3bsd
+man/man3/freezero.3bsd
man/man3/funopen.3bsd
man/man3/getbsize.3bsd
man/man3/getmode.3bsd
man/man3/getpeereid.3bsd
man/man3/getprogname.3bsd
+man/man3/gid_from_group.3bsd
+man/man3/group_from_gid.3bsd
man/man3/heapsort.3bsd
man/man3/humanize_number.3bsd
man/man3/le16dec.3bsd
@@ -205,11 +219,13 @@
man/man3/pidfile_open.3bsd
man/man3/pidfile_remove.3bsd
man/man3/pidfile_write.3bsd
+man/man3/pwcache.3bsd
man/man3/queue.3bsd
man/man3/radixsort.3bsd
man/man3/readpassphrase.3bsd
man/man3/reallocarray.3bsd
man/man3/reallocf.3bsd
+man/man3/recallocarray.3bsd
man/man3/setmode.3bsd
man/man3/setproctitle.3bsd
man/man3/setproctitle_init.3bsd
@@ -238,6 +254,7 @@
man/man3/timercmp.3bsd
man/man3/timerisset.3bsd
man/man3/timersub.3bsd
+man/man3/timespec.3bsd
man/man3/timespecadd.3bsd
man/man3/timespecclear.3bsd
man/man3/timespeccmp.3bsd
@@ -245,7 +262,9 @@
man/man3/timespecsub.3bsd
man/man3/timeval.3bsd
man/man3/tree.3bsd
+man/man3/uid_from_user.3bsd
man/man3/unvis.3bsd
+man/man3/user_from_uid.3bsd
man/man3/vis.3bsd
man/man3/wcslcat.3bsd
man/man3/wcslcpy.3bsd
diff -r 280ae23e5cb2 -r 097667b23225 devel/libbsd/buildlink3.mk
--- a/devel/libbsd/buildlink3.mk Mon Dec 19 15:14:34 2022 +0000
+++ b/devel/libbsd/buildlink3.mk Mon Dec 19 16:05:43 2022 +0000
@@ -1,12 +1,17 @@
-# $NetBSD: buildlink3.mk,v 1.1 2020/12/09 11:21:46 cheusov Exp $
+# $NetBSD: buildlink3.mk,v 1.2 2022/12/19 16:05:43 vins Exp $
BUILDLINK_TREE+= libbsd
.if !defined(LIBBSD_BUILDLINK3_MK)
LIBBSD_BUILDLINK3_MK:=
-BUILDLINK_API_DEPENDS.libbsd+= libbsd>=0.10.0
+BUILDLINK_API_DEPENDS.libbsd+= libbsd>=0.11.7
BUILDLINK_PKGSRCDIR.libbsd?= ../../devel/libbsd
+
+BUILDLINK_CFLAGS.libbsd+= -I${BUILDLINK_PREFIX.libbsd}/include/bsd -DLIBBSD_OVERLAY
+BUILDLINK_LDFLAGS.libbsd+= -lbsd -lmd
+
+.include "../../devel/libmd/buildlink3.mk"
.endif # LIBBSD_BUILDLINK3_MK
BUILDLINK_TREE+= -libbsd
diff -r 280ae23e5cb2 -r 097667b23225 devel/libbsd/builtin.mk
--- a/devel/libbsd/builtin.mk Mon Dec 19 15:14:34 2022 +0000
+++ b/devel/libbsd/builtin.mk Mon Dec 19 16:05:43 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: builtin.mk,v 1.1 2020/12/09 11:21:46 cheusov Exp $
+# $NetBSD: builtin.mk,v 1.2 2022/12/19 16:05:43 vins Exp $
BUILTIN_PKG:= libbsd
@@ -29,10 +29,10 @@
. else
USE_BUILTIN.libbsd= ${IS_BUILTIN.libbsd}
. if defined(BUILTIN_PKG.libbsd) && \
- !empty(IS_BUILTIN.libbsd:M[yY][eE][sS])
+ ${IS_BUILTIN.libbsd:M[yY][eE][sS]}
USE_BUILTIN.libbsd= yes
. for _dep_ in ${BUILDLINK_API_DEPENDS.libbsd}
-. if !empty(USE_BUILTIN.libbsd:M[yY][eE][sS])
+. if ${USE_BUILTIN.libbsd:M[yY][eE][sS]}
USE_BUILTIN.libbsd!= \
if ${PKG_ADMIN} pmatch ${_dep_:Q} ${BUILTIN_PKG.libbsd:Q}; then \
${ECHO} yes; \
diff -r 280ae23e5cb2 -r 097667b23225 devel/libbsd/distinfo
--- a/devel/libbsd/distinfo Mon Dec 19 15:14:34 2022 +0000
+++ b/devel/libbsd/distinfo Mon Dec 19 16:05:43 2022 +0000
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.3 2021/10/26 10:15:15 nia Exp $
+$NetBSD: distinfo,v 1.4 2022/12/19 16:05:43 vins Exp $
-BLAKE2s (libbsd-0.10.0.tar.xz) = 6ce3c0e1456420835c035d607273b4ef5184f6a00e6852ea74e2abb9e6300d90
-SHA512 (libbsd-0.10.0.tar.xz) = b75529785b16c93d31401187f8a58258fbebe565dac071c8311775c913af989f62cd29d5ce2651af3ea6221cffd31cf04826577d3e546ab9ca14340f297777b9
-Size (libbsd-0.10.0.tar.xz) = 393576 bytes
+BLAKE2s (libbsd-0.11.7.tar.xz) = 3493aa935253101a41884d8c24bdd449c01da5029ab4bf3619cc8b120cb8384f
+SHA512 (libbsd-0.11.7.tar.xz) = 51fda4724f41dd8a4628afd58c21236a7588d9045e337e06eeabf83805a9aaaa53705441ca901ad11f1c65f18e881523bdc97721a7d3d6a5cced27f2450d09a2
+Size (libbsd-0.11.7.tar.xz) = 418508 bytes
+SHA1 (patch-src_Makefile.am) = b56fccab3f23cf25f0ee6906f9ebefa76e6e500f
diff -r 280ae23e5cb2 -r 097667b23225 devel/libbsd/patches/patch-src_Makefile.am
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/libbsd/patches/patch-src_Makefile.am Mon Dec 19 16:05:43 2022 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_Makefile.am,v 1.1 2022/12/19 16:05:43 vins Exp $
+
+Prevent the libbsd shared library from being overwitten.
+
+--- src/Makefile.am.orig 2022-01-29 14:23:40.000000000 +0000
++++ src/Makefile.am
+@@ -156,7 +156,7 @@ if NEED_TRANSPARENT_LIBMD
+ # The "GNU ld script" magic is required so that GNU ldconfig does not complain
+ # about an unknown format file.
+ soname=`readlink $(DESTDIR)$(libdir)/libbsd.so`; \
+- $(RM) $(DESTDIR)$(libdir)/libbsd.so; \
++ rm -f $(DESTDIR)$(libdir)/libbsd.so; \
+ (echo '/* GNU ld script'; \
+ echo ' * The MD5 functions are provided by the libmd library. */'; \
+ cat format.ld; \
Home |
Main Index |
Thread Index |
Old Index