Article View: linux.debian.bugs.dist
Article #4616Bug#1154080: libstdc++6.preinst wrongly produced for DEB_STAGE=rtlibs
From: Helmut Grohne
Date: Sun, 15 Nov 2026 15:40
Date: Sun, 15 Nov 2026 15:40
30 lines
3070 bytes
3070 bytes
Package: libstdc++6 Version: 16.2.0-4 Tags: patch User: helmutg@debian.org Usertags: rebootstrap Hi Matthias, I noticed that when building DEB_STAGE=rtlibs, the generated libstdc++6.prerem is broken, because TARGET_QUAL ends up being empty. For native builds as well as cross building the compiler, it is non-empty. When empty, removing libstdc++6 results in strange output: | dpkg-query: error: --listfiles needs a valid package name but 'libstdc++6' is not: ambiguous package name 'libstdc++6' with more than one installed instance | | Use --help for help about querying packages. | dpkg-query: error: --listfiles needs a valid package name but 'libstdc++6' is not: ambiguous package name 'libstdc++6' with more than one installed instance | | Use --help for help about querying packages. Presently, TARGET_QUAL is set when the host architecture equals the target condition. Clearly, when that condition holds, it needs to be set, but it also needs to be set for DEB_STAGE=rtlibs. I observe that in both cases LS ends up being empty. When LS is non-empty, the relevant package is renamed and Arch:all, so TARGET_QUAL needs to be empty. The prerm is the only location where TARGET_QUAL is being used. So this looks like the right condition to me. Please consider applying the attached patch. Helmut
Technical Details
Message-ID:
<NZKuK-c44d-33@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!news-ams.pugleaf.net!news.tcpreset.net!newsfeed.bofh.team!weretis.net!feeder8.news.weretis.net!news.imp.ch!news.corradoroberto.it!bofh.it!news.nic.it!robomodShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!news-ams.pugleaf.net!news.tcpreset.net!newsfeed.bofh.team!weretis.net!feeder8.news.weretis.net!news.imp.ch!news.corradoroberto.it!bofh.it!news.nic.it!robomod From: Helmut Grohne <helmut@subdivi.de> Newsgroups: linux.debian.bugs.dist Subject: Bug#1154080: libstdc++6.preinst wrongly produced for DEB_STAGE=rtlibs Date: Sun, 15 Nov 2026 16:40:02 +0100 Message-ID: <NZKuK-c44d-33@gated-at.bofh.it> X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org Sun Nov 15 15:33:13 2026 Old-Return-Path: <debbugs@buxtehude.debian.org> X-Spam-Flag: NO X-Spam-Score: -1.45 Reply-To: Helmut Grohne <helmut@subdivi.de>, 1154080@bugs.debian.org Resent-To: debian-bugs-dist@lists.debian.org Resent-Cc: debian-gcc@lists.debian.org X-Debian-Pr-Message: report 1154080 X-Debian-Pr-Package: libstdc++6 X-Debian-Pr-Keywords: patch X-Debian-Pr-Source: gcc-10, gcc-11, gcc-11-mipsen, gcc-12, gcc-13, gcc-14, gcc-15, gcc-16, gcc-3.4, gcc-3.5, gcc-4.0, gcc-4.1, gcc-4.2, gcc-4.3, gcc-4.4, gcc-4.5, gcc-4.6, gcc-4.7, gcc-4.8, gcc-4.9, gcc-5, gcc-6, gcc-7, gcc-8, gcc-9 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Reportbug-Version: 13.2.0+nmu1 X-Debian-Message: from BTS X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2002778 List-ID: <debian-bugs-dist.lists.debian.org> List-URL: <https://lists.debian.org/debian-bugs-dist/> Approved: robomod@news.nic.it Lines: 30 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Sun, 15 Nov 2026 16:31:11 +0100 X-Original-Message-ID: <20261115153111.GA4088676@subdivi.de>