Hi!

On Mon, 2010-02-22 at 12:11:53 +0100, Raphaƫl Hertzog wrote:
> Package: dpkg
> Version: 1.15.6
> Severity: wishlist

> Given that Debian packages are not all built with the same helper in
> debian/rules, it's difficult to hook something in the build process of all
> packages. debuild offers hooks at various places before/after each
> debian/rules call but it might not be enough in some cases.
> 
> In particular, one might want to hook a program just before dpkg-deb
> --build does its work of creating the .deb file. It should be able to
> do some modifications (recording build information in the package
> for example) or it could only do some analysis/information gathering.

> Since we don't want to modify the source package at all, we should
> probably use an environment variable to indicate what program
> has to called. Since it might do modifications, dpkg-deb should be verbose
> and indicate what program it has called as part of the hook.

This interface does not feel right for dpkg-deb, which should be
considered the equivalent of a low-level archiver like zip or similar.

In addition such an interface cannot be expected to be used realiably
by maintainers for all builds of their packages on buildds and
similar or user systems, as it needs an additional setup step.

At the point the build needs the builder to setup the environment
variable, other more standard options can be used instead, like
placing a wrapper in /usr/local/bin/dpkg-deb, dpkg-divert'ing,
etc.

As such, I think this wishlist should be closed.

thanks,
guillem



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

Reply via email to