summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/libsolv
diff options
context:
space:
mode:
authorAlejandro del Castillo <alejandro.delcastillo@ni.com>2017-01-27 16:38:57 -0600
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-02-05 09:22:16 +0000
commite3b90b7d36972c2fd79f0691de6201f305375bb8 (patch)
treeb57e385573875c719b937e4828970211f70cdcd6 /meta/recipes-extended/libsolv
parent6254e28b31212a36cef26c9552e99c015082afc4 (diff)
downloadpoky-e3b90b7d36972c2fd79f0691de6201f305375bb8.tar.gz
libsolv: split libsolvext into it's own pkg-config
Opkg only depends on libsolv proper, splitting libsolv-ext pkg-config reduces opkg dependencies. (From OE-Core rev: fa9a75c5c968ca878c702bd52f983ddf96ecca65) Signed-off-by: Alejandro del Castillo <alejandro.delcastillo@ni.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/libsolv')
-rw-r--r--meta/recipes-extended/libsolv/libsolv/0001-Split-libsolvext-into-it-s-own-pkg-config-file.patch67
-rw-r--r--meta/recipes-extended/libsolv/libsolv_0.6.24.bb1
2 files changed, 68 insertions, 0 deletions
diff --git a/meta/recipes-extended/libsolv/libsolv/0001-Split-libsolvext-into-it-s-own-pkg-config-file.patch b/meta/recipes-extended/libsolv/libsolv/0001-Split-libsolvext-into-it-s-own-pkg-config-file.patch
new file mode 100644
index 0000000000..9d9b234a94
--- /dev/null
+++ b/meta/recipes-extended/libsolv/libsolv/0001-Split-libsolvext-into-it-s-own-pkg-config-file.patch
@@ -0,0 +1,67 @@
1From 0830ceffb32bdf61dab2a598b9e77f65d089074f Mon Sep 17 00:00:00 2001
2From: Alejandro del Castillo <alejandro.delcastillo@ni.com>
3Date: Fri, 27 Jan 2017 16:10:14 -0600
4Subject: [PATCH] Split libsolvext into it's own pkg-config file
5
6Upstream-Status: Submitted (https://github.com/openSUSE/libsolv/pull/177)
7
8Signed-off-by: Alejandro del Castillo <alejandro.delcastillo@ni.com>
9---
10 CMakeLists.txt | 4 +++-
11 libsolv.pc.in | 4 ++--
12 libsolv.pc.in => libsolvext.pc.in | 4 ++--
13 3 files changed, 7 insertions(+), 5 deletions(-)
14 copy libsolv.pc.in => libsolvext.pc.in (62%)
15
16diff --git a/CMakeLists.txt b/CMakeLists.txt
17index 82034e0..0777ed9 100644
18--- a/CMakeLists.txt
19+++ b/CMakeLists.txt
20@@ -384,9 +384,11 @@ MACRO (SPECFILE)
21 ENDMACRO (SPECFILE)
22
23 MACRO (PCFILE)
24- MESSAGE (STATUS "Writing pkg-config file...")
25+ MESSAGE (STATUS "Writing pkg-config files...")
26 CONFIGURE_FILE (${CMAKE_SOURCE_DIR}/libsolv.pc.in ${CMAKE_BINARY_DIR}/libsolv.pc @ONLY)
27 INSTALL( FILES ${CMAKE_BINARY_DIR}/libsolv.pc DESTINATION ${LIB_INSTALL_DIR}/pkgconfig )
28+ CONFIGURE_FILE (${CMAKE_SOURCE_DIR}/libsolvext.pc.in ${CMAKE_BINARY_DIR}/libsolvext.pc @ONLY)
29+ INSTALL( FILES ${CMAKE_BINARY_DIR}/libsolvext.pc DESTINATION ${LIB_INSTALL_DIR}/pkgconfig )
30 ENDMACRO (PCFILE)
31
32 SPECFILE ()
33diff --git a/libsolv.pc.in b/libsolv.pc.in
34index c82dfc4..40a8623 100644
35--- a/libsolv.pc.in
36+++ b/libsolv.pc.in
37@@ -2,7 +2,7 @@ libdir=@LIB_INSTALL_DIR@
38 includedir=@INCLUDE_INSTALL_DIR@
39
40 Name: libsolv
41-Description: Library for solving packages and reading repositories
42+Description: Library for solving packages
43 Version: @VERSION@
44-Libs: -L${libdir} -lsolvext -lsolv
45+Libs: -L${libdir} -lsolv
46 Cflags: -I${includedir}
47diff --git a/libsolv.pc.in b/libsolvext.pc.in
48similarity index 62%
49copy from libsolv.pc.in
50copy to libsolvext.pc.in
51index c82dfc4..6395f39 100644
52--- a/libsolv.pc.in
53+++ b/libsolvext.pc.in
54@@ -1,8 +1,8 @@
55 libdir=@LIB_INSTALL_DIR@
56 includedir=@INCLUDE_INSTALL_DIR@
57
58-Name: libsolv
59-Description: Library for solving packages and reading repositories
60+Name: libsolvext
61+Description: Library for reading repositories
62 Version: @VERSION@
63 Libs: -L${libdir} -lsolvext -lsolv
64 Cflags: -I${includedir}
65--
662.7.4
67
diff --git a/meta/recipes-extended/libsolv/libsolv_0.6.24.bb b/meta/recipes-extended/libsolv/libsolv_0.6.24.bb
index a5d7b5a9a7..6de38b5915 100644
--- a/meta/recipes-extended/libsolv/libsolv_0.6.24.bb
+++ b/meta/recipes-extended/libsolv/libsolv_0.6.24.bb
@@ -8,6 +8,7 @@ LIC_FILES_CHKSUM = "file://LICENSE.BSD;md5=62272bd11c97396d4aaf1c41bc11f7d8"
8DEPENDS = "expat zlib" 8DEPENDS = "expat zlib"
9 9
10SRC_URI = "git://github.com/openSUSE/libsolv.git \ 10SRC_URI = "git://github.com/openSUSE/libsolv.git \
11 file://0001-Split-libsolvext-into-it-s-own-pkg-config-file.patch \
11 " 12 "
12SRC_URI_append_libc-musl = " file://0001-Add-fallback-fopencookie-implementation.patch" 13SRC_URI_append_libc-musl = " file://0001-Add-fallback-fopencookie-implementation.patch"
13 14