Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 521206 - net-wireless/gqrx-2.3.0 should depend on dev-qt/qtsvg
Summary: net-wireless/gqrx-2.3.0 should depend on dev-qt/qtsvg
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Rick Farina (Zero_Chaos)
URL: https://github.com/csete/gqrx/pull/195
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-08-26 23:12 UTC by JohnLM
Modified: 2014-08-29 14:08 UTC (History)
2 users (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 JohnLM 2014-08-26 23:12:44 UTC
GRQX requires QtSvg but the ebuild doesn't pull dev-qt/qtsvg package in. The ebuild should be updated to explicitly depend on qtsvg.

If dev-qt/qtsvg is not installed, compilation fails with linker error complaining about -lQtSvg not corresponding to any installed library.
(Sorry for lack of portage output. Drop me a message if it's really necessary.)
Comment 1 JohnLM 2014-08-27 08:43:55 UTC
I'm also quite sure this applies to all gqrx ebuilds, rather just 2.3.0, but I haven't tried other versions.
I assume the dev-qt/qtsvg should go in RDEPEND (or DEPEND?), but none of the gqrx ebuilds has it.
Comment 2 Rick Farina (Zero_Chaos) gentoo-dev 2014-08-27 15:26:22 UTC
ozzie ~ # ldd /usr/bin/gqrx | grep -i svg
ozzie ~ # 


it's definately not linked to qtsvg on my system.  Please post your build log and emerge --info, best to do this on every bug report.
Comment 3 JohnLM 2014-08-27 16:50:11 UTC
lapsa ~ # emerge --info
!!! Repository 'arcon' is missing masters attribute in '/var/lib/layman/arcon/metadata/layout.conf'
!!! Set 'masters = gentoo' in this file for future compatibility
Portage 2.2.8-r1 (default/linux/x86/13.0, gcc-4.7.3, glibc-2.16.0, 3.10.17-aufs i686)
=================================================================
System uname: Linux-3.10.17-aufs-i686-Intel-R-_Pentium-R-_M_processor_1.73GHz-with-gentoo-2.2
KiB Mem:     1280672 total,    937636 free
KiB Swap:    2000088 total,   2000088 free
Timestamp of tree: Tue, 26 Aug 2014 16:45:01 +0000
ld GNU ld (GNU Binutils) 2.23.2
distcc 3.1 i686-pc-linux-gnu [enabled]
app-shells/bash:          4.2_p45
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.5-r3, 3.3.3
dev-util/cmake:           2.8.12.2-r1
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.13.4
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.7.3-r1
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           4.0-r1
sys-kernel/linux-headers: 3.9 (virtual/os-headers)
sys-libs/glibc:           2.16.0
Repositories: gentoo cross-portage arcon java private-repo
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA skype-eula skype-4.0.0.7-copyright PUEL Intel-SDP Oracle-BCLA-JavaSE AdobeFlash-11.x"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium-m -mfpmath=sse -fomit-frame-pointer -O2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.5/ext-active/ /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=pentium-m -mfpmath=sse -fomit-frame-pointer -O2 -pipe"
DISTDIR="/var/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps=n"
FCFLAGS="-O2 -march=i686 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distcc distlocks ebuild-locks fixlafiles merge-sync news noinfo parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -march=i686 -pipe"
GENTOO_MIRRORS="http://mirror.yandex.ru/gentoo-distfiles/ http://distfiles.gentoo.org"
LANG="en_GB.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
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"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage-crossdev /var/lib/layman/arcon /var/lib/layman/java /usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 acl acpi alsa bash-completion berkdb branding bzip2 cairo cli cracklib crypt css cxx dbus dri dts ffmpeg fftw flac fontconfig fortran gdbm gtk gzip iconv icu jpeg kpathsea libnotify mad matroska mmx mmxext modules mp3 ncurses nls nptl ogg openexr opengl openmp opus pam pcre png policykit readline session sndfile sse sse2 ssl svg tcpd truetype udev unicode vorbis x264 x86 xcb xcomposite xml xv xvid zlib" ABI_X86="32" 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="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2 kodak_ez200" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" 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 synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_GB lv" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="intel" 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"
USE_PYTHON="2.7 3.3"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


Indeed, gqrx doesn't seem to actually link to qtsvg (on any of my systems). However it appears that qmake adds it anyway in generated Makefile to
DEFINES       = -DQT_NO_DEBUG -DQT_NO_DEBUG_OUTPUT -DVERSION="\"2.3.0\"" -DQT_NO_DEBUG -DQT_SVG_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED
LIBS          = $(SUBLIBS)  -L/usr/lib/qt4 -lboost_system -lboost_program_options -lgnuradio-audio -lgnuradio-analog -lgnuradio-filter -lgnuradio-fft -lgnuradio-osmosdr -lgnuradio-blocks -lgnuradio-runtime -lgnuradio-pmt -lQtSvg -lQtGui -L/usr/lib/qt4 -L/usr/X11R6/lib -lQtNetwork -lQtCore -lgthread-2.0 -lrt -lglib-2.0 -lpthread

And the build therefore fails during the linking phase with
[...]
i686-pc-linux-gnu-g++ -c -march=pentium-m -mfpmath=sse -fomit-frame-pointer -O2 -pipe -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_NO_DEBUG_OUTPUT -DVERSION="\"2.3.0\"" -DQT_NO_DEBUG -DQT_SVG_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtSvg -I/usr/include/qt4 -I. -I. -o qrc_icons.o qrc_icons.cpp
i686-pc-linux-gnu-g++ -c -march=pentium-m -mfpmath=sse -fomit-frame-pointer -O2 -pipe -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_NO_DEBUG_OUTPUT -DVERSION="\"2.3.0\"" -DQT_NO_DEBUG -DQT_SVG_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtSvg -I/usr/include/qt4 -I. -I. -o qrc_textfiles.o qrc_textfiles.cpp
i686-pc-linux-gnu-g++ -Wl,-O1 -Wl,--as-needed -o gqrx main.o mainwindow.o receiver.o remote_control.o remote_control_settings.o cafsk12.o costabf.o agc_impl.o correct_iq_cc.o lpf.o resampler_xx.o rx_demod_am.o rx_demod_fm.o rx_fft.o rx_filter.o rx_meter.o rx_agc_xx.o rx_noise_blanker_cc.o sniffer_f.o stereo_demod.o udp_sink_f.o afsk1200win.o agc_options.o audio_options.o demod_options.o dockinputctl.o dockaudio.o dockfft.o dockrxopt.o freqctrl.o ioconfig.o meter.o nb_options.o plotter.o qtcolorpicker.o nbrx.o receiver_base.o wfmrx.o iq_tool.o moc_mainwindow.o moc_remote_control.o moc_remote_control_settings.o moc_cafsk12.o moc_afsk1200win.o moc_agc_options.o moc_audio_options.o moc_demod_options.o moc_dockaudio.o moc_dockfft.o moc_dockinputctl.o moc_dockrxopt.o moc_freqctrl.o moc_ioconfig.o moc_meter.o moc_nb_options.o moc_plotter.o moc_qtcolorpicker.o moc_iq_tool.o qrc_icons.o qrc_textfiles.o    -L/usr/lib/qt4 -lboost_system -lboost_program_options -lgnuradio-audio -lgnuradio-analog -lgnuradio-filter -lgnuradio-fft -lgnuradio-osmosdr -lgnuradio-blocks -lgnuradio-runtime -lgnuradio-pmt -lQtSvg -lQtGui -L/usr/lib/qt4 -L/usr/X11R6/lib -lQtNetwork -lQtCore -lgthread-2.0 -lrt -lglib-2.0 -lpthread 
/usr/lib/gcc/i686-pc-linux-gnu/4.7.3/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lQtSvg
collect2: error: ld returned 1 exit status
distcc[3919] ERROR: compile (null) on localhost failed
Makefile:221: recipe for target 'gqrx' failed
make: *** [gqrx] Error 1
Comment 4 Rick Farina (Zero_Chaos) gentoo-dev 2014-08-27 17:43:58 UTC
Looks like QTsvg is actually entirely unused (which is why it isn't linked in the final binary).  I fixed this for gentoo and I'm sending it upstream.  Thanks for the report.
Comment 5 Rick Farina (Zero_Chaos) gentoo-dev 2014-08-28 15:45:55 UTC
Actually after further testing, looks like this should be an rdep but not a dep.

$Header: /var/cvsroot/gentoo-x86/net-wireless/gqrx/gqrx-2.3.0-r1.ebuild,v 1.2 2014/08/27 17:50:06 zerochaos Exp $
Comment 6 JohnLM 2014-08-29 09:12:33 UTC
Indeed, I today noticed that when QtSvg is unmerged, gqrx runs but shows no icons. It appears it really is a run-time dependency.

I should've thought of it sooner since I was aware gqrx uses SVG icons.
Comment 7 Rick Farina (Zero_Chaos) gentoo-dev 2014-08-29 14:08:00 UTC
(In reply to JohnLM from comment #6)
> Indeed, I today noticed that when QtSvg is unmerged, gqrx runs but shows no
> icons. It appears it really is a run-time dependency.
> 
> I should've thought of it sooner since I was aware gqrx uses SVG icons.

No worries, thanks for the report, and keep 'em coming.