[prev in list] [next in list] [prev in thread] [next in thread]
List: openembedded-core
Subject: [OE-core] [PATCH V2] libidn2: improve reproducibility
From: Hongxu Jia <hongxu.jia () windriver ! com>
Date: 2018-09-29 15:21:08
Message-ID: 1538234468-29047-1-git-send-email-hongxu.jia () windriver ! com
[Download RAW message or body]
Since option `--with-libunistring-prefix' is used, it is not necessary
to explicitly add `-L*** -lunistring' to Libs.private in libidn2.pc
which breaks binary reproducibility.
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
---
...de-lib-name-to-replace-variable-detecting.patch | 33 ++++++++++++++++++++++
meta/recipes-extended/libidn/libidn2_2.0.5.bb | 1 +
2 files changed, 34 insertions(+)
create mode 100644 meta/recipes-extended/libidn/libidn2/0001-use-hardcode-lib-name-to-replace-variable-detecting.patch
diff --git a/meta/recipes-extended/libidn/libidn2/0001-use-hardcode-lib-name-to-replace-variable-detecting.patch \
b/meta/recipes-extended/libidn/libidn2/0001-use-hardcode-lib-name-to-replace-variable-detecting.patch
new file mode 100644
index 0000000..0186ee2
--- /dev/null
+++ b/meta/recipes-extended/libidn/libidn2/0001-use-hardcode-lib-name-to-replace-variable-detecting.patch
@@ -0,0 +1,33 @@
+From 9c8370695042303a13cbed914ea9ae89040ed19c Mon Sep 17 00:00:00 2001
+From: Hongxu Jia <hongxu.jia@windriver.com>
+Date: Sat, 29 Sep 2018 22:36:45 +0800
+Subject: [PATCH] use hardcode lib name to replace variable detecting
+
+As pkgconfig menual introduced:
+`Libs.private: The link flags for private libraries required by this
+package but not exposed to applications.'
+
+Since option `--with-libunistring-prefix' is used, it is not necessary
+to explicitly add `-L*** -lunistring' to Libs.private in libidn2.pc
+which breaks binary reproducibility.
+
+Upstream-Status: Inappropriate[OE specific]]
+
+Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
+---
+ libidn2.pc.in | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/libidn2.pc.in b/libidn2.pc.in
+index 0dade23..66f8d1a 100644
+--- a/libidn2.pc.in
++++ b/libidn2.pc.in
+@@ -8,4 +8,4 @@ Description: Library implementing IDNA2008 and TR46
+ Version: @PACKAGE_VERSION@
+ Cflags: -I${includedir}
+ Libs: -L${libdir} -lidn2
+-Libs.private: @LTLIBICONV@ @LTLIBUNISTRING@
++Libs.private: -lunistring
+--
+2.7.4
+
diff --git a/meta/recipes-extended/libidn/libidn2_2.0.5.bb \
b/meta/recipes-extended/libidn/libidn2_2.0.5.bb index 0daf7a6..6064e52 100644
--- a/meta/recipes-extended/libidn/libidn2_2.0.5.bb
+++ b/meta/recipes-extended/libidn/libidn2_2.0.5.bb
@@ -11,6 +11,7 @@ LIC_FILES_CHKSUM = \
"file://COPYING;md5=ab90e75ef97cc6318ce4f2fbda62fe4d \
SRC_URI = "${GNU_MIRROR}/libidn/${BPN}-${PV}.tar.gz \
file://Unset-need_charset_alias-when-building-for-musl.patch \
+ file://0001-use-hardcode-lib-name-to-replace-variable-detecting.patch \
"
SRC_URI[md5sum] = "eaf9a5b9d03b0cce3760f34b3124eb36"
SRC_URI[sha256sum] = \
"53f69170886f1fa6fa5b332439c7a77a7d22626a82ef17e2c1224858bb4ca2b8"
--
2.7.4
--
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic