mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-23 16:49:10 -07:00
sci-geosciences/gpsd: fix parallel build #577432
This commit is contained in:
@@ -24,7 +24,7 @@ index a050f38..53f697d 100644
|
||||
else:
|
||||
obj_list.append(s)
|
||||
return env.SharedLibrary(target=target,
|
||||
@@ -925,9 +925,11 @@ static_gpslib = env.StaticLibrary("gps_static",
|
||||
@@ -925,9 +925,12 @@ static_gpslib = env.StaticLibrary("gps_static",
|
||||
[env.StaticObject(s) for s in libgps_sources],
|
||||
rtlibs)
|
||||
|
||||
@@ -36,6 +36,7 @@ index a050f38..53f697d 100644
|
||||
+ sources=libgpsd_sources,
|
||||
+ version=libgps_version,
|
||||
+ parse_flags=usbflags + rtlibs + bluezflags + ["-lgps"])
|
||||
+env.Depends(compiled_gpsdlib, [compiled_gpslib])
|
||||
|
||||
libraries = [compiled_gpslib, compiled_gpsdlib]
|
||||
|
||||
@@ -58,12 +59,12 @@ index a050f38..53f697d 100644
|
||||
gpsctl = env.Program('gpsctl', ['gpsctl.c'],
|
||||
LIBS=['gpsd'], parse_flags=gpsdflags+gpslibs)
|
||||
-env.Depends(gpsctl, [compiled_gpslib])
|
||||
+env.Depends(gpsctl, [compiled_gpslib, compiled_gpslib])
|
||||
+env.Depends(gpsctl, [compiled_gpsdlib, compiled_gpslib])
|
||||
|
||||
gpsmon = env.Program('gpsmon', gpsmon_sources,
|
||||
LIBS=['gpsd'], parse_flags=gpsdflags+gpslibs + ncurseslibs)
|
||||
-env.Depends(gpsmon, [compiled_gpslib])
|
||||
+env.Depends(gpsmon, [compiled_gpslib, compiled_gpslib])
|
||||
+env.Depends(gpsmon, [compiled_gpsdlib, compiled_gpslib])
|
||||
|
||||
gpsdctl = env.Program('gpsdctl', ['gpsdctl.c'], parse_flags=gpslibs)
|
||||
env.Depends(gpsdctl, compiled_gpslib)
|
||||
|
||||
12
sci-geosciences/gpsd/files/gpsd-3.15-timebase.patch
Normal file
12
sci-geosciences/gpsd/files/gpsd-3.15-timebase.patch
Normal file
@@ -0,0 +1,12 @@
|
||||
don't always rebuild this header as it won't change between compile & install
|
||||
|
||||
--- a/SConstruct
|
||||
+++ b/SConstruct
|
||||
@@ -1174,7 +1174,6 @@
|
||||
f.close()
|
||||
timebase = env.Command(target="timebase.h",
|
||||
source=["leapseconds.cache"], action=timebase_h)
|
||||
-env.AlwaysBuild(timebase)
|
||||
|
||||
env.Textfile(target="gpsd_config.h", source=confdefs)
|
||||
env.Textfile(target="gpsd.h", source=[File("gpsd.h-head"), File("gpsd_config.h"), File("gpsd.h-tail")])
|
||||
@@ -73,6 +73,7 @@ src_prepare() {
|
||||
epatch "${FILESDIR}"/${PN}-3.15-dynamic-libs.patch
|
||||
epatch "${FILESDIR}"/${PN}-3.15-libgpsd.patch
|
||||
epatch "${FILESDIR}"/${PN}-3.15-broken-install.patch
|
||||
epatch "${FILESDIR}"/${PN}-3.15-timebase.patch
|
||||
epatch "${FILESDIR}"/${PN}-3.16-sysmacros.patch #581740
|
||||
|
||||
# Avoid useless -L paths to the install dir
|
||||
|
||||
@@ -73,6 +73,7 @@ src_prepare() {
|
||||
epatch "${FILESDIR}"/${PN}-3.15-dynamic-libs.patch
|
||||
epatch "${FILESDIR}"/${PN}-3.15-libgpsd.patch
|
||||
epatch "${FILESDIR}"/${PN}-3.15-broken-install.patch
|
||||
epatch "${FILESDIR}"/${PN}-3.15-timebase.patch
|
||||
epatch "${FILESDIR}"/${PN}-3.16-sysmacros.patch #581740
|
||||
|
||||
# Avoid useless -L paths to the install dir
|
||||
@@ -82,8 +83,6 @@ src_prepare() {
|
||||
|
||||
sed -e 's:libusb.h:libusb-1.0/libusb.h:' -i driver_garmin.c || die
|
||||
|
||||
eapply_user
|
||||
|
||||
use python && distutils-r1_src_prepare
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user