rpms/csound/F-11 csound-5.10.1-version-libcsnd.patch3, NONE, 1.1 csound.spec, 1.20, 1.21

Peter Robinson pbrobinson at fedoraproject.org
Wed May 13 19:05:09 UTC 2009


Author: pbrobinson

Update of /cvs/pkgs/rpms/csound/F-11
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv3332

Modified Files:
	csound.spec 
Added Files:
	csound-5.10.1-version-libcsnd.patch3 
Log Message:
Add missing patch


--- NEW FILE csound-5.10.1-version-libcsnd.patch3 ---
--- SConstruct.orig	2009-03-31 15:40:41.000000000 +0100
+++ SConstruct	2009-03-31 15:42:33.000000000 +0100
@@ -1326,6 +1326,8 @@
         os.spawnvp(os.P_WAIT, 'rm', ['rm', '-f', '_csnd.so'])
         # os.symlink('lib_csnd.so', '_csnd.so')
         csoundInterfacesEnvironment.Append(LINKFLAGS = ['-Wl,-rpath-link,.'])
+    # Copy here to avoid poluting SHLINKFLAGS for python
+    csndPythonEnvironment = csoundInterfacesEnvironment.Clone()
     if getPlatform() == 'darwin':
         if commonEnvironment['dynamicCsoundLibrary'] == '1':
             ilibName = "lib_csnd.dylib"
@@ -1344,22 +1346,20 @@
         os.spawnvp(os.P_WAIT, 'rm', ['rm', '-f', name])
         os.symlink(soname, name)
         linkflags = csoundInterfacesEnvironment['SHLINKFLAGS']
-        soflag = [ '-Wl,-soname=%s' % soname ]
-        extraflag = ['-L.']
+        linkflags += [ '-Wl,-soname=%s' % soname ]
         csoundInterfaces = csoundInterfacesEnvironment.SharedLibrary(
-            soname, csoundInterfacesSources, SHLINKFLAGS = linkflags+soflag+extraflag,
+            soname, csoundInterfacesSources, SHLINKFLAGS = linkflags,
             SHLIBPREFIX = '', SHLIBSUFFIX = '')
     else:
         csoundInterfaces = csoundInterfacesEnvironment.SharedLibrary('csnd', csoundInterfacesSources)
     Depends(csoundInterfaces, csoundLibrary)
     libs.append(csoundInterfaces)
     if pythonFound:
-        csoundInterfacesEnvironment.Append(LINKFLAGS = pythonLinkFlags)
+        csndPythonEnvironment.Append(LINKFLAGS = pythonLinkFlags)
         if getPlatform() != 'darwin':
-            csoundInterfacesEnvironment.Prepend(LIBPATH = pythonLibraryPath)
-            csoundInterfacesEnvironment.Prepend(LIBS = pythonLibs)
-        csoundInterfacesEnvironment.Append(CPPPATH = pythonIncludePath)
-        csndPythonEnvironment = csoundInterfacesEnvironment.Clone()
+            csndPythonEnvironment.Prepend(LIBPATH = pythonLibraryPath)
+            csndPythonEnvironment.Prepend(LIBS = pythonLibs)
+        csndPythonEnvironment.Append(CPPPATH = pythonIncludePath)
         fixCFlagsForSwig(csndPythonEnvironment)
         if getPlatform() == 'darwin':
             if commonEnvironment['dynamicCsoundLibrary'] == '1':
@@ -1372,7 +1372,8 @@
             csndPythonEnvironment.Append(LIBS = ['csnd'])
         csoundPythonInterface = csndPythonEnvironment.SharedObject(
             'interfaces/python_interface.i',
-            SWIGFLAGS = [swigflags, '-python', '-outdir', '.'])
+            SWIGFLAGS = [swigflags, '-python', '-outdir', '.'],
+            SHLINKFLAGS = '')
         csndPythonEnvironment.Clean('.', 'interfaces/python_interface_wrap.h')
         if getPlatform() == 'win32' and pythonLibs[0] < 'python24' and compilerGNU():
             Depends(csoundPythonInterface, pythonImportLibrary)
--- install.py.orig	2009-03-31 15:53:19.000000000 +0100
+++ install.py	2009-03-31 15:58:23.000000000 +0100
@@ -270,8 +270,7 @@
         elif i[:15] == 'libcsound64.so.':
             err = installLink(i, concatPath([libDir, 'libcsound64.so']))
         elif i == 'libcsnd.so':
-            err = installLink(concatPath([libDir, i]),
-                              concatPath([pythonDir2, '_csnd.so']))
+            err = installLink(i, concatPath([libDir, 'libcsnd.so']))
         elif i == 'lib_CsoundVST.so':
             err = installLink(concatPath([libDir, i]),
                               concatPath([pythonDir2, '_CsoundVST.so']))
@@ -287,7 +286,7 @@
 #err = installFile('opcodes.dir', pluginDir)
 installErrors = installErrors or err
 pluginList = findFiles('.', 'lib[A-Za-z].*\\.so')
-for i in ['libcsound.so', 'libcsound64.so']:
+for i in ['libcsound.so', 'libcsound64.so', 'libcsnd.so']:
     if i in pluginList:
         pluginList.remove(i)
 for i in pluginList:


Index: csound.spec
===================================================================
RCS file: /cvs/pkgs/rpms/csound/F-11/csound.spec,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -p -r1.20 -r1.21
--- csound.spec	13 May 2009 18:54:10 -0000	1.20
+++ csound.spec	13 May 2009 19:04:39 -0000	1.21
@@ -14,7 +14,7 @@
 Summary:       A sound synthesis language and library
 Name:          csound
 Version:       5.10.1
-Release:       4%{?dist}
+Release:       5%{?dist}
 URL:           http://csound.sourceforge.net/
 License:       LGPLv2+
 Group:         Applications/Multimedia
@@ -421,6 +421,9 @@ fi
 %doc manual/examples
 
 %changelog
+* Wed May 13 2009 Peter Robinson <pbrobinson at gmail.com> - 5.10.1-5
+- Add missing patch to branch
+
 * Tue May 12 2009 Peter Robinson <pbrobinson at gmail.com> - 5.10.1-4
 - Once more with feeling :-)
 




More information about the scm-commits mailing list