Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.kernel > #75585

Bug#1012601: wireless-regdb: alternative broken on debian-installer install

Path csiph.com!news.mixmin.net!aioe.org!bofh.it!news.nic.it!robomod
From Ben Hutchings <ben@decadent.org.uk>
Newsgroups linux.debian.bugs.dist, linux.debian.kernel
Subject Bug#1012601: wireless-regdb: alternative broken on debian-installer install
Date Mon, 13 Jun 2022 16:50:01 +0200
Message-ID <ExTy9-4ymW-3@gated-at.bofh.it> (permalink)
References <EwB0C-3M9d-1@gated-at.bofh.it> <EwB0C-3M9d-1@gated-at.bofh.it>
X-Mailbox-Line From debian-bugs-dist-request@lists.debian.org Mon Jun 13 14:42:09 2022
Old-Return-Path <debbugs@buxtehude.debian.org>
X-Spam-Flag NO
X-Spam-Score -3.96
Reply-To Ben Hutchings <ben@decadent.org.uk>, 1012601@bugs.debian.org
Resent-To debian-bugs-dist@lists.debian.org
Resent-Cc Debian kernel team <debian-kernel@lists.debian.org>
X-Debian-Pr-Message followup 1012601
X-Debian-Pr-Package wireless-regdb
X-Debian-Pr-Keywords d-i
X-Debian-Pr-Source wireless-regdb
Content-Type multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-EOpEKn0GneUYbz+B1Rwq"
User-Agent Evolution 3.44.1-2
MIME-Version 1.0
X-Sa-Exim-Connect-IP 91.181.7.168
X-Sa-Exim-Mail-From ben@decadent.org.uk
X-Sa-Exim-Scanned No (on maynard); SAEximRunCond expanded to false
X-Debian-Message from BTS
X-Mailing-List <debian-bugs-dist@lists.debian.org> archive/latest/1721023
List-ID <debian-bugs-dist.lists.debian.org>
List-URL <https://lists.debian.org/debian-bugs-dist/>
Approved robomod@news.nic.it
Lines 69
Organization linux.* mail to news gateway
Sender robomod@news.nic.it
X-Original-Date Mon, 13 Jun 2022 16:39:23 +0200
X-Original-Message-ID <bf6874b89fc51e4938e5f125c700ba31682da9f3.camel@decadent.org.uk>
X-Original-References <165482158652.1308644.5236850926399117263.reportbug@pc-zest.atmarktech> <165482158652.1308644.5236850926399117263.reportbug@pc-zest.atmarktech>
Xref csiph.com linux.debian.bugs.dist:1106435 linux.debian.kernel:75585

Cross-posted to 2 groups.

Show key headers only | View raw


[Multipart message — attachments visible in raw view] - view raw

On Fri, 2022-06-10 at 09:39 +0900, Dominique Martinet wrote:
[...]
> The original cause for this is that deian-installer copies the files
> because of the combinaison of these two:
> https://salsa.debian.org/installer-team/debian-installer/-/blob/master/build/pkg-lists/base#L34
>  - wireless-regdb-udeb contains the firmwares as regular files
> https://salsa.debian.org/installer-team/hw-detect/-/blob/master/hw-detect.post-base-installer.d/50install-firmware#L14
>  - it copies /lib/firmware content in base post-install step

I didn't realise the installer was copying firmware files over.  It
should be installing the relevant packages instead where possible.

> the udeb regdb is also slightly obsolete, I'm not sure why it was needed
> in the first place but it might be possible to use the normal package
> instead?

Why do you think it's obsolete?  It is useful to have this file present
in the installer.

> That won't fix existing systems though.
> If wireless-regdb had been owning the files in dpkg it would be fair
> game to just overwrite the files (dpkg overwrites any untracked file
> when installing a package that provides the path).
> 
> Would it make sense to include regulatory.db -> regulatory.db-debian
> (+same for p7s) links in the package itself, so package installation
> overwrites these and the post update-alternative step fixes it?
> It seems to fix "broken" links without force in this case.
> (or push real links to /etc/alternatives/regulatory.db would work too)

I don't think it's right to include symlinks in the package that are
supposed to be managed by update-alternatives.  I would rather fix this
up in the postinst script.

Ben.

-- 
Ben Hutchings
It's easier to fight for one's principles than to live up to them.

Back to linux.debian.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Bug#1012601: wireless-regdb: alternative broken on debian-installer install Dominique Martinet <dominique.martinet@atmark-techno.com> - 2022-06-10 02:50 +0200
  Bug#1012601: wireless-regdb: alternative broken on debian-installer install Ben Hutchings <ben@decadent.org.uk> - 2022-06-13 16:50 +0200
    Bug#1012601: wireless-regdb: alternative broken on debian-installer install Dominique Martinet <dominique.martinet@atmark-techno.com> - 2022-06-14 01:40 +0200
      Bug#1012601: wireless-regdb: alternative broken on debian-installer install Ben Hutchings <ben@decadent.org.uk> - 2022-06-30 02:10 +0200
        Bug#1012601: wireless-regdb: alternative broken on debian-installer install Dominique Martinet <dominique.martinet@atmark-techno.com> - 2022-06-30 02:30 +0200
  Bug#1012601: marked as done (wireless-regdb: alternative broken  on debian-installer install) "Debian Bug Tracking System" <owner@bugs.debian.org> - 2022-06-30 01:40 +0200

csiph-web