pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: pkg/58947: pkgsrc-2024Q4 net/samba4 doesn't build on NetBSD/i38610.1
The following reply was made to PR pkg/58947; it has been noted by GNATS.
From: Izumi Tsutsui <tsutsui%ceres.dti.ne.jp@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: tsutsui%ceres.dti.ne.jp@localhost
Subject: Re: pkg/58947: pkgsrc-2024Q4 net/samba4 doesn't build on NetBSD/i38610.1
Date: Sun, 6 Apr 2025 08:41:01 +0900
> Could we tweak PLIST with PLIST_VARS for LP64 with ${LP64PLATFORMS},
> like devel/nss/Makefile?
The following change works around both on NetBSD/amd64 10.1
and NetBSD/i386 10.1:
---
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/net/samba4/Makefile,v
retrieving revision 1.196
diff -u -p -r1.196 Makefile
--- Makefile 7 Jan 2025 11:33:06 -0000 1.196
+++ Makefile 5 Apr 2025 23:37:28 -0000
@@ -123,6 +123,14 @@ PLIST_SUBST+= SOEXT=dylib
PLIST_SUBST+= SOEXT=so
.endif
+# mdb is built only on LP64 hosts (PR pkg/58947)
+PLIST_VARS+= mdb
+.for platform in ${LP64PLATFORMS}
+. if ${MACHINE_PLATFORM:M${platform}}
+PLIST.mdb= yes
+. endif
+.endfor
+
.if !defined(PWD_MKDB)
PWD_MKDB!= ${TYPE} pwd_mkdb 2>&1 | \
${AWK} '/not found/ { print "pwd_mkdb"; exit } { print $$3 }'
Index: PLIST
===================================================================
RCS file: /cvsroot/pkgsrc/net/samba4/PLIST,v
retrieving revision 1.59
diff -u -p -r1.59 PLIST
--- PLIST 26 Nov 2024 11:38:09 -0000 1.59
+++ PLIST 5 Apr 2025 23:37:28 -0000
@@ -780,7 +780,7 @@ ${PLIST.ads}lib/samba/ldb/ldap.${SOEXT}
${PLIST.ads}lib/samba/ldb/ldb.${SOEXT}
${PLIST.ads}lib/samba/ldb/ldbsamba_extensions.${SOEXT}
${PLIST.ads}lib/samba/ldb/linked_attributes.${SOEXT}
-${PLIST.ads}lib/samba/ldb/mdb.${SOEXT}
+${PLIST.ads}${PLIST.mdb}lib/samba/ldb/mdb.${SOEXT}
${PLIST.ads}lib/samba/ldb/new_partition.${SOEXT}
${PLIST.ads}lib/samba/ldb/objectclass.${SOEXT}
${PLIST.ads}lib/samba/ldb/objectclass_attrs.${SOEXT}
@@ -886,7 +886,7 @@ lib/samba/private/libkrb5-private-samba.
lib/samba/private/libkrb5samba-private-samba.so
lib/samba/private/libldb-cmdline-private-samba.so
lib/samba/private/libldb-key-value-private-samba.so
-lib/samba/private/libldb-mdb-int-private-samba.so
+${PLIST.mdb}lib/samba/private/libldb-mdb-int-private-samba.so
lib/samba/private/libldb-private-samba.so
lib/samba/private/libldb-tdb-err-map-private-samba.so
lib/samba/private/libldb-tdb-int-private-samba.so
---
---
Izumi Tsutsui
Home |
Main Index |
Thread Index |
Old Index