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

Bug#163517: marked as done (libc6: provides/depends asymmetry when building "local" glibc versions)



Your message dated Sun, 6 Oct 2002 10:32:13 -0400
with message-id <[🔎] 20021006143213.GJ566@phunnypharm.org>
and subject line Bug#163517: libc6: provides/depends asymmetry when building "local" glibc 	versions
has caused the attached Bug report 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 I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 6 Oct 2002 13:21:47 +0000
>From andreas.trottmann@werft22.com Sun Oct 06 08:21:47 2002
Return-path: <andreas.trottmann@werft22.com>
Received: from reflection.aart.ch [195.65.67.59] (root)
	by master.debian.org with esmtp (Exim 3.12 1 (Debian))
	id 17yBLv-0007nO-00; Sun, 06 Oct 2002 08:21:47 -0500
Received: from kreator.toc.aart.ch (kreator.toc.aart.ch [195.65.67.227])
	by reflection.aart.ch (8.12.3/8.12.3/Debian -4) with ESMTP id g96DLa2s008638;
	Sun, 6 Oct 2002 15:21:37 +0200
Received: from ftc by kreator.toc.aart.ch with local (Exim 3.36 #1 (Debian))
	id 17yBLk-0006hf-00; Sun, 06 Oct 2002 15:21:36 +0200
Content-Type: text/plain; charset="ISO-8859-15"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: "Andreas Trottmann" <andreas.trottmann@werft22.com>
To: "Debian Bug Tracking System" <submit@bugs.debian.org>
Subject: libc6: provides/depends asymmetry when building "local" glibc
	versions
X-Mailer: reportbug 2.0
Date: Sun, 06 Oct 2002 15:21:35 +0200
Message-Id: <[🔎] E17yBLk-0006hf-00@kreator.toc.aart.ch>
Sender: Andreas Trottmann <ftc@kreator.toc.aart.ch>
Delivered-To: submit@bugs.debian.org

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


---------------------------------------
Received: (at 163517-done) by bugs.debian.org; 6 Oct 2002 14:32:27 +0000
>From bmc@phunnypharm.org Sun Oct 06 09:32:27 2002
Return-path: <bmc@phunnypharm.org>
Received: from blowme.phunnypharm.org [65.207.35.140] 
	by master.debian.org with esmtp (Exim 3.12 1 (Debian))
	id 17yCSJ-0002ad-00; Sun, 06 Oct 2002 09:32:27 -0500
Received: from hopper.phunnypharm.org ([192.168.0.13] ident=mail)
	by blowme.phunnypharm.org with esmtp (Exim 3.35 #1 (Debian))
	id 17yCSA-0001AL-00; Sun, 06 Oct 2002 10:32:18 -0400
Received: from bmc by hopper.phunnypharm.org with local (Exim 3.36 #1 (Debian))
	id 17yCS5-0001am-00; Sun, 06 Oct 2002 10:32:13 -0400
Date: Sun, 6 Oct 2002 10:32:13 -0400
From: Ben Collins <bcollins@debian.org>
To: Andreas Trottmann <andreas.trottmann@werft22.com>,
	163517-done@bugs.debian.org
Cc: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: Re: Bug#163517: libc6: provides/depends asymmetry when building "local" glibc 	versions
Message-ID: <[🔎] 20021006143213.GJ566@phunnypharm.org>
References: <[🔎] E17yBLk-0006hf-00@kreator.toc.aart.ch>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <[🔎] E17yBLk-0006hf-00@kreator.toc.aart.ch>
User-Agent: Mutt/1.4i
Delivered-To: 163517-done@bugs.debian.org

> --- 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)/$@ ..

This patch breaks binary-only NMU's, because they do not provide a
symetrical locales package (which is binary-all and isn't built for
binary-only builds).

If you want to build your own local version of glibc, take different
approach. For example, make the version 2:2.2.5-1 (note the epoch).

This relationship between locales/libc6 is too brittle already to worry
about local builds.

-- 
Debian     - http://www.debian.org/
Linux 1394 - http://www.linux1394.org/
Subversion - http://subversion.tigris.org/
Deqo       - http://www.deqo.com/



Reply to: