[omd-commits] OMD Git: omd: mod_python: fix compile problems in 64bit

git version control git at mathias-kettner.de
Sat Jun 18 10:47:52 CEST 2011


Module:   omd
Branch:   master
Commit:   72f5a76c61a89aacebd1df0a390c3f51a754d3ae
URL:      http://omdistro.org/projects/omd/repository/revisions/72f5a76c61a89aacebd1df0a390c3f51a754d3ae

Author:   Mathias Kettner <mk at mathias-kettner.de>
Date:     Sat Jun 18 10:47:47 2011 +0200
Commiter: Mathias Kettner <mk at mathias-kettner.de>
Date:     Sat Jun 18 10:47:47 2011 +0200

mod_python: fix compile problems in 64bit

---

 packages/mod_python/Makefile       |    6 +++---
 packages/mod_python/patches/README |    3 +++
 2 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/packages/mod_python/Makefile b/packages/mod_python/Makefile
index 6762323..7989833 100644
--- a/packages/mod_python/Makefile
+++ b/packages/mod_python/Makefile
@@ -21,10 +21,10 @@ install:
 	# mod_python does not honor --prefix, so we move the stuff over...
 	make DESTDIR=$$(pwd)/tmp.root -C $(DIR) install
 	mkdir -p $(DESTDIR)$(OMD_ROOT)/lib/apache/modules
-	install -m 644 tmp.root/usr/lib/*/modules/mod_python.so $(DESTDIR)$(OMD_ROOT)/lib/apache/modules
+	install -m 644 tmp.root/usr/lib*/*/modules/mod_python.so $(DESTDIR)$(OMD_ROOT)/lib/apache/modules
 	mkdir -p $(DESTDIR)$(OMD_ROOT)/lib/python/mod_python
-	install tmp.root/usr/local/lib/*/dist-packages/mod_python/* $(DESTDIR)$(OMD_ROOT)/lib/python/mod_python
-	install -m 644 tmp.root/usr/local/lib/python2.7/dist-packages/mod_python-3.3.1.egg-info $(DESTDIR)$(OMD_ROOT)/lib/python
+	install tmp.root/usr/local/lib*/*/dist-packages/mod_python/* $(DESTDIR)$(OMD_ROOT)/lib/python/mod_python
+	install -m 644 tmp.root/usr/local/lib*/python*/dist-packages/mod_python-3.3.1.egg-info $(DESTDIR)$(OMD_ROOT)/lib/python
 	rm -rf tmp.root
 
 skel:
diff --git a/packages/mod_python/patches/README b/packages/mod_python/patches/README
new file mode 100644
index 0000000..8cdc417
--- /dev/null
+++ b/packages/mod_python/patches/README
@@ -0,0 +1,3 @@
+These patches are taken with thanks from the FEDORA mod_python
+package and fix compile problems and RedHat 6.1 (and probably
+other distros as well).



More information about the omd-commits mailing list