Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.maint.python > #8589

Re: Build fails: Architecture: all, no ‘python3-dev’, but ‘setup.py’ expects it

From Steve Langasek <vorlon@debian.org>
Newsgroups linux.debian.maint.python
Subject Re: Build fails: Architecture: all, no ‘python3-dev’, but ‘setup.py’ expects it
Date 2016-06-12 12:00 +0200
Message-ID <rJalr-715-5@gated-at.bofh.it> (permalink)
References <rIHt7-63L-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

On Sat, Jun 11, 2016 at 01:03:59PM +1000, Ben Finney wrote:
> Howdy all,

> I am experiencing a build failure on a Python 3 package [0].

> The package has “Architecture: all”, and should not need any
> architecture-specific build tools. The package builds no Python
> extensions.

> I assume (and Lintian agrees) that such a package should not have
> “Build-Depends: python3-dev”.

> Yet when I try to build the package using a clean up-to-date Sid chroot,
> it fails:

> =====
> dh binary --with bash-completion,python3 --buildsystem=pybuild
>    dh_testroot -O--buildsystem=pybuild
>    dh_prep -O--buildsystem=pybuild
>    dh_auto_install -O--buildsystem=pybuild
> I: pybuild base:184: /usr/bin/python3 setup.py install --root /build/xkcdpass-1.6.3/debian/xkcdpass
> running install
> error: invalid Python installation: unable to open /usr/lib/python3.5/config-3.5m-x86_64-linux-gnu/Makefile (No such file or directory)
> E: pybuild pybuild:274: install: plugin distutils failed with: exit code=1: /usr/bin/python3 setup.py install --root /build/xkcdpass-1.6.3/debian/xkcdpass
> dh_auto_install: pybuild --install -i python{version} -p 3.5 --dest-dir /build/xkcdpass-1.6.3/debian/xkcdpass returned exit code 13
> debian/rules:35: recipe for target 'binary' failed
> make: *** [binary] Error 25
> dpkg-buildpackage: error: fakeroot debian/rules binary gave error exit status 2
> =====

> Why is that architecture-specific build tool being specified for an
> “Architecture: all” build system?

> When I amend the package and specify “Build-Depends: python3-dev”, the
> build succeeds but Lintian (correctly) reports
> “build-depends-on-python-dev-with-no-arch-any”.

> What is broken here? How can I find out?

I believe this is a regression in python3.5 3.5.1-15.  Similar build
failures were seen with this version in Ubuntu.

-- 
Steve Langasek                   Give me a lever long enough and a Free OS
Debian Developer                   to set it on, and I can move the world.
Ubuntu Developer                                    http://www.debian.org/
slangasek@ubuntu.com                                     vorlon@debian.org

Back to linux.debian.maint.python | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

Build fails: Architecture: all, no ‘python3-dev’, but ‘setup.py’ expects it Ben Finney <ben+debian@benfinney.id.au> - 2016-06-11 05:10 +0200
  Re: Build fails: Architecture: all, no ‘python3-dev’, but ‘setup.py’ expects it Steve Langasek <vorlon@debian.org> - 2016-06-12 12:00 +0200

csiph-web