Your message dated Fri, 13 Nov 2015 18:00:15 +0000
with message-id <[email protected]>
and subject line Bug#794232: fixed in zopfli 1.0.1-2
has caused the Debian Bug report #794232,
regarding Add new packages for libzopfli.so
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
794232: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=794232
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: zopfli
Version: 1.0.0-1
Severity: wishlist
Tags: patch
Hi,
I am packaging Android SDK and I found the zipalign tool requires the
dynamic library version of zopfli, which is so-called libzopfli.so.
Current zopfli package does not contain the library, so I wrote a
patch to change that. This patch replaces hardened_build.patch with
libzopfli.diff that modifies the makefile to generate
libzopfli.so.1.0.0 and libzopfli.a, and adds several .install and
.links files for the new packages. The new packages are: libzopfli1
and libzopfli-dev. I used dh-exec to make the packages support
multi-arch, so please make sure the .install and .links files are set
executable. Thank you.
You can also view the changes in
<https://github.com/seamlik/debianpkg-zopfli/commit/10f68fe508fb6d31eb1ec639b0c998bb026ebbae>
Regards,
Kai-Chung Yan
diff --git a/debian/changelog b/debian/changelog
index 7cb1621..2325e52 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+zopfli (1.0.0-2) UNRELEASED; urgency=low
+
+ * New libzopfli.diff: Produce libzopfli.so
+ * New packages: libzopfli1 and libzopfli-dev
+ * Drop hardened_build.patch: No longer needed
+
+ -- Kai-Chung Yan <[email protected]> Fri, 31 Jul 2015 20:06:30 +0800
+
zopfli (1.0.0-1) unstable; urgency=low
* New upstream release.
diff --git a/debian/control b/debian/control
index 812641e..f1e7578 100644
--- a/debian/control
+++ b/debian/control
@@ -2,7 +2,7 @@ Source: zopfli
Section: utils
Priority: optional
Maintainer: Laszlo Boszormenyi (GCS) <[email protected]>
-Build-Depends: debhelper (>= 9), dpkg-dev (>= 1.16.1~)
+Build-Depends: debhelper (>= 9), dpkg-dev (>= 1.16.1~), dh-exec
Standards-Version: 3.9.5
Homepage: http://code.google.com/p/zopfli/
@@ -14,3 +14,27 @@ Description: zlib (gzip, deflate) compatible compressor
compressor. This compressor takes more time (~100x slower), but compresses
around 5% better than zlib and better than any other zlib-compatible
compressor we have found.
+
+Package: libzopfli1
+Architecture: any
+Section: libs
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: zlib (gzip, deflate) compatible compressor library
+ Zopfli Compression Algorithm is a new zlib (gzip, deflate) compatible
+ compressor. This compressor takes more time (~100x slower), but compresses
+ around 5% better than zlib and better than any other zlib-compatible
+ compressor we have found.
+ .
+ This package contains the dynamic library version of zopfli.
+
+Package: libzopfli-dev
+Architecture: any
+Section: libdevel
+Depends: libzopfli1 (= ${binary:Version}), ${misc:Depends}
+Description: zlib (gzip, deflate) compatible compressor library - Development
files
+ Zopfli Compression Algorithm is a new zlib (gzip, deflate) compatible
+ compressor. This compressor takes more time (~100x slower), but compresses
+ around 5% better than zlib and better than any other zlib-compatible
+ compressor we have found.
+ .
+ This package contains the development files.
\ No newline at end of file
diff --git a/debian/libzopfli-dev.install b/debian/libzopfli-dev.install
new file mode 100755
index 0000000..965bedb
--- /dev/null
+++ b/debian/libzopfli-dev.install
@@ -0,0 +1,4 @@
+#!/usr/bin/dh-exec
+
+libzopfli.a usr/lib/${DEB_HOST_MULTIARCH}
+src/zopfli/*.h usr/include/zopfli
\ No newline at end of file
diff --git a/debian/libzopfli-dev.links b/debian/libzopfli-dev.links
new file mode 100755
index 0000000..4175928
--- /dev/null
+++ b/debian/libzopfli-dev.links
@@ -0,0 +1,3 @@
+#!/usr/bin/dh-exec
+
+usr/lib/${DEB_HOST_MULTIARCH}/libzopfli.so.1.0.0
usr/lib/${DEB_HOST_MULTIARCH}/libzopfli.so
\ No newline at end of file
diff --git a/debian/libzopfli1.install b/debian/libzopfli1.install
new file mode 100755
index 0000000..3312ebb
--- /dev/null
+++ b/debian/libzopfli1.install
@@ -0,0 +1,3 @@
+#!/usr/bin/dh-exec
+
+libzopfli.so.* usr/lib/${DEB_HOST_MULTIARCH}
\ No newline at end of file
diff --git a/debian/libzopfli1.links b/debian/libzopfli1.links
new file mode 100755
index 0000000..7bf70ad
--- /dev/null
+++ b/debian/libzopfli1.links
@@ -0,0 +1,3 @@
+#!/usr/bin/dh-exec
+
+usr/lib/${DEB_HOST_MULTIARCH}/libzopfli.so.1.0.0
usr/lib/${DEB_HOST_MULTIARCH}/libzopfli.so.1
\ No newline at end of file
diff --git a/debian/patches/hardened_build.patch
b/debian/patches/hardened_build.patch
deleted file mode 100644
index 3847db3..0000000
--- a/debian/patches/hardened_build.patch
+++ /dev/null
@@ -1,18 +0,0 @@
-Description: build with hardening enabled
- Add $CPPFLAGS and $LDFLAGS to the makefile .
-Author: Laszlo Boszormenyi (GCS) <[email protected]>
-Forwarded: not-needed
-Last-Update: 2013-03-03
-
----
-
---- zopfli/makefile
-+++ zopfli/makefile
-@@ -1,5 +1,5 @@
- make:
-- gcc src/zopfli/*.c -O2 -W -Wall -Wextra -ansi -pedantic -lm -o zopfli
-+ gcc src/zopfli/*.c -O2 -W -Wall -Wextra -ansi -pedantic -lm $(CPPFLAGS)
$(LDFLAGS) -o zopfli
-
- debug:
-- gcc src/zopfli/*.c -g3 -lm -o zopfli
-+ gcc src/zopfli/*.c -g3 -lm $(CPPFLAGS) $(LDFLAGS) -o zopfli
diff --git a/debian/patches/libzopfli.diff b/debian/patches/libzopfli.diff
new file mode 100644
index 0000000..47f14e7
--- /dev/null
+++ b/debian/patches/libzopfli.diff
@@ -0,0 +1,22 @@
+--- a/makefile
++++ b/makefile
+@@ -1,5 +1,16 @@
+-make:
+- gcc src/zopfli/*.c -O2 -W -Wall -Wextra -ansi -pedantic -lm -o zopfli
++SOURCES = $(shell find src/zopfli -name *.c)
++OBJECTS = $(SOURCES:.c=.o)
++
++make: $(OBJECTS)
++ cc $(OBJECTS) -o zopfli $(LDFLAGS) -fPIC -lm
++ cc $(OBJECTS) -o libzopfli.so.1.0.0 $(LDFLAGS) -fPIC -lm -shared
-Wl,-soname,libzopfli.so.1
++ ar rs libzopfli.a $(OBJECTS)
+
+ debug:
+ gcc src/zopfli/*.c -g3 -lm -o zopfli
++
++$(OBJECTS): %.o: %.c
++ cc $< -o $@ $(CFLAGS) $(CPPFLAGS) -fPIC -c -ansi
++
++clean:
++ rm -f src/zopfli/*.o *.a *.so.* zopfli
+\ No newline at end of file
diff --git a/debian/patches/series b/debian/patches/series
index 4ea3a8e..634eb91 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1 @@
-hardened_build.patch
+libzopfli.diff
--- End Message ---
--- Begin Message ---
Source: zopfli
Source-Version: 1.0.1-2
We believe that the bug you reported is fixed in the latest version of
zopfli, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Laszlo Boszormenyi (GCS) <[email protected]> (supplier of updated zopfli package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Format: 1.8
Date: Fri, 23 Oct 2015 17:01:00 +0200
Source: zopfli
Binary: zopfli libzopfli1 libzopfli-dev
Architecture: source amd64
Version: 1.0.1-2
Distribution: unstable
Urgency: low
Maintainer: Laszlo Boszormenyi (GCS) <[email protected]>
Changed-By: Laszlo Boszormenyi (GCS) <[email protected]>
Description:
libzopfli-dev - Header and static library files for libzopfli1
libzopfli1 - HTTP and WebDAV client library
zopfli - zlib (gzip, deflate) compatible compressor
Closes: 794232
Changes:
zopfli (1.0.1-2) unstable; urgency=low
.
* Build parallel.
* Provide library packages (closes: #794232).
* Add patch to build static library.
Checksums-Sha1:
b2953884170b30be0387e59e16a6b37808f4141b 1816 zopfli_1.0.1-2.dsc
f341bccb0c4cdcabf9378dcf002933ca24c0ba73 3372 zopfli_1.0.1-2.debian.tar.xz
22ad69f5d04e2850a619c557248886319507646c 25676 libzopfli-dev_1.0.1-2_amd64.deb
3db759758713fb2475f01a05aca18b4c8717dc8b 22954 libzopfli1_1.0.1-2_amd64.deb
178560ce8afbc6ec57fb425e670114a99e11d28c 22798 zopfli_1.0.1-2_amd64.deb
Checksums-Sha256:
105830829c08f2da4dda98699629db6f05721d7adda013ba7f20960fd727c568 1816
zopfli_1.0.1-2.dsc
d3d601795810e30ff18828cd33893d6cc4a1f5ff513e112d0198a2007d55d891 3372
zopfli_1.0.1-2.debian.tar.xz
650ceaf1748d8a054a6b0ca5b7e24040e8a6de4d15319bb5c962a0a5db91fd8c 25676
libzopfli-dev_1.0.1-2_amd64.deb
093aa3ac2ff41c7ce6f34fcfb2cc3ffb3c980bdc5f5342f519dc0981617d0f6e 22954
libzopfli1_1.0.1-2_amd64.deb
20f4b644de657e6b1940398e6384ec7512dac337ca965eaf8638325e2e1204e7 22798
zopfli_1.0.1-2_amd64.deb
Files:
1ddfa529209e20c7a2a02953d59cd623 1816 utils optional zopfli_1.0.1-2.dsc
390f597e30ef32c1c6d7f83db789ca80 3372 utils optional
zopfli_1.0.1-2.debian.tar.xz
8f98751912bce7ea8edcea519d363aa4 25676 libdevel optional
libzopfli-dev_1.0.1-2_amd64.deb
4590fc820258b6f0b956662bb4cc82af 22954 libs optional
libzopfli1_1.0.1-2_amd64.deb
27a3d323af2d8839f314d2effe8e9195 22798 utils optional zopfli_1.0.1-2_amd64.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
iQIcBAEBCAAGBQJWRejZAAoJENzjEOeGTMi/vc4P/Rj58mqhhvAoAnQUmvIhMP4a
QKXiVrBZtoHvdIrCNNht9N8zKtjcwowSSf/PTBPXXcCiDWlov+JsMvgbAChLq+Ax
Qyf7ibOmORpWqaqu/eBPOGuUkO7bluIfSWOCZh0u4Gyck/5YFw3BKnVd7fSXBrrO
s4afH8S2oh7pjVs+dYxcpBXCxd4sD62JlHX4qhtSe5j+EvmX0577BHoDs3JuzUre
I/ppluTbIyNsLgitk5hh3cMMANmEPChpG0/SIx9O40rkEfn6bgxy3EW+3nEM0698
9Ueq3zPpbZBdbIIhr7+hFjoso9kNCzeLWSDWnRvvdbfVZOoZct9SzLR1bVMYUOMg
zKvdIgB5F9KWGpw2DH0r2KeQK/OLMRlfTdG/c8Le7H09Is47qjU1pAQ3E8w85SVb
ks7C5ptNUbTwzgehTJn6yu+6P9VqGbVFppWMspLJveiT7UaZCuC1mVbVrM6xniaG
KtdezfsmyhN3KvgZMITanS4yW3nVYpSCFiD3KcxN6kvEvGxzcEkk/FVQPAkLQo92
Ynfyl871wBNQ1uAG8tcoM5dqJBlRlpDKv8JGl/c4QRmAuAJ91qEIfDw8jZYv+oiO
FFDpDVve1UxL6h8wT7UXVQLy8Oe0aHEP/4a998uwMF2w01R/Ag7sETlCDnX8MNre
AP4KJzSCw3pY94ZkT8ws
=jcua
-----END PGP SIGNATURE-----
--- End Message ---