Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 744823 - kde-apps/marble-20.04.3[gps] with sci-geosciences/gpsd-3.21: GpsdPositionProviderPlugin.cpp:82:15: error: ‘struct gps_data_t’ has no member named ‘status’
Summary: kde-apps/marble-20.04.3[gps] with sci-geosciences/gpsd-3.21: GpsdPositionProv...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-09-26 15:11 UTC by mario.haustein
Modified: 2020-09-27 18:51 UTC (History)
2 users (show)

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


Attachments
marble-20.04.3-gpsd-3.21.patch (marble-20.04.3-gpsd-3.21.patch,1.24 KB, patch)
2020-09-26 15:13 UTC, mario.haustein
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description mario.haustein 2020-09-26 15:11:06 UTC
kde-apps/marble-20.04.3 fails to build with sci-geosciences/gpsd-3.21, due to API changes in libgps:

/var/tmp/portage/kde-apps/marble-20.04.3/work/marble-20.04.3/src/plugins/positionprovider/gpsd/GpsdPositionProviderPlugin.cpp: In member function ‘void Marble::GpsdPositionProviderPlugin::update(gps_data_t)’:
/var/tmp/portage/kde-apps/marble-20.04.3/work/marble-20.04.3/src/plugins/positionprovider/gpsd/GpsdPositionProviderPlugin.cpp:82:15: error: ‘struct gps_data_t’ has no member named ‘status’
   82 |     if ( data.status == STATUS_NO_FIX || std::isnan( data.fix.longitude ) || std::isnan( data.fix.latitude ) )
      |               ^~~~~~

Upstream provides a patch to solve this issue:

https://invent.kde.org/education/marble/-/commit/7039b70f0255376e5d67dad603f5d67f8c3c07db

You will find the patch in the attachment. Tested and works OK on ~amd64.



--------
emerge --info

Portage 3.0.4 (python 3.7.8-final-0, default/linux/amd64/17.1/desktop/plasma, gcc-9.3.0, glibc-2.31-r6, 5.4.60-gentoo x86_64)
=================================================================
System uname: Linux-5.4.60-gentoo-x86_64-Intel-R-_Core-TM-_i7-7500U_CPU_@_2.70GHz-with-gentoo-2.7
KiB Mem:    16350316 total,   1746872 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Sat, 26 Sep 2020 10:00:01 +0000
Head commit of repository gentoo: c94f6a6616b2e0883b7c82c1edab3cd9138f5376
sh bash 5.0_p18
ld GNU ld (Gentoo 2.34 p6) 2.34.0
app-shells/bash:          5.0_p18::gentoo
dev-java/java-config:     2.3.1::gentoo
dev-lang/perl:            5.30.3::gentoo
dev-lang/python:          2.7.18-r2::gentoo, 3.7.8-r2::gentoo, 3.8.5::gentoo
dev-util/cmake:           3.16.5::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.7::gentoo
sys-apps/openrc:          0.42.1::gentoo
sys-apps/sandbox:         2.18::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r5::gentoo
sys-devel/automake:       1.13.4-r2::gentoo, 1.16.1-r1::gentoo
sys-devel/binutils:       2.34-r2::gentoo
sys-devel/gcc:            9.3.0-r1::gentoo
sys-devel/gcc-config:     2.3.1::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 5.4-r1::gentoo (virtual/os-headers)
sys-libs/glibc:           2.31-r6::gentoo
Repositories:

AlexandreFournier
    location: /var/lib/layman/AlexandreFournier
    masters: gentoo
    priority: -1100

brancik-overlay
    location: /var/lib/layman/brancik-overlay
    masters: gentoo
    priority: -1100

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-max-age: 24
    sync-rsync-extra-opts: 
    sync-rsync-verify-metamanifest: yes

crossdev
    location: /usr/local/portage-crossdev
    masters: gentoo

local
    location: /usr/local/portage
    masters: gentoo

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA PUEL"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
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/php/apache2-php7.4/ext-active/ /etc/php/cgi-php7.4/ext-active/ /etc/php/cli-php7.4/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="-O2 -pipe"
DISTDIR="/usr/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 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 splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirror.eu.oneandone.net/linux/distributions/gentoo/gentoo/ rsync://mirror.eu.oneandone.net/gentoo/ ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo http://mirror.netcologne.de/gentoo/ rsync://mirror.netcologne.de/gentoo/ ftp://mirror.netcologne.de/gentoo/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://ftp.halifax.rwth-aachen.de/gentoo/ rsync://ftp.halifax.rwth-aachen.de/gentoo/ ftp://ftp.halifax.rwth-aachen.de/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo http://ftp.uni-erlangen.de/pub/mirrors/gentoo http://gentoo.osuosl.org/"
LANG="de_DE.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="de en"
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 --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="3d X a52 aac aalib acl acpi activities afs alsa amd64 atsc avr bash-completion berkdb bluetooth branding bzip2 cairo cdda cdr cli conntrack crypt cryptsetup cscope cups dbus declarative designer device-mapper display-manager doc dot dri dri3 dts dtv dvd dvdr dvipdfm elogind emboss encode eqmod eselect-ldso exif extra extras fcd fec fits flac fontconfig fortran fuse games gd gdal gdbm geolocation georeferencer geos gif glamor glut gmp gmttria gnuplot gphoto2 gpm gps graph graphics grass grc grub gssapi gtk gui hackrf hamlib handbook hires humanities iconv icu iio indi introspection ipv6 iqbalance jadetex jpeg kde kerberos kipi kpathsea kwallet lapack latex latex3 lcms ldap libcaca libglvnd libnotify libtirpc lm_sensors lua luatex lvm mad messages mmap mng mp3 mp4 mpeg multilib multimedia ncurses netlink networking nftables nls noaa nptl ntp objc objc++ objc-gc ogdi ogg omega openexr opengl openmp openssl osmesa pam pango pcap pcre pcsc-lite pdf pgf phonon pim plasma plotutils plplot plutosdr png pnm policykit portaudio postgres postscript ppds printsupport pstricks publishers pygments python qml qt5 readline rss rtlsdr scanner schematics science script scripts sddm sdl seccomp semantic-desktop serialport smartcard smp sna soapy sound spatialite spell split-usr sql sqlite sqlite3 ssh ssl stars startup-notification svg tcpd testlib theora threads tiff tools toupbase trellis truetype udev udisks unicode upower usb uxa v4l v4l2 vaapi vdpau vim-syntax vocoder vorbis vpx wallpapers waveform wavelet webchannel webengine webkit widgets wxwidgets x264 xattr xcb xcomposite xetex xinerama xml xplanet xrandr xv xvfb xvid xvmc zeromq zlib" 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" CAMERAS="canon" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" 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" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="synaptics evdev libinput" KERNEL="linux" L10N="de en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2 php7-3 php7-4" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_7" PYTHON_TARGETS="python2_7 python3_7" RUBY_TARGETS="ruby25 ruby26" SANE_BACKENDS="hp" USERLAND="GNU" VIDEO_CARDS="fbdev vesa intel 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, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
--------
Comment 1 mario.haustein 2020-09-26 15:13:09 UTC
Created attachment 662560 [details, diff]
marble-20.04.3-gpsd-3.21.patch

suggested patch from upstream
Comment 2 Larry the Git Cow gentoo-dev 2020-09-27 18:40:09 UTC
The bug has been closed via the following commit(s):

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

commit 9a4b8baa6cad9a48f162dfb82fe01baa66c20718
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2020-09-27 18:38:03 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2020-09-27 18:39:48 +0000

    kde-apps/marble: Fix build w/ IUSE=gps and >=sci-libs/gpsd-3.21
    
    Upstream commit 7039b70f0255376e5d67dad603f5d67f8c3c07db
    
    Thanks-to: <mario.haustein@hrz.tu-chemnitz.de>
    Closes: https://bugs.gentoo.org/744823
    Package-Manager: Portage-3.0.8, Repoman-3.0.1
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 .../marble/files/marble-20.04.3-gpsd-3.21.patch    | 29 ++++++++++++++++++++++
 kde-apps/marble/marble-20.04.3.ebuild              |  2 ++
 2 files changed, 31 insertions(+)