Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 606952 - >=sci-geosciences/gpsbabel-1.5 should hard depend on >=qt-5.2
Summary: >=sci-geosciences/gpsbabel-1.5 should hard depend on >=qt-5.2
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:
 
Reported: 2017-01-23 19:44 UTC by Karl-Johan Karlsson
Modified: 2017-01-23 22:27 UTC (History)
0 users

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 Karl-Johan Karlsson 2017-01-23 19:44:26 UTC
Currently, sci-geosciences/gpsbabel-1.5.4 has an optional dependency on Qt 5 (with unspecified minor version), if USE="qt5" is specified. However, trying to build the package without Qt 5 installed results in this build error:

  >>> Compiling source in /var/tmp/portage/sci-geosciences/gpsbabel-1.5.4/work/gpsbabel-1.5.4 ...
  make -j4 
  x86_64-pc-linux-gnu-g++  -march=native -O2 -pipe -fweb -ftracer -std=gnu++11 -Wall -c   -I. -I/usr/include/qt4  -DHAVE_CONFIG_H -DNEW_STRINGS main.cc -o main.o
  x86_64-pc-linux-gnu-g++  -march=native -O2 -pipe -fweb -ftracer -std=gnu++11 -Wall -c   -I. -I/usr/include/qt4  -DHAVE_CONFIG_H -DNEW_STRINGS globals.cc -o globals.o
  x86_64-pc-linux-gnu-g++  -march=native -O2 -pipe -fweb -ftracer -std=gnu++11 -Wall -c   -I. -I/usr/include/qt4  -DHAVE_CONFIG_H -DNEW_STRINGS queue.cc -o queue.o
  x86_64-pc-linux-gnu-g++  -march=native -O2 -pipe -fweb -ftracer -std=gnu++11 -Wall -c   -I. -I/usr/include/qt4  -DHAVE_CONFIG_H -DNEW_STRINGS route.cc -o route.o
  x86_64-pc-linux-gnu-g++  -march=native -O2 -pipe -fweb -ftracer -std=gnu++11 -Wall -c   -I. -I/usr/include/qt4  -DHAVE_CONFIG_H -DNEW_STRINGS waypt.cc -o waypt.o
  main.cc:256:4: error: #error This version of Qt is not supported.
     #error This version of Qt is not supported.
      ^
  x86_64-pc-linux-gnu-g++  -march=native -O2 -pipe -fweb -ftracer -std=gnu++11 -Wall -c   -I. -I/usr/include/qt4  -DHAVE_CONFIG_H -DNEW_STRINGS filter_vecs.cc -o filter_vecs.o
  make: *** [Makefile:121: main.o] Error 1
  make: *** Waiting for unfinished jobs....

Looking at the source of main.cc, this is a hard dependency:

  #if (QT_VERSION < QT_VERSION_CHECK(5, 2, 0))
    #error This version of Qt is not supported.
  #endif

The Qt dependencies in the ebuild should be updated to be unconditional and require at least version 5.2.0.
Comment 1 Karl-Johan Karlsson 2017-01-23 19:49:24 UTC
$ emerge --info --verbose=n gpsbabel 
Portage 2.3.3 (python 3.4.5-final-0, hardened/linux/amd64, gcc-5.4.0, glibc-2.23-r3, 4.8.15-hardened x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.8.15-hardened-x86_64-Intel-R-_Core-TM-_i7-2640M_CPU_@_2.80GHz-with-gentoo-2.3
KiB Mem:     8112740 total,   2971300 free
KiB Swap:    4000180 total,   3567904 free
Timestamp of repository gentoo: Mon, 23 Jan 2017 07:00:01 +0000
sh bash 4.4_p11
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
app-shells/bash:          4.4_p11::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.24.1_rc4::gentoo
dev-lang/python:          2.7.12::gentoo, 3.4.5::gentoo, 3.5.2::gentoo
dev-util/cmake:           3.7.1::gentoo
dev-util/pkgconfig:       0.29.1::gentoo
sys-apps/baselayout:      2.3::gentoo
sys-apps/openrc:          0.23.1::gentoo
sys-apps/sandbox:         2.10-r2::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r2::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.12.6-r1::gentoo, 1.13.4-r1::gentoo, 1.14.1-r1::gentoo, 1.15-r2::gentoo
sys-devel/binutils:       2.25-r1::gentoo, 2.25.1-r1::gentoo, 2.26.1::gentoo, 2.27::gentoo
sys-devel/gcc:            5.3.0::gentoo, 5.4.0-r2::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r2::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.8::gentoo (virtual/os-headers)
sys-libs/glibc:           2.23-r3::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-extra-opts: --timeout=10

kde-sunset
    location: /usr/local/overlay/kde-sunset
    sync-type: git
    sync-uri: git://anongit.gentoo.org/proj/kde-sunset.git
    masters: gentoo
    priority: 0

creideiki
    location: /usr/local/portage
    masters: gentoo
    priority: 1

betagarden
    location: /var/lib/layman/betagarden
    sync-type: laymansync
    sync-uri: git://anongit.gentoo.org/proj/betagarden.git
    masters: gentoo
    priority: 50

hasufell
    location: /var/lib/layman/hasufell
    sync-type: laymansync
    sync-uri: https://bitbucket.org/hasufell/hasufell-overlay.git
    masters: gentoo
    priority: 50

seden
    location: /var/lib/layman/seden
    sync-type: laymansync
    sync-uri: git://anongit.gentoo.org/user/seden.git
    masters: gentoo
    priority: 50

steam-overlay
    location: /var/lib/layman/steam-overlay
    sync-type: laymansync
    sync-uri: git://github.com/anyc/steam-overlay.git
    masters: gentoo
    priority: 50

sunrise
    location: /var/lib/layman/sunrise
    sync-type: laymansync
    sync-uri: git://anongit.gentoo.org/proj/sunrise-reviewed.git
    masters: gentoo
    priority: 50

torbrowser
    location: /var/lib/layman/torbrowser
    sync-type: laymansync
    sync-uri: git://github.com/MeisterP/torbrowser-overlay.git
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA PUEL dlj-1.1 googleearth AdobeFlash-10.1 AdobeFlash-10.3 AdobeFlash-11.x google-talkplugin skype-eula QUAKE4 Oracle-BCLA-JavaSE Intel-SDP Introversion skype-4.0.0.7-copyright google-chrome AdobeAIRSDK"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -fweb -ftracer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0"
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 /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe -fweb -ftracer"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--alphabetical --keep-going --quiet-build=n --verbose-conflicts --verbose"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch parallel-install preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-O1 -Wl,--hash-style=gnu -Wl,--enable-new-dtags"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--timeout=10"
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="X a52 aac aacs acl acpi alsa amd64 anthy avi bash-completion berkdb bluetooth bluray bzip2 c++0x cairo canna cdr cjk cli consolekit cracklib crypt css cups cvs cxx dbus dri dts dvd dvdnav dvdr dvdread emacs exif ffmpeg fftw flac fontconfig fortran fuse gdbm gif gimp git gles gles1 gles2 glitz gphoto2 gstreamer gtk gtk3 hackrf hal handbook hardened iconv idn ipv6 javascript jingle jpeg justify kde laptop lcms lensfun lm_sensors logrotate mad matroska mmap mmx mmxext mng modules motif mp3 multilib ncurses nls nptl nsplugin offensive ogg opencl opengl openmp pam pax_kernel pcre pdf phonon pic pie plasma png policykit postscript projectm qt qt3 qt3support qt4 quicktime qwt raw readline real resid rtmp s3tc samba sasl sdl seccomp session sid smp sndfile sqlite sse sse2 sse3 sse4_1 ssl ssp ssse3 steamgames_source_engine steamgames_tf2 steamruntime subversion svg tcpd theora tiff truetype unicode urandom usb v4l vaapi vorbis wifi win32codecs windows_games wma wmf x264 xattr xcb xine xinerama xrandr xtpax xv xvid xvmc zlib" ABI_X86="32 64" ALSA_CARDS="hda-intel" 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="braindump flow karbon kexi krita sheets stage words" CAMERAS="canon" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" QEMU_SOFTMMU_TARGETS="i386 x86_64" RUBY_TARGETS="ruby22" SANE_BACKENDS="pixma hp" USERLAND="GNU" VIDEO_CARDS="intel i915 i965" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, USE_PYTHON

=================================================================
                        Package Settings
=================================================================

sci-geosciences/gpsbabel-1.4.4::gentoo was built with the following:
USE="-doc qt4" ABI_X86="64"
Comment 2 Andreas Sturmlechner gentoo-dev 2017-01-23 22:27:24 UTC
Oldest Qt5 version in tree is 5.6.1 so we are fine, raising the version dep would awnot change anything. But indeed what an oversight, I'll drop USE=qt5 from the ebuild as it is not really supported.

Thanks, fixed in git by commit 4253275cb926d196b7a3566ff28a8cf756ae8138.