diff options
author | Alejandro del Castillo <alejandro.delcastillo@ni.com> | 2017-01-27 16:38:57 -0600 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-02-05 09:22:16 +0000 |
commit | e3b90b7d36972c2fd79f0691de6201f305375bb8 (patch) | |
tree | b57e385573875c719b937e4828970211f70cdcd6 /meta/recipes-extended/libsolv | |
parent | 6254e28b31212a36cef26c9552e99c015082afc4 (diff) | |
download | poky-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.patch | 67 | ||||
-rw-r--r-- | meta/recipes-extended/libsolv/libsolv_0.6.24.bb | 1 |
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 @@ | |||
1 | From 0830ceffb32bdf61dab2a598b9e77f65d089074f Mon Sep 17 00:00:00 2001 | ||
2 | From: Alejandro del Castillo <alejandro.delcastillo@ni.com> | ||
3 | Date: Fri, 27 Jan 2017 16:10:14 -0600 | ||
4 | Subject: [PATCH] Split libsolvext into it's own pkg-config file | ||
5 | |||
6 | Upstream-Status: Submitted (https://github.com/openSUSE/libsolv/pull/177) | ||
7 | |||
8 | Signed-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 | |||
16 | diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
17 | index 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 () | ||
33 | diff --git a/libsolv.pc.in b/libsolv.pc.in | ||
34 | index 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} | ||
47 | diff --git a/libsolv.pc.in b/libsolvext.pc.in | ||
48 | similarity index 62% | ||
49 | copy from libsolv.pc.in | ||
50 | copy to libsolvext.pc.in | ||
51 | index 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 | -- | ||
66 | 2.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" | |||
8 | DEPENDS = "expat zlib" | 8 | DEPENDS = "expat zlib" |
9 | 9 | ||
10 | SRC_URI = "git://github.com/openSUSE/libsolv.git \ | 10 | SRC_URI = "git://github.com/openSUSE/libsolv.git \ |
11 | file://0001-Split-libsolvext-into-it-s-own-pkg-config-file.patch \ | ||
11 | " | 12 | " |
12 | SRC_URI_append_libc-musl = " file://0001-Add-fallback-fopencookie-implementation.patch" | 13 | SRC_URI_append_libc-musl = " file://0001-Add-fallback-fopencookie-implementation.patch" |
13 | 14 | ||