mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Roland Hieber <rhi@pengutronix.de>
To: ptxdist@pengutronix.de
Cc: Jan Luebbe <jlu@pengutronix.de>, Roland Hieber <rhi@pengutronix.de>
Subject: [ptxdist] [PATCH v3 2/2] nss: install all libraries into the sysroot
Date: Fri, 19 Jun 2020 15:44:25 +0200	[thread overview]
Message-ID: <20200619134425.12738-2-rhi@pengutronix.de> (raw)
In-Reply-To: <20200619134425.12738-1-rhi@pengutronix.de>

From: Jan Luebbe <jlu@pengutronix.de>

ecryptfs-utils links to -lssl3 -lsmime3, without using any functions
from it. Install all libraries to the sysroot to make it work. The
unused libraries are still not installed on the target.

Signed-off-by: Jan Luebbe <jlu@pengutronix.de>
Signed-off-by: Roland Hieber <rhi@pengutronix.de>
---
 I overlook this patch in v2, but discovered it again during
 build-testing...

 v2 -> v3: new patch

 rules/nss.make | 28 ++++++++++++++--------------
 1 file changed, 14 insertions(+), 14 deletions(-)

diff --git a/rules/nss.make b/rules/nss.make
index 6a003dd1743f..c8537ceb521b 100644
--- a/rules/nss.make
+++ b/rules/nss.make
@@ -74,24 +74,13 @@ NSS_INSTALL_OPT := \
 	$(NSS_MAKE_OPT) \
 	install
 
-NSS_LIBS := \
-	libnss3 \
-	libnssutil3 \
-	$(call ptx/ifdef, PTXCONF_NSS_INSTALL_LIBSMIME, libsmime3,) \
-	$(call ptx/ifdef, PTXCONF_NSS_INSTALL_LIBSSL, libssl3,) \
-	$(call ptx/ifdef, PTXCONF_NSS_INSTALL_LIBNSSCKBI, libnssckbi,) \
-	$(call ptx/ifdef, PTXCONF_NSS_INSTALL_LIBSOFTOKN, libfreebl3,) \
-	$(call ptx/ifdef, PTXCONF_NSS_INSTALL_LIBSOFTOKN, libfreeblpriv3,) \
-	$(call ptx/ifdef, PTXCONF_NSS_INSTALL_LIBSOFTOKN, libnssdbm3,) \
-	$(call ptx/ifdef, PTXCONF_NSS_INSTALL_LIBSOFTOKN, libsoftokn3,)
-
 $(STATEDIR)/nss.install:
 	@$(call targetinfo)
 	@$(call world/install, NSS)
 
-	@$(foreach lib,$(NSS_LIBS), \
-		install -v -m644 -D $(NSS_DIR)/dist/Linux$(PTXCONF_KERNEL_VERSION)_$(NSS_ARCH)_*/lib/$(lib).so \
-			$(NSS_PKGDIR)/usr/lib/$(lib).so$(ptx/nl))
+	install -d -m755 $(NSS_PKGDIR)/usr/lib/
+	install -m 644 $(NSS_DIR)/dist/Linux$(PTXCONF_KERNEL_VERSION)_$(NSS_ARCH)_*/lib/*.so \
+		$(NSS_PKGDIR)/usr/lib/
 
 	install -d $(NSS_PKGDIR)/usr/lib/pkgconfig/
 	VERSION=$(NSS_VERSION) ptxd_replace_magic \
@@ -106,6 +95,17 @@ $(STATEDIR)/nss.install:
 # Target-Install
 # ----------------------------------------------------------------------------
 
+NSS_LIBS := \
+	libnss3 \
+	libnssutil3 \
+	$(call ptx/ifdef, PTXCONF_NSS_INSTALL_LIBSMIME, libsmime3,) \
+	$(call ptx/ifdef, PTXCONF_NSS_INSTALL_LIBSSL, libssl3,) \
+	$(call ptx/ifdef, PTXCONF_NSS_INSTALL_LIBNSSCKBI, libnssckbi,) \
+	$(call ptx/ifdef, PTXCONF_NSS_INSTALL_LIBSOFTOKN, libfreebl3,) \
+	$(call ptx/ifdef, PTXCONF_NSS_INSTALL_LIBSOFTOKN, libfreeblpriv3,) \
+	$(call ptx/ifdef, PTXCONF_NSS_INSTALL_LIBSOFTOKN, libnssdbm3,) \
+	$(call ptx/ifdef, PTXCONF_NSS_INSTALL_LIBSOFTOKN, libsoftokn3,)
+
 $(STATEDIR)/nss.targetinstall:
 	@$(call targetinfo)
 
-- 
2.27.0


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de

  reply	other threads:[~2020-06-19 13:44 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-09-24 15:14 [ptxdist] [PATCH v1] nss: make installed libraries configurable Roland Hieber
2019-09-30  9:33 ` Roland Hieber
2020-06-19 12:31   ` [ptxdist] [PATCH] " Roland Hieber
2020-06-19 12:33     ` [ptxdist] [PATCH v2] " Roland Hieber
2020-06-19 13:44 ` [ptxdist] [PATCH v3 1/2] " Roland Hieber
2020-06-19 13:44   ` Roland Hieber [this message]
2020-06-19 14:15     ` [ptxdist] [PATCH v3 2/2] nss: install all libraries into the sysroot Michael Olbrich
2020-06-19 15:04   ` [ptxdist] [PATCH v3 1/2] nss: make installed libraries configurable Michael Olbrich
2020-06-19 15:30     ` Michael Olbrich
2020-06-22 10:02     ` Roland Hieber

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200619134425.12738-2-rhi@pengutronix.de \
    --to=rhi@pengutronix.de \
    --cc=jlu@pengutronix.de \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox