[csw-devel] SF.net SVN: gar:[17870] csw/mgar/pkg/netsnmp/trunk

cgrzemba at users.sourceforge.net cgrzemba at users.sourceforge.net
Wed Apr 25 14:56:35 CEST 2012


Revision: 17870
          http://gar.svn.sourceforge.net/gar/?rev=17870&view=rev
Author:   cgrzemba
Date:     2012-04-25 12:56:35 +0000 (Wed, 25 Apr 2012)
Log Message:
-----------
netsnmp/trunk: fix LDFLAGS for build python extension

Modified Paths:
--------------
    csw/mgar/pkg/netsnmp/trunk/Makefile

Added Paths:
-----------
    csw/mgar/pkg/netsnmp/trunk/files/setup-py.patch

Modified: csw/mgar/pkg/netsnmp/trunk/Makefile
===================================================================
--- csw/mgar/pkg/netsnmp/trunk/Makefile	2012-04-25 12:46:27 UTC (rev 17869)
+++ csw/mgar/pkg/netsnmp/trunk/Makefile	2012-04-25 12:56:35 UTC (rev 17870)
@@ -26,18 +26,22 @@
 PATCHFILES = perl_makefiles.diff
 # Patch for python module
 PATCHFILES += Makefile.in.diff
+PATCHFILES += setup-py.patch
 
 VENDOR_URL = http://www.net-snmp.org/
 
 BUILD_DEP_PKGS = CSWpysetuptools
-# RUNTIME_DEP_PKGS_CSWnetsnmp += CSWpython
-RUNTIME_DEP_PKGS_CSWnetsnmp += CSWlibssl0-9-8
-RUNTIME_DEP_PKGS_CSWnetsnmp += CSWperl
 
 PACKAGES += CSWnetsnmp-dev
 CATALOGNAME_CSWnetsnmp-dev = netsnmp_dev
 SPKG_DESC_CSWnetsnmp-dev += $(DESCRIPTION), development files
 PKGFILES_CSWnetsnmp-dev += $(PKGFILES_DEVEL)
+CHECKPKG_OVERRIDES_CSWnetsnmp-dev += file-with-bad-content|/usr/local|root/opt/csw/share/man/man3/NetSNMP::TrapReceiver.3perl
+RUNTIME_DEP_PKGS_CSWnetsnmp-dev += CSWlibnetsnmphelpers25
+RUNTIME_DEP_PKGS_CSWnetsnmp-dev += CSWlibnetsnmpmibs25
+RUNTIME_DEP_PKGS_CSWnetsnmp-dev += CSWlibnetsnmptrapd25
+RUNTIME_DEP_PKGS_CSWnetsnmp-dev += CSWlibnetsnmp25
+RUNTIME_DEP_PKGS_CSWnetsnmp-dev += CSWlibnetsnmpagent25
 
 PACKAGES += CSWlibnetsnmp25
 CATALOGNAME_CSWlibnetsnmp25 = libnetsnmp25
@@ -48,6 +52,7 @@
 CATALOGNAME_CSWlibnetsnmpagent25 = libnetsnmpagent25
 SPKG_DESC_CSWlibnetsnmpagent25 += $(DESCRIPTION), libsnmpagent.so.25
 PKGFILES_CSWlibnetsnmpagent25 += $(call baseisadirs,$(libdir),libnetsnmpagent\.so\.25(\.\d+)*)
+RUNTIME_DEP_PKGS_CSWlibnetsnmpagent25 += CSWlibnetsnmp25
 
 PACKAGES += CSWlibnetsnmphelpers25
 CATALOGNAME_CSWlibnetsnmphelpers25 = libnetsnmphelpers25
@@ -58,22 +63,54 @@
 CATALOGNAME_CSWlibnetsnmpmibs25 = libnetsnmpmibs25
 SPKG_DESC_CSWlibnetsnmpmibs25 += $(DESCRIPTION), libsnmpmibs.so.25
 PKGFILES_CSWlibnetsnmpmibs25 += $(call baseisadirs,$(libdir),libnetsnmpmibs\.so\.25(\.\d+)*)
+RUNTIME_DEP_PKGS_CSWlibnetsnmpmibs25 += CSWlibnetsnmp25
+RUNTIME_DEP_PKGS_CSWlibnetsnmpmibs25 += CSWlibnetsnmpagent25
 
 PACKAGES += CSWlibnetsnmptrapd25
 CATALOGNAME_CSWlibnetsnmptrapd25 = libnetsnmptrapd25
 SPKG_DESC_CSWlibnetsnmptrapd25 += $(DESCRIPTION), libsnmptrapd.so.25
 PKGFILES_CSWlibnetsnmptrapd25 += $(call baseisadirs,$(libdir),libnetsnmptrapd\.so\.25(\.\d+)*)
+RUNTIME_DEP_PKGS_CSWlibnetsnmptrapd25 += CSWlibnetsnmpmibs25
+RUNTIME_DEP_PKGS_CSWlibnetsnmptrapd25 += CSWlibnetsnmp25
+RUNTIME_DEP_PKGS_CSWlibnetsnmptrapd25 += CSWlibnetsnmpagent25
 
+EXTRA_MERGE_EXCLUDE_FILES = .*/perllocal.pod
 PACKAGES += CSWpmnetsnmp
 SPKG_DESC_CSWpmnetsnmp+= $(DESCRIPTION), Perl binding
-PKGFILES_CSWpmnetsnmp += $(libdir)/perl
+PKGFILES_CSWpmnetsnmp += $(libdir)/perl.*
+RUNTIME_DEP_PKGS_CSWpmnetsnmp += CSWperl
+RUNTIME_DEP_PKGS_CSWpmnetsnmp += CSWlibnetsnmpmibs25
+RUNTIME_DEP_PKGS_CSWpmnetsnmp += CSWlibnetsnmptrapd25
+RUNTIME_DEP_PKGS_CSWpmnetsnmp += CSWlibnetsnmp25
+RUNTIME_DEP_PKGS_CSWpmnetsnmp += CSWlibnetsnmpagent25
 
-PACKAGES += CSWpynetsnmp
-SPKG_DESC_CSWpynetsnmp += $(DESCRIPTION), Python binding
-PKGFILES_CSWpynetsnmp = $(libdir)/python.*
+CHECKPKG_OVERRIDES_CSWpmnetsnmp += file-with-bad-content|/usr/local|root/opt/csw/lib/perl/site_perl/NetSNMP/TrapReceiver.pm
 
+EXTRA_MERGE_EXCLUDE_FILES = .*/*.pyc
+PACKAGES += CSWpy-netsnmp
+OBSOLETED_BY_CSWpy-netsnmp = CSWnetsnmp-py
+SPKG_DESC_CSWpy-netsnmp += $(DESCRIPTION), Python binding
+PKGFILES_CSWpy-netsnmp = $(libdir)/python.*
+RUNTIME_DEP_PKGS_CSWpy-netsnmp += CSWpython
+RUNTIME_DEP_PKGS_CSWpy-netsnmp += CSWlibpython2-6-1-0
+RUNTIME_DEP_PKGS_CSWpy-netsnmp += CSWlibnetsnmp25
+
 PACKAGES += CSWnetsnmp
 SPKG_DESC_CSWnetsnmp += $(DESCRIPTION), Base
+RUNTIME_DEP_PKGS_CSWnetsnmp += CSWlibnetsnmpmibs25
+RUNTIME_DEP_PKGS_CSWnetsnmp += CSWlibnetsnmptrapd25
+RUNTIME_DEP_PKGS_CSWnetsnmp += CSWlibnetsnmp25
+RUNTIME_DEP_PKGS_CSWnetsnmp += CSWlibnetsnmpagent25
+RUNTIME_DEP_PKGS_CSWnetsnmp += CSWperl
+CHECKPKG_OVERRIDES_CSWnetsnmp += file-with-bad-content|/usr/local|root/opt/csw/share/man/man1/snmpcmd.1
+CHECKPKG_OVERRIDES_CSWnetsnmp += file-with-bad-content|/usr/local|root/opt/csw/share/man/man1/snmpconf.1
+CHECKPKG_OVERRIDES_CSWnetsnmp += file-with-bad-content|/usr/local|root/opt/csw/share/man/man8/snmpd.8
+CHECKPKG_OVERRIDES_CSWnetsnmp += file-with-bad-content|/usr/local|root/opt/csw/share/man/man5/snmpd.conf.5
+CHECKPKG_OVERRIDES_CSWnetsnmp += file-with-bad-content|/usr/local|root/opt/csw/share/man/man3/NetSNMP::TrapReceiver.3perl
+CHECKPKG_OVERRIDES_CSWnetsnmp += file-with-bad-content|/usr/local|root/opt/csw/bin/traptoemail
+CHECKPKG_OVERRIDES_CSWnetsnmp += file-with-bad-content|/usr/local|root/opt/csw/bin/ipf-mod.pl
+CHECKPKG_OVERRIDES_CSWnetsnmp += file-with-bad-content|/usr/local|root/opt/csw/share/snmp/mib2c-data/mfd-makefile.m2m
+CHECKPKG_OVERRIDES_CSWnetsnmp += file-with-bad-content|/usr/share|root/opt/csw/bin/net-snmp-cert
 
 # BUILD64 = 1
 
@@ -125,21 +162,10 @@
 INSTALL_OVERRIDE_VARS += SHELL
 INSTALL_OVERRIDE_VAR_SHELL = /opt/csw/bin/bash
 
-EXTRA_MERGE_EXCLUDE_FILES = .*/perllocal.pod
 
 # Overriding specific libs is not possible right now. Refine when finished.
 # CHECKPKG_OVERRIDES_CSWnetsnmp  = symbol-not-found|opt/csw/lib/python/site-packages/netsnmp/client_intf.so
 # CHECKPKG_OVERRIDES_CSWnetsnmp  = symbol-not-found
-CHECKPKG_OVERRIDES_CSWnetsnmp += file-with-bad-content|/usr/local|root/opt/csw/lib/perl/site_perl/NetSNMP/TrapReceiver.pm
-CHECKPKG_OVERRIDES_CSWnetsnmp += file-with-bad-content|/usr/local|root/opt/csw/bin/traptoemail
-CHECKPKG_OVERRIDES_CSWnetsnmp += file-with-bad-content|/usr/local|root/opt/csw/bin/ipf-mod.pl
-CHECKPKG_OVERRIDES_CSWnetsnmp += file-with-bad-content|/usr/local|root/opt/csw/share/snmp/mib2c-data/mfd-makefile.m2m
-CHECKPKG_OVERRIDES_CSWnetsnmp += file-with-bad-content|/usr/local|root/opt/csw/share/man/man1/snmpcmd.1
-CHECKPKG_OVERRIDES_CSWnetsnmp += file-with-bad-content|/usr/local|root/opt/csw/share/man/man1/snmpconf.1
-CHECKPKG_OVERRIDES_CSWnetsnmp += file-with-bad-content|/usr/local|root/opt/csw/share/man/man8/snmpd.8
-CHECKPKG_OVERRIDES_CSWnetsnmp += file-with-bad-content|/usr/local|root/opt/csw/share/man/man5/snmpd.conf.5
-CHECKPKG_OVERRIDES_CSWnetsnmp += file-with-bad-content|/usr/local|root/opt/csw/share/man/man3/NetSNMP::TrapReceiver.3perl
-CHECKPKG_OVERRIDES_CSWnetsnmp += file-with-bad-content|/usr/share|root/opt/csw/bin/net-snmp-cert
 # override bad-rpath-entry becasue of /opt/csw/lib/ in perl module libs
 CHECKPKG_OVERRIDES_CSWnetsnmp += bad-rpath-entry
 
@@ -153,6 +179,8 @@
 # if find the header in /opt/csw/include first use the old header from
 # installed older version, thats why remove /opt/csw/include
 CFLAGS := $(filter-out -I/opt/csw/include,$(CFLAGS))
+LDFLAGS := $(filter-out -R/opt/csw/lib% -L/opt/csw/lib,$(LDFLAGS))
+# LDFLAGS := $(filter-out -L/opt/csw/lib,$(LDFLAGS))
 
 #post-install-isa-sparcv8:
 #	( cd $(INSTALLISADIR)$(libdir) ; gzip -dc $(DESTDIR)/../../$(FILEDIR)/old_libs_s.tar.gz |tar xf -)

Added: csw/mgar/pkg/netsnmp/trunk/files/setup-py.patch
===================================================================
--- csw/mgar/pkg/netsnmp/trunk/files/setup-py.patch	                        (rev 0)
+++ csw/mgar/pkg/netsnmp/trunk/files/setup-py.patch	2012-04-25 12:56:35 UTC (rev 17870)
@@ -0,0 +1,11 @@
+--- a/python/setup.py
++++ b/python/setup.py
+@@ -41,6 +41,7 @@ setup(
+        Extension("netsnmp.client_intf", ["netsnmp/client_intf.c"],
+                  library_dirs=libdirs,
+                  include_dirs=incdirs,
+-                 libraries=libs )
++                 libraries=libs,
++                 extra_link_args = ["-R/opt/csw/lib/$ISALIST","-R/opt/csw/lib"] )
+        ]
+     )

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