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

Bug#694127: apt-utils: apt-extracttemplates is confused when RootDir is set



On Sat, Nov 24, 2012 at 9:23 AM, Milan Cermak <mcermak@chello.cz> wrote:
> It suggests, that apt-extracttemplates (and maybe other components) does not
> honor RootDir option. The packages were downloaded to the chroot'd environment,
> but apt-extracttemplated looked them up in the primary environment.

We will need to check if this applies to APT/wheezy and/or APT/unstable.

It could be that rev 1561.1.206 solves this:

apt (0.8.12) unstable; urgency=low
…
  * apt-pkg/contrib/fileutl.cc, apt-pkg/deb/dpkgpm.cc:
    - honor Dpkg::Chroot-Directory in the RunScripts*() methods
…
 -- Michael Vogt <mvo@debian.org>  Thu, 10 Mar 2011 14:46:48 +0100

as apt-extracttemplate is not directly executed from APT.


> I was able to workaround this with setting:
> Dpkg::Chroot-Directory "/tmp/mychroot";
>
> in the APT_CONFIG file. However, this caused dpkg to be chrooted to /tmp/mychroot/tmp/mychroot,
> which obviously does not exist.

I remember that we had some changes in that area as well, I just can't
seem to find them just yet.


Would be nice if you could test this in wheezy as I never used these options
myself so far so I don't know the "usecase" to properly test it.


Best regards

David Kalnischkies


Reply to: