Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 849788

Summary: app-misc/lirc-0.10.1-r4: fatal error: Python.h: No such file or directory
Product: Gentoo Linux Reporter: G.K.MacGregor <buggentoo>
Component: Current packagesAssignee: Craig Andrews <candrews>
Status: RESOLVED FIXED    
Severity: normal CC: ionen, sam
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=850541
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log
environment

Description G.K.MacGregor 2022-06-05 10:35:32 UTC
lirc persistently fails to compile on two different machines with the same "fatal error: Python.h: no such file or directory" despite the fact that the file /usr/include/python3.10/Python.h is present.

Reproducible: Always

Steps to Reproduce:
1. emerge lirc

Actual Results:  
/bin/sed -i "s/@version@/0.10.1/" html/tira.html
xsltproc --html docpage.xsl \
    $(echo ./html/udp.html | /bin/sed 's|html/|plugindocs/|') > html/udp.html
/bin/sed -i "s/@version@/0.10.1/" html/udp.html
cp -a ../NEWS NEWS.txt
make[2]: Leaving directory '/var/tmp/portage/app-misc/lirc-0.10.1-r4/work/lirc-0.10.1/doc'
make[2]: Entering directory '/var/tmp/portage/app-misc/lirc-0.10.1-r4/work/lirc-0.10.1'
python-pkg/lirc/_client.c:1:10: fatal error: Python.h: No such file or directory
    1 | #include <Python.h>
      |          ^~~~~~~~~~
compilation terminated.
make[2]: *** [Makefile:721: python-pkg/lirc/python_pkg_lib__client_la-_client.lo] Error 1
make[2]: Leaving directory '/var/tmp/portage/app-misc/lirc-0.10.1-r4/work/lirc-0.10.1'
make[1]: *** [Makefile:1092: all-recursive] Error 1
make[1]: Leaving directory '/var/tmp/portage/app-misc/lirc-0.10.1-r4/work/lirc-0.10.1'
make: *** [Makefile:572: all] Error 2
 * ERROR: app-misc/lirc-0.10.1-r4::gentoo failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=app-misc/lirc-0.10.1-r4::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=app-misc/lirc-0.10.1-r4::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/app-misc/lirc-0.10.1-r4/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-misc/lirc-0.10.1-r4/temp/environment'.
 * Working directory: '/var/tmp/portage/app-misc/lirc-0.10.1-r4/work/lirc-0.10.1'
 * S: '/var/tmp/portage/app-misc/lirc-0.10.1-r4/work/lirc-0.10.1'

Expected Results:  
lirc should compile successfully.

# emerge --info
Portage 3.0.30 (python 3.10.4-final-0, default/linux/amd64/17.1/desktop/plasma, gcc-11.3.0, glibc-2.34-r13, 5.15.41-gentoo-dist x86_64)
=================================================================
System uname: Linux-5.15.41-gentoo-dist-x86_64-AMD_Phenom-tm-_II_X4_965_Processor-with-glibc2.34
KiB Mem:    12262228 total,   8964164 free
KiB Swap:    1048572 total,   1048572 free
Timestamp of repository gentoo: Sun, 05 Jun 2022 09:33:21 +0000
sh bash 5.1_p16
ld GNU ld (Gentoo 2.37_p1 p2) 2.37
app-misc/pax-utils:        1.3.3::gentoo
app-shells/bash:           5.1_p16::gentoo
dev-java/java-config:      2.3.1::gentoo
dev-lang/perl:             5.34.0-r9::gentoo
dev-lang/python:           3.9.12::gentoo, 3.10.4::gentoo
dev-lang/rust-bin:         1.59.0::gentoo
dev-util/cmake:            3.22.4::gentoo
dev-util/meson:            0.61.4-r2::gentoo
sys-apps/baselayout:       2.8::gentoo
sys-apps/openrc:           0.44.10::gentoo
sys-apps/sandbox:          2.29::gentoo
sys-devel/autoconf:        2.13-r1::gentoo, 2.71-r1::gentoo
sys-devel/automake:        1.16.5::gentoo
sys-devel/binutils:        2.37_p1-r2::gentoo
sys-devel/binutils-config: 5.4.1::gentoo
sys-devel/clang:           13.0.1::gentoo
sys-devel/gcc:             11.3.0::gentoo
sys-devel/gcc-config:      2.5-r1::gentoo
sys-devel/libtool:         2.4.6-r6::gentoo
sys-devel/lld:             13.0.1::gentoo
sys-devel/llvm:            13.0.1::gentoo
sys-devel/make:            4.3::gentoo
sys-kernel/linux-headers:  5.15-r3::gentoo (virtual/os-headers)
sys-libs/glibc:            2.34-r13::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync1.uk.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-max-age: 24
    sync-rsync-extra-opts: 
    sync-rsync-verify-metamanifest: no
    sync-rsync-verify-jobs: 1

Installed sets: @system
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=amdfam10 -O2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=amdfam10 -O2 -pipe -fomit-frame-pointer"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--keep-going --quiet-build=n"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://www.mirrorservice.org/sites/distfiles.gentoo.org/ http://mirror.bytemark.co.uk/gentoo/ http://mirrors.gethosted.online/gentoo"
LANG="en_GB.UTF-8"
LDFLAGS="-Wl,-O1,--as-needed,--hash-style=gnu"
LINGUAS="en en_GB"
MAKEOPTS="-j5 -l5"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
SHELL="/bin/bash"
USE="X a52 aac aacs acpi activities alsa amd64 bluray bzip2 cdda cdparanoia cdr chm cjk cli crypt css cups dbus declarative dga dri dts dv dvd dvdr elogind encode exif extras faac faad fdk ffmpeg flac fontconfig g3dvl gif gimp gtk gui heif iconv icu ieee1394 ipv6 joystick jpeg kde kwallet lame lcms libass libglvnd libnotify libtirpc lirc live lzo mad matroska mng mp3 mp4 mpeg msn multilib ncurses nepomuk network nls nptl ogg opengl openmp opus pam pango pcre pdf plasma png policykit ppds pvr qml qt5 quicktime readline rss rtc rtmp sdl seccomp semantic-desktop sndfile speex spell split-usr ssl startup-notification svg theora threads truetype udev udisks unicode upower usb v4l v4l2 vaapi vdpau vlc vnc vorbis widgets wxwidgets x264 x265 xattr xcb xcomposite xinerama xml xv xvid yahoo zlib zvbi" ABI_X86="64" ADA_TARGET="gnat_2020" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="3dnow 3dnowext mmx mmxext popcnt sse sse2 sse3 sse4a" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev" KERNEL="linux" L10N="en en-GB" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-4 php8-0" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_10" PYTHON_TARGETS="python3_10" RUBY_TARGETS="ruby27" USERLAND="GNU" VIDEO_CARDS="amdgpu radeon radeonsi v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LEX, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-06-05 10:37:34 UTC
Please attach the full build.log.
Comment 2 G.K.MacGregor 2022-06-05 10:38:15 UTC
Created attachment 782885 [details]
build.log
Comment 3 G.K.MacGregor 2022-06-05 10:38:53 UTC
Created attachment 782888 [details]
environment
Comment 4 Larry the Git Cow gentoo-dev 2022-06-05 22:06:34 UTC
The bug has been referenced in the following commit(s):

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

commit ab4399b6f0f8414aa93ee706331a40baa120f9c1
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-06-05 22:05:17 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-06-05 22:06:27 +0000

    app-misc/lirc: add 0.10.1_p7 (use Debian patches)
    
    Upstream is apparently mostly unmaintained and someone might
    be looking to fork it from the kernel side, but let's
    pick up the Debian patches for now.
    
    May or may not fix the Python build issue which I can't
    reproduce, but it brings us into a better state.
    
    Bug: https://bugs.gentoo.org/847886
    Bug: https://bugs.gentoo.org/849788
    Signed-off-by: Sam James <sam@gentoo.org>

 app-misc/lirc/Manifest              |   1 +
 app-misc/lirc/lirc-0.10.1_p7.ebuild | 180 ++++++++++++++++++++++++++++++++++++
 2 files changed, 181 insertions(+)
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-06-05 22:20:00 UTC
Actually, I can reproduce the failure now with the linux-headers issue fixed (bug 847886), and _p7 seems to work. Could you try it?
Comment 6 Ionen Wolkens gentoo-dev 2022-06-06 03:26:49 UTC
This should've been fixed because of eautoreconf fixing python detection macros for 3.10 (3.10 vs 3.1).
Comment 7 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-06-06 04:58:26 UTC
(In reply to Ionen Wolkens from comment #6)
> This should've been fixed because of eautoreconf fixing python detection
> macros for 3.10 (3.10 vs 3.1).

oh, right!
Comment 8 Larry the Git Cow gentoo-dev 2022-06-06 04:59:20 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0fc5df3662acf72ed3a0e920496d064a1ada31da

commit 0fc5df3662acf72ed3a0e920496d064a1ada31da
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-06-06 04:59:11 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-06-06 04:59:11 +0000

    app-misc/lirc: add note re autoreconf
    
    Closes: https://bugs.gentoo.org/849788
    Signed-off-by: Sam James <sam@gentoo.org>

 app-misc/lirc/lirc-0.10.1_p7.ebuild | 2 ++
 1 file changed, 2 insertions(+)
Comment 9 G.K.MacGregor 2022-06-06 20:51:31 UTC
Confirmed fixed on both my machines.
Comment 10 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-06-07 21:03:47 UTC
(In reply to G.K.MacGregor from comment #9)
> Confirmed fixed on both my machines.

Thanks!