Browse Source

another round to remove python dependency

Waldemar Brodkorb 15 years ago
parent
commit
fcae8b3c70

+ 0 - 1
package/gpsd/Makefile

@@ -24,7 +24,6 @@ $(eval $(call PKG_template,GPSD_CLIENTS,gpsd-clients,${PKG_VERSION}-${PKG_RELEAS
 
 CONFIGURE_ENV+=		EGREP="grep -E" \
 			CPP="$(TARGET_CC) -E" \
-			PYTHON="none" \
 			ac_cv_func_strlcpy=no \
 			ac_cv_func_strlcat=no \
 			ac_cv_lib_nsl_gethostbyname=no

+ 44 - 0
package/gpsd/patches/patch-Makefile_in

@@ -0,0 +1,44 @@
+--- gpsd-2.92.orig/Makefile.in	2010-03-03 14:49:11.000000000 +0100
++++ gpsd-2.92/Makefile.in	2010-04-03 10:33:48.782836143 +0200
+@@ -615,8 +615,6 @@ libgps_la_LIBADD = $(LIBM) $(LIBC) $(LIB
+ #
+ # Build Python binding
+ #
+-@HAVE_PYTHON_TRUE@PYEXTENSIONS = gpspacket.so gpslib.so
+-@HAVE_PYTHON_TRUE@noinst_SCRIPTS = gpspacket.so gpslib.so setup.py
+ @LIBGPSMM_ENABLE_FALSE@TESTBINS = test_float test_trig test_bits test_packet test_geoid \
+ @LIBGPSMM_ENABLE_FALSE@	test_mkgmtime test_json
+ 
+@@ -1946,32 +1944,6 @@ maskdump.c: gpsd.h-tail maskaudit.py
+ 	$(PYTHON) maskaudit.py -c >maskdump.c && \
+ 	chmod a-w maskdump.c
+ 
+-# Multiple-outputs hack.  See
+-# http://www.gnu.org/software/automake/manual/automake.html#Multiple-Outputs
+-@HAVE_PYTHON_TRUE@$(PYEXTENSIONS): stamp-python-modules
+-@HAVE_PYTHON_TRUE@	+@WITNESS=stamp-python-modules; $(MULTIOUT_RECOVER_DELETED)
+-# TODO:  Should the dependency on libgps.la be enforced inside
+-# setup.py?  (See the variable 'needed_files' in setup.py.)
+-@HAVE_PYTHON_TRUE@stamp-python-modules: gpspacket.c gpsclient.c libgps.la setup.py
+-@HAVE_PYTHON_TRUE@	@rm -f '$@' '$@.tmp'
+-@HAVE_PYTHON_TRUE@	@echo 'timestamp for $@' > '$@.tmp'
+-@HAVE_PYTHON_TRUE@	(cd '$(srcdir)' && \
+-@HAVE_PYTHON_TRUE@	env abs_builddir='$(abs_builddir)' \
+-@HAVE_PYTHON_TRUE@	    MAKE='$(MAKE)' \
+-@HAVE_PYTHON_TRUE@		$(PYTHON) setup.py build_ext \
+-@HAVE_PYTHON_TRUE@			--build-lib '$(srcdir)' \
+-@HAVE_PYTHON_TRUE@			--build-temp '$(srcdir)/build' \
+-@HAVE_PYTHON_TRUE@			--include-dirs '$(srcdir):.'\
+-@HAVE_PYTHON_TRUE@			--mangenerator '$(MANGENERATOR)') && \
+-@HAVE_PYTHON_TRUE@	mv -f '$@.tmp' '$@'
+-
+-# Clean up after Python
+-@HAVE_PYTHON_TRUE@clean-local:
+-@HAVE_PYTHON_TRUE@	rm -rf build
+-
+-# Install Python modules
+-@HAVE_PYTHON_TRUE@install-exec-local:
+-@HAVE_PYTHON_TRUE@	$(PYTHON) setup.py install --prefix=${prefix} # --root=$(DESTDIR)
+ 
+ @HAVE_XSLT_PROCESSOR_TRUE@.xml.1:
+ @HAVE_XSLT_PROCESSOR_TRUE@	$(MANGENERATOR) $(MANFLAGS) $(MANTARGET) $<

+ 11 - 0
package/gpsd/patches/patch-Makefile_in.orig

@@ -0,0 +1,11 @@
+--- gpsd-2.92.orig/Makefile.in	2010-03-03 14:49:11.000000000 +0100
++++ gpsd-2.92/Makefile.in	2010-04-03 10:32:03.332223513 +0200
+@@ -615,8 +615,6 @@ libgps_la_LIBADD = $(LIBM) $(LIBC) $(LIB
+ #
+ # Build Python binding
+ #
+-@HAVE_PYTHON_TRUE@PYEXTENSIONS = gpspacket.so gpslib.so
+-@HAVE_PYTHON_TRUE@noinst_SCRIPTS = gpspacket.so gpslib.so setup.py
+ @LIBGPSMM_ENABLE_FALSE@TESTBINS = test_float test_trig test_bits test_packet test_geoid \
+ @LIBGPSMM_ENABLE_FALSE@	test_mkgmtime test_json
+ 

+ 17 - 0
package/gpsd/patches/patch-gps_1

@@ -0,0 +1,17 @@
+--- gpsd-2.92.orig/gps.1	2010-03-01 06:00:44.000000000 +0100
++++ gpsd-2.92/gps.1	2010-04-03 10:22:50.111390920 +0200
+@@ -2,12 +2,12 @@
+ .\"     Title: gps
+ .\"    Author: [see the "AUTHORS" section]
+ .\" Generator: DocBook XSL Stylesheets v1.75.1 <http://docbook.sf.net/>
+-.\"      Date: 03/01/2010
++.\"      Date: 04/03/2010
+ .\"    Manual: [FIXME: manual]
+ .\"    Source: [FIXME: source]
+ .\"  Language: English
+ .\"
+-.TH "GPS" "1" "03/01/2010" "[FIXME: source]" "[FIXME: manual]"
++.TH "GPS" "1" "04/03/2010" "[FIXME: source]" "[FIXME: manual]"
+ .\" -----------------------------------------------------------------
+ .\" * set default formatting
+ .\" -----------------------------------------------------------------

+ 42 - 0
package/gpsd/patches/patch-gpsd_config_h

@@ -0,0 +1,42 @@
+--- gpsd-2.92.orig/gpsd_config.h	2010-03-03 01:58:01.000000000 +0100
++++ gpsd-2.92/gpsd_config.h	2010-04-03 10:22:22.423474030 +0200
+@@ -117,7 +117,7 @@
+ #define HAVE_PYTHON_H 1
+ 
+ /* Define to 1 if you have the `round' function. */
+-/* #undef HAVE_ROUND */
++#define HAVE_ROUND 1
+ 
+ /* Define to 1 if you have the `setlocale' function. */
+ #define HAVE_SETLOCALE 1
+@@ -141,7 +141,7 @@
+ /* #undef HAVE_STRLCPY */
+ 
+ /* Define to 1 if you have the `strtonum' function. */
+-/* #undef HAVE_STRTONUM */
++#define HAVE_STRTONUM 1
+ 
+ /* Define to 1 if `struct tm' is a member of `tm_zone'. */
+ #define HAVE_STRUCT_TM_TM_ZONE 1
+@@ -206,10 +206,10 @@
+ #define HAVE_VSNPRINTF 1
+ 
+ /* Define to 1 if you have the <X11/xpm.h> header file. */
+-#define HAVE_X11_XPM_H 1
++/* #undef HAVE_X11_XPM_H */
+ 
+ /* Xpm available */
+-#define HAVE_XPM 1
++/* #undef HAVE_XPM */
+ 
+ /* Define to 1 if you have the <xpm.h> header file. */
+ /* #undef HAVE_XPM_H */
+@@ -309,7 +309,7 @@
+ #define SIZEOF_INT 4
+ 
+ /* The size of `long', as computed by sizeof. */
+-#define SIZEOF_LONG 8
++#define SIZEOF_LONG 4
+ 
+ /* The size of `long long', as computed by sizeof. */
+ #define SIZEOF_LONG_LONG 8

+ 42 - 0
package/gpsd/patches/patch-gpsd_h

@@ -0,0 +1,42 @@
+--- gpsd-2.92.orig/gpsd.h	2010-03-03 01:58:01.000000000 +0100
++++ gpsd-2.92/gpsd.h	2010-04-03 10:22:22.793473137 +0200
+@@ -137,7 +137,7 @@
+ #define HAVE_PYTHON_H 1
+ 
+ /* Define to 1 if you have the `round' function. */
+-/* #undef HAVE_ROUND */
++#define HAVE_ROUND 1
+ 
+ /* Define to 1 if you have the `setlocale' function. */
+ #define HAVE_SETLOCALE 1
+@@ -161,7 +161,7 @@
+ /* #undef HAVE_STRLCPY */
+ 
+ /* Define to 1 if you have the `strtonum' function. */
+-/* #undef HAVE_STRTONUM */
++#define HAVE_STRTONUM 1
+ 
+ /* Define to 1 if `struct tm' is a member of `tm_zone'. */
+ #define HAVE_STRUCT_TM_TM_ZONE 1
+@@ -226,10 +226,10 @@
+ #define HAVE_VSNPRINTF 1
+ 
+ /* Define to 1 if you have the <X11/xpm.h> header file. */
+-#define HAVE_X11_XPM_H 1
++/* #undef HAVE_X11_XPM_H */
+ 
+ /* Xpm available */
+-#define HAVE_XPM 1
++/* #undef HAVE_XPM */
+ 
+ /* Define to 1 if you have the <xpm.h> header file. */
+ /* #undef HAVE_XPM_H */
+@@ -329,7 +329,7 @@
+ #define SIZEOF_INT 4
+ 
+ /* The size of `long', as computed by sizeof. */
+-#define SIZEOF_LONG 8
++#define SIZEOF_LONG 4
+ 
+ /* The size of `long long', as computed by sizeof. */
+ #define SIZEOF_LONG_LONG 8

+ 5 - 0
package/gpsd/patches/patch-revision_h

@@ -0,0 +1,5 @@
+--- gpsd-2.92.orig/revision.h	2010-03-03 14:49:28.000000000 +0100
++++ gpsd-2.92/revision.h	2010-04-03 10:22:22.843473239 +0200
+@@ -1 +1 @@
+-#define REVISION "svn7020"
++#define REVISION "svnexported"