Openembedded Core Discussions
 help / color / mirror / Atom feed
* [OE-core] [PATCH v2 1/2] zlib: split SRC_URI into inc file
@ 2022-07-15 11:55 Sean Nyekjaer
  2022-07-15 11:55 ` [OE-core] [PATCH v2 2/2] zlib: minizip: add recipe Sean Nyekjaer
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Sean Nyekjaer @ 2022-07-15 11:55 UTC (permalink / raw)
  To: openembedded-core, denis, richard.purdie, raj.khem; +Cc: Sean Nyekjaer

This is done in preparation for adding packages from the zlib contrib
directory.
Unfortunatly it's not possible to add these via pkgconfig.

Signed-off-by: Sean Nyekjaer <sean@geanix.com>
---
With this we are maintaining the same verison number for both zlib and
minizip in the recipe name. Would it be better to have it in the inc
file?

PV = "1.2.12" ?

 meta/recipes-core/zlib/zlib.inc       |  4 ++++
 meta/recipes-core/zlib/zlib_1.2.12.bb | 18 +++++++++---------
 2 files changed, 13 insertions(+), 9 deletions(-)
 create mode 100644 meta/recipes-core/zlib/zlib.inc

diff --git a/meta/recipes-core/zlib/zlib.inc b/meta/recipes-core/zlib/zlib.inc
new file mode 100644
index 0000000000..b607a82312
--- /dev/null
+++ b/meta/recipes-core/zlib/zlib.inc
@@ -0,0 +1,4 @@
+SRC_URI = "https://zlib.net/zlib-${PV}.tar.xz"
+UPSTREAM_CHECK_URI = "http://zlib.net/"
+
+SRC_URI[sha256sum] = "7db46b8d7726232a621befaab4a1c870f00a90805511c0e0090441dac57def18"
diff --git a/meta/recipes-core/zlib/zlib_1.2.12.bb b/meta/recipes-core/zlib/zlib_1.2.12.bb
index e921703137..ba986d8cf2 100644
--- a/meta/recipes-core/zlib/zlib_1.2.12.bb
+++ b/meta/recipes-core/zlib/zlib_1.2.12.bb
@@ -6,16 +6,16 @@ SECTION = "libs"
 LICENSE = "Zlib"
 LIC_FILES_CHKSUM = "file://zlib.h;beginline=6;endline=23;md5=5377232268e952e9ef63bc555f7aa6c0"
 
-SRC_URI = "https://zlib.net/${BP}.tar.xz \
-           file://cc.patch \
-           file://ldflags-tests.patch \
-           file://0001-configure-Pass-LDFLAGS-to-link-tests.patch \
-           file://run-ptest \
-           file://0001-Correct-incorrect-inputs-provided-to-the-CRC-functio.patch \
-           "
-UPSTREAM_CHECK_URI = "http://zlib.net/"
+include zlib.inc
+
+SRC_URI += "file://cc.patch \
+            file://ldflags-tests.patch \
+            file://0001-configure-Pass-LDFLAGS-to-link-tests.patch \
+            file://run-ptest \
+            file://0001-Correct-incorrect-inputs-provided-to-the-CRC-functio.patch \
+"
 
-SRC_URI[sha256sum] = "7db46b8d7726232a621befaab4a1c870f00a90805511c0e0090441dac57def18"
+UPSTREAM_CHECK_URI = "http://zlib.net/"
 
 CFLAGS += "-D_REENTRANT"
 
-- 
2.37.0



^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2022-08-25  7:34 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-07-15 11:55 [OE-core] [PATCH v2 1/2] zlib: split SRC_URI into inc file Sean Nyekjaer
2022-07-15 11:55 ` [OE-core] [PATCH v2 2/2] zlib: minizip: add recipe Sean Nyekjaer
2022-07-18 16:12 ` [OE-core] [PATCH v2 1/2] zlib: split SRC_URI into inc file Ross Burton
2022-08-08 10:20   ` Sean Nyekjaer
2022-08-25  7:33     ` Sean Nyekjaer
2022-07-23 12:27 ` Alexandre Belloni
2022-07-23 12:28   ` Richard Purdie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox