* [PATCH] zlib: substitute sharedlibdir
@ 2011-01-13 14:29 Enrico Scholz
2011-01-14 3:24 ` Khem Raj
0 siblings, 1 reply; 4+ messages in thread
From: Enrico Scholz @ 2011-01-13 14:29 UTC (permalink / raw)
To: openembedded-devel; +Cc: Enrico Scholz, Enrico Scholz
From: Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
@sharedlibdir@ is not substituted so that linkerflags in zlib.pc expand to
"... -L@sharedlibdir@" which breaks e.g. glib builds.
Signed-off-by: Enrico Scholz <enrico.scholz@sigma-chemnitz.de>
---
recipes/zlib/zlib-1.2.5/0001-autotools.patch | 4 +++-
recipes/zlib/zlib_1.2.5.bb | 2 +-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/recipes/zlib/zlib-1.2.5/0001-autotools.patch b/recipes/zlib/zlib-1.2.5/0001-autotools.patch
index 6642860..f5c50f1 100644
--- a/recipes/zlib/zlib-1.2.5/0001-autotools.patch
+++ b/recipes/zlib/zlib-1.2.5/0001-autotools.patch
@@ -33,7 +33,7 @@ new file mode 100644
index 0000000..177c89a
--- /dev/null
+++ b/configure.ac
-@@ -0,0 +1,17 @@
+@@ -0,0 +1,19 @@
+AC_INIT(zlib,1.2.5)
+AC_CONFIG_SRCDIR(adler32.c)
+AM_INIT_AUTOMAKE(zlibs,1.2.5)
@@ -45,6 +45,8 @@ index 0000000..177c89a
+
+AC_HEADER_STDC
+
++AC_SUBST(sharedlibdir,$libdir)
++
+AC_CONFIG_FILES([
+Makefile
+zlib.pc
diff --git a/recipes/zlib/zlib_1.2.5.bb b/recipes/zlib/zlib_1.2.5.bb
index 34419f0..1f51404 100644
--- a/recipes/zlib/zlib_1.2.5.bb
+++ b/recipes/zlib/zlib_1.2.5.bb
@@ -1,6 +1,6 @@
include zlib.inc
-PR = "${INC_PR}.0"
+PR = "${INC_PR}.1"
SRC_URI += "file://0001-autotools.patch "
--
1.7.3.4
^ permalink raw reply related [flat|nested] 4+ messages in thread* Re: [PATCH] zlib: substitute sharedlibdir
2011-01-13 14:29 [PATCH] zlib: substitute sharedlibdir Enrico Scholz
@ 2011-01-14 3:24 ` Khem Raj
2011-01-14 9:55 ` Enrico Scholz
0 siblings, 1 reply; 4+ messages in thread
From: Khem Raj @ 2011-01-14 3:24 UTC (permalink / raw)
To: openembedded-devel
On 1/13/2011 6:29 AM, Enrico Scholz wrote:
> From: Enrico Scholz<enrico.scholz@informatik.tu-chemnitz.de>
>
> @sharedlibdir@ is not substituted so that linkerflags in zlib.pc expand to
> "... -L@sharedlibdir@" which breaks e.g. glib builds.
>
I think zlib has --sharedlibdir configure option since 1.2.4.4+
so you could try to use it instead of patching
> Signed-off-by: Enrico Scholz<enrico.scholz@sigma-chemnitz.de>
> ---
> recipes/zlib/zlib-1.2.5/0001-autotools.patch | 4 +++-
> recipes/zlib/zlib_1.2.5.bb | 2 +-
> 2 files changed, 4 insertions(+), 2 deletions(-)
>
> diff --git a/recipes/zlib/zlib-1.2.5/0001-autotools.patch b/recipes/zlib/zlib-1.2.5/0001-autotools.patch
> index 6642860..f5c50f1 100644
> --- a/recipes/zlib/zlib-1.2.5/0001-autotools.patch
> +++ b/recipes/zlib/zlib-1.2.5/0001-autotools.patch
> @@ -33,7 +33,7 @@ new file mode 100644
> index 0000000..177c89a
> --- /dev/null
> +++ b/configure.ac
> -@@ -0,0 +1,17 @@
> +@@ -0,0 +1,19 @@
> +AC_INIT(zlib,1.2.5)
> +AC_CONFIG_SRCDIR(adler32.c)
> +AM_INIT_AUTOMAKE(zlibs,1.2.5)
> @@ -45,6 +45,8 @@ index 0000000..177c89a
> +
> +AC_HEADER_STDC
> +
> ++AC_SUBST(sharedlibdir,$libdir)
> ++
> +AC_CONFIG_FILES([
> +Makefile
> +zlib.pc
> diff --git a/recipes/zlib/zlib_1.2.5.bb b/recipes/zlib/zlib_1.2.5.bb
> index 34419f0..1f51404 100644
> --- a/recipes/zlib/zlib_1.2.5.bb
> +++ b/recipes/zlib/zlib_1.2.5.bb
> @@ -1,6 +1,6 @@
> include zlib.inc
>
> -PR = "${INC_PR}.0"
> +PR = "${INC_PR}.1"
>
> SRC_URI += "file://0001-autotools.patch "
>
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [PATCH] zlib: substitute sharedlibdir
2011-01-14 3:24 ` Khem Raj
@ 2011-01-14 9:55 ` Enrico Scholz
2011-01-14 20:10 ` Khem Raj
0 siblings, 1 reply; 4+ messages in thread
From: Enrico Scholz @ 2011-01-14 9:55 UTC (permalink / raw)
To: openembedded-devel
Khem Raj <raj.khem@gmail.com> writes:
>> @sharedlibdir@ is not substituted so that linkerflags in zlib.pc expand to
>> "... -L@sharedlibdir@" which breaks e.g. glib builds.
>
> I think zlib has --sharedlibdir configure option since 1.2.4.4+
> so you could try to use it instead of patching
afais, the ./configure will be completely replaced due to the
0001-autotools.patch (added by a2393dbf941554098). So there exists no
such option anymore.
>> --- a/recipes/zlib/zlib-1.2.5/0001-autotools.patch
>> +++ b/recipes/zlib/zlib-1.2.5/0001-autotools.patch
>> @@ -33,7 +33,7 @@ new file mode 100644
>> index 0000000..177c89a
>> --- /dev/null
>> +++ b/configure.ac
Enrico
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] zlib: substitute sharedlibdir
2011-01-14 9:55 ` Enrico Scholz
@ 2011-01-14 20:10 ` Khem Raj
0 siblings, 0 replies; 4+ messages in thread
From: Khem Raj @ 2011-01-14 20:10 UTC (permalink / raw)
To: openembedded-devel
On Fri, Jan 14, 2011 at 1:55 AM, Enrico Scholz
<enrico.scholz@sigma-chemnitz.de> wrote:
> Khem Raj <raj.khem@gmail.com> writes:
>
>>> @sharedlibdir@ is not substituted so that linkerflags in zlib.pc expand to
>>> "... -L@sharedlibdir@" which breaks e.g. glib builds.
>>
>> I think zlib has --sharedlibdir configure option since 1.2.4.4+
>> so you could try to use it instead of patching
>
> afais, the ./configure will be completely replaced due to the
> 0001-autotools.patch (added by a2393dbf941554098). So there exists no
> such option anymore.
now that I look into OE we have autoconf'ed it ourselves. Originally
it has a configure
but not all configure scripts are generated via autoconf so We kind of
swerved away
from zlib's build system has anyone proposed it to zlib upstream that
they autconf
their build system ? otherwise I think it would be better to use the
configure script as is
>
>
>>> --- a/recipes/zlib/zlib-1.2.5/0001-autotools.patch
>>> +++ b/recipes/zlib/zlib-1.2.5/0001-autotools.patch
>>> @@ -33,7 +33,7 @@ new file mode 100644
>>> index 0000000..177c89a
>>> --- /dev/null
>>> +++ b/configure.ac
>
>
> Enrico
>
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-01-14 20:11 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-13 14:29 [PATCH] zlib: substitute sharedlibdir Enrico Scholz
2011-01-14 3:24 ` Khem Raj
2011-01-14 9:55 ` Enrico Scholz
2011-01-14 20:10 ` Khem Raj
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.