Re: RFS: python-mimeparse
On Mon, Oct 31, 2011 at 9:23 PM, Jakub Wilk <jwilk@debian.org> wrote:
> Now your package fails to build in a minimal chroot:
> | debian/rules override_dh_auto_test
> | make[1]: Entering directory
> `/build/python-mimeparse-NNa7Qr/python-mimeparse-0.1.3'
> | python2.6 mimeparse_test.py
> | make[1]: python2.6: Command not found
> | make[1]: *** [test-python2.6] Error 127
You have PYVERS=$(shell pyversions -vr 2> /dev/null) in your rules
file. Which will return:
$ pyversions -vr
pyversions: missing X(S)-Python-Version in control file, fall back to
debian/pyversions
pyversions: missing debian/pyversions file, fall back to supported versions
2.6 2.7
Yet, you only depend on python. You need python-all.
>
> I wanted to skip test by setting DEB_BUILD_OPTIONS=nocheck but it didn't
> help...
You have an override_dh_auto_test target in your rules file as well.
Unfortunately, this will cause
DEB_BUILD_OPTIONS=nocheck to be ignored. You need something like:
ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
override_dh_auto_test: ${PYVERS:%=test-python%}
endif
-- Andrew Starr-Bochicchio
Ubuntu Developer <https://launchpad.net/~andrewsomething>
Debian Maintainer
<http://qa.debian.org/developer.php?login=a.starr.b%40gmail.com>
PGP/GPG Key ID: D53FDCB1
Reply to: