* [Buildroot] [PATCH] zlib: fix installing when static-only
@ 2010-12-07 21:57 Mike Frysinger
2010-12-11 21:53 ` Peter Korsgaard
0 siblings, 1 reply; 4+ messages in thread
From: Mike Frysinger @ 2010-12-07 21:57 UTC (permalink / raw)
To: buildroot
The switch from manual targets to using zlib's targets to fix shared
building/installing doesn't work quite right as zlib itself doesn't
handle static-only installs fully.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
---
package/zlib/zlib-1.2.5-no-shared.patch | 15 +++++++++++++++
1 files changed, 15 insertions(+), 0 deletions(-)
create mode 100644 package/zlib/zlib-1.2.5-no-shared.patch
diff --git a/package/zlib/zlib-1.2.5-no-shared.patch b/package/zlib/zlib-1.2.5-no-shared.patch
new file mode 100644
index 0000000..2b82f49
--- /dev/null
+++ b/package/zlib/zlib-1.2.5-no-shared.patch
@@ -0,0 +1,15 @@
+only install the shared lib if it's enabled
+
+--- a/Makefile.in
++++ b/Makefile.in
+@@ -168,7 +168,9 @@
+ - at if [ ! -d $(DESTDIR)$(man3dir) ]; then mkdir -p $(DESTDIR)$(man3dir); fi
+ - at if [ ! -d $(DESTDIR)$(pkgconfigdir) ]; then mkdir -p $(DESTDIR)$(pkgconfigdir); fi
+ cp $(STATICLIB) $(DESTDIR)$(libdir)
+- cp $(SHAREDLIBV) $(DESTDIR)$(sharedlibdir)
++ if test "$(SHAREDLIBV)" ; then \
++ cp $(SHAREDLIBV) $(DESTDIR)$(sharedlibdir); \
++ fi
+ cd $(DESTDIR)$(libdir); chmod u=rw,go=r $(STATICLIB)
+ -@(cd $(DESTDIR)$(libdir); $(RANLIB) libz.a || true) >/dev/null 2>&1
+ - at cd $(DESTDIR)$(sharedlibdir); if test "$(SHAREDLIBV)" -a -f $(SHAREDLIBV); then \
--
1.7.3.3
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [Buildroot] [PATCH] zlib: fix installing when static-only
2010-12-07 21:57 [Buildroot] [PATCH] zlib: fix installing when static-only Mike Frysinger
@ 2010-12-11 21:53 ` Peter Korsgaard
2010-12-12 3:52 ` Mike Frysinger
0 siblings, 1 reply; 4+ messages in thread
From: Peter Korsgaard @ 2010-12-11 21:53 UTC (permalink / raw)
To: buildroot
>>>>> "Mike" == Mike Frysinger <vapier@gentoo.org> writes:
Mike> The switch from manual targets to using zlib's targets to fix shared
Mike> building/installing doesn't work quite right as zlib itself doesn't
Mike> handle static-only installs fully.
Mike> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Ehh, that seems very similar to the zlib-1.2.5-fix-static-install.patch
we already have?
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] [PATCH] zlib: fix installing when static-only
2010-12-11 21:53 ` Peter Korsgaard
@ 2010-12-12 3:52 ` Mike Frysinger
2010-12-12 8:11 ` Peter Korsgaard
0 siblings, 1 reply; 4+ messages in thread
From: Mike Frysinger @ 2010-12-12 3:52 UTC (permalink / raw)
To: buildroot
On Saturday, December 11, 2010 16:53:14 Peter Korsgaard wrote:
> >>>>> "Mike" == Mike Frysinger writes:
> Mike> The switch from manual targets to using zlib's targets to fix shared
> Mike> building/installing doesn't work quite right as zlib itself doesn't
> Mike> handle static-only installs fully.
>
> Ehh, that seems very similar to the zlib-1.2.5-fix-static-install.patch
> we already have?
i dont know what you're referring to. there are no patches currently:
http://git.buildroot.net/buildroot/tree/package/zlib
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20101211/c71c2e0e/attachment.pgp>
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] [PATCH] zlib: fix installing when static-only
2010-12-12 3:52 ` Mike Frysinger
@ 2010-12-12 8:11 ` Peter Korsgaard
0 siblings, 0 replies; 4+ messages in thread
From: Peter Korsgaard @ 2010-12-12 8:11 UTC (permalink / raw)
To: buildroot
>>>>> "Mike" == Mike Frysinger <vapier@gentoo.org> writes:
Mike> On Saturday, December 11, 2010 16:53:14 Peter Korsgaard wrote:
>> >>>>> "Mike" == Mike Frysinger writes:
Mike> The switch from manual targets to using zlib's targets to fix shared
Mike> building/installing doesn't work quite right as zlib itself doesn't
Mike> handle static-only installs fully.
>>
>> Ehh, that seems very similar to the zlib-1.2.5-fix-static-install.patch
>> we already have?
Mike> i dont know what you're referring to. there are no patches currently:
Mike> http://git.buildroot.net/buildroot/tree/package/zlib
Argh, you're right. I fixed it back in November, but apparently forgot
to git add the file:
commit ab2f5567c1ca67c7f761486495d3d42f2b7c8eff
Author: Peter Korsgaard <jacmet@sunsite.dk>
Date: Wed Nov 24 16:14:52 2010 +0100
zlib: cleanup, fix install for static only build
Use 'make install' for installation, add a patch to make it work for
static only builds, and add uninstall/clean targets while we're at it.
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
I've fixed that now, thanks. The patch has also been sent upstream.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-12-12 8:11 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-07 21:57 [Buildroot] [PATCH] zlib: fix installing when static-only Mike Frysinger
2010-12-11 21:53 ` Peter Korsgaard
2010-12-12 3:52 ` Mike Frysinger
2010-12-12 8:11 ` Peter Korsgaard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox