Jonas,

apt is perfectly working inside that docker container.

And the contents of /etc/apt/apt.conf.d/docker-clean is as follows:

DPkg::Post-Invoke { "rm -f /var/cache/apt/archives/*.deb 
/var/cache/apt/archives/partial/*.deb /var/cache/apt/*.bin || true"; };
APT::Update::Post-Invoke { "rm -f /var/cache/apt/archives/*.deb 
/var/cache/apt/archives/partial/*.deb /var/cache/apt/*.bin || true"; };

Dir::Cache::pkgcache "";
Dir::Cache::srcpkgcache "";

So, apt is not broken either.

Also, there is no "my tool" in this process - I was using standart devscripts.

I think, it worth to mention, that if I edit d-devlibdeps remove --no-generate 
flag from apt-cache, everything works fine.

At https://hub.docker.com/_/debian it reads as "Docker Official Images", so I 
thought, that debian image is provided by Debian team...

----- Original Message -----
From: "Jonas Smedegaard" <jo...@jones.dk>
To: "916856" <916...@bugs.debian.org>, "Андрей Лухнов" <loukh...@lotes-tm.ru>
Sent: Wednesday, December 19, 2018 7:33:50 PM
Subject: Re: Bug#916856: d-shlibs: d-devlibdeps fails in docker due to 
/etc/apt/apt.conf.d/docker-clean

Hi Лухнов Андрей,

Quoting Лухнов Андрей Олегович (2018-12-19 16:29:49)
> sorry, missed to fill in the details..
> 
> while building pjproject inside official debian:9.6 container d-devlibdeps 
> failed.
> after some digging it appeared that apt is cleaning cache after each 
> invocation, which makes apt-cache --no-generate to fail.

Thanks for reporting - and for adding these additional notes.

d-shlibs require a properly working apt. That's not a bug in d-shlibs.

Seems to me your containerizing framework needs to ensure the 
environment is properly bootstrapped ahead of building packages.

I am not familiar with using containerizing frameworks for building 
packages so cannot tell if this is a bug in your tool or you needing to 
configure the framework differently.  If it is the former and your 
framework is packaged for Debian, then this bugreport should be 
reassigned to that other tool.  Otherwise unfortunately it is on you, 
and this bugreport should be closed.


Kind regards,

 - Jonas

-- 
 * Jonas Smedegaard - idealist & Internet-arkitekt
 * Tlf.: +45 40843136  Website: http://dr.jones.dk/

 [x] quote me freely  [ ] ask before reusing  [ ] keep private

Reply via email to