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

Bug#836427: apt: Dir::Etc is different by a trailing slash between stable and unstable



On Fri, Sep 02, 2016 at 05:34:54PM -0400, Anne C. Hanna wrote:
> Package: apt
> Version: 1.3~rc3
> Severity: minor
> 
> The Dir::Etc entry in the apt-config defaults seems to have changed somewhere
> between the current stable (1.0.9.8.3) and unstable (1.3~rc3) versions.  In
> stable, the default seems to be:
> 
> Dir::Etc "etc/apt/";
> 
> while in unstable it's:
> 
> Dir::Etc "etc/apt";

That's a side effect of making that user configurable. I could probably change
the default back to add a slash, but relying on the value of a Dir:: option is
broken anyway (except for some Dir::Bin::...) - you must always access them
correctly as either directory (Dir::Etc/d in apt-config) or file (Dir::Etc/f
in apt-config).

> 
> without the trailing slash.  This causes a slight problem with installation of
> Microsoft's skypeforlinux alpha package (see the discussion starting here:
> https://community.skype.com/t5/Linux/Skype-for-Linux-Alpha-and-calling-on-Chrome-amp-Chromebooks/m-p/4468583/highlight/true#M15719
> ), so a few of us users are trying to determine whether this is an intentional
> change that we should ask the skypeforlinux developers to respect or a bug in
> apt unstable that should be fixed on that side.  (The skypeforlinux alpha
> package appears to have some other issues too, but I'll leave those aside for
> now.)

That software is broken. I'm not sure how it queries its stuff,
but if it is using apt-config, it forgot to append /d to get a
directory path.

You may not use the value of Dir::Etc, Dir::State and so on
without /d. Especially for sources.list.d, there should be
non concatenation at all it should be

	Dir::Etc::SourceParts/d

That gives you the right path, including root directory settings
and other shit.

-- 
Debian Developer - deb.li/jak | jak-linux.org - free software dev

When replying, only quote what is necessary, and write each reply
directly below the part(s) it pertains to (`inline'). Thank you.


Reply to: