sci-geosciences/gpsd: fix parallel build #577432
authorMike Frysinger <vapier@gentoo.org>
Mon, 9 May 2016 18:47:31 +0000 (14:47 -0400)
committerMike Frysinger <vapier@gentoo.org>
Mon, 9 May 2016 19:44:52 +0000 (15:44 -0400)
sci-geosciences/gpsd/files/gpsd-3.15-libgpsd.patch
sci-geosciences/gpsd/files/gpsd-3.15-timebase.patch [new file with mode: 0644]
sci-geosciences/gpsd/gpsd-3.15.ebuild
sci-geosciences/gpsd/gpsd-3.16.ebuild

index b8d2cf02ee8b6026bb73d49eca2e57d9207a948f..77ba8a7966f664d775b1c022d2e2a4e42e8fba63 100644 (file)
@@ -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)
diff --git a/sci-geosciences/gpsd/files/gpsd-3.15-timebase.patch b/sci-geosciences/gpsd/files/gpsd-3.15-timebase.patch
new file mode 100644 (file)
index 0000000..2477d30
--- /dev/null
@@ -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")])
index e6f317299729570566f7cdb0978bdd9c284f9723..bc6e7eb46be19f8782d458b055ae6899b416ccbc 100644 (file)
@@ -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
index 5928f17d0409b5a7ee137fa86e0c8bc07d92c074..18ad0f640bdd8cb8ed1dc8f81bdacfe0d2d5d1a6 100644 (file)
@@ -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
 }