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

r4869 - in glibc-package/trunk/debian: . control.in rules.d



Author: aurel32
Date: 2011-08-12 16:09:32 +0000 (Fri, 12 Aug 2011)
New Revision: 4869

Modified:
   glibc-package/trunk/debian/changelog
   glibc-package/trunk/debian/control
   glibc-package/trunk/debian/control.in/main
   glibc-package/trunk/debian/rules.d/build.mk
Log:
locales-all: Use symlinks between identical files to limit the unpacked size.


Modified: glibc-package/trunk/debian/changelog
===================================================================
--- glibc-package/trunk/debian/changelog	2011-08-12 16:08:19 UTC (rev 4868)
+++ glibc-package/trunk/debian/changelog	2011-08-12 16:09:32 UTC (rev 4869)
@@ -5,7 +5,8 @@
   * Add debian/patches/cvs-dlopen-tls.diff to fix handling of static TLS in
     dlopen'ed objects.  Closes: #637239.
   * Provide locales in locales-all as separated files instead of adding them
-    to locale-archive.  Closes: #537743, #636694.
+    to locale-archive. Use symlinks between identical files to limit the 
+    unpacked size.  Closes: #537743, #636694.
   * Compress libc*-dbg and locales-all to using xz. 
 
  -- Aurelien Jarno <aurel32@debian.org>  Tue, 09 Aug 2011 11:40:02 +0200

Modified: glibc-package/trunk/debian/control
===================================================================
--- glibc-package/trunk/debian/control	2011-08-12 16:08:19 UTC (rev 4868)
+++ glibc-package/trunk/debian/control	2011-08-12 16:09:32 UTC (rev 4869)
@@ -2,7 +2,7 @@
 Section: libs
 Priority: required
 Build-Depends: gettext, make (>= 3.80), dpkg-dev (>= 1.16.0), bzip2, xz-utils, file, quilt,
- autoconf, sed (>= 4.0.5-4), gawk, debhelper (>= 7.4.3), tar (>= 1.22),
+ autoconf, sed (>= 4.0.5-4), gawk, debhelper (>= 7.4.3), tar (>= 1.22), fdupes,
  linux-libc-dev [!hurd-i386 !kfreebsd-i386 !kfreebsd-amd64],
  mig (>= 1.3-2) [hurd-i386], hurd-dev (>= 20080607-3) [hurd-i386], gnumach-dev [hurd-i386], libpthread-stubs0-dev [hurd-i386],
  kfreebsd-kernel-headers [kfreebsd-i386 kfreebsd-amd64],

Modified: glibc-package/trunk/debian/control.in/main
===================================================================
--- glibc-package/trunk/debian/control.in/main	2011-08-12 16:08:19 UTC (rev 4868)
+++ glibc-package/trunk/debian/control.in/main	2011-08-12 16:09:32 UTC (rev 4869)
@@ -2,7 +2,7 @@
 Section: libs
 Priority: required
 Build-Depends: gettext, make (>= 3.80), dpkg-dev (>= 1.16.0), bzip2, xz-utils, file, quilt,
- autoconf, sed (>= 4.0.5-4), gawk, debhelper (>= 7.4.3), tar (>= 1.22),
+ autoconf, sed (>= 4.0.5-4), gawk, debhelper (>= 7.4.3), tar (>= 1.22), fdupes,
  linux-libc-dev [!hurd-i386 !kfreebsd-i386 !kfreebsd-amd64],
  mig (>= 1.3-2) [hurd-i386], hurd-dev (>= 20080607-3) [hurd-i386], gnumach-dev [hurd-i386], libpthread-stubs0-dev [hurd-i386],
  kfreebsd-kernel-headers [kfreebsd-i386 kfreebsd-amd64],

Modified: glibc-package/trunk/debian/rules.d/build.mk
===================================================================
--- glibc-package/trunk/debian/rules.d/build.mk	2011-08-12 16:08:19 UTC (rev 4868)
+++ glibc-package/trunk/debian/rules.d/build.mk	2011-08-12 16:09:32 UTC (rev 4869)
@@ -92,6 +92,18 @@
 	  $(MAKE) -C $(DEB_BUILDDIR) $(NJOBS) \
 	    objdir=$(DEB_BUILDDIR) install_root=$(CURDIR)/build-tree/locales-all \
 	    localedata/install-locales; \
+	  cd $(CURDIR)/build-tree/locales-all/usr/lib/locale ; \
+	  fdupes -1 -H -q -R . | while read line ; do \
+	    set -- $${line} ; \
+	    tgt="$${1##./}" ; \
+	    shift ; \
+	    while [ "$$#" != 0 ] ; do \
+	      link="$${1##./}" ; \
+	      reltgt="$$(dirname $$link | sed -e 's#[^/]\+#..#g')/$${tgt}" ; \
+	      ln -sf $${reltgt} $${link} ; \
+	      shift ; \
+	    done ; \
+	  done ; \
 	fi
 	touch $@
 


Reply to: