[csw-devel] SF.net SVN: gar:[21579] csw/mgar/pkg/lang-python/python/trunk/Makefile

wahwah at users.sourceforge.net wahwah at users.sourceforge.net
Tue Jul 30 01:33:37 CEST 2013


Revision: 21579
          http://gar.svn.sourceforge.net/gar/?rev=21579&view=rev
Author:   wahwah
Date:     2013-07-29 23:33:37 +0000 (Mon, 29 Jul 2013)
Log Message:
-----------
lang-python/python/trunk: Build for Solaris 9 too

Modified Paths:
--------------
    csw/mgar/pkg/lang-python/python/trunk/Makefile

Modified: csw/mgar/pkg/lang-python/python/trunk/Makefile
===================================================================
--- csw/mgar/pkg/lang-python/python/trunk/Makefile	2013-07-29 23:32:12 UTC (rev 21578)
+++ csw/mgar/pkg/lang-python/python/trunk/Makefile	2013-07-29 23:33:37 UTC (rev 21579)
@@ -33,6 +33,9 @@
 UPSTREAM_MASTER_SITES = http://python.org/ftp/python/
 UFILES_REGEX = $(VER)\.\d+
 
+PACKAGING_PLATFORMS = solaris9-i386 solaris9-sparc
+PACKAGING_PLATFORMS += solaris10-i386 solaris10-sparc
+
 DISTFILES  = $(DISTNAME).tar.bz2
 DISTFILES += pyport.h
 
@@ -106,12 +109,12 @@
 CHECKPKG_OVERRIDES_CSWpython += no-direct-binding|/opt/csw/lib/python/lib-dynload/_hashlib.so|is|not|directly|bound|to|soname|libssl.so.1.0.0
 
 # With the versioned directory:
-CHECKPKG_OVERRIDES_CSWpython-tk += soname-unused|libX11.so.4|is|needed|by|/opt/csw/lib/python2.6/lib-dynload/_tkinter.so|but|never|used
-CHECKPKG_OVERRIDES_CSWpython += file-with-bad-content|/usr/local|root/opt/csw/lib/python2.6/test/test_subprocess.py
-CHECKPKG_OVERRIDES_CSWpython += file-with-bad-content|/usr/share|root/opt/csw/lib/python2.6/test/test_posixpath.py
-CHECKPKG_OVERRIDES_CSWpython += soname-unused|libcurses.so.1|is|needed|by|/opt/csw/lib/python2.6/lib-dynload/_curses_panel.so|but|never|used
-CHECKPKG_OVERRIDES_CSWpython += soname-unused|libncursesw.so.5|is|needed|by|/opt/csw/lib/python2.6/lib-dynload/_curses_panel.so|but|never|used
-CHECKPKG_OVERRIDES_CSWpython += soname-unused|libssl.so.1.0.0|is|needed|by|/opt/csw/lib/python2.6/lib-dynload/_hashlib.so|but|never|used
+CHECKPKG_OVERRIDES_CSWpython-tk += soname-unused|libX11.so.4|is|needed|by|/opt/csw/lib/python$(VER)/lib-dynload/_tkinter.so|but|never|used
+CHECKPKG_OVERRIDES_CSWpython += file-with-bad-content|/usr/local|root/opt/csw/lib/python$(VER)/test/test_subprocess.py
+CHECKPKG_OVERRIDES_CSWpython += file-with-bad-content|/usr/share|root/opt/csw/lib/python$(VER)/test/test_posixpath.py
+CHECKPKG_OVERRIDES_CSWpython += soname-unused|libcurses.so.1|is|needed|by|/opt/csw/lib/python$(VER)/lib-dynload/_curses_panel.so|but|never|used
+CHECKPKG_OVERRIDES_CSWpython += soname-unused|libncursesw.so.5|is|needed|by|/opt/csw/lib/python$(VER)/lib-dynload/_curses_panel.so|but|never|used
+CHECKPKG_OVERRIDES_CSWpython += soname-unused|libssl.so.1.0.0|is|needed|by|/opt/csw/lib/python$(VER)/lib-dynload/_hashlib.so|but|never|used
 
 
 NOISALIST = 1
@@ -173,22 +176,27 @@
 RUNTIME_DEP_PKGS_CSWpython$(CVER) += CSWlibz1
 RUNTIME_DEP_PKGS_CSWpython$(CVER)-dev += CSWlibpython$(DVER)-1-0
 RUNTIME_DEP_PKGS_CSWpython$(CVER)-dev += CSWpython$(CVER)
-RUNTIME_DEP_PKGS_CSWpython$(CVER)-tk    += CSWlibpython$(DVER)-1-0
-RUNTIME_DEP_PKGS_CSWpython$(CVER)-tk    += CSWlibtcl8-5
-RUNTIME_DEP_PKGS_CSWpython$(CVER)-tk    += CSWlibtk8-5
-RUNTIME_DEP_PKGS_CSWpython$(CVER)-tk    += CSWpython$(CVER)
 
+RUNTIME_DEP_PKGS_CSWpython$(CVER)-tk += CSWlibpython$(DVER)-1-0
+RUNTIME_DEP_PKGS_CSWpython$(CVER)-tk += CSWpython$(CVER)
+
+RUNTIME_DEP_PKGS_CSWpython$(CVER)-tk_5.9    += CSWlibtcl8-4
+RUNTIME_DEP_PKGS_CSWpython$(CVER)-tk_5.9    += CSWtk
+RUNTIME_DEP_PKGS_CSWpython$(CVER)-tk_5.10   += CSWlibtcl8-5
+RUNTIME_DEP_PKGS_CSWpython$(CVER)-tk_5.10   += CSWlibtk8-5
+RUNTIME_DEP_PKGS_CSWpython$(CVER)-tk += $(RUNTIME_DEP_PKGS_CSWpython$(CVER)-tk_$(GAROSREL))
+
 # Don't merge test files.
-EXTRA_MERGE_EXCLUDE_FILES += $(libdir)/python2.6/test
-EXTRA_MERGE_EXCLUDE_FILES += $(libdir)/python2.6/test/.*
-EXTRA_MERGE_EXCLUDE_FILES += $(libdir)/python2.6/bsddb/test.*
-EXTRA_MERGE_EXCLUDE_FILES += $(libdir)/python2.6/ctypes/test.*
-EXTRA_MERGE_EXCLUDE_FILES += $(libdir)/python2.6/email/test.*
-EXTRA_MERGE_EXCLUDE_FILES += $(libdir)/python2.6/distutils/tests.*
-EXTRA_MERGE_EXCLUDE_FILES += $(libdir)/python2.6/json/tests.*
-EXTRA_MERGE_EXCLUDE_FILES += $(libdir)/python2.6/lib2to3/tests.*
-EXTRA_MERGE_EXCLUDE_FILES += $(libdir)/python2.6/sqlite3/test.*
-EXTRA_MERGE_EXCLUDE_FILES += $(libdir)/python2.6/unittest/test.*
+EXTRA_MERGE_EXCLUDE_FILES += $(libdir)/python$(VER)/test
+EXTRA_MERGE_EXCLUDE_FILES += $(libdir)/python$(VER)/test/.*
+EXTRA_MERGE_EXCLUDE_FILES += $(libdir)/python$(VER)/bsddb/test.*
+EXTRA_MERGE_EXCLUDE_FILES += $(libdir)/python$(VER)/ctypes/test.*
+EXTRA_MERGE_EXCLUDE_FILES += $(libdir)/python$(VER)/email/test.*
+EXTRA_MERGE_EXCLUDE_FILES += $(libdir)/python$(VER)/distutils/tests.*
+EXTRA_MERGE_EXCLUDE_FILES += $(libdir)/python$(VER)/json/tests.*
+EXTRA_MERGE_EXCLUDE_FILES += $(libdir)/python$(VER)/lib2to3/tests.*
+EXTRA_MERGE_EXCLUDE_FILES += $(libdir)/python$(VER)/sqlite3/test.*
+EXTRA_MERGE_EXCLUDE_FILES += $(libdir)/python$(VER)/unittest/test.*
 
 BUILD_DEP_PKGS += CSWlibffi-dev
 BUILD_DEP_PKGS += CSWggettext-dev
@@ -198,9 +206,9 @@
 BUILD_DEP_PKGS += CSWlibgcrypt-dev
 
 # Allow to choose the default Python version.
-# Python 2.6 is the default one as of 2013-07-21.
-ALTERNATIVES_CSWpython$(CVER) = python-2.6
-ALTERNATIVE_python-2.6 = $(bindir)/python python-symlink $(bindir)/python2.6 2600
+# Python $(VER) is the default one as of 2013-07-21.
+ALTERNATIVES_CSWpython$(CVER) = python-$(VER)
+ALTERNATIVE_python-$(VER) = $(bindir)/python python-symlink $(bindir)/python$(VER) 2600
 EXTRA_MERGE_EXCLUDE_FILES += $(bindir)/python
 
 # This could be handled by automatic dependency detection
@@ -228,15 +236,20 @@
 CHECKPKG_OVERRIDES_CSWpython$(CVER) += pkgname-does-not-start-with-CSWpy-
 CHECKPKG_OVERRIDES_CSWpython$(CVER) += catalogname-does-not-start-with-py_
 
-GARCOMPILER = SOS12U3
+CHECKPKG_OVERRIDES_CSWpython$(CVER)-tk += surplus-dependency|CSWpython
+CHECKPKG_OVERRIDES_CSWidle$(CVER) += surplus-dependency|CSWpython
 
+include gar/category.mk
 
-include gar/category.mk
+# For some reason these definitions must be below the include.
+GARCOMPILER_5.9 = SOS12
+GARCOMPILER_5.10 = SOS12U3
+GARCOMPILER = $(GARCOMPILER_$(GAROSREL))
+
 EXTRA_PAX_ARGS_32  = -s ",^\.$(includedir)/python$(VER)/pyport.h$$,.$(includedir)/python$(VER)/pyport-32.h,p"
 EXTRA_PAX_ARGS_64  = -s ",^\.$(includedir)/python$(VER)/pyport.h$$,.$(includedir)/python$(VER)/pyport-64.h,p"
 EXTRA_PAX_ARGS += $(EXTRA_PAX_ARGS_$(MEMORYMODEL))
 
-
 post-configure-modulated:
 	for f in Modules/Setup \
 			Makefile \
@@ -253,8 +266,8 @@
 post-merge-modulated:
 	# Some checks
 	# Prevent things like https://www.opencsw.org/mantis/view.php?id=5040
-	test ! -f $(PKGROOT)/opt/csw/lib/python2.6/lib-dynload/_socket_failed.so
-	test -f $(PKGROOT)/opt/csw/lib/python2.6/lib-dynload/_socket.so
+	test ! -f $(PKGROOT)/opt/csw/lib/python$(VER)/lib-dynload/_socket_failed.so
+	test -f $(PKGROOT)/opt/csw/lib/python$(VER)/lib-dynload/_socket.so
 	# This is post-merge-modulated, which should not work. But it does.
 	ginstall -m 755 -d $(PKGROOT)$(includedir)/python$(VER)
 	ginstall -m 644 $(WORKDIR)/pyport.h $(PKGROOT)$(includedir)/python$(VER)/pyport.h

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the devel mailing list