zlib: split src_uri into inc file
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
@@ -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
@@ -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
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
@@ -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
Re: [OE-core] [PATCH 2/2] zlib: minizip: add recipe
Quoted 5 lines · Sean Nyekjaer
Signed-off-by Sean Nyekjaer <[email protected]>--- 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
Re: [OE-core] [PATCH 2/2] zlib: minizip: add recipe
Quoted 7 lines · Richard Purdie
Quoted 5 lines · Sean Nyekjaer
Signed-off-by Sean Nyekjaer <[email protected]>--- 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
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
Signed-off-by Sean Nyekjaer <[email protected]>--- 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.bbQuoted 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
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
Signed-off-by Sean Nyekjaer <[email protected]>--- 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.bbQuoted 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
We are in process of merging the inc files can you cite reasons why we want to split it
Quoted 69 lines · Sean Nyekjaer
Signed-off-by Sean Nyekjaer <[email protected]>--- 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.incmeta/recipes-core/zlib/zlib.inc new file +4
-0@@ -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@@ -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]]
-=-=-=-=-=-=-=-=-=-=-=-
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
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
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 :(