mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-16 19:50:19 +01:00
gis/foxtrotgps: Fix build with gpsd-3.18.1.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
This commit is contained in:
parent
6b71a363e9
commit
f8257a466f
2 changed files with 18 additions and 4 deletions
11
gis/foxtrotgps/foxtrotgps-gpsd-3.18.patch
Normal file
11
gis/foxtrotgps/foxtrotgps-gpsd-3.18.patch
Normal file
|
@ -0,0 +1,11 @@
|
|||
--- foxtrotgps-1.2.1/src/gps_functions.c.orig 2018-10-09 17:00:10.297646701 +0000
|
||||
+++ foxtrotgps-1.2.1/src/gps_functions.c 2018-10-09 17:00:43.751114273 +0000
|
||||
@@ -738,7 +738,7 @@
|
||||
if (!libgps_initialized)
|
||||
return FALSE;
|
||||
|
||||
- ret = gps_read(&libgps_gpsdata);
|
||||
+ ret = gps_read(&libgps_gpsdata, NULL, 0);
|
||||
/* Note that gps_read() will never actually return 0
|
||||
(zero-length reads are converted internally to a -1 return,
|
||||
since they mean that the connection to the daemon has closed),
|
|
@ -26,12 +26,12 @@
|
|||
|
||||
PRGNAM=foxtrotgps
|
||||
VERSION=${VERSION:-1.2.1}
|
||||
BUILD=${BUILD:-1}
|
||||
BUILD=${BUILD:-2}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
if [ -z "$ARCH" ]; then
|
||||
case "$( uname -m )" in
|
||||
i?86) ARCH=i486 ;;
|
||||
i?86) ARCH=i586 ;;
|
||||
arm*) ARCH=arm ;;
|
||||
*) ARCH=$( uname -m ) ;;
|
||||
esac
|
||||
|
@ -42,8 +42,8 @@ TMP=${TMP:-/tmp/SBo}
|
|||
PKG=$TMP/package-$PRGNAM
|
||||
OUTPUT=${OUTPUT:-/tmp}
|
||||
|
||||
if [ "$ARCH" = "i486" ]; then
|
||||
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
|
||||
if [ "$ARCH" = "i586" ]; then
|
||||
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
|
||||
LIBDIRSUFFIX=""
|
||||
elif [ "$ARCH" = "i686" ]; then
|
||||
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
|
||||
|
@ -71,6 +71,9 @@ find -L . \
|
|||
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
|
||||
-exec chmod 644 {} \;
|
||||
|
||||
# Patch ripped off from Arch (thanks!)
|
||||
patch -p1 < $CWD/foxtrotgps-gpsd-3.18.patch
|
||||
|
||||
# "--with-gconf-source" requires this, it will put all files in the package
|
||||
mkdir -p $PKG/etc/gconf/gconf.xml.defaults
|
||||
|
||||
|
|
Loading…
Reference in a new issue