gmp: Fix a problem when ${exec_prefix} != ${includedir}, switch to INC_PR
authorTom Rini <trini@embeddedalley.com>
Tue, 7 Jul 2009 01:03:43 +0000 (18:03 -0700)
committerTom Rini <trini@embeddedalley.com>
Tue, 7 Jul 2009 01:03:43 +0000 (18:03 -0700)
recipes/gmp/files/use-includedir.patch [new file with mode: 0644]
recipes/gmp/gmp-canadian_4.2.4.bb
recipes/gmp/gmp-native_4.2.4.bb
recipes/gmp/gmp_4.2.4.bb

diff --git a/recipes/gmp/files/use-includedir.patch b/recipes/gmp/files/use-includedir.patch
new file mode 100644 (file)
index 0000000..ee3891f
--- /dev/null
@@ -0,0 +1,13 @@
+Index: gmp-4.2.4/Makefile.am
+===================================================================
+--- gmp-4.2.4.orig/Makefile.am 2008-09-10 19:31:27.000000000 +0000
++++ gmp-4.2.4/Makefile.am      2009-07-06 20:19:19.000000000 +0000
+@@ -106,7 +106,7 @@
+ # but anyone knowledgable enough to be playing with exec_prefix will be able
+ # to address that.
+ #
+-includeexecdir = $(exec_prefix)/include
++includeexecdir = $(includedir)
+ include_HEADERS = $(GMPXX_HEADERS_OPTION)
+ nodist_includeexec_HEADERS = gmp.h $(MPBSD_HEADERS_OPTION)
+ lib_LTLIBRARIES = libgmp.la $(GMPXX_LTLIBRARIES_OPTION) $(MPBSD_LTLIBRARIES_OPTION)
index 27d179a..63f62ac 100644 (file)
@@ -1,5 +1,6 @@
 PV = "4.2.4"
 require gmp_${PV}.bb
+PR = "${INC_PR}.1"
 
 FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/gmp-${PV}"
 S = "${WORKDIR}/gmp-${PV}"
index 1e0ffb4..aa927b6 100644 (file)
@@ -1,2 +1,3 @@
 PV = "4.2.4"
 require gmp-native.inc
+PR = "${INC_PR}.1"
index a7aa712..a9c14e6 100644 (file)
@@ -1,6 +1,8 @@
-PR = "r0"
+INC_PR = "r0"
+PR = "${INC_PR}.1"
 
 SRC_URI_append += "file://sh4-asmfix.patch;patch=1 \
+                   file://use-includedir.patch;patch=1 \
                  "
 require gmp.inc
 LICENSE = "GPLv3 LGPLv3"