From 182878599fd87a559c954277be89c9994762dcc7 Mon Sep 17 00:00:00 2001 From: openeuler-basic Date: Wed, 1 Jan 2020 02:06:26 +0800 Subject: [PATCH] fix build error --- bugfix-libidn2-change-rpath.patch | 48 ++++++++++++++++--------------- libidn2.spec | 5 +++- 2 files changed, 29 insertions(+), 24 deletions(-) diff --git a/bugfix-libidn2-change-rpath.patch b/bugfix-libidn2-change-rpath.patch index 2127f9a..eda373e 100644 --- a/bugfix-libidn2-change-rpath.patch +++ b/bugfix-libidn2-change-rpath.patch @@ -1,27 +1,28 @@ -From bd59ee8712c74487f02891508ad9de51fe670588 Mon Sep 17 00:00:00 2001 +From cba80c7d0aff8d43ae4d1fde2336560f9315a10c Mon Sep 17 00:00:00 2001 From: openEuler Buildteam -Date: Wed, 1 Jan 2020 00:46:32 +0800 +Date: Wed, 1 Jan 2020 01:57:21 +0800 Subject: [PATCH] change rpath --- - libidn2-2.0.5/configure | 4 +++- - libidn2-2.0.5/m4/libtool.m4 | 4 +++- - 2 files changed, 6 insertions(+), 2 deletions(-) + configure | 5 ++++- + m4/libtool.m4 | 5 ++++- + 2 files changed, 8 insertions(+), 2 deletions(-) -diff --git a/libidn2-2.0.5/configure b/libidn2-2.0.5/configure -index c726942..f7dc93a 100755 ---- a/libidn2-2.0.5/configure -+++ b/libidn2-2.0.5/configure -@@ -14295,6 +14295,8 @@ fi - # Some rework will be needed to allow for fast_install +diff --git a/configure b/configure +index c726942..fe9e5fd 100755 +--- a/configure ++++ b/configure +@@ -14296,6 +14296,9 @@ fi # before this can be enabled. hardcode_into_libs=yes -+ -+ sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" ++ # Add ABI-specific directories to the system library path. ++ sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" ++ # Ideally, we could use ldconfig to report *all* directores which are # searched for libraries, however this is still not possible. Aside from not -@@ -14304,7 +14306,7 @@ fi + # being certain /sbin/ldconfig is available, command +@@ -14304,7 +14307,7 @@ fi # appending ld.so.conf contents (and includes) to the search path. if test -f /etc/ld.so.conf; then lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` @@ -30,20 +31,21 @@ index c726942..f7dc93a 100755 fi # We used to test for /lib/ld.so.1 and disable shared libraries on -diff --git a/libidn2-2.0.5/m4/libtool.m4 b/libidn2-2.0.5/m4/libtool.m4 -index ee80844..2ff9b60 100644 ---- a/libidn2-2.0.5/m4/libtool.m4 -+++ b/libidn2-2.0.5/m4/libtool.m4 -@@ -2865,6 +2865,8 @@ linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) - # Some rework will be needed to allow for fast_install +diff --git a/m4/libtool.m4 b/m4/libtool.m4 +index ee80844..f8ad53d 100644 +--- a/m4/libtool.m4 ++++ b/m4/libtool.m4 +@@ -2866,6 +2866,9 @@ linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) # before this can be enabled. hardcode_into_libs=yes -+ -+ sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" ++ # Add ABI-specific directories to the system library path. ++ sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" ++ # Ideally, we could use ldconfig to report *all* directores which are # searched for libraries, however this is still not possible. Aside from not -@@ -2874,7 +2876,7 @@ linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) + # being certain /sbin/ldconfig is available, command +@@ -2874,7 +2877,7 @@ linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) # appending ld.so.conf contents (and includes) to the search path. if test -f /etc/ld.so.conf; then lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` diff --git a/libidn2.spec b/libidn2.spec index a5b246a..5f2d134 100644 --- a/libidn2.spec +++ b/libidn2.spec @@ -1,6 +1,6 @@ Name: libidn2 Version: 2.0.5 -Release: 6 +Release: 7 Summary: GNU IDN Library License: (GPLv2+ or LGPLv3+) and GPLv3+ URL: https://www.gnu.org/software/libidn/#libidn2 @@ -78,6 +78,9 @@ make %{?_smp_mflags} -C tests check %{_datadir}/gtk-doc/ %changelog +* Wed Jan 1 2020 openEuler Buildteam - 2.0.5-7 +- Fix bug in patched + * Wed Jan 1 2020 openEuler Buildteam - 2.0.5-6 - Fix bug in patched