Commit 85396b40 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

* use our own ncurses on legacy varnish.

* improve tests.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@40673 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b14dc3df
...@@ -18,6 +18,9 @@ extends = ...@@ -18,6 +18,9 @@ extends =
recipe = hexagonit.recipe.cmmi recipe = hexagonit.recipe.cmmi
url = http://sourceforge.net/projects/varnish/files/varnish/2.0.6/varnish-2.0.6.tar.gz/download url = http://sourceforge.net/projects/varnish/files/varnish/2.0.6/varnish-2.0.6.tar.gz/download
md5sum = d91dc21c636db61c69b5e8f061c5bb95 md5sum = d91dc21c636db61c69b5e8f061c5bb95
environment =
CPPFLAGS =-I${ncurses:location}/include
LDFLAGS =-Wl,-rpath -Wl,${ncurses:location}/lib
# http://www.varnish-cache.org/trac/ticket/801 # http://www.varnish-cache.org/trac/ticket/801
[varnish-2.1.4-r5467-patch] [varnish-2.1.4-r5467-patch]
...@@ -32,8 +35,6 @@ recipe = hexagonit.recipe.cmmi ...@@ -32,8 +35,6 @@ recipe = hexagonit.recipe.cmmi
url = http://www.varnish-software.com/sites/default/files/varnish-2.1.4.tar.gz url = http://www.varnish-software.com/sites/default/files/varnish-2.1.4.tar.gz
md5sum = e794a37b6fbb786a083c0946103ae103 md5sum = e794a37b6fbb786a083c0946103ae103
patch-options = -p4 patch-options = -p4
configure-options =
--with-pcre-config=${pcre:location}/bin
patches = patches =
${varnish-2.1.4-r5467-patch:location}/${varnish-2.1.4-r5467-patch:filename} ${varnish-2.1.4-r5467-patch:location}/${varnish-2.1.4-r5467-patch:filename}
environment = environment =
......
...@@ -1409,6 +1409,19 @@ class AssertW3m(AssertSoftwareMixin): ...@@ -1409,6 +1409,19 @@ class AssertW3m(AssertSoftwareMixin):
class AssertVarnish(AssertSoftwareMixin): class AssertVarnish(AssertSoftwareMixin):
def test_ld_varnishd(self): def test_ld_varnishd(self):
self.assertLibraryList('parts/varnish/sbin/varnishd', [
'libc',
'libdl',
'libm',
'libnsl',
'libpthread',
'libvarnish',
'libvarnishcompat',
'libvcl',
], [
'ncurses',
'varnish',
])
self.assertLibraryList('parts/varnish-2.1/sbin/varnishd', [ self.assertLibraryList('parts/varnish-2.1/sbin/varnishd', [
'libc', 'libc',
'libdl', 'libdl',
...@@ -1424,6 +1437,17 @@ class AssertVarnish(AssertSoftwareMixin): ...@@ -1424,6 +1437,17 @@ class AssertVarnish(AssertSoftwareMixin):
]) ])
def test_ld_varnishtop(self): def test_ld_varnishtop(self):
self.assertLibraryList('parts/varnish/bin/varnishtop', [
'libc',
'libncurses',
'libpthread',
'libvarnish',
'libvarnishapi',
'libvarnishcompat',
], [
'ncurses',
'varnish',
])
self.assertLibraryList('parts/varnish-2.1/bin/varnishtop', [ self.assertLibraryList('parts/varnish-2.1/bin/varnishtop', [
'libc', 'libc',
'libncurses', 'libncurses',
...@@ -1436,6 +1460,26 @@ class AssertVarnish(AssertSoftwareMixin): ...@@ -1436,6 +1460,26 @@ class AssertVarnish(AssertSoftwareMixin):
'varnish-2.1', 'varnish-2.1',
]) ])
def test_ld_libvarnish(self):
self.assertLibraryList('parts/varnish/lib/libvarnish.so', [
'libc',
'libm',
'libnsl',
'librt',
], [
'ncurses',
])
self.assertLibraryList('parts/varnish-2.1/lib/libvarnish.so', [
'libc',
'libm',
'libnsl',
'libpcre',
'librt',
], [
'ncurses',
'pcre',
])
class AssertLibrsync(AssertSoftwareMixin): class AssertLibrsync(AssertSoftwareMixin):
def test_ld_rdiff(self): def test_ld_rdiff(self):
self.assertLibraryList('parts/librsync/bin/rdiff', [ self.assertLibraryList('parts/librsync/bin/rdiff', [
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment