diff options
-rw-r--r-- | meta/recipes-devtools/opkg/opkg/0001-Fix-libopkg-header-installation.patch | 32 | ||||
-rw-r--r-- | meta/recipes-devtools/opkg/opkg_svn.bb | 1 |
2 files changed, 33 insertions, 0 deletions
diff --git a/meta/recipes-devtools/opkg/opkg/0001-Fix-libopkg-header-installation.patch b/meta/recipes-devtools/opkg/opkg/0001-Fix-libopkg-header-installation.patch new file mode 100644 index 0000000000..c27fdb13b4 --- /dev/null +++ b/meta/recipes-devtools/opkg/opkg/0001-Fix-libopkg-header-installation.patch | |||
@@ -0,0 +1,32 @@ | |||
1 | From 79a40cc4c3b5d6f8a90d9dc0ac5d2c40983764f7 Mon Sep 17 00:00:00 2001 | ||
2 | From: Paul Barker <paul@paulbarker.me.uk> | ||
3 | Date: Sun, 16 Jun 2013 23:27:27 +0100 | ||
4 | Subject: [PATCH] Fix libopkg header installation. | ||
5 | |||
6 | When opkg is built outside the source directory, libopkg headers aren't all | ||
7 | installed as the search path for headers only includes the directory that make | ||
8 | is being ran in, not the source directory. So we fix this by adding | ||
9 | $(srcdir)/*.h to the list of header files to install. | ||
10 | |||
11 | Signed-off-by: Paul Barker <paul@paulbarker.me.uk> | ||
12 | Upstream-status: Submitted | ||
13 | --- | ||
14 | libopkg/Makefile.am | 2 +- | ||
15 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
16 | |||
17 | diff --git a/libopkg/Makefile.am b/libopkg/Makefile.am | ||
18 | index 043c5c4..b6f4f7b 100644 | ||
19 | --- a/libopkg/Makefile.am | ||
20 | +++ b/libopkg/Makefile.am | ||
21 | @@ -2,7 +2,7 @@ | ||
22 | AM_CFLAGS=-Wall -DHOST_CPU_STR=\"@host_cpu@\" -DBUILD_CPU=@build_cpu@ -DLIBDIR=\"@libdir@\" -DOPKGLIBDIR=\"@opkglibdir@\" -DOPKGETCDIR=\"@opkgetcdir@\" -DOPKGLOCKFILE=\"@opkglockfile@\" -DDATADIR=\"@datadir@\" -I$(top_srcdir) $(BIGENDIAN_CFLAGS) $(CURL_CFLAGS) $(GPGME_CFLAGS) $(PATHFINDER_CFLAGS) | ||
23 | |||
24 | libopkg_includedir=$(includedir)/libopkg | ||
25 | -libopkg_include_HEADERS= *.h | ||
26 | +libopkg_include_HEADERS= *.h $(srcdir)/*.h | ||
27 | |||
28 | |||
29 | opkg_libcore_sources = \ | ||
30 | -- | ||
31 | 1.8.3 | ||
32 | |||
diff --git a/meta/recipes-devtools/opkg/opkg_svn.bb b/meta/recipes-devtools/opkg/opkg_svn.bb index 382bfdd1d8..9f3512d06d 100644 --- a/meta/recipes-devtools/opkg/opkg_svn.bb +++ b/meta/recipes-devtools/opkg/opkg_svn.bb | |||
@@ -2,6 +2,7 @@ require opkg.inc | |||
2 | 2 | ||
3 | SRC_URI = "svn://opkg.googlecode.com/svn;module=trunk;protocol=http \ | 3 | SRC_URI = "svn://opkg.googlecode.com/svn;module=trunk;protocol=http \ |
4 | file://obsolete_automake_macros.patch \ | 4 | file://obsolete_automake_macros.patch \ |
5 | file://0001-Fix-libopkg-header-installation.patch \ | ||
5 | " | 6 | " |
6 | 7 | ||
7 | S = "${WORKDIR}/trunk" | 8 | S = "${WORKDIR}/trunk" |