Your message dated Mon, 2 Feb 2009 10:42:47 +1100
with message-id <[email protected]>
and subject line Re: Bug#513785: dh: dh binary --before dh_strip fails
has caused the Debian Bug report #513785,
regarding dh: dh binary --before dh_strip fails
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
513785: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=513785
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: debhelper
Version: 7.0.17
Severity: normal

In bug 510772, Evgeni Golov wrote:
> When using a debhelper 7 styled debian/rules, "dh binary-arch" calls
> "dh_strip -a". So when one wants to have a debug package, one needs to
> make the binary-arch target to look like this:
>  dh binary-arch --before dh_strip
>  dh_strip -a --dbg-package=foo-dbg
>  dh binary-arch --remaining

I have a worse problem: I started with an empty debian/rules:

    %:
        dh $@

And found that dh_strip was being called by "dh binary", not "dh
binary-arch".  So I dutifully extended my makefile to include "dh
build --before dh_strip".  And dh complains:

    dh build --remaining --before dh_strip
    dh: command specification "dh_strip" does not match any command in the 
sequence

Likewise for --before strip.

Here's my full debian/rules:

    #!/usr/bin/make -f
    %:
        dh $@
    clean:
        dh clean
        ./waf --nocache distclean
    build:
        dh build --before configure
        ./waf --nocache configure --prefix=/usr
        dh build --after configure --until build
        ./waf --nocache build
        dh build --remaining
    binary:
        dh binary --until dh_auto_install
        ./waf --nocache install --destdir=debian/midori
        dh build --remaining --before dh_strip
        dh_strip --dbg-package=midori-dbg
        dh binary --remaining



--- End Message ---
--- Begin Message ---
On Sun, Feb 01, 2009 at 11:50:02AM -0500, Joey Hess wrote:
>     binary:
>         dh binary --until dh_auto_install
>         ./waf --nocache install --destdir=debian/midori
>         dh build --remaining --before dh_strip
>         dh_strip --dbg-package=midori-dbg
>         dh binary --remaining
> 
> It makes no sense to run dh build after dh binary; dh binary will run
> all actions of the build target if they have not yet run.

Argh, clearly I can't read.  If I spell "binary" as "binary" in the
above, it works properly.  I *knew* it was a bad idea to avoid $@ "for
clarity".  This is what I have now:

    binary:
        dh $@ --until dh_auto_install
        ./waf --nocache install --destdir=debian/midori
        dh $@ --remaining --before dh_strip
        dh_strip --dbg-package=midori-dbg
        dh $@ --remaining

Sorry to bother you with this noise.


--- End Message ---

Reply via email to