Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 619810 - sys-libs/libieee1284-0.2.11-r4 : /.../ieee1284module.c:20:20: fatal error: Python.h: No such file or directory
Summary: sys-libs/libieee1284-0.2.11-r4 : /.../ieee1284module.c:20:20: fatal error: Py...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
: 624580 (view as bug list)
Depends on:
Blocks:
 
Reported: 2017-05-27 07:37 UTC by Toralf Förster
Modified: 2017-10-29 17:08 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,5.70 KB, text/plain)
2017-05-27 07:37 UTC, Toralf Förster
Details
config.log.tbz2 (config.log.tbz2,7.79 KB, application/x-bzip)
2017-05-27 07:37 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,412.38 KB, text/plain)
2017-05-27 07:37 UTC, Toralf Förster
Details
environment (environment,96.46 KB, text/plain)
2017-05-27 07:37 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,24.75 KB, application/x-bzip)
2017-05-27 07:37 UTC, Toralf Förster
Details
sys-libs:libieee1284-0.2.11-r4:20170527-043300.log (sys-libs:libieee1284-0.2.11-r4:20170527-043300.log,26.16 KB, text/plain)
2017-05-27 07:37 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,24.93 KB, application/x-bzip)
2017-05-27 07:37 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2017-05-27 07:37:20 UTC
/bin/sh ./libtool --tag=CC --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I/var/tmp/portage/sys-libs/libieee1284-0.2.11-r4/work/libieee1284-0.2.11 -I./include -I/var/tmp/portage/sys-libs/libieee1284-0.2.11-r4/work/libieee1284-0.2.11/include   -I/usr/include/python -fpic -O2 -pipe -march=native -Wall -c -o src/src_ieee1284module_la-ieee1284module.lo `test -f 'src/ieee1284module.c' || echo '/var/tmp/portage/sys-libs/libieee1284-0.2.11-r4/work/libieee1284-0.2.11/'`src/ieee1284module.c
 x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I/var/tmp/portage/sys-libs/libieee1284-0.2.11-r4/work/libieee1284-0.2.11 -I./include -I/var/tmp/portage/sys-libs/libieee1284-0.2.11-r4/work/libieee1284-0.2.11/include -I/usr/include/python -fpic -O2 -pipe -march=native -Wall -c /var/tmp/portage/sys-libs/libieee1284-0.2.11-r4/work/libieee1284-0.2.11/src/ieee1284module.c  -fPIC -DPIC -o src/.libs/src_ieee1284module_la-ieee1284module.o
/var/tmp/portage/sys-libs/libieee1284-0.2.11-r4/work/libieee1284-0.2.11/src/ieee1284module.c:20:20: fatal error: Python.h: No such file or directory
compilation terminated.
make: *** [Makefile:630: src/src_ieee1284module_la-ieee1284module.lo] Error 1
 * ERROR: sys-libs/libieee1284-0.2.11-r4::gentoo failed (compile phase):

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: desktop-gcc5_20170517-212950

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-5.4.0 *

Available Python interpreters, in order of preference:
  [1]   python3.4
  [2]   python3.6 (fallback)
  [3]   python2.7 (fallback)
  [4]   pypy3 (fallback)
Available Ruby profiles:
  [1]   ruby21 (with Rubygems)
  [2]   ruby22 (with Rubygems) *
java-config:
The following VMs are available for generation-2:
Available Java Virtual Machines:
  (none found)
Comment 1 Toralf Förster gentoo-dev 2017-05-27 07:37:23 UTC
Created attachment 474490 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2017-05-27 07:37:26 UTC
Created attachment 474492 [details]
config.log.tbz2
Comment 3 Toralf Förster gentoo-dev 2017-05-27 07:37:30 UTC
Created attachment 474494 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2017-05-27 07:37:33 UTC
Created attachment 474496 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2017-05-27 07:37:36 UTC
Created attachment 474498 [details]
etc.portage.tbz2
Comment 6 Toralf Förster gentoo-dev 2017-05-27 07:37:40 UTC
Created attachment 474500 [details]
sys-libs:libieee1284-0.2.11-r4:20170527-043300.log
Comment 7 Toralf Förster gentoo-dev 2017-05-27 07:37:44 UTC
Created attachment 474502 [details]
temp.tbz2
Comment 8 Martin Väth 2017-06-24 17:54:56 UTC
A patch is simple:

append-cflags `python2-config --includes`

fixes the problem. Probably the problem should better be fixed upstream, though.
Comment 9 David Carlos Manuelda 2017-07-14 01:38:52 UTC
I think the relevant thing here is that it is failing to detect python version, that can be seen in configure stage:

checking for python version...   File "<string>", line 1
    import sys; print sys.version[:3]
                        ^
SyntaxError: invalid syntax

checking for python platform...   File "<string>", line 1
    import sys; print sys.platform
                        ^
SyntaxError: invalid syntax

Because later, in CFLAGS, the includes are being appended correctly, like:
-I/usr/include/python

That is missing the 2.7, because the variable of the python version is empty,
Comment 10 Pacho Ramos gentoo-dev 2017-09-30 09:25:20 UTC
*** Bug 624580 has been marked as a duplicate of this bug. ***
Comment 11 Pacho Ramos gentoo-dev 2017-09-30 09:25:47 UTC
[master 8c950f9ec68] sys-libs/libieee1284: python needs to be handled for both arches in multilib (#619810)
 1 file changed, 48 insertions(+)
 create mode 100644 sys-libs/libieee1284/libieee1284-0.2.11-r5.ebuild
Comment 12 Larry the Git Cow gentoo-dev 2017-10-29 17:08:50 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=728e570925f881201953985c72fbda4351d871c0

commit 728e570925f881201953985c72fbda4351d871c0
Author:     Thomas Deutschmann <whissi@gentoo.org>
AuthorDate: 2017-10-29 17:08:07 +0000
Commit:     Thomas Deutschmann <whissi@gentoo.org>
CommitDate: 2017-10-29 17:08:40 +0000

    sys-libs/libieee1284: Rev bump to fix multilib usage
    
    The fix from bug 619810 (commit 8c950f9ec6) was wrong and caused the
    breakage seen in bug 634218.
    
    Thanks to Mike Gilbert for finding the root cause for bug 619810.
    
    Fixes: https://bugs.gentoo.org/634218
    Bug: https://bugs.gentoo.org/619810
    Package-Manager: Portage-2.3.13, Repoman-2.3.4
    RepoMan-Options: --force

 sys-libs/libieee1284/libieee1284-0.2.11-r6.ebuild | 48 +++++++++++++++++++++++
 1 file changed, 48 insertions(+)}