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

Bug#163517: libc6: provides/depends asymmetry when building "local" glibc versions



Package: libc6
Version: 2.2.5-15
Severity: minor
Tags: patch

Hello People,

There is a mechanism in the debian/debver2localesdep.pl script which
presumably should make the dependency between libc6 and locales a bit
looser. Apparently, it is intended that "libc6-1.2.34-4.5.anything" can
be installed together with "libc6-1.2.34-4.5.anyotherthing". It seems 
to have been introduced in version 2.2.5-2; the following changelog entry
documents it:

---
  * Fix problem where a binary-NMU rebuild of libc would provide a version
    that was incompatible with the current locales dep.
---


This is expressed by the following lines in debian/packages.d/libc.mk:

dpkg-gencontrol -isp -p$@ -P$(tmpdir)/$@ $(libc_control_flags) \
	-DProvides="$(shell perl debian/debver2localesdep.pl $(DEBVERSION))"

Like this, the libc6 package of version 1.2.34-4.5.anything is made 
to Provides: glibc-1.2.34-4.5



However, the corresponding Depends: line in the locales package still
depends on the full version: debian/packages.d/locales.mk shows

dpkg-gencontrol -isp -p$@ -P$(tmpdir)/$@ $($@_control_flags) \
	-DDepends="glibc-$(DEBVERSION), debconf (>= 0.2.26)"


The following patch makes the "weakened" provides/depends situation for 
locales symmetrical. Like this, also a locally rebuilt (or binary nmu...)
locales package can be installed together with the libc6 package from 
the same build:

(the patch is to be applied in the debian/packages.d subdirectory)

--- locales.mk-orig     2002-10-06 12:40:15.000000000 +0200
+++ locales.mk  2002-10-06 12:40:37.000000000 +0200
@@ -44,7 +44,7 @@
	perl -i -pe 'BEGIN {undef $$/; open(IN, "'"$(tmpdir)/$@$(datadir)/i18n/SUPPORTED"'"); $$j=<IN>;} s/__SUPPORTED_LOCALES__/$$j/g;' $(tmpdir)/$@/DEBIAN/config

	dpkg-gencontrol -isp -p$@ -P$(tmpdir)/$@ $($@_control_flags) \
-		-DDepends="glibc-$(DEBVERSION), debconf (>= 0.2.26)"
+		-DDepends="$(shell perl debian/debver2localesdep.pl $(DEBVERSION)), debconf (>= 0.2.26)"
	chown -R root.root $(tmpdir)/$@
	chmod -R go=rX $(tmpdir)/$@
	dpkg --build $(tmpdir)/$@ ..





-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux kreator 2.4.19-grsec #1 Mon Aug 5 21:24:47 CEST 2002 i686
Locale: LANG=de_CH.ISO8859-15, LC_CTYPE=de_CH.ISO8859-15

Versions of packages libc6 depends on:
ii  libdb1-compat                 2.1.3-6    The Berkeley database routines [gl

-- no debconf information




Reply to: