Your message dated Mon, 9 Apr 2018 18:52:49 +0200
with message-id <d08a6140-bf64-6b55-97ae-dab15adb1...@debian.org>
and subject line Re: Bug#895170: desktop-file-utils: won't configure because of 
XDG_DATA_DIRS
has caused the Debian Bug report #895170,
regarding desktop-file-utils: won't configure because of XDG_DATA_DIRS
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 ow...@bugs.debian.org
immediately.)


-- 
895170: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=895170
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: desktop-file-utils
Version: 0.23-3
Severity: important

Dear Maintainer,

   * What led up to the situation?
I was installing debian in a chroot.
The installation of desktop-file-utils failed at the configuration step.

   * What exactly did you do (or not do) that was effective (or
     ineffective)?
dpkg --configure desktop-file-utils would fail without explaining the
reason, except to say that the configuration script failed.

I ran the /var/lib/dpkg/info/desktop-file-utils.postinst script manually
without the -q option to update-desktop-database and found out that it
was complaining about paths from the environment, then used env | grep
to identify the culprit: the environment variable XDG_DATA_DIRS
had an inappropriate value inherited from outside the chroot.
Note that XDG defines several environment variables, and that
system configuration scripts should ignore all such user variables.


-- System Information:
Debian Release: buster/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 4.9.86 (SMP w/4 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968), LANGUAGE=C 
(charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash
Init: unable to detect

Versions of packages desktop-file-utils depends on:
ii  libc6         2.27-3
ii  libglib2.0-0  2.56.0-4

desktop-file-utils recommends no packages.

desktop-file-utils suggests no packages.

-- no debconf information

--- End Message ---
--- Begin Message ---
On 09/04/18 15:43, Faré wrote:
> On Mon, Apr 9, 2018 at 4:02 AM, Emilio Pozuelo Monfort <po...@debian.org> 
> wrote:
>> On 08/04/18 05:26, Francois-Rene Rideau wrote:
>>> Note that XDG defines several environment variables, and that
>>> system configuration scripts should ignore all such user variables.
>>
>> What makes you believe that?
>>
> When installing a system package, the installation should be
> predictable and not depend on whatever environment variables the user
> happens to export or not export at the time of installation.

By user you mean system admin.

Policy requires that binaries work when no special env vars are set. It doesn't
require that they work when you provide bad ones.

In this case, I don't think it would be wise to ignore this error, given the
cache wasn't updated due to a broken setup and the admin should realise that and
fix it. Thus I'm closing this report.

Cheers,
Emilio

--- End Message ---

Reply via email to