[Erp5-report] r40600 luke - in /erp5/trunk/buildout: software-profiles/ tests/

nobody at svn.erp5.org nobody at svn.erp5.org
Wed Nov 24 16:12:45 CET 2010


Author: luke
Date: Wed Nov 24 16:12:45 2010
New Revision: 40600

URL: http://svn.erp5.org?rev=40600&view=rev
Log:
 - build minimal cyrus-sasl implementation

Note: Cyrus sasl plugin build system ignores any parameters passed by caller
and ends up with wrongly linked plugins (lack of rpath). In case of missing
plugins which are required, they have to be analysed case by case.

Modified:
    erp5/trunk/buildout/software-profiles/cyrus-sasl.cfg
    erp5/trunk/buildout/tests/assertSoftware.py

Modified: erp5/trunk/buildout/software-profiles/cyrus-sasl.cfg
URL: http://svn.erp5.org/erp5/trunk/buildout/software-profiles/cyrus-sasl.cfg?rev=40600&r1=40599&r2=40600&view=diff
==============================================================================
--- erp5/trunk/buildout/software-profiles/cyrus-sasl.cfg [utf8] (original)
+++ erp5/trunk/buildout/software-profiles/cyrus-sasl.cfg [utf8] Wed Nov 24 16:12:45 2010
@@ -2,9 +2,6 @@
 parts =
   cyrus-sasl
 extends =
-  ../software-profiles/gdbm.cfg
-  ../software-profiles/libdb.cfg
-  ../software-profiles/openssl.cfg
   ../software-profiles/zlib.cfg
 
 [cyrus-sasl-gcc4.4-patch]
@@ -26,14 +23,18 @@ patch-options =
   -p1
 
 configure-options =
-  --with-openssl=${openssl:location}
-  --with-bdb-libdir=${libdb:location}/lib
-  --with-bdb-incdir=${libdb:location}/include
-  --with-gdbm=${gdbm:location}
+  --disable-digest
+  --disable-gssapi
+  --disable-otp
+  --with-dblib=none
+  --without-des
+  --without-openssl
+  --without-pam
+  --without-saslauthd
 # it seems that parallel build sometimes fails.
 make-options =
   -j1
 
 environment =
-  CPPFLAGS=-I${openssl:location}/include -I${gdbm:location}/include -I${zlib:location}/include
-  LDFLAGS=-L${openssl:location}/lib -Wl,-rpath -Wl,${openssl:location}/lib -L${libdb:location}/lib -Wl,-rpath -Wl,${libdb:location}/lib -L${gdbm:location}/lib -Wl,-rpath -Wl,${gdbm:location}/lib -L${zlib:location}/lib -Wl,-rpath -Wl,${zlib:location}/lib
+  CPPFLAGS=-I${zlib:location}/include
+  LDFLAGS=-L${zlib:location}/lib -Wl,-rpath -Wl,${zlib:location}/lib

Modified: erp5/trunk/buildout/tests/assertSoftware.py
URL: http://svn.erp5.org/erp5/trunk/buildout/tests/assertSoftware.py?rev=40600&r1=40599&r2=40600&view=diff
==============================================================================
--- erp5/trunk/buildout/tests/assertSoftware.py [utf8] (original)
+++ erp5/trunk/buildout/tests/assertSoftware.py [utf8] Wed Nov 24 16:12:45 2010
@@ -1640,37 +1640,28 @@ class AssertOpenssl(AssertSoftwareMixin)
     self.assertEqual(sorted(expected_rpath_list), elf_dict['runpath_list'])
 
 class AssertCyrusSasl(AssertSoftwareMixin):
-  def test_ld_libsasl2(self):
-    elf_dict = readElfAsDict('parts/cyrus-sasl/lib/libsasl2.so')
+  def test_ld_pluginviewer(self):
+    elf_dict = readElfAsDict('parts/cyrus-sasl/sbin/pluginviewer')
     self.assertEqual(sorted([
       'libc',
       'libdl',
       'libresolv',
+      'libsasl2',
       ]),
         elf_dict['library_list'])
     soft_dir = os.path.join(os.path.abspath(os.curdir), 'parts')
     expected_rpath_list = [os.path.join(soft_dir, software, 'lib') for
         software in [
+          'cyrus-sasl',
+          'zlib',
           ]]
     self.assertEqual(sorted(expected_rpath_list), elf_dict['runpath_list'])
 
-  def test_ld_sasl2_libanonymous(self):
-    elf_dict = readElfAsDict('parts/cyrus-sasl/lib/sasl2/libanonymous.so')
-    self.assertEqual(sorted([
-      'libc',
-      'libresolv',
-      ]),
-        elf_dict['library_list'])
-    soft_dir = os.path.join(os.path.abspath(os.curdir), 'parts')
-    expected_rpath_list = [os.path.join(soft_dir, software, 'lib') for
-        software in [
-          ]]
-    self.assertEqual(sorted(expected_rpath_list), elf_dict['runpath_list'])
-
-  def test_ld_sasl2_libcrammd5(self):
-    elf_dict = readElfAsDict('parts/cyrus-sasl/lib/sasl2/libcrammd5.so')
+  def test_ld_libsasl2(self):
+    elf_dict = readElfAsDict('parts/cyrus-sasl/lib/libsasl2.so')
     self.assertEqual(sorted([
       'libc',
+      'libdl',
       'libresolv',
       ]),
         elf_dict['library_list'])
@@ -1680,33 +1671,29 @@ class AssertCyrusSasl(AssertSoftwareMixi
           ]]
     self.assertEqual(sorted(expected_rpath_list), elf_dict['runpath_list'])
 
-  def test_ld_sasl2_libdigestmd5(self):
-    elf_dict = readElfAsDict('parts/cyrus-sasl/lib/sasl2/libdigestmd5.so')
+  def test_ld_sasl2_libanonymous(self):
+    elf_dict = readElfAsDict('parts/cyrus-sasl/lib/sasl2/libanonymous.so')
     self.assertEqual(sorted([
       'libc',
-      'libcrypto',
       'libresolv',
       ]),
         elf_dict['library_list'])
     soft_dir = os.path.join(os.path.abspath(os.curdir), 'parts')
     expected_rpath_list = [os.path.join(soft_dir, software, 'lib') for
         software in [
-          'openssl',
           ]]
     self.assertEqual(sorted(expected_rpath_list), elf_dict['runpath_list'])
 
-  def test_ld_sasl2_libotp(self):
-    elf_dict = readElfAsDict('parts/cyrus-sasl/lib/sasl2/libotp.so')
+  def test_ld_sasl2_libcrammd5(self):
+    elf_dict = readElfAsDict('parts/cyrus-sasl/lib/sasl2/libcrammd5.so')
     self.assertEqual(sorted([
       'libc',
-      'libcrypto',
       'libresolv',
       ]),
         elf_dict['library_list'])
     soft_dir = os.path.join(os.path.abspath(os.curdir), 'parts')
     expected_rpath_list = [os.path.join(soft_dir, software, 'lib') for
         software in [
-          'openssl',
           ]]
     self.assertEqual(sorted(expected_rpath_list), elf_dict['runpath_list'])
 
@@ -1724,21 +1711,6 @@ class AssertCyrusSasl(AssertSoftwareMixi
           ]]
     self.assertEqual(sorted(expected_rpath_list), elf_dict['runpath_list'])
 
-  def test_ld_sasl2_libsasldb(self):
-    elf_dict = readElfAsDict('parts/cyrus-sasl/lib/sasl2/libsasldb.so')
-    self.assertEqual(sorted([
-      'libc',
-      'libdb-4.5',
-      'libresolv',
-      ]),
-        elf_dict['library_list'])
-    soft_dir = os.path.join(os.path.abspath(os.curdir), 'parts')
-    expected_rpath_list = [os.path.join(soft_dir, software, 'lib') for
-        software in [
-          'libdb',
-          ]]
-    self.assertEqual(sorted(expected_rpath_list), elf_dict['runpath_list'])
-
 class AssertPython26(AssertSoftwareMixin):
   def test_ld_dyn_locale(self):
     elf_dict = readElfAsDict('parts/python2.6/lib/python2.6/lib-dynload/_locale.so')




More information about the Erp5-report mailing list