Skip to contentSkip to conversation

zlib: split src_uri into inc file

PATCH Superseded Sean Nyekjaer 3 participants 10 messages Jul 11, 2022

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 zlib: split src_uri into inc file

---
 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
meta/recipes-core/zlib/zlib.inc new file +4 -0
new file mode 100644
index 0000000000..2bcc32071a
@@ -0,0 +1,4 @@
+SRC_URI = "https://zlib.net/${BP}.tar.xz"
+UPSTREAM_CHECK_URI = "http://zlib.net/"
+
+SRC_URI[sha256sum] = "7db46b8d7726232a621befaab4a1c870f00a90805511c0e0090441dac57def18"
meta/recipes-core/zlib/zlib_1.2.12.bb +9 -9
index e921703137..ba986d8cf2 100644
@@ -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"
 
Signature · 1 line
2.36.1
#1 lore raw

PATCH 2/2 zlib: minizip: add recipe

---
 meta/recipes-core/zlib/minizip_1.2.12.bb | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
 create mode 100644 meta/recipes-core/zlib/minizip_1.2.12.bb
meta/recipes-core/zlib/minizip_1.2.12.bb new file +15 -0
new file mode 100644
index 0000000000..548bb8c62b
@@ -0,0 +1,15 @@
+SUMMARY = "Minimal zip library using deflate from zlib"
+HOMEPAGE = "http://zlib.net/"
+SECTION = "libs"
+LICENSE = "Zlib"
+LIC_FILES_CHKSUM = "file://MiniZip64_info.txt;beginline=53;endline=73;md5=02090b3a3511ed8a910b77dae6906cea"
+
+include zlib.inc
+
+inherit autotools
+
+DEPENDS = "zlib"
+
+S = "${WORKDIR}/zlib-${PV}/contrib/minizip"
+
+BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.36.1
#2 lore raw

Re: [OE-core] [PATCH 2/2] zlib: minizip: add recipe

Quoted 5 lines · Sean Nyekjaer
---
 meta/recipes-core/zlib/minizip_1.2.12.bb | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
 create mode 100644 meta/recipes-core/zlib/minizip_1.2.12.bb

I can see what this does, but why? Who would want this and why? There is no detail in the commit messages. Also no maintainers entry which will break QA checks.

Cheers,

Richard

#3 lore raw

Re: [OE-core] [PATCH 2/2] zlib: minizip: add recipe

Quoted 7 lines · Richard Purdie
Quoted 5 lines · Sean Nyekjaer
---
 meta/recipes-core/zlib/minizip_1.2.12.bb | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
 create mode 100644 meta/recipes-core/zlib/minizip_1.2.12.bb
Quoted 9 lines

I can see what this does, but why? Who would want this and why? There is no detail in the commit messages. Also no maintainers entry which will break QA checks.

Cheers,

Richard

Hi Richard,

We have some software that depends on minizip.
I don't know if an extra package zlib-minizip or this was the prefered way to add it?

/Sean

#4 lore raw

Re: [OE-core] [PATCH 2/2] zlib: minizip: add recipe

Quoted 18 lines · Sean Nyekjaer
Quoted 7 lines · Richard Purdie
Quoted 5 lines · Sean Nyekjaer
---
 meta/recipes-core/zlib/minizip_1.2.12.bb | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
 create mode 100644 meta/recipes-core/zlib/minizip_1.2.12.bb
Quoted 9 lines

I can see what this does, but why? Who would want this and why? There is no detail in the commit messages. Also no maintainers entry which will break QA checks.

Cheers,

Richard

Quoted 5 lines

Hi Richard,

We have some software that depends on minizip.
I don't know if an extra package zlib-minizip or this was the prefered way to add it?

I think an extra package on the existing recipe may be simpler and easier maintenance.

Commit messages do need a bit more information in them too, it isn't enough to say what something does, it needs to say why.

Cheers,

Richard

#5 lore raw

Re: [OE-core] [PATCH 2/2] zlib: minizip: add recipe

Quoted 28 lines · Richard Purdie
Quoted 18 lines · Sean Nyekjaer
Quoted 7 lines · Richard Purdie
Quoted 5 lines · Sean Nyekjaer
---
 meta/recipes-core/zlib/minizip_1.2.12.bb | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
 create mode 100644 meta/recipes-core/zlib/minizip_1.2.12.bb
Quoted 9 lines

I can see what this does, but why? Who would want this and why? There is no detail in the commit messages. Also no maintainers entry which will break QA checks.

Cheers,

Richard

Quoted 5 lines

Hi Richard,

We have some software that depends on minizip.
I don't know if an extra package zlib-minizip or this was the prefered way to add it?

I think an extra package on the existing recipe may be simpler and easier maintenance.

Quoted 6 lines

Commit messages do need a bit more information in them too, it isn't enough to say what something does, it needs to say why.

Cheers,

Richard

I think it will be quite hacky to do it as one recipe, as zlib and minizip is to seperate autotools projects and zlib isn't even compatible with the autotools class.
I could something with addtask but I don't think it will be very readable.

Any ideas?

/Sean

#6 lore raw
In reply to Sean Nyekjaer

We are in process of merging the inc files can you cite reasons why we want to split it

Quoted 69 lines · Sean Nyekjaer
---
 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
meta/recipes-core/zlib/zlib.inc new file +4 -0
new file mode 100644
index 0000000000..2bcc32071a
@@ -0,0 +1,4 @@
+SRC_URI = "https://zlib.net/${BP}.tar.xz"
+UPSTREAM_CHECK_URI = "http://zlib.net/"
+
+SRC_URI[sha256sum] =

"7db46b8d7726232a621befaab4a1c870f00a90805511c0e0090441dac57def18"

meta/recipes-core/zlib/zlib_1.2.12.bb +0 -0
index e921703137..ba986d8cf2 100644
@@ -6,16 +6,16 @@ SECTION = "libs"
 LICENSE = "Zlib"
 LIC_FILES_CHKSUM =

"file://zlib.h;beginline=6;endline=23;md5=5377232268e952e9ef63bc555f7aa6c0"

meta/recipes-core/zlib/zlib_1.2.12.bb +7 -8
-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.36.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#167861):
https://lists.openembedded.org/g/openembedded-core/message/167861
Mute This Topic: https://lists.openembedded.org/mt/92305639/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#7 lore raw
Quoted 3 lines · Khem Raj

We are in process of merging the inc files can you cite reasons why we want to split it

@Khem:
Inside the zlib artifact resides a contrib directory that contains more libs, one of them minizip are we using in our project.

/Sean

#8 lore raw
Quoted 10 lines · Sean Nyekjaer
Quoted 1 line · Khem Raj

We are in process of merging the inc files can you cite reasons why we

want

Quoted 2 lines

to split it

@Khem:
Inside the zlib artifact resides a contrib directory that contains more libs, one of them minizip are we using in our project.

Is it possible to use packageconfig for enabling this

Quoted 2 lines

/Sean

#9 lore raw
Quoted 8 lines · Khem Raj
Quoted 6 lines · Sean Nyekjaer
Quoted 1 line · Khem Raj

We are in process of merging the inc files can you cite reasons why we

want

Quoted 2 lines

to split it

Quoted 8 lines
Quoted 4 lines

@Khem:
Inside the zlib artifact resides a contrib directory that contains more libs, one of them minizip are we using in our project.

Is it possible to use packageconfig for enabling this

No it doesn't look like it :(