[apt-build-devel] Bug#694557: APT paths aren't built properly

apt-build development list apt-build-devel at lists.alioth.debian.org
Tue Nov 27 17:38:35 UTC 2012


Package: apt-build
Priority: serious
thanks

Hi,

apt-config is used to join APT pathes. But it is not used properly. Each
"item" is joined together:
 eval $(apt-config shell etcdir Dir::Etc)
 eval $(apt-config shell sourceslist Dir::Etc::sourcelist)
 eval $(apt-config shell sourcesparts Dir::Etc::sourceparts)
...
 ... /"$etcdir""$sourceslist" /"$etcdir""$sourcesparts"/*.list ...

This will work in most cases but if the config value is not relative (or
if rootdir DIR was changed manually), this will produce unexpected paths.

Example: If Dir::Etc::sourcelist is set to "/foobar.list" with current
join method this will result in "/etc//foobar.list" which is of course
*not* "/foobar.list" -> APT does not find source entry of apt-build ->
instalation of packages built with apt-build isn't possible.

Solution: Use apt-config properly (with /f or /d suffix to build paths).


Regards
Dominique
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0xB2E4F4F3.asc
Type: application/pgp-keys
Size: 4295 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/apt-build-devel/attachments/20121127/46a7a0e3/attachment.key>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/apt-build-devel/attachments/20121127/46a7a0e3/attachment.pgp>


More information about the Apt-build-devel mailing list