* gregor herrmann <gre...@debian.org>, 2011-07-19, 11:23:
${corelist:Depends} is computed in debian/rules:
 CORELIST = $(shell apt-cache policy libmodule-corelist-perl | awk
'/Candidate/ {sub(/-[^-]+$$/,"",$$2); print $$2;}')

Yes, of course, that's the point where it's failing ...
        
Looks like CORELIST variable can be empty in the buildd.

... because of the "fails to open /var/cache/apt/pkgcache.bin". Now the interesting question is _why_ this happens.

We need to re-think how this dependency is computed.

Hm, yeah, as Lucas has proven that might be too fragile ...

You really shouldn't use apt-cache. First of all, you don't build-depend on apt explicitly (only indirectly, via libapt-pkg-perl). Secondly, apt cache is not guaranteed to contain anything interesting: a user is free to remove all entries from his sources.lists.

Any ideas on how to get the version without using apt-cache?

Build-depend on libmodule-corelist-perl and then use "dpkg-query -W".

--
Jakub Wilk



--
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to