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

Bug#996436: marked as done (Hide ldconfig error which occurs when postinst is run by non-root)



Your message dated Thu, 14 Oct 2021 21:22:24 +0200
with message-id <YWiDcKOqm2uDGwhs@aurel32.net>
and subject line Re: Bug#996436: Hide ldconfig error which occurs when postinst is run by non-root
has caused the Debian Bug report #996436,
regarding Hide ldconfig error which occurs when postinst is run by non-root
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 this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
996436: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=996436
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: libc-bin
Version: 2.31-12

The post install script fails when trigger as a non-root user (such as
when using dpkg to install a package to a different root from a
non-root account). This seems to be because ldconfig --verbose returns
an error because it needs root privileges to work, showing this error:

  /sbin/ldconfig: Can't create temporary cache file /etc/ld.so.cache~:
  Permission denied

Appending ||: to the end of this command will occlude the error and
allow the post install script to succeed.

Glenn

--- End Message ---
--- Begin Message ---
Version: 2.31-17

On 2021-10-14 00:05, Glenn Washburn wrote:
> Package: libc-bin
> Version: 2.31-12
> 
> The post install script fails when trigger as a non-root user (such as
> when using dpkg to install a package to a different root from a
> non-root account). This seems to be because ldconfig --verbose returns
> an error because it needs root privileges to work, showing this error:
> 
>   /sbin/ldconfig: Can't create temporary cache file /etc/ld.so.cache~:
>   Permission denied
> 
> Appending ||: to the end of this command will occlude the error and
> allow the post install script to succeed.

Blindly ignoring an error is definitely not something wanted. Anyway
support for DPKG_ROOT has already been added in version 2.31-17 (see
bug#983412 for more details).

Regards,
Aurelien

-- 
Aurelien Jarno                          GPG: 4096R/1DDD8C9B
aurelien@aurel32.net                 http://www.aurel32.net

--- End Message ---

Reply to: