retitle 639859 apt-build uses outdated apt configuration settings
tag 639859 - patch
quit

On Wed, 31 Aug 2011 02:40:25 +0200
Laurent Dard <f.coupe...@online.fr> wrote:

> Package: apt-build
> Version: 0.12.38
> Severity: grave
> Tags: sid wheezy patch

Dropping the patch tag because the patch is incomplete (although likely
to be along most of the right lines).

> # apt-build install hello
> it fails with:
> >W: Failed to fetch 
> >file:/var/cache/apt-build/repository/dists/apt-build/Release  Unable to find 
> >expected entry 'main/binary-amd64/Packages' in Release file (Wrong 
> >sources.list entry or malformed file)

apt-build needs to update the configuration string which it passes to
apt, along the same lines as recent updates in multistrap, xapt and
other tools which use apt in custom locations.

> >E: The value 'apt-build' is invalid for APT::Default-Release as such a 
> >release is not available in the sources

This is another instance of #637434 and may well need a similar patch
which can be seen in Emdebian SVN:
http://www.emdebian.org/trac/changeset/8062

AFAICT if the test system does not use a Default-Release, this bug
won't occur. apt-build *might* have to assert unstable as the
Default-Release or try to replicate the system setting somehow. I don't
use apt-build.

> I erased "/var/cache/apt-build" and applied the following patch to get rid

apt-build should do this anyway. xapt has a similar --clean option
explicitly to do this kind of thing. If it doesn't, this would warrant
another stage to the patch or a new bug report (severity important).

> Unfortunately, it doesn't solve the problem.
> "apt-get update" keeps saying:
> E: The value 'apt-build' is invalid for APT::Default-Release as such a 
> release is not available in the sources
> 
> Maybe an apt bug rather than an apt-build bug ?

No, it will still be an apt-build bug. The question is what do you
expect apt-build to do if Default-Release is set on your own system?
Build for unstable (Debian expectation) or build for whatever is the
Default-Release on your system?

Once that is decided, the final tweak to the patch should be fairly
trivial.

apt-build is an orphaned package (and has been orphaned for a v.long
time) and has no maintainer. If you're doing this much work on
apt-build, maybe you should read the orphaning bug (#365427) and see if
you can work with those who have also expressed an interest but not
actually made the upload as maintainer. Maybe even form a team.

Otherwise, once the Wheezy freeze starts, apt-build could well be
removed.

-- 


Neil Williams
=============
http://www.linux.codehelp.co.uk/

Attachment: pgp84Xn49riqF.pgp
Description: PGP signature

Reply via email to