dh_python2: error: no such option: --with
Dear mentors, I am trying to use the new dh for the gdcm package, as seen at: http://anonscm.debian.org/viewvc/debian-med/trunk/packages/gdcm/trunk/debian/rules?view=markup However this package fails to build with: Unknown option: with dh_icons: warning: ignored unknown options in DH_OPTIONS dh_perl -O--parallel Unknown option: with dh_perl: warning: ignored unknown options in DH_OPTIONS dh_python2 -O--parallel Usage: dh_python2 -p PACKAGE [-V [X.Y][-][A.B]] DIR [-X REGEXPR] dh_python2: error: no such option: --with make: *** [binary] Error 2 dpkg-buildpackage: error: fakeroot debian/rules binary gave error exit status 2 Has anyone seen this error before ? What do I need to do ? Thanks much, -- Mathieu -- To UNSUBSCRIBE, email to debian-mentors-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/CA+7wUswb2cm7ZBRep=esxj4evioc3ju4tfg+dd7w9q9+mn-...@mail.gmail.com
Re: dh_python2: error: no such option: --with
On Wed, 7 Sep 2011 11:23:27 +0200, Mathieu Malaterre wrote: Dear mentors, I am trying to use the new dh for the gdcm package, as seen at: http://anonscm.debian.org/viewvc/debian-med/trunk/packages/gdcm/trunk/debian/rules?view=markup [..] dh $@ --parallel --with=cli --with=python2 --with options go right after the target -- and they can be grouped together. So either: dh $@ --with cli --with python2 --parallel or: dh $@ --with cli,python2 --parallel -- . ''`. Debian developer | http://wiki.debian.org/DavidPaleino : :' : Linuxer #334216 --|-- http://www.hanskalabs.net/ `. `'` GPG: 1392B174 | http://deb.li/dapal `- 2BAB C625 4E66 E7B8 450A C3E1 E6AA 9017 1392 B174 signature.asc Description: PGP signature
Re: dh_python2: error: no such option: --with
Le Wed, Sep 07, 2011 at 11:23:27AM +0200, Mathieu Malaterre a écrit : Dear mentors, I am trying to use the new dh for the gdcm package, as seen at: http://anonscm.debian.org/viewvc/debian-med/trunk/packages/gdcm/trunk/debian/rules?view=markup Hi Mathieu, shouldn't it be --with cli,python2 ? Cheers, -- Charles Plessy Debian Med packaging team, http://www.debian.org/devel/debian-med Tsurumi, Kanagawa, Japan -- To UNSUBSCRIBE, email to debian-mentors-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20110907093817.gc26...@merveille.plessy.net
Re: dh_python2: error: no such option: --with
On Wed, Sep 7, 2011 at 11:37 AM, David Paleino da...@debian.org wrote: --with options go right after the target -- and they can be grouped together. [...] dh $@ --with cli,python2 --parallel Exact same error, using: %: dh $@ --with cli,python2 --parallel Unknown option: with dh_icons: warning: ignored unknown options in DH_OPTIONS dh_perl -O--parallel Unknown option: with dh_perl: warning: ignored unknown options in DH_OPTIONS dh_python2 -O--parallel Usage: dh_python2 -p PACKAGE [-V [X.Y][-][A.B]] DIR [-X REGEXPR] dh_python2: error: no such option: --with make: *** [binary] Error 2 dpkg-buildpackage: error: fakeroot debian/rules binary gave error exit status 2 Let's move on to the next suggestion -- Mathieu -- To UNSUBSCRIBE, email to debian-mentors-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/CA+7wUszu2OL2HN_WqmcvmprGyGfDU_P--Afo9ZpAAHBCGt=a...@mail.gmail.com
Re: dh_python2: error: no such option: --with
On Wed, 7 Sep 2011 12:04:59 +0200, Mathieu Malaterre wrote: %: dh $@ --with cli,python2 --parallel Unknown option: with dh_icons: warning: ignored unknown options in DH_OPTIONS dh_perl -O--parallel Unknown option: with dh_perl: warning: ignored unknown options in DH_OPTIONS dh_python2 -O--parallel Usage: dh_python2 -p PACKAGE [-V [X.Y][-][A.B]] DIR [-X REGEXPR] dh_python2: error: no such option: --with make: *** [binary] Error 2 dpkg-buildpackage: error: fakeroot debian/rules binary gave error exit status 2 Then it's (probably) a bug in dh_python2 in how it handles unknown options. This is a drawback of dh7, IIRC: the same options are passed to all dh_* helpers, and they should cope with them. See how dh_icons and dh_perl handle the unknown (for them) option --parallel. David -- . ''`. Debian developer | http://wiki.debian.org/DavidPaleino : :' : Linuxer #334216 --|-- http://www.hanskalabs.net/ `. `'` GPG: 1392B174 | http://deb.li/dapal `- 2BAB C625 4E66 E7B8 450A C3E1 E6AA 9017 1392 B174 signature.asc Description: PGP signature
Re: dh_python2: error: no such option: --with
Hi, On Wed, Sep 7, 2011 at 12:16 PM, David Paleino da...@debian.org wrote: On Wed, 7 Sep 2011 12:04:59 +0200, Mathieu Malaterre wrote: %: dh $@ --with cli,python2 --parallel Unknown option: with dh_icons: warning: ignored unknown options in DH_OPTIONS dh_perl -O--parallel Unknown option: with dh_perl: warning: ignored unknown options in DH_OPTIONS dh_python2 -O--parallel Usage: dh_python2 -p PACKAGE [-V [X.Y][-][A.B]] DIR [-X REGEXPR] dh_python2: error: no such option: --with make: *** [binary] Error 2 dpkg-buildpackage: error: fakeroot debian/rules binary gave error exit status 2 Then it's (probably) a bug in dh_python2 in how it handles unknown options. This is a drawback of dh7, IIRC: the same options are passed to all dh_* helpers, and Looks like this has been reported: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=638679 I did not understand at first the relation, now this is clear. they should cope with them. See how dh_icons and dh_perl handle the unknown (for them) option --parallel. I do not understand however your above suggestion. Do you want me to provide a patch for dh-python2 ? Thanks -- Mathieu -- To UNSUBSCRIBE, email to debian-mentors-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/ca+7wusw50+aauvq5dwatr4g0aef9sd_12hybg4aeehv+tpx...@mail.gmail.com
Re: dh_python2: error: no such option: --with
Hi, you can remove this to workaround the dh_python2 issue: # require to get dh_clideps include /usr/share/cli-common/cli.make the values set in this include are default now so it is not needed anymore when you pass --with cli to dh. Best Regards, Julian Taylor signature.asc Description: OpenPGP digital signature
Re: dh_python2: error: no such option: --with
On Wed, Sep 7, 2011 at 12:32 PM, Julian Taylor jtaylor.deb...@googlemail.com wrote: Hi, you can remove this to workaround the dh_python2 issue: # require to get dh_clideps include /usr/share/cli-common/cli.make the values set in this include are default now so it is not needed anymore when you pass --with cli to dh. *much* better. Thanks for catching this ! -- Mathieu -- To UNSUBSCRIBE, email to debian-mentors-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/ca+7wusxyjq-7fznwe6t7mhhze77gc2-lktbo3uhcwlh3xpd...@mail.gmail.com