On 05/11/2011 12:43 PM, Tom Eastep wrote: > On 05/11/2011 12:06 PM, Togan Muftuoglu wrote: >> Hi, >> >> On 04/17/2011 09:53 PM, Tom Eastep wrote: >>> >>> On Apr 17, 2011, at 8:02 AM, Tom Eastep wrote: >>>> Unfortunately, I've had to reverse the patch because it is incomplete: >>>> >>>> a) It only modifies the installers. >>>> b) It does not make similar modifications to the uninstallers. >>>> c) More importantly, it doesn't modify the code that actually uses the >>>> LIBEXEC setting. So: >>>> >>>> - /sbin/shorewall and /sbin/shorewall6 can't find compiler.pl >>>> - /sbin/shorewall and /sbin/shorewall6 can't find shorecaps on >>>> a remote firewall that runs the corresponding -lite package. >>>> >>> I think I have it now. Commit is cdf2014ce21996c9fa6410501adcf297d8bb6911 >> >> When I backport this commit to current 4.4.19.3 shorewall6 doesn't start >> and gives the following error >> >> /sbin/shorewall6: Error in line 306: >> PERL5LIB=/usr/lib/perl5/vendor_perl/5.12.1: No such file or directory >> >> >> However shorewall starts with no errors. >> >> Any ideas ? >> > > What is g_libexec being set to in /sbin/shorewall?
Nevermind -- I have reproduced the problem. The attached patch corrects it. -Tom -- Tom Eastep \ When I die, I want to go like my Grandfather who Shoreline, \ died peacefully in his sleep. Not screaming like Washington, USA \ all of the passengers in his car http://shorewall.net \________________________________________________
diff --git a/Shorewall/shorewall b/Shorewall/shorewall
index bdda284..df475ff 100755
--- a/Shorewall/shorewall
+++ b/Shorewall/shorewall
@@ -366,7 +366,9 @@ compiler() {
if [ $g_perllib = share/shorewall ]; then
$PERL $debugflags $g_libexec/shorewall/compiler.pl $options $@
else
- PERL5LIB=$g_perllib $PERL $debugflags $g_libexec/shorewall/compiler.pl $options $@
+ PERL5LIB=$g_perllib
+ export PERL5LIB
+ $PERL $debugflags $g_libexec/shorewall/compiler.pl $options $@
fi
}
signature.asc
Description: OpenPGP digital signature
------------------------------------------------------------------------------ Achieve unprecedented app performance and reliability What every C/C++ and Fortran developer should know. Learn how Intel has extended the reach of its next-generation tools to help boost performance applications - inlcuding clusters. http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________ Shorewall-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/shorewall-devel
