Bug#634529: libconfig-model-perl: FTBFS: dpkg-deb: error: parsing file 'debian/libconfig-model-perl/DEBIAN/control' near line 7 package 'libconfig-model-perl':
Jakub Wilk
jwilk at debian.org
Tue Jul 19 16:08:53 UTC 2011
* gregor herrmann <gregoa at 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
More information about the pkg-perl-maintainers
mailing list