[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1010477: marked as done (tzdata: reduce Installed-Size using deduplication)



Your message dated Mon, 02 Jan 2023 15:07:41 +0000
with message-id <E1pCMPd-00APuP-75@fasolo.debian.org>
and subject line Bug#1010477: fixed in tzdata 2022g-1
has caused the Debian Bug report #1010477,
regarding tzdata: reduce Installed-Size using deduplication
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 owner@bugs.debian.org
immediately.)


-- 
1010477: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1010477
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Source: tzdata
Version: 2022a-1
Severity: wishlist
Tags: patch

tzdata is not a huge package, but when considering it for use in an
embedded system, the size is noticeable. Depending on the file system in
use, the size consumption may even be bigger due to the many small
files.

It turns out that a number of those files are duplicated. You can see a
report at https://dedup.debian.net/compare/tzdata/tzdata. If replacing
them with hardlinks, we can easily save 20% of reported Installed-Size.
I expect that the practical savings are bigger.

Please consider applying the attached patch. If you dislike hard links
for some reason, the same effect can be achieved using symlinks in a
similarly mechanical way.

Helmut
diff --minimal -Nru tzdata-2022a/debian/changelog tzdata-2022a/debian/changelog
--- tzdata-2022a/debian/changelog	2022-03-22 20:49:04.000000000 +0100
+++ tzdata-2022a/debian/changelog	2022-05-02 12:00:33.000000000 +0200
@@ -1,3 +1,10 @@
+tzdata (2022a-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Deduplicate files in timezone database using hard links.  Closes: #-1.
+
+ -- Helmut Grohne <helmut.grohne@intenta.de>  Mon, 02 May 2022 12:00:33 +0200
+
 tzdata (2022a-1) unstable; urgency=high
 
   [ Aurelien Jarno ]
diff --minimal -Nru tzdata-2022a/debian/control tzdata-2022a/debian/control
--- tzdata-2022a/debian/control	2022-03-22 20:47:25.000000000 +0100
+++ tzdata-2022a/debian/control	2022-05-02 12:00:33.000000000 +0200
@@ -2,7 +2,7 @@
 Section: localization
 Priority: required
 Build-Depends: debhelper-compat (= 13)
-Build-Depends-Indep: gawk, po-debconf, symlinks
+Build-Depends-Indep: gawk, po-debconf, symlinks, rdfind
 Rules-Requires-Root: no
 Maintainer: GNU Libc Maintainers <debian-glibc@lists.debian.org>
 Uploaders: Clint Adams <clint@debian.org>, Aurelien Jarno <aurel32@debian.org>
diff --minimal -Nru tzdata-2022a/debian/rules tzdata-2022a/debian/rules
--- tzdata-2022a/debian/rules	2022-03-22 20:47:25.000000000 +0100
+++ tzdata-2022a/debian/rules	2022-05-02 12:00:32.000000000 +0200
@@ -76,6 +76,7 @@
 	    echo ; \
 	done ) > $(TEMPLATES_FILE)
 	debconf-updatepo
+	rdfind -outputname /dev/null -makehardlinks true $(TZGEN)
 
 override_dh_auto_test:
 	# The upstream tests are related to the sources. Just skip it.
diff --minimal -Nru tzdata-2022a/debian/tzdata.lintian-overrides tzdata-2022a/debian/tzdata.lintian-overrides
--- tzdata-2022a/debian/tzdata.lintian-overrides	1970-01-01 01:00:00.000000000 +0100
+++ tzdata-2022a/debian/tzdata.lintian-overrides	2022-05-02 12:00:33.000000000 +0200
@@ -0,0 +1,2 @@
+# lintian bug #1010476
+tzdata: package-contains-hardlink *

--- End Message ---
--- Begin Message ---
Source: tzdata
Source-Version: 2022g-1
Done: Benjamin Drung <bdrung@debian.org>

We believe that the bug you reported is fixed in the latest version of
tzdata, 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 1010477@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Benjamin Drung <bdrung@debian.org> (supplier of updated tzdata 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 ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Mon, 02 Jan 2023 15:27:07 +0100
Source: tzdata
Built-For-Profiles: noudeb
Architecture: source
Version: 2022g-1
Distribution: unstable
Urgency: medium
Maintainer: GNU Libc Maintainers <debian-glibc@lists.debian.org>
Changed-By: Benjamin Drung <bdrung@debian.org>
Closes: 1010477 1023598
Changes:
 tzdata (2022g-1) unstable; urgency=medium
 .
   * New upstream version:
     - The northern edge of Chihuahua changes to US timekeeping.
     - Much of Greenland stops changing clocks after March 2023.
     - Fix some pre-1996 timestamps in northern Canada.
   * debian/tzdata.config: convert Europe/Uzhgorod and Europe/Zaporozhye
     into Europe/Kyiv.
   * debian/tzdata.templates: Remove Uzhgorod and Zaporozhye, add Ciudad_Juarez
   * debian/watch: Switch from failing ftp to https
   * Add myself to Uploaders
   * Replace timezone files in posix directory by symlinks (Closes: #1010477)
   * Convert d/copyright to machine-readable format. Thanks to Bastian Germann
     (Closes: #1023598)
   * Bump Standards-Version to 4.6.2
   * Add debian/upstream/metadata
Checksums-Sha1:
 25c1f80acd77e399369aacae7b7ff760f193134f 2231 tzdata_2022g-1.dsc
 f28562b04f3a26c4a01b295efce86a5d378ea9af 439731 tzdata_2022g.orig.tar.gz
 7877fc1d1eb5635b5a88a07effe389110fb586e0 833 tzdata_2022g.orig.tar.gz.asc
 d5083bf5c5b494dc34414aa7237c5829504e3ca9 112624 tzdata_2022g-1.debian.tar.xz
 dd46c538af14f83459c666d2ef9523b404b05967 7270 tzdata_2022g-1_source.buildinfo
Checksums-Sha256:
 0c64467b115608f9589007ef9c4fbfc1a57de1878fb80fd39c534565304378c3 2231 tzdata_2022g-1.dsc
 4491db8281ae94a84d939e427bdd83dc389f26764d27d9a5c52d782c16764478 439731 tzdata_2022g.orig.tar.gz
 2fe43e895ab050f5909041d1105222f0678d716128b59d39b8a3ac94b4a1bbc0 833 tzdata_2022g.orig.tar.gz.asc
 d498649597f65d0d5df228054350a0dafce346f6b995494945183c5cb981e93c 112624 tzdata_2022g-1.debian.tar.xz
 65a0014e8496dcd58e82315d4fb55aefec2d02364a63e1ad3907302fcf460a51 7270 tzdata_2022g-1_source.buildinfo
Files:
 50c54f679e3a10dc0f04074579be56dc 2231 localization required tzdata_2022g-1.dsc
 884250fd2a8a55f6322900ad4ab94d7b 439731 localization required tzdata_2022g.orig.tar.gz
 ad8fe79eed0b38fe79379d935d68620d 833 localization required tzdata_2022g.orig.tar.gz.asc
 6603e7f66f9aa1d4fe4fbf275f73e64d 112624 localization required tzdata_2022g-1.debian.tar.xz
 bdaaf6ece44e34d117843bcbc51d8699 7270 localization required tzdata_2022g-1_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEpi0s+9ULm1vzYNVLFZ61xO/Id0wFAmOy61cACgkQFZ61xO/I
d0w7YRAAt7Lhc6QbJ6KhOQiW7NxLLbdxdndvB1vl6ThjCrrxwj6qI4amfDj1Eplm
wDfMy/LEYD7VpzeILX+xeTittGo30pRQPcEDYhdzlLaaYfpf8H8eXgSDOXfwFsas
N3EyPS90gDTNfdryFnTiCKLkPvcrDaORDNOOtT1WFMwfV2xz3K4dvRzMso7EXz6Y
bWtblq9oz8gkiiOqDTKsOb8iRZ4Q9enljKr2w+jrQzcJxQduaGWwIG8VcKZlyFT3
UsoinYwjlSgZl+ppT85ANfd7nbf9sys3DpcuA7T1d0Htdhd4SsSBdwPuZ6ogfLC4
K+Q05UTN568t2L6ROqrgUj9UKxWHvZnDGEcqhmK9Tb+UMgX5lsu+t6Q+e6LZ4VXk
4FeNM5oWg2T6hMFe4mVktFlPmol5Mxy19CXI8gofmnFaKpnDHnH+6fMtWm/xmQSv
kjj1clFV3/4pcDCC4iqyE0TAkO2JwP2aaJNQHSvH8QvsobOhkjw+18agDzyX51vP
YsaxTYhPCA8CdgnoO12U4nP0+0G+biO3XAQt7s3IUJ+x9231aA0iFLfwCFDrm9LZ
ywrsQ1u4UnRnKZ0/Ge5zrV9xkX5vhDaNqo96Dd+Gj1uMRiXsDvwzDROasjGejp/H
lTH7jaqNdPqNJ4C/kKUkc0WlWFfMwIqxG2DwEPe0Bz++qOWsggg=
=CkGD
-----END PGP SIGNATURE-----

--- End Message ---

Reply to: