Skip to content

Commit

Permalink
Build simplification - stop installing libgpsd in system space.
Browse files Browse the repository at this point in the history
gpsd.h hasn't been installed in /usr/include for many releases now, so
this was a historical vestige anyway.

All regression tests pass.
  • Loading branch information
eric-s-raymond committed Mar 23, 2015
1 parent 6cb7d10 commit 901bfe3
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 161 deletions.
15 changes: 3 additions & 12 deletions SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,10 @@
# Release identification begins here
gpsd_version = "3.15~dev"

# library version
# client library version
libgps_version_current = 22
libgps_version_revision = 0
libgps_version_age = 0
libgpsd_version_current = 22
libgpsd_version_revision = 0
libgpsd_version_age = 0

# Release identification ends here

Expand Down Expand Up @@ -848,8 +845,6 @@ int clock_gettime(clockid_t, struct timespec *);

libgps_version_soname = libgps_version_current - libgps_version_age
libgps_version = "%d.%d.%d" %(libgps_version_soname, libgps_version_age, libgps_version_revision)
libgpsd_version_soname = libgpsd_version_current - libgpsd_version_age
libgpsd_version = "%d.%d.%d" %(libgpsd_version_soname, libgpsd_version_age, libgpsd_version_revision)

libgps_sources = [
"ais_json.c",
Expand Down Expand Up @@ -1016,10 +1011,8 @@ compiled_gpslib = Library(env=env,
parse_flags=rtlibs)
env.Clean(compiled_gpslib, "gps_maskdump.c")

compiled_gpsdlib = Library(env=env,
target="gpsd",
sources=libgpsd_sources,
version=libgpsd_version,
compiled_gpsdlib = env.StaticLibrary(target="gpsd",
source=libgpsd_sources,
parse_flags=usblibs + rtlibs + bluezlibs + ["-lgps"])

libraries = [compiled_gpslib, compiled_gpsdlib]
Expand Down Expand Up @@ -1357,7 +1350,6 @@ base_manpages = {
"libgps.3" : "libgps.xml",
"libgpsmm.3" : "libgpsmm.xml",
"libQgpsmm.3" : "libgpsmm.xml",
"libgpsd.3" : "libgpsd.xml",
"gpsmon.1": "gpsmon.xml",
"gpsctl.1" : "gpsctl.xml",
"gpsdctl.8" : "gpsdctl.xml",
Expand Down Expand Up @@ -1412,7 +1404,6 @@ binaryinstall.append(env.Install(installdir('bindir'), [gpsdecode, gpsctl, gpsp
if env["ncurses"]:
binaryinstall.append(env.Install(installdir('bindir'), [cgps, gpsmon]))
binaryinstall.append(LibraryInstall(env, installdir('libdir'), compiled_gpslib))
binaryinstall.append(LibraryInstall(env, installdir('libdir'), compiled_gpsdlib))
if qt_env:
binaryinstall.append(LibraryInstall(qt_env, installdir('libdir'), compiled_qgpsmmlib))

Expand Down
144 changes: 0 additions & 144 deletions libgpsd.xml

This file was deleted.

5 changes: 3 additions & 2 deletions packaging/rpm/gpsd.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -234,11 +234,9 @@ fi
%{python_sitearch}/gps/fake*
%{_includedir}/gps.h
%{_includedir}/libgpsmm.h
#%{_includedir}/gpsd.h
%{_mandir}/man1/gpsfake.1*
%{_mandir}/man3/libgps.3*
%{_mandir}/man3/libgpsmm.3*
%{_mandir}/man3/libgpsd.3*
%{_mandir}/man5/srec.5*

%files -n libQgpsmm
Expand Down Expand Up @@ -284,6 +282,9 @@ fi
%attr(0755,root,root) %{_var}/www/html/gpsd/pgps.cgi

%changelog
* Mon Mar 23 00:11:00 EDT 2015Eric S. Raymond <[email protected]> 3.15-1
- We no longer export libgpsd.

* Sun Jul 31 2011 Michael R. Davis <[email protected]> 3.0-2
- Added gegps, gpsdctl
- Dropped hotplug wrapper
Expand Down
3 changes: 0 additions & 3 deletions www/index.html.in
Original file line number Diff line number Diff line change
Expand Up @@ -268,9 +268,6 @@ latest stable version.</p>
<dt><a href="libgpsmm.html">libgpsmm.3</a></dt>
<dd>C++ class wrapper for the libgps C binding.</dd>

<dt><a href="libgpsd.html">libgpsd.3</a></dt>
<dd>The low-level library used by <code>gpsd</code> to talk to a GPS.</dd>

<dt><a href="gpsprof.html">gpsprof.1</a></dt>
<dd>The <code>gpsprof</code> program for plotting spatial scatter of fixes
and fix latency.</dd>
Expand Down

0 comments on commit 901bfe3

Please sign in to comment.