[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: dh_python2: error: no such option: --with



Hi,

On Wed, Sep 7, 2011 at 12:16 PM, David Paleino <dapal@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


Reply to: