Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 636356 - sci-geosciences/gpsd: scons fails with Python 3 - SyntaxError: invalid syntax
Summary: sci-geosciences/gpsd: scons fails with Python 3 - SyntaxError: invalid syntax
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Matthew Thode ( prometheanfire )
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: scons-python3
  Show dependency tree
 
Reported: 2017-11-03 09:45 UTC by Mateusz Lenik
Modified: 2018-10-08 14:31 UTC (History)
0 users

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


Attachments
Fixes-SConstruct-for-SCons-3.0.0.patch (ed205512d_Fixes-SConstruct-for-SCons-3.0.0.patch,2.64 KB, patch)
2017-12-28 21:35 UTC, Andreas Sturmlechner
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mateusz Lenik 2017-11-03 09:45:10 UTC
Package fails to build as shown below, downgrading to scons 2.5.1 helps.

$ sudo emerge gpsd    
Calculating dependencies... done!
 
>>> Verifying ebuild manifests

>>> Emerging (1 of 1) sci-geosciences/gpsd-3.17::gentoo
 * gpsd-3.17.tar.gz SHA256 SHA512 WHIRLPOOL size ;-) ...                                           [ ok ]
>>> Unpacking source...
>>> Unpacking gpsd-3.17.tar.gz to /var/tmp/portage/sci-geosciences/gpsd-3.17/work
>>> Source unpacked in /var/tmp/portage/sci-geosciences/gpsd-3.17/work
>>> Preparing source in /var/tmp/portage/sci-geosciences/gpsd-3.17/work/gpsd-3.17 ...
 * Applying gpsd-3.17-do_not_rm_library.patch ...                                                  [ ok ]
 * python_export_best() is deprecated. Please use python_setup instead,
 * combined with python_export if necessary.
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/sci-geosciences/gpsd-3.17/work/gpsd-3.17 ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/sci-geosciences/gpsd-3.17/work/gpsd-3.17 ...
scons -j5 prefix=/usr libdir=$prefix/lib64 udevdir=/lib/udev chrpath=False gpsd_user=gpsd gpsd_group=uucp nostrip=True python=False manbuild=False shared=True bluez=0 libgpsmm=1 clientdebug=0 dbus_export=1 ipv6=1 timing=0 ncurses=1 ntpshm=0 pps=0 shm_export=1 socket_export=1 libQgpsmm=0 usb=0 aivdm=1 ashtech=1 earthmate=1 evermore=1 fury=0 fv18=1 garmin=1 garmintxt=1 geostar=0 gpsclock=1 isync=1 itrax=1 mtk3301=1 navcom=1 nmea0183=1 nmea2000=0 ntrip=1 oceanserver=1 oncore=1 passthrough=0 rtcm104v2=1 rtcm104v3=1 sirf=1 skytraq=1 superstar2=1 tnt=1 tripmate=1 tsip=1 ublox=1
scons: Reading SConscript files ...
  File "/var/tmp/portage/sci-geosciences/gpsd-3.17/work/gpsd-3.17/SConstruct", line 378

    print msg

            ^

SyntaxError: invalid syntax
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2017-11-04 13:13:52 UTC
Non-maintainer major version bump = you get to keep the pieces.
Comment 2 Andreas Sturmlechner gentoo-dev 2017-12-28 21:35:49 UTC
Created attachment 511896 [details, diff]
Fixes-SConstruct-for-SCons-3.0.0.patch

Debian have a patch you may want to check out.
Comment 3 Rolf Eike Beer archtester 2018-08-12 17:34:20 UTC
There have been patches in gpsd master that fixes parts of this, but it is not complete: https://savannah.nongnu.org/bugs/index.php?54502
Comment 4 Pacho Ramos gentoo-dev 2018-10-08 14:31:58 UTC
please test again with fixed scons-3.0.1-r100