On 15/09/14 09:40, Emilio Pozuelo Monfort wrote: > So what should we do here? Should that patch be updated on > virtuoso-opensource? > Or can netstat be fixed on kbsd? > > This is blocking the imagemagick transition.
Hi; I've attached an updated patch for virtuoso-opensource. (There were two new tests needing this change). There's no simple 'fix' for netstat as implemented right now, because there are still cases (e.g in chroot jail) where reading /dev/mem is not expected to be allowed, even with setuid root. Regards, -- Steven Chamberlain ste...@pyro.eu.org
Author: Steven Chamberlain <ste...@pyro.eu.org> Author: José Manuel SantamarÃa Lema <panfa...@gmail.com> Description: This patch avoids FTBFSes on any architecture whose "netstat -an" output is not what we expect or just wrong, see: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=663010 NOTE: While this patch at a first sight looks a bit dangerous it isn't that bad: if virtuoso couldn't actually start in these make_vad.sh scripts, some *.vad files wouldn't be genereated; these *.vad files are being installed by the package, therefore if one of them is missing the package would fail to build anyway. --- a/binsrc/rdf_mappers/make_vad.sh +++ b/binsrc/rdf_mappers/make_vad.sh @@ -278,8 +278,8 @@ nows=`expr $nows + $nowh \* 60` if test $nows -ge $timeout then - LOG "***FAILED: Could not start Virtuoso Server within $timeout seconds" - exit 1 + LOG "***WARNING: Could not start Virtuoso Server within $timeout seconds" + return 1 fi done } --- a/binsrc/bpel/make_vad.sh +++ b/binsrc/bpel/make_vad.sh @@ -281,8 +281,8 @@ nows=`expr $nows + $nowh \* 60` if test $nows -ge $timeout then - LOG "***FAILED: Could not start Virtuoso Server within $timeout seconds" - exit 1 + LOG "***WARNING: Could not start Virtuoso Server within $timeout seconds" + return 1 fi done } --- a/binsrc/b3s/make_vad.sh +++ b/binsrc/b3s/make_vad.sh @@ -231,8 +231,8 @@ nows=`expr $nows + $nowh \* 60` if test $nows -ge $timeout then - LOG "***FAILED: Could not start Virtuoso Server within $timeout seconds" - exit 1 + LOG "***WARNING: Could not start Virtuoso Server within $timeout seconds" + return 1 fi done } --- a/binsrc/tutorial/make_vad.sh +++ b/binsrc/tutorial/make_vad.sh @@ -131,8 +131,8 @@ nows=`expr $nows + $nowh \* 60` if test $nows -ge $timeout then - LOG "***FAILED: Could not start $SERVER within $timeout seconds" - exit 1 + LOG "***WARNING: Could not start $SERVER within $timeout seconds" + return 1 fi done } --- a/binsrc/yacutia/mkvad.sh +++ b/binsrc/yacutia/mkvad.sh @@ -178,8 +178,8 @@ nows=`expr $nows + $nowh \* 60` if test $nows -ge $timeout then - ECHO "***FAILED: Could not start Virtuoso Server within $timeout seconds" - exit 1 + ECHO "***WARNING: Could not start Virtuoso Server within $timeout seconds" + return 1 fi done } --- a/binsrc/samples/demo/mkdoc.sh +++ b/binsrc/samples/demo/mkdoc.sh @@ -191,8 +191,8 @@ nows=`expr $nows + $nowh \* 60` if test $nows -ge $timeout then - ECHO "***FAILED: Could not start Virtuoso DOC Server within $timeout seconds" - exit 1 + ECHO "***WARNING: Could not start Virtuoso DOC Server within $timeout seconds" + return 1 fi done fi --- a/binsrc/samples/sparql_demo/make_vad.sh +++ b/binsrc/samples/sparql_demo/make_vad.sh @@ -141,8 +141,8 @@ nows=`expr $nows + $nowh \* 60` if test $nows -ge $timeout then - LOG "***FAILED: Could not start $SERVER within $timeout seconds" - exit 1 + LOG "***WARNING: Could not start $SERVER within $timeout seconds" + return 1 fi done } --- a/binsrc/sync/make_vad.sh +++ b/binsrc/sync/make_vad.sh @@ -131,8 +131,8 @@ nows=`expr $nows + $nowh \* 60` if test $nows -ge $timeout then - LOG "***FAILED: Could not start Virtuoso Server within $timeout seconds" - exit 1 + LOG "***WARNING: Could not start Virtuoso Server within $timeout seconds" + return 1 fi done } --- a/binsrc/isparql/make_vad.sh +++ b/binsrc/isparql/make_vad.sh @@ -144,8 +144,8 @@ nows=`expr $nows + $nowh \* 60` if test $nows -ge $timeout then - LOG "***FAILED: Could not start $SERVER within $timeout seconds" - exit 1 + LOG "***WARNING: Could not start $SERVER within $timeout seconds" + return 1 fi done } --- a/appsrc/ODS-Addressbook/make_vad.sh +++ b/appsrc/ODS-Addressbook/make_vad.sh @@ -170,8 +170,8 @@ nows=`expr $nows + $nowh \* 60` if test $nows -ge $timeout then - LOG "***FAILED: Could not start $SERVER within $timeout seconds" - exit 1 + LOG "***WARNING: Could not start $SERVER within $timeout seconds" + return 1 fi done } --- a/appsrc/ODS-Bookmark/make_vad.sh +++ b/appsrc/ODS-Bookmark/make_vad.sh @@ -170,8 +170,8 @@ nows=`expr $nows + $nowh \* 60` if test $nows -ge $timeout then - LOG "***FAILED: Could not start $SERVER within $timeout seconds" - exit 1 + LOG "***WARNING: Could not start $SERVER within $timeout seconds" + return 1 fi done } --- a/appsrc/ODS-Briefcase/make_vad.sh +++ b/appsrc/ODS-Briefcase/make_vad.sh @@ -181,8 +181,8 @@ nows=`expr $nows + $nowh \* 60` if test $nows -ge $timeout then - LOG "***FAILED: Could not start $SERVER within $timeout seconds" - exit 1 + LOG "***WARNING: Could not start $SERVER within $timeout seconds" + return 1 fi done } --- a/appsrc/ODS-Calendar/make_vad.sh +++ b/appsrc/ODS-Calendar/make_vad.sh @@ -169,8 +169,8 @@ nows=`expr $nows + $nowh \* 60` if test $nows -ge $timeout then - LOG "***FAILED: Could not start $SERVER within $timeout seconds" - exit 1 + LOG "***WARNING: Could not start $SERVER within $timeout seconds" + return 1 fi done } --- a/appsrc/ODS-Community/make_vad.sh +++ b/appsrc/ODS-Community/make_vad.sh @@ -165,8 +165,8 @@ nows=`expr $nows + $nowh \* 60` if test $nows -ge $timeout then - LOG "***FAILED: Could not start $SERVER within $timeout seconds" - exit 1 + LOG "***WARNING: Could not start $SERVER within $timeout seconds" + return 1 fi done } --- a/appsrc/ODS-Discussion/make_vad.sh +++ b/appsrc/ODS-Discussion/make_vad.sh @@ -137,8 +137,8 @@ nows=`expr $nows + $nowh \* 60` if test $nows -ge $timeout then - LOG "***FAILED: Could not start Virtuoso Server within $timeout seconds" - exit 1 + LOG "***WARNING: Could not start Virtuoso Server within $timeout seconds" + return 1 fi done } --- a/appsrc/ODS-FeedManager/make_vad.sh +++ b/appsrc/ODS-FeedManager/make_vad.sh @@ -169,8 +169,8 @@ nows=`expr $nows + $nowh \* 60` if test $nows -ge $timeout then - LOG "***FAILED: Could not start $SERVER within $timeout seconds" - exit 1 + LOG "***WARNING: Could not start $SERVER within $timeout seconds" + return 1 fi done } --- a/appsrc/ODS-Framework/make_vad.sh +++ b/appsrc/ODS-Framework/make_vad.sh @@ -167,8 +167,8 @@ nows=`expr $nows + $nowh \* 60` if test $nows -ge $timeout then - LOG "***FAILED: Could not start $SERVER within $timeout seconds" - exit 1 + LOG "***WARNING: Could not start $SERVER within $timeout seconds" + return 1 fi done } --- a/appsrc/ODS-Framework/oauth/make_vad.sh +++ b/appsrc/ODS-Framework/oauth/make_vad.sh @@ -215,8 +215,8 @@ nows=`expr $nows + $nowh \* 60` if test $nows -ge $timeout then - LOG "***FAILED: Could not start Virtuoso Server within $timeout seconds" - exit 1 + LOG "***WARNING: Could not start Virtuoso Server within $timeout seconds" + return 1 fi done } --- a/appsrc/ODS-Gallery/make_vad.sh +++ b/appsrc/ODS-Gallery/make_vad.sh @@ -153,8 +153,8 @@ nows=`expr $nows + $nowh \* 60` if test $nows -ge $timeout then - LOG "***FAILED: Could not start $SERVER within $timeout seconds" - exit 1 + LOG "***WARNING: Could not start $SERVER within $timeout seconds" + return 1 fi done } --- a/appsrc/ODS-Polls/make_vad.sh +++ b/appsrc/ODS-Polls/make_vad.sh @@ -157,8 +157,8 @@ nows=`expr $nows + $nowh \* 60` if test $nows -ge $timeout then - LOG "***FAILED: Could not start $SERVER within $timeout seconds" - exit 1 + LOG "***WARNING: Could not start $SERVER within $timeout seconds" + return 1 fi done } --- a/appsrc/ODS-WebMail/make_vad.sh +++ b/appsrc/ODS-WebMail/make_vad.sh @@ -168,8 +168,8 @@ nows=`expr $nows + $nowh \* 60` if test $nows -ge $timeout then - LOG "***FAILED: Could not start $SERVER within $timeout seconds" - exit 1 + LOG "***WARNING: Could not start $SERVER within $timeout seconds" + return 1 fi done } --- a/appsrc/ODS-Wiki/make_vad.sh +++ b/appsrc/ODS-Wiki/make_vad.sh @@ -159,8 +159,8 @@ nows=`expr $nows + $nowh \* 60` if test $nows -ge $timeout then - LOG "***FAILED: Could not start Virtuoso Server within $timeout seconds" - exit 1 + LOG "***WARNING: Could not start Virtuoso Server within $timeout seconds" + return 1 fi done } --- a/binsrc/hosting/mono/tests/tclrsrv.sh +++ b/binsrc/hosting/mono/tests/tclrsrv.sh @@ -241,8 +241,8 @@ nows=`expr $nows + $nowh \* 60` if test $nows -ge $timeout then - LOG "***FAILED: Could not start Virtuoso Server within $timeout seconds" - exit 1 + LOG "***WARNING: Could not start Virtuoso Server within $timeout seconds" + return 1 fi done } --- a/binsrc/samples/demo/mkdemo.sh +++ b/binsrc/samples/demo/mkdemo.sh @@ -170,8 +170,8 @@ nows=`expr $nows + $nowh \* 60` if test $nows -ge $timeout then - ECHO "***FAILED: Could not start Virtuoso DEMO Server within $timeout seconds" - exit 1 + ECHO "***WARNING: Could not start Virtuoso DEMO Server within $timeout seconds" + return 1 fi done } --- a/binsrc/samples/xpath/files2dav.sh +++ b/binsrc/samples/xpath/files2dav.sh @@ -121,8 +121,8 @@ nows=`expr $nows + $nowh \* 60` if test $nows -ge $timeout then - ECHO "***FAILED: Could not start Virtuoso DEMO Server within $timeout seconds" - exit 1 + ECHO "***WARNING: Could not start Virtuoso DEMO Server within $timeout seconds" + return 1 fi done } --- a/binsrc/samples/xquery/files2dav.sh +++ b/binsrc/samples/xquery/files2dav.sh @@ -121,8 +121,8 @@ nows=`expr $nows + $nowh \* 60` if test $nows -ge $timeout then - ECHO "***FAILED: Could not start Virtuoso DEMO Server within $timeout seconds" - exit 1 + ECHO "***WARNING: Could not start Virtuoso DEMO Server within $timeout seconds" + return 1 fi done } --- a/binsrc/tests/biftest/thook.sh +++ b/binsrc/tests/biftest/thook.sh @@ -154,8 +154,8 @@ nows=`expr $nows + $nowh \* 60` if test $nows -ge $timeout then - LOG "***FAILED: Could not start Virtuoso Server within $timeout seconds" - exit 1 + LOG "***WARNING: Could not start Virtuoso Server within $timeout seconds" + return 1 fi done } --- a/binsrc/tests/suite/test_fn.sh +++ b/binsrc/tests/suite/test_fn.sh @@ -334,8 +334,8 @@ nows=`expr $nows + $nowh \* 60` if test $nows -ge $timeout then - LOG "***FAILED: Could not start Virtuoso Server within $timeout seconds" - exit 1 + LOG "***WARNING: Could not start Virtuoso Server within $timeout seconds" + return 1 fi done } --- a/binsrc/vsp/admin/debug/make_vad.sh +++ b/binsrc/vsp/admin/debug/make_vad.sh @@ -97,8 +97,8 @@ nows=`expr $nows + $nowh \* 60` if test $nows -ge $timeout then - LOG "***FAILED: Could not start Virtuoso Server within $timeout seconds" - exit 1 + LOG "***WARNING: Could not start Virtuoso Server within $timeout seconds" + return 1 fi done } --- a/binsrc/vspx/suite/vspx_suite.sh +++ b/binsrc/vspx/suite/vspx_suite.sh @@ -66,8 +66,8 @@ nows=`expr $nows + $nowh \* 60` if test $nows -ge $timeout then - LOG "***FAILED: Could not start Virtuoso Server within $timeout seconds" - exit 1 + LOG "***WARNING: Could not start Virtuoso Server within $timeout seconds" + return 1 fi done } --- a/appsrc/ODS-Blog/make_vad.sh +++ b/appsrc/ODS-Blog/make_vad.sh @@ -140,8 +140,8 @@ nows=`expr $nows + $nowh \* 60` if test $nows -ge $timeout then - LOG "***FAILED: Could not start $SERVER within $timeout seconds" - exit 1 + LOG "***WARNING: Could not start $SERVER within $timeout seconds" + return 1 fi done } --- a/binsrc/samples/demo/make_vad.sh +++ b/binsrc/samples/demo/make_vad.sh @@ -142,8 +142,8 @@ nows=`expr $nows + $nowh \* 60` if test $nows -ge $timeout then - LOG "***FAILED: Could not start $SERVER within $timeout seconds" - exit 1 + LOG "***WARNING: Could not start $SERVER within $timeout seconds" + return 1 fi done } --- a/binsrc/dbpedia/make_vad.sh +++ b/binsrc/dbpedia/make_vad.sh @@ -223,8 +223,8 @@ nows=`expr $nows + $nowh \* 60` if test $nows -ge $timeout then - LOG "***FAILED: Could not start Virtuoso Server within $timeout seconds" - exit 1 + LOG "***WARNING: Could not start Virtuoso Server within $timeout seconds" + return 1 fi done } --- a/binsrc/rdb2rdf/make_vad.sh +++ b/binsrc/rdb2rdf/make_vad.sh @@ -150,8 +150,8 @@ nows=`expr $nows + $nowh \* 60` if test $nows -ge $timeout then - LOG "***FAILED: Could not start $SERVER within $timeout seconds" - exit 1 + LOG "***WARNING: Could not start $SERVER within $timeout seconds" + return 1 fi done }
signature.asc
Description: OpenPGP digital signature