[PATCH] libidn: Fix problem with #include_next

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

 



#include_next is not understood by the compiler, and hence it gives up. 

(I don't understand why this is not seen in x86 builds, comments?)


(http://www.gnu.org/software/gnulib/manual/html_node/stdint_002eh.html)

Signed-off-by: Kedar Sovani <kedars@xxxxxxxxxxx>
---
 libidn-0.6.14-include-next.patch |   12 ++++++++++++
 libidn.spec                      |    6 +++++-
 2 files changed, 17 insertions(+), 1 deletions(-)
 create mode 100644 libidn-0.6.14-include-next.patch

diff --git a/libidn-0.6.14-include-next.patch b/libidn-0.6.14-include-next.patch
new file mode 100644
index 0000000..d28ea9d
--- /dev/null
+++ b/libidn-0.6.14-include-next.patch
@@ -0,0 +1,12 @@
+diff -urp libidn-0.6.14.orig/lib/Makefile.am libidn-0.6.14/lib/Makefile.am
+--- libidn-0.6.14.orig/lib/Makefile.am	2007-05-31 06:31:00.000000000 -0400
++++ libidn-0.6.14/lib/Makefile.am	2008-12-16 00:25:12.000000000 -0500
+@@ -37,7 +37,7 @@ nodist_include_HEADERS = $(idn_int)
+ 
+ idn-int.h:
+ 	if test -n "$(STDINT_H)"; then \
+-		cp gl/stdint.h idn-int.h; \
++		sed -e s/include_next/include/ gl/stdint.h > idn-int.h; \
+ 	else \
+ 		echo '#include <stdint.h>' > idn-int.h; \
+ 	fi
diff --git a/libidn.spec b/libidn.spec
index b9b266e..76d2b35 100644
--- a/libidn.spec
+++ b/libidn.spec
@@ -1,11 +1,12 @@
 Summary: Internationalized Domain Name support library
 Name: libidn
 Version: 0.6.14
-Release: 8
+Release: 8.fa1
 URL: http://www.gnu.org/software/libidn/
 License: LGPLv2+
 Source0: http://josefsson.org/libidn/releases/libidn-%{version}.tar.gz
 Patch0: libidn-0.6.14-aconf262.patch
+Patch1: libidn-0.6.14-include-next.patch
 Group: System Environment/Libraries
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildRequires: pkgconfig, gettext, libtool, autoconf
@@ -33,6 +34,9 @@ developing programs which use the GNU libidn library.
 %prep
 %setup -q
 %patch0 -p1 -b .aconf262
+%ifarch %{arm}
+%patch1 -p1 -b .include-next-fix
+%endif
 
 # Name directory sections consistently in the info file, #209491
 sed -i '/^INFO-DIR-SECTION/{s/GNU Libraries/Libraries/;s/GNU utilities/Utilities/;}' doc/libidn.info
-- 
1.5.3.3


_______________________________________________
fedora-arm mailing list
fedora-arm@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-arm

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux ARM (Vger)]     [Linux ARM]     [ARM Kernel]     [Fedora User Discussion]     [Older Fedora Users Discussion]     [Fedora Advisory Board]     [Fedora Security]     [Fedora Maintainers]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Mentors]     [Fedora Package Announce]     [Fedora Package Review]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Coolkey]     [Yum Users]     [Tux]     [Yosemite News]     [Linux Apps]     [KDE Users]     [Fedora Tools]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]

Powered by Linux