libpng12: add it back from oe-core
PATCH 1/1 libpng12: add it back from oe-core
From: Kai Kang <[email protected]>
libpng12 is removed from oe-core. But lsb test 5.0 still requires libpng12. So add it back.
--- meta-oe/recipes-lsb/libpng/libpng12_1.2.57.bb | 36 +++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 meta-oe/recipes-lsb/libpng/libpng12_1.2.57.bb
meta-oe/recipes-lsb/libpng/libpng12_1.2.57.bb new file +36 -0
@@ -0,0 +1,36 @@ +SUMMARY = "PNG image format decoding library" +HOMEPAGE = "http://www.libpng.org/" +SECTION = "libs" +LICENSE = "Libpng" +LIC_FILES_CHKSUM = "file://LICENSE;md5=597b8a91994a3e27ae6aa79bf02677d9 \ + file://png.h;beginline=19;endline=109;md5=166406397718925b660f0033f7558ef7" +DEPENDS = "zlib" + +PN = "libpng12" +S = "${WORKDIR}/libpng-${PV}" + +SRC_URI = "${GENTOO_MIRROR}/libpng-${PV}.tar.xz" + +SRC_URI[md5sum] = "307052e5e8af97b82b17b64fb1b3677a" +SRC_URI[sha256sum] = "0f4620e11fa283fedafb474427c8e96bf149511a1804bdc47350963ae5cf54d8" + +UPSTREAM_CHECK_URI = "http://sourceforge.net/projects/libpng/files/libpng12/" +UPSTREAM_CHECK_REGEX = "/libpng12/(?P<pver>(\d+[\.\-_]*)+)/" + +BINCONFIG_GLOB = "${PN}-config" + +inherit autotools binconfig pkgconfig + +do_install_append() { + # The follow link files link to corresponding png12*.h and libpng12* files + # They conflict with higher verison, so drop them + rm ${D}/${includedir}/png.h + rm ${D}/${includedir}/pngconf.h + + rm ${D}/${libdir}/libpng.la + rm ${D}/${libdir}/libpng.so + rm ${D}/${libdir}/libpng.a || true + rm ${D}/${libdir}/pkgconfig/libpng.pc + + rm ${D}/${bindir}/libpng-config +}
Signature · 1 line
2.14.1
All other LSB related recipes are in oe-core, why should libpng12 be different and live in meta-oe?
Quoted 68 lines · On Wed, Sep 13, 2017 at 11:38 AM, <[email protected]> wrote:
From: Kai Kang <[email protected]>
libpng12 is removed from oe-core. But lsb test 5.0 still requires libpng12. So add it back.
Signed-off-by Kai Kang <[email protected]>--- meta-oe/recipes-lsb/libpng/libpng12_1.2.57.bb | 36 +++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 meta-oe/recipes-lsb/libpng/libpng12_1.2.57.bbmeta-oe/recipes-lsb/libpng/libpng12_1.2.57.bb new file +6
-0@@ -0,0 +1,36 @@ +SUMMARY = "PNG image format decoding library" +HOMEPAGE = "http://www.libpng.org/" +SECTION = "libs" +LICENSE = "Libpng" +LIC_FILES_CHKSUM = "file://LICENSE;md5=597b8a91994a3e27ae6aa79bf02677d9 \ + file://png.h;beginline=19;endline=109;md5=
166406397718925b660f0033f7558ef7"meta-oe/recipes-lsb/libpng/libpng12_1.2.57.bb new file +9
-0+DEPENDS = "zlib" + +PN = "libpng12" +S = "${WORKDIR}/libpng-${PV}" + +SRC_URI = "${GENTOO_MIRROR}/libpng-${PV}.tar.xz" + +SRC_URI[md5sum] = "307052e5e8af97b82b17b64fb1b3677a" +SRC_URI[sha256sum] = "0f4620e11fa283fedafb474427c8e9
6bf149511a1804bdc47350963ae5cf54d8"meta-oe/recipes-lsb/libpng/libpng12_1.2.57.bb new file +2
-0+ +UPSTREAM_CHECK_URI = "http://sourceforge.net/projects/libpng/files/libpng12/"
meta-oe/recipes-lsb/libpng/libpng12_1.2.57.bb new file +8
-0+UPSTREAM_CHECK_REGEX = "/libpng12/(?P<pver>(\d+[\.\-_]*)+)/" + +BINCONFIG_GLOB = "${PN}-config" + +inherit autotools binconfig pkgconfig + +do_install_append() { + # The follow link files link to corresponding png12*.h andlibpng12* files
meta-oe/recipes-lsb/libpng/libpng12_1.2.57.bb new file +11
-1+ # They conflict with higher verison, so drop them + rm ${D}/${includedir}/png.h + rm ${D}/${includedir}/pngconf.h + + rm ${D}/${libdir}/libpng.la + rm ${D}/${libdir}/libpng.so + rm ${D}/${libdir}/libpng.a || true + rm ${D}/${libdir}/pkgconfig/libpng.pc + + rm ${D}/${bindir}/libpng-config +} --2.14.1
--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Quoted 2 lines · Martin Jansa
All other LSB related recipes are in oe-core, why should libpng12 be different and live in meta-oe?
We had talked about some of this before, and I thought the OE/YP decision was to create a new meta-lsb to carry any packages that were clearly obsolete (and thus not in oe-core anymore), but still needed for LSB testing.
That way if anyone cared about the results they could contribute.. It also SHOULD be fairly low maintenance.
This may be the first (only?) package we need to do that with.. similar to the meta-gplv2.
--Mark
Quoted 70 lines · On Wed, Sep 13, 2017 at 11:38 AM, <[email protected]> wrote:
Quoted 69 lines
From: Kai Kang <[email protected]>
libpng12 is removed from oe-core. But lsb test 5.0 still requires libpng12. So add it back.
Signed-off-by Kai Kang <[email protected]>--- meta-oe/recipes-lsb/libpng/libpng12_1.2.57.bb | 36 +++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 meta-oe/recipes-lsb/libpng/libpng12_1.2.57.bbmeta-oe/recipes-lsb/libpng/libpng12_1.2.57.bb new file +6
-0@@ -0,0 +1,36 @@ +SUMMARY = "PNG image format decoding library" +HOMEPAGE = "http://www.libpng.org/" +SECTION = "libs" +LICENSE = "Libpng" +LIC_FILES_CHKSUM = "file://LICENSE;md5=597b8a91994a3e27ae6aa79bf02677d9 \ + file://png.h;beginline=19;endline=109;md5=
166406397718925b660f0033f7558ef7"meta-oe/recipes-lsb/libpng/libpng12_1.2.57.bb new file +9
-0+DEPENDS = "zlib" + +PN = "libpng12" +S = "${WORKDIR}/libpng-${PV}" + +SRC_URI = "${GENTOO_MIRROR}/libpng-${PV}.tar.xz" + +SRC_URI[md5sum] = "307052e5e8af97b82b17b64fb1b3677a" +SRC_URI[sha256sum] = "0f4620e11fa283fedafb474427c8e9
6bf149511a1804bdc47350963ae5cf54d8"meta-oe/recipes-lsb/libpng/libpng12_1.2.57.bb new file +2
-0+ +UPSTREAM_CHECK_URI = "http://sourceforge.net/projects/libpng/files/libpng12/"
meta-oe/recipes-lsb/libpng/libpng12_1.2.57.bb new file +8
-0+UPSTREAM_CHECK_REGEX = "/libpng12/(?P<pver>(\d+[\.\-_]*)+)/" + +BINCONFIG_GLOB = "${PN}-config" + +inherit autotools binconfig pkgconfig + +do_install_append() { + # The follow link files link to corresponding png12*.h andlibpng12* files
meta-oe/recipes-lsb/libpng/libpng12_1.2.57.bb new file +11
-1+ # They conflict with higher verison, so drop them + rm ${D}/${includedir}/png.h + rm ${D}/${includedir}/pngconf.h + + rm ${D}/${libdir}/libpng.la + rm ${D}/${libdir}/libpng.so + rm ${D}/${libdir}/libpng.a || true + rm ${D}/${libdir}/pkgconfig/libpng.pc + + rm ${D}/${bindir}/libpng-config +} --2.14.1
--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Quoted 2 lines · Martin Jansa
All other LSB related recipes are in oe-core, why should libpng12 be different and live in meta-oe?
Mainly because LSB compliance isn't a goal of oe-core, otherwise we'd need to add Qt4 to oe-core too.
meta-oe seems like a perfectly acceptable place for this.
Ross
LSB compliance isn't a goal of meta-oe as well, otherwise we'd need to add Qt4 to meta-oe too.
Quoted 14 lines · Ross
Quoted 2 lines · Martin Jansa
All other LSB related recipes are in oe-core, why should libpng12 be different and live in meta-oe?
Mainly because LSB compliance isn't a goal of oe-core, otherwise we'd need to add Qt4 to oe-core too.
meta-oe seems like a perfectly acceptable place for this.
Ross
Quoted 3 lines · Martin Jansa
LSB compliance isn't a goal of meta-oe as well, otherwise we'd need to add Qt4 to meta-oe too.
Touche.
It still needs to go somewhere though...
Ross
Quoted 9 lines · Ross
Quoted 3 lines · Martin Jansa
LSB compliance isn't a goal of meta-oe as well, otherwise we'd need to add Qt4 to meta-oe too.
Touche.
It still needs to go somewhere though...
How about modifying the LSB tests to make the absence of libpng12 a warning rather than an error?
Alex
Quoted 9 lines · Alexander Kanavin
Quoted 7 lines · Ross
On 14 September 2017 at 11:33, Martin Jansa <[email protected]> wrote:
LSB compliance isn't a goal of meta-oe as well, otherwise we'd need to
Quoted 3 lines
add Qt4 to meta-oe too.
Quoted 8 lines
Quoted 4 lines
Touche.
It still needs to go somewhere though...
How about modifying the LSB tests to make the absence of libpng12 a warning rather than an error?
Then it won't be doing a LSB test... The LSB is the LSB, we don't claim
to support it, but there's a need for a libpng12 recipe for people who want to be close. Currently it's just this one recipe that I'm aware of that isn't already in a layer somewhere.
Ross
If LSB isn't goal of oe-core, then why not move all this:
OE qemux86-64@ ~/build/oe-core/openembedded-core $ find meta -name \*lsb\* meta/recipes-extended/images/core-image-lsb.bb meta/recipes-extended/images/core-image-lsb-dev.bb meta/recipes-extended/images/core-image-lsb-sdk.bb
meta/recipes-extended/lsb
meta/recipes-extended/lsb/lsb
meta/recipes-extended/lsb/lsb/lsb_pidofproc meta/recipes-extended/lsb/lsb/lsb_start_daemon meta/recipes-extended/lsb/lsb/lsb_log_message meta/recipes-extended/lsb/lsb/0001-fix-lsb_release-to-work-with-busybox-head-and-find.patch meta/recipes-extended/lsb/lsb/lsb_killproc meta/recipes-extended/lsb/lsbinitscripts_9.72.bb meta/recipes-extended/lsb/lsbinitscripts meta/recipes-extended/lsb/lsbtest_1.0.bb meta/recipes-extended/lsb/lsb_4.1.bb
meta/recipes-extended/lsb/lsbtest meta/recipes-extended/packagegroups/packagegroup-core-lsb.bb meta/lib/oe/__pycache__/lsb.cpython-35.pyc meta/lib/oe/__pycache__/lsb.cpython-36.pyc
meta/lib/oe/lsb.pycmeta/lib/oe/lsb.py
together with libpng12, to some new meta-lsb layer, preferably outside meta-oe repository as I already have enough of this stuff.
Quoted 28 lines · Ross
Quoted 9 lines · Alexander Kanavin
Quoted 7 lines · Ross
On 14 September 2017 at 11:33, Martin Jansa <[email protected]> wrote:
LSB compliance isn't a goal of meta-oe as well, otherwise we'd need to
Quoted 3 lines
add Qt4 to meta-oe too.
Quoted 8 lines
Quoted 4 lines
Touche.
It still needs to go somewhere though...
How about modifying the LSB tests to make the absence of libpng12 a warning rather than an error?
Then it won't be doing a LSB test... The LSB is the LSB, we don't claim
to support it, but there's a need for a libpng12 recipe for people who want to be close. Currently it's just this one recipe that I'm aware of that isn't already in a layer somewhere.Ross
Quoted 24 lines · Martin Jansa
If LSB isn't goal of oe-core, then why not move all this:
OE qemux86-64@ ~/build/oe-core/openembedded-core $ find meta -name \*lsb\* meta/recipes-extended/images/core-image-lsb.bb meta/recipes-extended/images/core-image-lsb-dev.bb meta/recipes-extended/images/core-image-lsb-sdk.bb
meta/recipes-extended/lsb
meta/recipes-extended/lsb/lsb
meta/recipes-extended/lsb/lsb/lsb_pidofproc meta/recipes-extended/lsb/lsb/lsb_start_daemon meta/recipes-extended/lsb/lsb/lsb_log_messagemeta/recipes-extended/lsb/lsb/0001-fix-lsb_release-to-work-with-busybox-head-and-find.patchmeta/recipes-extended/lsb/lsb/lsb_killproc meta/recipes-extended/lsb/lsbinitscripts_9.72.bb meta/recipes-extended/lsb/lsbinitscripts meta/recipes-extended/lsb/lsbtest_1.0.bb meta/recipes-extended/lsb/lsb_4.1.bb
meta/recipes-extended/lsb/lsbtest meta/recipes-extended/packagegroups/packagegroup-core-lsb.bb meta/lib/oe/__pycache__/lsb.cpython-35.pyc meta/lib/oe/__pycache__/lsb.cpython-36.pyc
meta/lib/oe/lsb.pycmeta/lib/oe/lsb.py
Quoted 3 lines
together with libpng12, to some new meta-lsb layer, preferably outside meta-oe repository as I already have enough of this stuff.
A patch to remove them is good since you already found this out. If they get into a layer of its own
can happen later when lsb interested devs chime in.
Quoted 35 lines · Ross
Quoted 22 lines
Quoted 9 lines · Alexander Kanavin
Quoted 7 lines · Ross
On 14 September 2017 at 11:33, Martin Jansa <[email protected]> wrote:
LSB compliance isn't a goal of meta-oe as well, otherwise we'd need to
Quoted 3 lines
add Qt4 to meta-oe too.
Quoted 8 lines
Quoted 4 lines
Touche.
It still needs to go somewhere though...
How about modifying the LSB tests to make the absence of libpng12 a warning rather than an error?
Quoted 7 lines
Then it won't be doing a LSB test... The LSB is the LSB, we don't claim
to support it, but there's a need for a libpng12 recipe for people who want to be close. Currently it's just this one recipe that I'm aware of that isn't already in a layer somewhere.Ross
--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Quoted 25 lines · Khem Raj
Quoted 24 lines · Martin Jansa
If LSB isn't goal of oe-core, then why not move all this:
OE qemux86-64@ ~/build/oe-core/openembedded-core $ find meta -name \*lsb\* meta/recipes-extended/images/core-image-lsb.bb meta/recipes-extended/images/core-image-lsb-dev.bb meta/recipes-extended/images/core-image-lsb-sdk.bb
meta/recipes-extended/lsb
meta/recipes-extended/lsb/lsb
meta/recipes-extended/lsb/lsb/lsb_pidofproc meta/recipes-extended/lsb/lsb/lsb_start_daemon meta/recipes-extended/lsb/lsb/lsb_log_messagemeta/recipes-extended/lsb/lsb/0001-fix-lsb_release-to-work-with-busybox-head-and-find.patchmeta/recipes-extended/lsb/lsb/lsb_killproc meta/recipes-extended/lsb/lsbinitscripts_9.72.bb meta/recipes-extended/lsb/lsbinitscripts meta/recipes-extended/lsb/lsbtest_1.0.bb meta/recipes-extended/lsb/lsb_4.1.bb
meta/recipes-extended/lsb/lsbtest meta/recipes-extended/packagegroups/packagegroup-core-lsb.bb meta/lib/oe/__pycache__/lsb.cpython-35.pyc meta/lib/oe/__pycache__/lsb.cpython-36.pyc
meta/lib/oe/lsb.pycmeta/lib/oe/lsb.py
Quoted 38 lines
Quoted 3 lines
together with libpng12, to some new meta-lsb layer, preferably outside meta-oe repository as I already have enough of this stuff.
A patch to remove them is good since you already found this out. If they get into a layer of its own
can happen later when lsb interested devs chime in.Quoted 30 lines · Ross
Quoted 29 lines
Quoted 9 lines · Alexander Kanavin
Quoted 7 lines · Ross
On 14 September 2017 at 11:33, Martin Jansa <[email protected]> wrote:
LSB compliance isn't a goal of meta-oe as well, otherwise we'd need to
Quoted 3 lines
add Qt4 to meta-oe too.
Quoted 8 lines
Quoted 4 lines
Touche.
It still needs to go somewhere though...
How about modifying the LSB tests to make the absence of libpng12 a warning rather than an error?
Then it won't be doing a LSB test... The LSB is the LSB, we don't claim
to support it, but there's a need for a libpng12 recipe for people who want to be close. Currently it's just this one recipe that I'm aware of that isn't already in a layer somewhere.Ross
One aspect I missed in this discussion: I there a recipe around depending on libpng12 which cannot use libpng 1.6?
This is yet another case I get the the feeling that the priorities others have do not match mine: My topmost priority is to build working images and maintain them to keep them in working condition. Adding and maintaining recipes for sake of outdated standards is waste of time - at least for me.
Andreas
Hi,
most of our prebuilt binaries (built outside OE, sometimes by other companies) are built against libpng12.
Not because they must be, just because libpng12 was there when they started building them and nobody revisited that since then. Now I'm trying to get all those prebuilt binaries to be rebuilt against libpng 1.6 before we upgrade to Yocto 2.4. If I don't get them soon enough I'll need to keep libpng12 in one of our internal layer for a bit longer.
So I agree it's outdated waste of time, but unfortunately still mis-used by some people.
Regards,
Quoted 83 lines · Andreas Müller
Quoted 1 line · Khem Raj
On Thu, Sep 14, 2017 at 8:58 AM, Martin Jansa <[email protected]>
Quoted 3 lines · wrote:
Quoted 3 lines
If LSB isn't goal of oe-core, then why not move all this:
OE qemux86-64@ ~/build/oe-core/openembedded-core $ find meta -name
\*lsb\*
Quoted 9 lines
Quoted 9 lines
meta/recipes-extended/images/core-image-lsb.bb meta/recipes-extended/images/core-image-lsb-dev.bb meta/recipes-extended/images/core-image-lsb-sdk.bb meta/recipes-extended/lsb meta/recipes-extended/lsb/lsb meta/recipes-extended/lsb/lsb/lsb_pidofproc meta/recipes-extended/lsb/lsb/lsb_start_daemon meta/recipes-extended/lsb/lsb/lsb_log_message meta/recipes-extended/lsb/lsb/0001-fix-lsb_release-to-work-
with-busybox-head-and-find.patch
Quoted 21 lines
Quoted 12 lines
meta/recipes-extended/lsb/lsb/lsb_killproc meta/recipes-extended/lsb/lsbinitscripts_9.72.bb meta/recipes-extended/lsb/lsbinitscripts meta/recipes-extended/lsb/lsbtest_1.0.bb meta/recipes-extended/lsb/lsb_4.1.bb meta/recipes-extended/lsb/lsbtest meta/recipes-extended/packagegroups/packagegroup-core-lsb.bb meta/lib/oe/__pycache__/lsb.cpython-35.pyc meta/lib/oe/__pycache__/lsb.cpython-36.pyc meta/lib/oe/lsb.pyc
meta/lib/oe/lsb.pyQuoted 3 lines
together with libpng12, to some new meta-lsb layer, preferably outside meta-oe repository as I already have enough of this stuff.
A patch to remove them is good since you already found this out. If they get into a layer of its own
can happen later when lsb interested devs chime in.Quoted 1 line
On Thu, Sep 14, 2017 at 5:03 PM, Burton, Ross <[email protected]>
Quoted 2 lines · wrote:
Quoted 2 lines
Quoted 2 lines
On 14 September 2017 at 14:49, Alexander Kanavin
<alexander.kanavin@linux.
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 6 lines · intel.com> wrote:
Quoted 4 lines · Ross
On 14 September 2017 at 11:33, Martin Jansa <[email protected]> wrote:
LSB compliance isn't a goal of meta-oe as well, otherwise we'd need
to
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 3 lines
add Qt4 to meta-oe too.
Touche.
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 6 lines
Quoted 2 lines
It still needs to go somewhere though...
How about modifying the LSB tests to make the absence of libpng12 a warning rather than an error?
Then it won't be doing a LSB test... The LSB is the LSB, we don't
claim
Quoted 1 line
Quoted 1 line
Quoted 1 line
to support it, but there's a need for a libpng12 recipe for people who
want
Quoted 1 line
Quoted 1 line
Quoted 1 line
to be close. Currently it's just this one recipe that I'm aware of
that
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
isn't already in a layer somewhere.
Ross
One aspect I missed in this discussion: I there a recipe around depending on libpng12 which cannot use libpng 1.6?
This is yet another case I get the the feeling that the priorities others have do not match mine: My topmost priority is to build working images and maintain them to keep them in working condition. Adding and maintaining recipes for sake of outdated standards is waste of time - at least for me.Andreas
Quoted 5 lines · Martin Jansa
Hi,
most of our prebuilt binaries (built outside OE, sometimes by other companies) are built against libpng12.
Quoted 9 lines
Not because they must be, just because libpng12 was there when they started building them and nobody revisited that since then. Now I'm trying to get all those prebuilt binaries to be rebuilt against libpng 1.6 before we upgrade to Yocto 2.4. If I don't get them soon enough I'll need to keep libpng12 in one of our internal layer for a bit longer.
So I agree it's outdated waste of time, but unfortunately still mis-used by some people.
That sounds like a great rationale to keep libpng12 in meta-oe.
Ross