NetBSD Problem Report #56634

From www@netbsd.org  Sun Jan 16 19:57:41 2022
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 411BB1A9239
	for <gnats-bugs@gnats.NetBSD.org>; Sun, 16 Jan 2022 19:57:41 +0000 (UTC)
Message-Id: <20220116195739.CDEF41A923A@mollari.NetBSD.org>
Date: Sun, 16 Jan 2022 19:57:39 +0000 (UTC)
From: pekdon@gmail.com
Reply-To: pekdon@gmail.com
To: gnats-bugs@NetBSD.org
Subject: PLIST issue for devel/nss on Solaris Sparc
X-Send-Pr-Version: www-1.0

>Number:         56634
>Category:       pkg
>Synopsis:       PLIST issue for devel/nss on Solaris Sparc
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    solaris-pkg-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jan 16 20:00:00 +0000 2022
>Last-Modified:  Wed Jan 19 10:47:06 +0000 2022
>Originator:     Claes Nstn
>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

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->solaris-pkg-people
Responsible-Changed-By: hauke@NetBSD.org
Responsible-Changed-When: Wed, 19 Jan 2022 10:47:06 +0000
Responsible-Changed-Why:
A SunOS problem.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.