pkgsrc-Bugs archive

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

pkg/56634: PLIST issue for devel/nss on Solaris Sparc



>Number:         56634
>Category:       pkg
>Synopsis:       PLIST issue for devel/nss on Solaris Sparc
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jan 16 20:00:00 +0000 2022
>Originator:     Claes Nästén
>Release:        trunk 2022-01-01
>Organization:
>Environment:
SunOS 5.10 sun4u sparc SUNW,Sun-Blade-1500
>Description:
devel/nss fails to install on Solaris 10 sparc due to invalid PLIST entries.

From what I gather this is intended and adviced not to be changed, see:

https://developer.mozilla.org/en-US/docs/Mozilla/Projects/NSS/NSS_Tech_Notes/nss_tech_note6#nss_.chk_files_for_the_fips_140_mode
>How-To-Repeat:
Build devel/nss on Solaris 10 sparc64
>Fix:
diff --git a/devel/nss/Makefile b/devel/nss/Makefile
index 967a7b04d9b..9a96bc179de 100644
--- a/devel/nss/Makefile
+++ b/devel/nss/Makefile
@@ -55,6 +55,19 @@ SO_SUFFIX=           so.1.0
 .endif
 PLIST_SUBST+=          SO_SUFFIX=${SO_SUFFIX:Q}
 
+# Depending on architecture and OS different files are generated, see:
+#
+# https://developer.mozilla.org/en-US/docs/Mozilla/Projects/NSS/NSS_Tech_Notes/nss_tech_note6#nss_.chk_files_for_the_fips_140_mode
+#
+.if ${OPSYS} == "SunOS" && ${MACHINE_ARCH} == "sparc"
+PLIST.sparc32= yes
+.elif ${OPSYS} == "SunOS" && ${MACHINE_ARCH} == "sparc64"
+PLIST.sparc64= yes
+.else
+PLIST.plain=   yes
+.endif
+PLIST_VARS+=   plain sparc32 sparc64
+
 .if !empty(PKGSRC_COMPILER:Mclang) || !empty(PKGSRC_COMPILER:Mgcc)
 MAKE_ENV+=             NS_USE_GCC=YES
 .endif
diff --git a/devel/nss/PLIST b/devel/nss/PLIST
index 5fea64060dd..6cdb827f679 100644
--- a/devel/nss/PLIST
+++ b/devel/nss/PLIST
@@ -125,7 +125,12 @@ include/nss/utilpars.h
 include/nss/utilparst.h
 include/nss/utilrename.h
 lib/nss/libcrmf.a
-lib/nss/libfreebl3.so
+${PLIST.plain}lib/nss/libfreebl3.so
+${PLIST.sparc32}lib/nss/libfreebl_32int64_3.so
+${PLIST.sparc32}lib/nss/libfreebl_32fpu_3.so
+${PLIST.sparc32}lib/nss/libfreebl_32int_3.so
+${PLIST.sparc64}lib/nss/libfreebl_64fpu_3.so
+${PLIST.sparc64}lib/nss/libfreebl_64int_3.so
 lib/nss/libnss3.so
 lib/nss/libnssckbi-testlib.so
 lib/nss/libnssckbi.so



Home | Main Index | Thread Index | Old Index