* [PATCH [v1] 1/1] zlib: put shared libraries in base_libdir
@ 2013-05-15 21:17 Joe Slater
2013-05-16 7:28 ` Saul Wold
0 siblings, 1 reply; 2+ messages in thread
From: Joe Slater @ 2013-05-15 21:17 UTC (permalink / raw)
To: openembedded-core
We put the shared libraries in base_libdir because at least
one library under base_libdir, pam_cracklib.so, needs them
and will cause a qa warning when it is built.
---
meta/recipes-core/zlib/zlib_1.2.7.bb | 15 +++++++++++++++
1 files changed, 15 insertions(+), 0 deletions(-)
diff --git a/meta/recipes-core/zlib/zlib_1.2.7.bb b/meta/recipes-core/zlib/zlib_1.2.7.bb
index 803fec3..dfdf5fe 100644
--- a/meta/recipes-core/zlib/zlib_1.2.7.bb
+++ b/meta/recipes-core/zlib/zlib_1.2.7.bb
@@ -6,6 +6,8 @@ SECTION = "libs"
LICENSE = "Zlib"
LIC_FILES_CHKSUM = "file://zlib.h;beginline=4;endline=23;md5=94d1b5a40dadd127f3351471727e66a9"
+PR = "r1"
+
SRC_URI = "http://www.zlib.net/${BPN}-${PV}.tar.bz2 \
file://remove.ldconfig.call.patch \
"
@@ -24,4 +26,17 @@ do_install() {
oe_runmake DESTDIR=${D} install
}
+# We move zlib shared libraries for target builds to avoid
+# qa warnings.
+#
+do_install_append_class-target() {
+ if [ ${base_libdir} != ${libdir} ]
+ then
+ mkdir -p ${D}/${base_libdir}
+ mv ${D}/${libdir}/libz.so.* ${D}/${base_libdir}
+ tmp=`readlink ${D}/${libdir}/libz.so`
+ ln -sf ../../${base_libdir}/$tmp ${D}/${libdir}/libz.so
+ fi
+}
+
BBCLASSEXTEND = "native nativesdk"
--
1.7.3.4
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH [v1] 1/1] zlib: put shared libraries in base_libdir
2013-05-15 21:17 [PATCH [v1] 1/1] zlib: put shared libraries in base_libdir Joe Slater
@ 2013-05-16 7:28 ` Saul Wold
0 siblings, 0 replies; 2+ messages in thread
From: Saul Wold @ 2013-05-16 7:28 UTC (permalink / raw)
To: Joe Slater; +Cc: openembedded-core
On 05/16/2013 12:17 AM, Joe Slater wrote:
> We put the shared libraries in base_libdir because at least
> one library under base_libdir, pam_cracklib.so, needs them
> and will cause a qa warning when it is built.
missing a Signed-off-by: and the [v1] seems to cause the subject to
get parsed wrong.
Sau!
> ---
> meta/recipes-core/zlib/zlib_1.2.7.bb | 15 +++++++++++++++
> 1 files changed, 15 insertions(+), 0 deletions(-)
>
> diff --git a/meta/recipes-core/zlib/zlib_1.2.7.bb b/meta/recipes-core/zlib/zlib_1.2.7.bb
> index 803fec3..dfdf5fe 100644
> --- a/meta/recipes-core/zlib/zlib_1.2.7.bb
> +++ b/meta/recipes-core/zlib/zlib_1.2.7.bb
> @@ -6,6 +6,8 @@ SECTION = "libs"
> LICENSE = "Zlib"
> LIC_FILES_CHKSUM = "file://zlib.h;beginline=4;endline=23;md5=94d1b5a40dadd127f3351471727e66a9"
>
> +PR = "r1"
> +
> SRC_URI = "http://www.zlib.net/${BPN}-${PV}.tar.bz2 \
> file://remove.ldconfig.call.patch \
> "
> @@ -24,4 +26,17 @@ do_install() {
> oe_runmake DESTDIR=${D} install
> }
>
> +# We move zlib shared libraries for target builds to avoid
> +# qa warnings.
> +#
> +do_install_append_class-target() {
> + if [ ${base_libdir} != ${libdir} ]
> + then
> + mkdir -p ${D}/${base_libdir}
> + mv ${D}/${libdir}/libz.so.* ${D}/${base_libdir}
> + tmp=`readlink ${D}/${libdir}/libz.so`
> + ln -sf ../../${base_libdir}/$tmp ${D}/${libdir}/libz.so
> + fi
> +}
> +
> BBCLASSEXTEND = "native nativesdk"
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-05-16 7:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-15 21:17 [PATCH [v1] 1/1] zlib: put shared libraries in base_libdir Joe Slater
2013-05-16 7:28 ` Saul Wold
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox