pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/devel/libbsd



Module Name:    pkgsrc
Committed By:   vins
Date:           Sun Sep 28 06:18:35 UTC 2025

Modified Files:
        pkgsrc/devel/libbsd: Makefile PLIST.Linux PLIST.common buildlink3.mk
            builtin.mk distinfo
        pkgsrc/devel/libbsd/patches: patch-configure.ac
Added Files:
        pkgsrc/devel/libbsd: PLIST.Darwin PLIST.NetBSD PLIST.SunOS
        pkgsrc/devel/libbsd/patches: patch-include_bsd_unistd.h
            patch-src_libbsd.map.in

Log Message:
devel/libbsd: fix build on NetBSD

# pkgsrc changes

* Unbreak build on NetBSD and other platforms, by only including the
  required bits (explicit_bzero, freezero and recallocarray from
  OpenBSD; flopen from FreeBSD).
* Use pkg-config to detect a built-in version (already pulled as tool).
* Bump revision.


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 pkgsrc/devel/libbsd/Makefile
cvs rdiff -u -r0 -r1.1 pkgsrc/devel/libbsd/PLIST.Darwin \
    pkgsrc/devel/libbsd/PLIST.NetBSD pkgsrc/devel/libbsd/PLIST.SunOS
cvs rdiff -u -r1.1 -r1.2 pkgsrc/devel/libbsd/PLIST.Linux
cvs rdiff -u -r1.2 -r1.3 pkgsrc/devel/libbsd/PLIST.common
cvs rdiff -u -r1.4 -r1.5 pkgsrc/devel/libbsd/buildlink3.mk
cvs rdiff -u -r1.3 -r1.4 pkgsrc/devel/libbsd/builtin.mk
cvs rdiff -u -r1.8 -r1.9 pkgsrc/devel/libbsd/distinfo
cvs rdiff -u -r1.1 -r1.2 pkgsrc/devel/libbsd/patches/patch-configure.ac
cvs rdiff -u -r0 -r1.1 pkgsrc/devel/libbsd/patches/patch-include_bsd_unistd.h \
    pkgsrc/devel/libbsd/patches/patch-src_libbsd.map.in

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/devel/libbsd/Makefile
diff -u pkgsrc/devel/libbsd/Makefile:1.10 pkgsrc/devel/libbsd/Makefile:1.11
--- pkgsrc/devel/libbsd/Makefile:1.10   Fri Mar  7 20:17:35 2025
+++ pkgsrc/devel/libbsd/Makefile        Sun Sep 28 06:18:34 2025
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.10 2025/03/07 20:17:35 vins Exp $
+# $NetBSD: Makefile,v 1.11 2025/09/28 06:18:34 vins Exp $
 
 DISTNAME=      libbsd-0.12.2
-PKGREVISION=   1
+PKGREVISION=   2
 CATEGORIES=    devel
 MASTER_SITES=  https://libbsd.freedesktop.org/releases/
 EXTRACT_SUFX=  .tar.xz
@@ -11,8 +11,9 @@ HOMEPAGE=     https://libbsd.freedesktop.org
 COMMENT=       Compatibility library for BSD functions under other systems
 LICENSE=       modified-bsd AND 2-clause-bsd AND isc AND mit AND beer-ware
 
-NOT_FOR_PLATFORM=      NetBSD-*-* FreeBSD-*-*
-NOT_FOR_PLATFORM+=     OpenBSD-*-* DragonFly-*
+# On these platforms, patch configure.ac to include -
+# only the required bits.
+#NOT_FOR_PLATFORM+=    FreeBSD-*-* OpenBSD-*-* DragonFly-*
 
 GNU_CONFIGURE= yes
 USE_LIBTOOL=   yes

Index: pkgsrc/devel/libbsd/PLIST.Linux
diff -u pkgsrc/devel/libbsd/PLIST.Linux:1.1 pkgsrc/devel/libbsd/PLIST.Linux:1.2
--- pkgsrc/devel/libbsd/PLIST.Linux:1.1 Sun Mar 10 07:07:48 2024
+++ pkgsrc/devel/libbsd/PLIST.Linux     Sun Sep 28 06:18:34 2025
@@ -1,6 +1,14 @@
-@comment $NetBSD: PLIST.Linux,v 1.1 2024/03/10 07:07:48 vins Exp $
+@comment $NetBSD: PLIST.Linux,v 1.2 2025/09/28 06:18:34 vins Exp $
+include/bsd/err.h
+include/bsd/getopt.h
+include/bsd/grp.h
 include/bsd/md5.h
 include/bsd/nlist.h
+include/bsd/pwd.h
+include/bsd/readpassphrase.h
+include/bsd/stringlist.h
+include/bsd/timeconv.h
+include/bsd/vis.h
 lib/libbsd-ctor.a
 lib/pkgconfig/libbsd-ctor.pc
 man/man3/arc4random.3bsd
@@ -9,14 +17,69 @@ man/man3/arc4random_buf.3bsd
 man/man3/arc4random_stir.3bsd
 man/man3/arc4random_uniform.3bsd
 man/man3/closefrom.3bsd
+man/man3/dehumanize_number.3bsd
+man/man3/errc.3bsd
+man/man3/expand_number.3bsd
+man/man3/explicit_bzero.3bsd
+man/man3/fgetln.3bsd
+man/man3/fgetwln.3bsd
+man/man3/flopen.3bsd
 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/md5.3bsd
+man/man3/mergesort.3bsd
 man/man3/nlist.3bsd
+man/man3/pidfile.3bsd
+man/man3/pidfile_close.3bsd
+man/man3/pidfile_open.3bsd
+man/man3/pidfile_remove.3bsd
+man/man3/pidfile_write.3bsd
+man/man3/pwcache.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
 man/man3/setprogname.3bsd
+man/man3/sl_add.3bsd
+man/man3/sl_delete.3bsd
+man/man3/sl_find.3bsd
+man/man3/sl_free.3bsd
+man/man3/sl_init.3bsd
+man/man3/sradixsort.3bsd
+man/man3/stringlist.3bsd
 man/man3/strlcat.3bsd
 man/man3/strlcpy.3bsd
+man/man3/strmode.3bsd
 man/man3/strnstr.3bsd
+man/man3/strnunvis.3bsd
+man/man3/strnvis.3bsd
+man/man3/strtoi.3bsd
 man/man3/strtonum.3bsd
+man/man3/strtou.3bsd
+man/man3/strunvis.3bsd
+man/man3/strvis.3bsd
+man/man3/strvisx.3bsd
+man/man3/uid_from_user.3bsd
+man/man3/unvis.3bsd
+man/man3/user_from_uid.3bsd
+man/man3/verrc.3bsd
+man/man3/vis.3bsd
+man/man3/vwarnc.3bsd
+man/man3/warnc.3bsd
+man/man3/wcslcat.3bsd
+man/man3/wcslcpy.3bsd

Index: pkgsrc/devel/libbsd/PLIST.common
diff -u pkgsrc/devel/libbsd/PLIST.common:1.2 pkgsrc/devel/libbsd/PLIST.common:1.3
--- pkgsrc/devel/libbsd/PLIST.common:1.2        Sun Aug  4 06:55:30 2024
+++ pkgsrc/devel/libbsd/PLIST.common    Sun Sep 28 06:18:35 2025
@@ -1,18 +1,12 @@
-@comment $NetBSD: PLIST.common,v 1.2 2024/08/04 06:55:30 vins Exp $
+@comment $NetBSD: PLIST.common,v 1.3 2025/09/28 06:18:35 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/netinet/ip_icmp.h
-include/bsd/pwd.h
-include/bsd/readpassphrase.h
 include/bsd/stdio.h
 include/bsd/stdlib.h
 include/bsd/string.h
-include/bsd/stringlist.h
 include/bsd/sys/bitstring.h
 include/bsd/sys/cdefs.h
 include/bsd/sys/endian.h
@@ -21,9 +15,7 @@ include/bsd/sys/poll.h
 include/bsd/sys/queue.h
 include/bsd/sys/time.h
 include/bsd/sys/tree.h
-include/bsd/timeconv.h
 include/bsd/unistd.h
-include/bsd/vis.h
 include/bsd/wchar.h
 lib/libbsd.la
 lib/pkgconfig/libbsd-overlay.pc
@@ -173,59 +165,13 @@ man/man3/bit_test.3bsd
 man/man3/bitstr_size.3bsd
 man/man3/bitstring.3bsd
 man/man3/byteorder.3bsd
-man/man3/dehumanize_number.3bsd
-man/man3/errc.3bsd
-man/man3/expand_number.3bsd
-man/man3/explicit_bzero.3bsd
-man/man3/fgetln.3bsd
-man/man3/fgetwln.3bsd
-man/man3/flopen.3bsd
-man/man3/fparseln.3bsd
-man/man3/fpurge.3bsd
-man/man3/freezero.3bsd
-man/man3/getbsize.3bsd
-man/man3/getmode.3bsd
-man/man3/getpeereid.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
 man/man3/le16enc.3bsd
 man/man3/le32dec.3bsd
 man/man3/le32enc.3bsd
 man/man3/le64dec.3bsd
 man/man3/le64enc.3bsd
-man/man3/mergesort.3bsd
-man/man3/pidfile.3bsd
-man/man3/pidfile_close.3bsd
-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/recallocarray.3bsd
-man/man3/setmode.3bsd
-man/man3/setproctitle.3bsd
-man/man3/setproctitle_init.3bsd
-man/man3/sl_add.3bsd
-man/man3/sl_delete.3bsd
-man/man3/sl_find.3bsd
-man/man3/sl_free.3bsd
-man/man3/sl_init.3bsd
-man/man3/sradixsort.3bsd
-man/man3/stringlist.3bsd
-man/man3/strmode.3bsd
-man/man3/strnunvis.3bsd
-man/man3/strnvis.3bsd
-man/man3/strtoi.3bsd
-man/man3/strtou.3bsd
-man/man3/strunvis.3bsd
-man/man3/strvis.3bsd
-man/man3/strvisx.3bsd
 man/man3/timeradd.3bsd
 man/man3/timerclear.3bsd
 man/man3/timercmp.3bsd
@@ -237,13 +183,4 @@ man/man3/timespeccmp.3bsd
 man/man3/timespecisset.3bsd
 man/man3/timespecsub.3bsd
 man/man3/tree.3bsd
-man/man3/uid_from_user.3bsd
-man/man3/unvis.3bsd
-man/man3/user_from_uid.3bsd
-man/man3/verrc.3bsd
-man/man3/vis.3bsd
-man/man3/vwarnc.3bsd
-man/man3/warnc.3bsd
-man/man3/wcslcat.3bsd
-man/man3/wcslcpy.3bsd
 man/man7/libbsd.7

Index: pkgsrc/devel/libbsd/buildlink3.mk
diff -u pkgsrc/devel/libbsd/buildlink3.mk:1.4 pkgsrc/devel/libbsd/buildlink3.mk:1.5
--- pkgsrc/devel/libbsd/buildlink3.mk:1.4       Tue Mar  5 19:44:36 2024
+++ pkgsrc/devel/libbsd/buildlink3.mk   Sun Sep 28 06:18:35 2025
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink3.mk,v 1.4 2024/03/05 19:44:36 vins Exp $
+# $NetBSD: buildlink3.mk,v 1.5 2025/09/28 06:18:35 vins Exp $
 
 BUILDLINK_TREE+=       libbsd
 
@@ -6,7 +6,7 @@ BUILDLINK_TREE+=        libbsd
 LIBBSD_BUILDLINK3_MK:=
 
 BUILDLINK_API_DEPENDS.libbsd+= libbsd>=0.12.1
-BUILDLINK_ABI_DEPENDS.libbsd+= libbsd>=0.12.1
+BUILDLINK_ABI_DEPENDS.libbsd+= libbsd>=0.12.1nb2
 BUILDLINK_PKGSRCDIR.libbsd?=   ../../devel/libbsd
 
 #BUILDLINK_INCDIRS.libbsd?=    include/bsd

Index: pkgsrc/devel/libbsd/builtin.mk
diff -u pkgsrc/devel/libbsd/builtin.mk:1.3 pkgsrc/devel/libbsd/builtin.mk:1.4
--- pkgsrc/devel/libbsd/builtin.mk:1.3  Tue Aug 29 16:25:59 2023
+++ pkgsrc/devel/libbsd/builtin.mk      Sun Sep 28 06:18:35 2025
@@ -1,47 +1,19 @@
-# $NetBSD: builtin.mk,v 1.3 2023/08/29 16:25:59 vins Exp $
+# $NetBSD: builtin.mk,v 1.4 2025/09/28 06:18:35 vins Exp $
 
-BUILTIN_PKG:=  libbsd
+BUILTIN_PKG:=          libbsd
+PKGCONFIG_BASE.libbsd= /usr
+PKGCONFIG_FILE.libbsd= ${PKGCONFIG_BASE.libbsd}/lib/pkgconfig/libbsd.pc
+PKGCONFIG_FILE.libbsd+=        ${PKGCONFIG_BASE.libbsd}/lib${LIBABISUFFIX}/pkgconfig/libbsd.pc
 
-BUILTIN_FIND_HEADERS_VAR:=     H_LIBBSD
-BUILTIN_FIND_HEADERS.H_LIBBSD= bsd/bsd.h
+.include "../../mk/buildlink3/pkgconfig-builtin.mk"
 
-.include "../../mk/buildlink3/bsd.builtin.mk"
+CHECK_BUILTIN.libbsd?= no
+.if ${CHECK_BUILTIN.libbsd:tl} == no
 
-###
-### Determine if there is a built-in implementation of the package and
-### set IS_BUILTIN.<pkg> appropriately ("yes" or "no").
-###
-.if !defined(IS_BUILTIN.libbsd)
-IS_BUILTIN.libbsd=     no
-.  if empty(H_LIBBSD:M__nonexistent__) && empty(H_LIBBSD:M${LOCALBASE}/*)
-IS_BUILTIN.libbsd=     yes
+.  if ${USE_BUILTIN.libbsd:tl} == yes
+BUILDLINK_PREFIX.libbsd=       /usr
+BUILDLINK_FILES.libbsd+=       lib/pkgconfig/libbsd.pc
+BUILDLINK_FILES.libbsd+=       lib${LIBABISUFFIX}/pkgconfig/libbsd.pc
 .  endif
-.endif
-MAKEVARS+=             IS_BUILTIN.libbsd
 
-###
-### Determine whether we should use the built-in implementation if it
-### exists, and set USE_BUILTIN.<pkg> appropriate ("yes" or "no").
-###
-.if !defined(USE_BUILTIN.libbsd)
-.  if ${PREFER.libbsd} == "pkgsrc"
-USE_BUILTIN.libbsd=    no
-.  else
-USE_BUILTIN.libbsd=    ${IS_BUILTIN.libbsd}
-.    if defined(BUILTIN_PKG.libbsd) && \
-        ${IS_BUILTIN.libbsd:tl} == yes
-USE_BUILTIN.libbsd=    yes
-.      for _dep_ in ${BUILDLINK_API_DEPENDS.libbsd}
-.        if ${USE_BUILTIN.libbsd:tl} == yes
-USE_BUILTIN.libbsd!=                                                   \
-       if ${PKG_ADMIN} pmatch ${_dep_:Q} ${BUILTIN_PKG.libbsd:Q}; then \
-               ${ECHO} yes;                                            \
-       else                                                            \
-               ${ECHO} no;                                             \
-       fi
-.        endif
-.      endfor
-.    endif
-.  endif  # PREFER.libbsd
-.endif
-MAKEVARS+=             USE_BUILTIN.libbsd
+.endif  # CHECK_BUILTIN.libbsd

Index: pkgsrc/devel/libbsd/distinfo
diff -u pkgsrc/devel/libbsd/distinfo:1.8 pkgsrc/devel/libbsd/distinfo:1.9
--- pkgsrc/devel/libbsd/distinfo:1.8    Fri Mar  7 20:17:35 2025
+++ pkgsrc/devel/libbsd/distinfo        Sun Sep 28 06:18:35 2025
@@ -1,7 +1,9 @@
-$NetBSD: distinfo,v 1.8 2025/03/07 20:17:35 vins Exp $
+$NetBSD: distinfo,v 1.9 2025/09/28 06:18:35 vins Exp $
 
 BLAKE2s (libbsd-0.12.2.tar.xz) = 9565e77d85e6cb2e9a21b6b662bf1c7dcf57246fc1b67e4f677b5740c5ab946d
 SHA512 (libbsd-0.12.2.tar.xz) = ce43e4f0486d5f00d4a8119ee863eaaa2f968cae4aa3d622976bb31ad601dfc565afacef7ebade5eba33fff1c329b5296c6387c008d1e1805d878431038f8b21
 Size (libbsd-0.12.2.tar.xz) = 446032 bytes
-SHA1 (patch-configure.ac) = d3cc13e80737c9b0249c836875e21858ba6fabb5
+SHA1 (patch-configure.ac) = e5c4b2ebfeac77d56019ddf71d2909fb20c6d912
+SHA1 (patch-include_bsd_unistd.h) = ef0a8f50e49b0ddb37b1ddfac471503ac8c966a7
 SHA1 (patch-src_Makefile.am) = b56fccab3f23cf25f0ee6906f9ebefa76e6e500f
+SHA1 (patch-src_libbsd.map.in) = 2c9b43607404d373c2bf5ba0fdc2d20649b57b6b

Index: pkgsrc/devel/libbsd/patches/patch-configure.ac
diff -u pkgsrc/devel/libbsd/patches/patch-configure.ac:1.1 pkgsrc/devel/libbsd/patches/patch-configure.ac:1.2
--- pkgsrc/devel/libbsd/patches/patch-configure.ac:1.1  Fri Mar  7 20:17:35 2025
+++ pkgsrc/devel/libbsd/patches/patch-configure.ac      Sun Sep 28 06:18:35 2025
@@ -1,12 +1,61 @@
-$NetBSD: patch-configure.ac,v 1.1 2025/03/07 20:17:35 vins Exp $
+$NetBSD: patch-configure.ac,v 1.2 2025/09/28 06:18:35 vins Exp $
 
 TIMESPEC(3HEAD) available on SunOS 5.11
 
---- configure.ac.orig  2025-03-07 20:11:19.628450340 +0000
+--- configure.ac.orig  2024-03-18 02:16:31.000000000 +0000
 +++ configure.ac
-@@ -263,7 +263,7 @@ AS_CASE([$host_os],
+@@ -262,8 +262,56 @@ AS_CASE([$host_os],
+     abi_vis=no
      abi_wcsl=no
    ],
++  [netbsd*], [
++    api_time_macros=no
++
++    abi_accmode=no
++    abi_arc4random=no
++    abi_arc4random_stir=no
++    abi_asprintf=no
++    abi_bsd_getopt=no
++    abi_closefrom=no
++    abi_err=no
++    abi_errc=no
++    abi_expand_number=no
++    abi_explicit_bzero=yes
++    abi_fgetln=no
++    abi_flopen=yes
++    abi_fmtcheck=no
++    abi_fpurge=no
++    abi_freezero=yes
++    abi_funopen=no
++    abi_getbsize=no
++    abi_getpeereid=no
++    abi_humanize_number=no
++    abi_id_from_name=no
++    abi_inet_net_pton=no
++    # On libmd.
++    abi_md5=no
++    abi_name_from_id=no
++    abi_nlist=no
++    abi_pidfile=no
++    abi_proctitle=no
++    abi_progname=no
++    abi_readpassphrase=no
++    abi_reallocarray=no
++    abi_reallocf=no
++    abi_recallocarray=yes
++    abi_stringlist=no
++    abi_sort=no
++    abi_strl=no
++    abi_strmode=no
++    abi_strnstr=no
++    abi_strtonum=no
++    abi_strtox=no
++    abi_timeconv=no
++    # On libmd.
++    abi_transparent_libmd=no
++    abi_vis=no
++    abi_wcsl=no
++  ],
    [solaris2*], [
 -    api_time_macros=yes
 +    api_time_macros=no

Added files:

Index: pkgsrc/devel/libbsd/PLIST.Darwin
diff -u /dev/null pkgsrc/devel/libbsd/PLIST.Darwin:1.1
--- /dev/null   Sun Sep 28 06:18:35 2025
+++ pkgsrc/devel/libbsd/PLIST.Darwin    Sun Sep 28 06:18:34 2025
@@ -0,0 +1,25 @@
+@comment $NetBSD: PLIST.Darwin,v 1.1 2025/09/28 06:18:34 vins Exp $
+include/bsd/grp.h
+include/bsd/pwd.h
+man/man3/closefrom.3bsd
+man/man3/dehumanize_number.3bsd
+man/man3/expand_number.3bsd
+man/man3/explicit_bzero.3bsd
+man/man3/flopen.3bsd
+man/man3/freezero.3bsd
+man/man3/getbsize.3bsd
+man/man3/gid_from_group.3bsd
+man/man3/humanize_number.3bsd
+man/man3/pidfile.3bsd
+man/man3/pidfile_close.3bsd
+man/man3/pidfile_open.3bsd
+man/man3/pidfile_remove.3bsd
+man/man3/pidfile_write.3bsd
+man/man3/pwcache.3bsd
+man/man3/reallocarray.3bsd
+man/man3/recallocarray.3bsd
+man/man3/setproctitle.3bsd
+man/man3/setproctitle_init.3bsd
+man/man3/strtoi.3bsd
+man/man3/strtou.3bsd
+man/man3/uid_from_user.3bsd
Index: pkgsrc/devel/libbsd/PLIST.NetBSD
diff -u /dev/null pkgsrc/devel/libbsd/PLIST.NetBSD:1.1
--- /dev/null   Sun Sep 28 06:18:35 2025
+++ pkgsrc/devel/libbsd/PLIST.NetBSD    Sun Sep 28 06:18:34 2025
@@ -0,0 +1,5 @@
+@comment $NetBSD: PLIST.NetBSD,v 1.1 2025/09/28 06:18:34 vins Exp $
+man/man3/explicit_bzero.3bsd
+man/man3/flopen.3bsd
+man/man3/freezero.3bsd
+man/man3/recallocarray.3bsd
Index: pkgsrc/devel/libbsd/PLIST.SunOS
diff -u /dev/null pkgsrc/devel/libbsd/PLIST.SunOS:1.1
--- /dev/null   Sun Sep 28 06:18:35 2025
+++ pkgsrc/devel/libbsd/PLIST.SunOS     Sun Sep 28 06:18:34 2025
@@ -0,0 +1,64 @@
+@comment $NetBSD: PLIST.SunOS,v 1.1 2025/09/28 06:18:34 vins Exp $
+include/bsd/err.h
+include/bsd/getopt.h
+include/bsd/grp.h
+include/bsd/pwd.h
+include/bsd/readpassphrase.h
+include/bsd/stringlist.h
+include/bsd/timeconv.h
+include/bsd/vis.h
+man/man3/dehumanize_number.3bsd
+man/man3/errc.3bsd
+man/man3/expand_number.3bsd
+man/man3/explicit_bzero.3bsd
+man/man3/fgetln.3bsd
+man/man3/fgetwln.3bsd
+man/man3/flopen.3bsd
+man/man3/fparseln.3bsd
+man/man3/fpurge.3bsd
+man/man3/freezero.3bsd
+man/man3/getbsize.3bsd
+man/man3/getmode.3bsd
+man/man3/getpeereid.3bsd
+man/man3/gid_from_group.3bsd
+man/man3/group_from_gid.3bsd
+man/man3/heapsort.3bsd
+man/man3/humanize_number.3bsd
+man/man3/mergesort.3bsd
+man/man3/pidfile.3bsd
+man/man3/pidfile_close.3bsd
+man/man3/pidfile_open.3bsd
+man/man3/pidfile_remove.3bsd
+man/man3/pidfile_write.3bsd
+man/man3/pwcache.3bsd
+man/man3/radixsort.3bsd
+man/man3/readpassphrase.3bsd
+man/man3/reallocarray.3bsd
+man/man3/recallocarray.3bsd
+man/man3/setmode.3bsd
+man/man3/setproctitle.3bsd
+man/man3/setproctitle_init.3bsd
+man/man3/sl_add.3bsd
+man/man3/sl_delete.3bsd
+man/man3/sl_find.3bsd
+man/man3/sl_free.3bsd
+man/man3/sl_init.3bsd
+man/man3/sradixsort.3bsd
+man/man3/stringlist.3bsd
+man/man3/strmode.3bsd
+man/man3/strnunvis.3bsd
+man/man3/strnvis.3bsd
+man/man3/strtoi.3bsd
+man/man3/strtou.3bsd
+man/man3/strunvis.3bsd
+man/man3/strvis.3bsd
+man/man3/strvisx.3bsd
+man/man3/uid_from_user.3bsd
+man/man3/unvis.3bsd
+man/man3/user_from_uid.3bsd
+man/man3/verrc.3bsd
+man/man3/vis.3bsd
+man/man3/vwarnc.3bsd
+man/man3/warnc.3bsd
+man/man3/wcslcat.3bsd
+man/man3/wcslcpy.3bsd

Index: pkgsrc/devel/libbsd/patches/patch-include_bsd_unistd.h
diff -u /dev/null pkgsrc/devel/libbsd/patches/patch-include_bsd_unistd.h:1.1
--- /dev/null   Sun Sep 28 06:18:35 2025
+++ pkgsrc/devel/libbsd/patches/patch-include_bsd_unistd.h      Sun Sep 28 06:18:35 2025
@@ -0,0 +1,19 @@
+$NetBSD: patch-include_bsd_unistd.h,v 1.1 2025/09/28 06:18:35 vins Exp $
+
+Avoid type clash for closefrom() on NetBSD.
+
+--- include/bsd/unistd.h.orig  2024-02-11 18:30:03.000000000 +0000
++++ include/bsd/unistd.h
+@@ -61,9 +61,10 @@ int bsd_getopt(int argc, char * const ar
+ mode_t getmode(const void *set, mode_t mode);
+ void *setmode(const char *mode_str);
+ 
+-#if !defined(__GLIBC__) || \
++#if !defined(__NetBSD__) && (\
++    !defined(__GLIBC__) || \
+     !__GLIBC_PREREQ(2, 34) || \
+-    !defined(_DEFAULT_SOURCE)
++    !defined(_DEFAULT_SOURCE))
+ void closefrom(int lowfd);
+ #endif
+ 
Index: pkgsrc/devel/libbsd/patches/patch-src_libbsd.map.in
diff -u /dev/null pkgsrc/devel/libbsd/patches/patch-src_libbsd.map.in:1.1
--- /dev/null   Sun Sep 28 06:18:35 2025
+++ pkgsrc/devel/libbsd/patches/patch-src_libbsd.map.in Sun Sep 28 06:18:35 2025
@@ -0,0 +1,23 @@
+$NetBSD: patch-src_libbsd.map.in,v 1.1 2025/09/28 06:18:35 vins Exp $
+
+None of these features is built on NetBSD. 
+
+--- src/libbsd.map.in.orig     2024-03-07 02:11:51.000000000 +0000
++++ src/libbsd.map.in
+@@ -1,6 +1,7 @@
+ #include "config.h"
+ 
+ LIBBSD_0.0 {
++#if !defined(__NetBSD__)
+   global:
+ #if LIBBSD_ABI_ARC4RANDOM
+     arc4random;
+@@ -77,7 +78,7 @@ LIBBSD_0.0 {
+     MD5FileChunk;
+     MD5Data;
+ #endif
+-
++#endif /* defined(__NetBSD__) */
+   local:
+     *;
+ };



Home | Main Index | Thread Index | Old Index