summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/opkg/opkg
diff options
context:
space:
mode:
authorPaul Barker <paul@paulbarker.me.uk>2013-06-17 01:22:02 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-06-18 17:33:15 +0100
commitea4217591a1c290f1e257b15f358c538bbe49492 (patch)
tree65a6d67cdf7b708c01c78a1d9156503b216b0c9b /meta/recipes-devtools/opkg/opkg
parentbd30668838924fe4042db745704341e36819e12a (diff)
downloadpoky-ea4217591a1c290f1e257b15f358c538bbe49492.tar.gz
opkg: fix header installation for libopkg
When opkg is built outside the source directory, libopkg headers aren't all installed as the search path for headers only includes the directory that make is being ran in, not the source directory. So we fix this by adding $(srcdir)/*.h to the list of header files to install. Without this patch, "/usr/include/libopkg" will only include the file config.h. With this patch, other files such as "opkg.h" are present which are needed to compile software which uses libopkg. The new patch has also been submitted upstream as a fix to opkg itself. (From OE-Core rev: 873689bbabba25e7be5c12317c04519a7bc8d0ef) Signed-off-by: Paul Barker <paul@paulbarker.me.uk> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/opkg/opkg')
-rw-r--r--meta/recipes-devtools/opkg/opkg/0001-Fix-libopkg-header-installation.patch32
1 files changed, 32 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 @@
1From 79a40cc4c3b5d6f8a90d9dc0ac5d2c40983764f7 Mon Sep 17 00:00:00 2001
2From: Paul Barker <paul@paulbarker.me.uk>
3Date: Sun, 16 Jun 2013 23:27:27 +0100
4Subject: [PATCH] Fix libopkg header installation.
5
6When opkg is built outside the source directory, libopkg headers aren't all
7installed as the search path for headers only includes the directory that make
8is 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
11Signed-off-by: Paul Barker <paul@paulbarker.me.uk>
12Upstream-status: Submitted
13---
14 libopkg/Makefile.am | 2 +-
15 1 file changed, 1 insertion(+), 1 deletion(-)
16
17diff --git a/libopkg/Makefile.am b/libopkg/Makefile.am
18index 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--
311.8.3
32