Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 809260 - sci-geosciences/gpsd-3.23 fails to compile with USE=-python
Summary: sci-geosciences/gpsd-3.23 fails to compile with USE=-python
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Sci-geo Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 806770
  Show dependency tree
 
Reported: 2021-08-20 18:29 UTC by Ed Wildgoose
Modified: 2021-08-23 10:25 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ed Wildgoose 2021-08-20 18:29:41 UTC
Current gpsd fails to compile correctly with USE=-python - See bug #806770

Fix appears to be to move the python_setup() to outside of the USE test, ie:

diff --git a/sci-geosciences/gpsd/gpsd-3.23-r2.ebuild b/sci-geosciences/gpsd/gpsd-3.23-r2.ebuild
index 96a5705d5db..3fdd5fef94c 100644
--- a/sci-geosciences/gpsd/gpsd-3.23-r2.ebuild
+++ b/sci-geosciences/gpsd/gpsd-3.23-r2.ebuild
@@ -95,12 +95,11 @@ src_prepare() {

        default

+       python_setup
        use python && distutils-r1_src_prepare
 }

 python_prepare_all() {
-       python_setup
-
        # Extract python info out of SConscript so we can use saner distribute
        pyarray() { sed -n "/^ *$1 *= *\\[/,/\\]/p" SConscript ; }
        local pyprogs=$(pyarray python_progs)


Full logs

# cat /var/tmp/portage/sci-geosciences/gpsd-3.23-r2/temp/build.log
 * Package:    sci-geosciences/gpsd-3.23-r2
 * Repository: gentoo
 * Maintainer: sci-geosciences@gentoo.org
 * USE:        abi_x86_64 amd64 cxx elibc_musl gpsd_protocols_aivdm gpsd_protocols_ashtech gpsd_protocols_earthmate gpsd_protocols_evermore gpsd_protocols_fury gpsd_protocols_fv18 gpsd_protocols_garmin gpsd_protocols_garmintxt gpsd_protocols_geostar gpsd_protocols_gpsclock gpsd_protocols_itrax gpsd_protocols_mtk3301 gpsd_protocols_navcom gpsd_protocols_nmea0183 gpsd_protocols_nmea2000 gpsd_protocols_ntrip gpsd_protocols_oceanserver gpsd_protocols_oncore gpsd_protocols_passthrough gpsd_protocols_rtcm104v2 gpsd_protocols_rtcm104v3 gpsd_protocols_sirf gpsd_protocols_skytraq gpsd_protocols_superstar2 gpsd_protocols_tnt gpsd_protocols_tripmate gpsd_protocols_tsip ipv6 kernel_linux ntp python_targets_python3_9 shm sockets userland_GNU
 * FEATURES:   network-sandbox preserve-libs sandbox userpriv usersandbox
>>> Unpacking source...
>>> Unpacking gpsd-3.23.tar.gz to /var/tmp/portage/sci-geosciences/gpsd-3.23-r2/work
>>> Source unpacked in /var/tmp/portage/sci-geosciences/gpsd-3.23-r2/work
>>> Preparing source in /var/tmp/portage/sci-geosciences/gpsd-3.23-r2/work/gpsd-3.23 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/sci-geosciences/gpsd-3.23-r2/work/gpsd-3.23 ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/sci-geosciences/gpsd-3.23-r2/work/gpsd-3.23 ...
 * EPYTHON is unset while calling escons. This most likely means that
 * the ebuild did not call the appropriate eclass function before calling scons.
 * Please ensure that python_setup is called before escons, or that escons
 * is used within python_foreach_impl as appropriate.
 * ERROR: sci-geosciences/gpsd-3.23-r2::gentoo failed (compile phase):
 *   EPYTHON unset in escons
 *
 * Call stack:
 *     ebuild.sh, line  127:  Called src_compile
 *   environment, line 3114:  Called escons 'prefix=/usr' 'libdir=$prefix/lib' 'udevdir=/lib/udev' 'rundir=/run' 'chrpath=False' 'gpsd_user=gpsd' 'gpsd_group=dialout' 'nostrip=True' 'systemd=no' 'unitdir=$prefix/lib' 'shared=True' 'bluez=no' 'libgpsmm=yes' 'clientdebug=no' 'dbus_export=no' 'ipv6=yes' 'timing=no' 'ncurses=no' 'ntpshm=yes' 'pps=yes' 'python=no' 'qt=no' 'shm_export=yes' 'socket_export=yes' 'usb=no' 'manbuild=False' 'aivdm=yes' 'ashtech=yes' 'earthmate=yes' 'evermore=yes' 'fury=yes' 'fv18=yes' 'garmin=yes' 'garmintxt=yes' 'geostar=yes' 'gpsclock=yes' 'greis=no' 'isync=no' 'itrax=yes' 'mtk3301=yes' 'navcom=yes' 'nmea0183=yes' 'nmea2000=yes' 'ntrip=yes' 'oceanserver=yes' 'oncore=yes' 'passthrough=yes' 'rtcm104v2=yes' 'rtcm104v3=yes' 'sirf=yes' 'skytraq=yes' 'superstar2=yes' 'tnt=yes' 'tripmate=yes' 'tsip=yes' 'ublox=no'
 *   environment, line 1759:  Called die
 * The specific snippet of code:
 *               die "EPYTHON unset in escons";
 *
 * If you need support, post the output of `emerge --info '=sci-geosciences/gpsd-3.23-r2::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sci-geosciences/gpsd-3.23-r2::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/sci-geosciences/gpsd-3.23-r2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sci-geosciences/gpsd-3.23-r2/temp/environment'.
 * Working directory: '/var/tmp/portage/sci-geosciences/gpsd-3.23-r2/work/gpsd-3.23'
 * S: '/var/tmp/portage/sci-geosciences/gpsd-3.23-r2/work/gpsd-3.23'



# emerge --info
Portage 3.0.20 (python 3.9.6-final-0, !../../../../../profiles/tpb/apu/host, gcc-10.3.0, musl-1.2.2-r3, 5.10.5-sm x86_64)
=================================================================
System uname: Linux-5.10.5-sm-x86_64-AMD_Ryzen_9_3900X_12-Core_Processor-with-libc
KiB Mem:    65833960 total,  19339836 free
KiB Swap:          0 total,         0 free
Head commit of repository gentoo: b16868490c2e32877cb379d3ddb4245eb8cbfe12

Head commit of repository musl: 4d48a2d4742d2b6f61418374c27390ae83196a96

Head commit of repository tpb-overlay: 31c1ba77352b6cb7a04a8701073ae2f42a3b94bd

sh bash 5.1_p8
ld GNU ld (Gentoo 2.35.2 p1) 2.35.2
ccache version 4.3 [disabled]
app-shells/bash:          5.1_p8::gentoo
dev-lang/perl:            5.34.0::gentoo
dev-lang/python:          3.9.6_p1::gentoo
dev-util/ccache:          4.3-r2::gentoo
dev-util/cmake:           3.20.5::gentoo
sys-apps/baselayout:      2.7::gentoo
sys-apps/openrc:          0.42.1-r1::gentoo
sys-apps/sandbox:         2.24::gentoo
sys-devel/autoconf:       2.69-r5::gentoo
sys-devel/automake:       1.16.3-r1::gentoo
sys-devel/binutils:       2.35.2::gentoo, 2.36.1-r2::gentoo
sys-devel/gcc:            9.3.0-r2::musl, 10.3.0-r2::musl
sys-devel/gcc-config:     2.4::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.10-r1::musl (virtual/os-headers)
sys-libs/musl:            1.2.2-r3::gentoo
Repositories:

gentoo
    location: /var/embedded/portage/repos/gentoo
    sync-type: git
    sync-uri: https://github.com/gentoo/gentoo.git
    priority: 10

musl
    location: /var/embedded/portage/repos/musl
    sync-type: git
    sync-uri: https://anongit.gentoo.org/git/proj/musl.git
    masters: gentoo
    priority: 60

tpb-overlay
    location: /var/embedded/portage/repos/tpb
    sync-type: git
    sync-uri: https://git.nippynetworks.com/tpb/portage-tpb.git
    masters: gentoo
    priority: 100

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-gentoo-linux-musl"
CFLAGS="-O2 -march=ivybridge -pipe"
CHOST="x86_64-gentoo-linux-musl"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe"
DISTDIR="/var/embedded/portage/distfiles"
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 config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync network-sandbox news nodoc noinfo noman parallel-fetch parallel-install 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://distfiles.gentoo.org"
INSTALL_MASK="charset.alias locale.alias"
LANG="en_GB.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en"
MAKEOPTS="-j24"
PKGDIR="/var/embedded/portage/binpkgs/amd64_apu_musl.host"
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"
USE="amd64 bash-completion bzip2 caps crypt dbus hardened iproute2 ipv6 libglvnd libtirpc logrotate lz4 lzo mbim minimal nptl openmp pcre pie qmi rrdtool seccomp split-usr ssl ssp threads unicode vhosts wifi xattr xtpax zlib zstd" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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="aggregation conntrack contextswitch cpu disk df dns entropy exec interface iptables irq load memory netlink network ntpd openvpn ping swap syslog tail thermal wireless rrdtool" CPU_FLAGS_X86="mmx mmxext sse sse2 sse3 sse4_1 sse4_2 ssse3 avx aes" ELIBC="musl" 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="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-4" LUA_TARGETS="lua5-4" NGINX_MODULES_HTTP="access auth_basic autoindex browser dav empty_gif fastcgi gzip headers_more limit_req limit_zone map proxy rewrite userid uwsgi" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-3 php7-4" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9" QEMU_SOFTMMU_TARGETS="aarch64 arm i386 mips mips64 mips64el mipsel x86_64" QEMU_USER_TARGETS="aarch64 arm armeb i386 mips mipsel" RUBY_TARGETS="ruby26" USERLAND="GNU" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy v4l" XTABLES_ADDONS="ipp2p geoip condition logmark ipmark account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RUSTFLAGS
Comment 1 Larry the Git Cow gentoo-dev 2021-08-22 02:50:09 UTC
The bug has been closed via the following commit(s):

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

commit 6f55fa1f0aca3381e745b6a21c69bb982bb477d4
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-08-22 02:47:56 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-08-22 02:47:56 +0000

    sci-geosciences/gpsd: fix build with USE=-python
    
    Closes: https://bugs.gentoo.org/809260
    Signed-off-by: Sam James <sam@gentoo.org>

 sci-geosciences/gpsd/gpsd-3.23-r2.ebuild | 3 +++
 sci-geosciences/gpsd/gpsd-9999.ebuild    | 3 +++
 2 files changed, 6 insertions(+)
Comment 2 Ed Wildgoose 2021-08-23 10:25:44 UTC
Perfect. Many thanks for resolving this so rapidly!