🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.bugs.dist
Article #3524

Bug#1153245: plocate database not generated in chroots

#3524
From: Benjamin Drung
Date: Fri, 06 Nov 2026 18:50
26 lines
2954 bytes
On Fri, 2026-11-06 at 18:50 +0100, Steinar H. Gunderson wrote:
> On Fri, Nov 06, 2026 at 06:40:26PM +0100, Benjamin Drung wrote:
> > When installing plocate in a container, the plocate database is not
> > generated.
> > 
> > In Ubuntu we have been carrying the attached patch to create the plocate
> > database in postinst since several years.
> 
> Hi,
> 
> Thanks for the patch. However, this means installing plocate can make apt
> block further installation for unbounded amounts of time, even days on
> certain systems, and I doubt that is acceptable.

I searched the bug reports and found
https://bugs.launchpad.net/ubuntu/+source/plocate/+bug/1968388

So blocking for the update is not a good idea. But how can we solve the
initial problem (installation in containers)? How about detecting if
running in a container and only then update the db in postinst?
containers are normally smaller than full desktop installations.

-- 
Benjamin Drung
Debian & Ubuntu Developer
Technical Details
Message-ID: <NWxaF-af8n-1@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.corradoroberto.it!bofh.it!news.nic.it!robomod
References: <NWweB-aeCI-3@gated-at.bofh.it> <NWwRj-af1t-23@gated-at.bofh.it> <NWweB-aeCI-3@gated-at.bofh.it> <NWwRj-af1t-23@gated-at.bofh.it>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.corradoroberto.it!bofh.it!news.nic.it!robomod
From: Benjamin Drung <bdrung@debian.org>
Newsgroups: linux.debian.bugs.dist
Subject: Bug#1153245: plocate database not generated in chroots
Date: Fri, 06 Nov 2026 19:50:01 +0100
Message-ID: <NWxaF-af8n-1@gated-at.bofh.it>
References: <NWweB-aeCI-3@gated-at.bofh.it> <NWwRj-af1t-23@gated-at.bofh.it> <NWweB-aeCI-3@gated-at.bofh.it> <NWwRj-af1t-23@gated-at.bofh.it>
X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org  Fri Nov  6 18:43:07 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -1.7
Reply-To: Benjamin Drung <bdrung@debian.org>, 1153245@bugs.debian.org
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: sesse@debian.org
X-Debian-Pr-Message: followup 1153245
X-Debian-Pr-Package: plocate
X-Debian-Pr-Keywords: patch
X-Debian-Pr-Source: plocate
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
User-Agent: Evolution 3.56.2-9 
MIME-Version: 1.0
X-Debian-User: bdrung
X-Debian-Message: from BTS
X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2001107
List-ID: <debian-bugs-dist.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-dist/>
Approved: robomod@news.nic.it
Lines: 26
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Fri, 06 Nov 2026 19:41:47 +0100
X-Original-Message-ID: <0b4214586b8041ba8bb9badc8521243a9433efb5.camel@debian.org>
X-Original-References: <179398682670.41926.6937255915626023779.reportbug@curves>  <bwudooknuq7juk66cztztxlzrp5e4ankwyfdqw2i475hlyh4ca@fglwgophl2h5> <179398682670.41926.6937255915626023779.reportbug@curves> <bwudooknuq7juk66cztztxlzrp5e4ankwyfdqw2i475hlyh4ca@fglwgophl2h5>