ports/83067: fix databases/slony1 to build on systems without perl

Vivek Khera vivek at khera.org
Wed Jul 6 15:50:15 UTC 2005


>Number:         83067
>Category:       ports
>Synopsis:       fix databases/slony1 to build on systems without perl
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jul 06 15:50:14 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Vivek Khera
>Release:        FreeBSD 4.11-STABLE i386
>Organization:
>Environment:
System: FreeBSD lorax.kcilink.com 4.11-STABLE FreeBSD 4.11-STABLE #24: Fri May 13 16:08:06 EDT 2005 vivek at lorax.kcilink.com:/u/lorax1/usr/obj/u/lorax1/usr/src/sys/LORAX i386


	
>Description:
	

slony1 fails to build on systems without perl, even if the non-perl bits are
not requested.  this is a bug in the slony build system and is worked around
locally by the patch here.

also, the sample rc script failed to background the daemon process. this is
fixed as well.

i don't beleve this requires a bump in PORTREVISION as anyone who is running
it already won't be affected by these changes.

>How-To-Repeat:
	
>Fix:

	

The file patch-tools::altperl::Makefile is added by this fix.


--- /dev/null	Wed Jul  6 11:34:53 2005
+++ files/patch-tools::altperl::Makefile	Wed Jul  6 11:33:24 2005
@@ -0,0 +1,19 @@
+--- tools/altperl/Makefile.dist	Wed Jul  6 11:31:10 2005
++++ tools/altperl/Makefile	Wed Jul  6 11:31:45 2005
+@@ -13,6 +13,8 @@
+ DISTFILES = Makefile ToDo README $(wildcard *.pl) $(wildcard *.pm) slon_tools.conf-sample
+ 
+ all:
++ifdef toolsbin
++
+ ifndef PERL
+ 	@echo "The altperl tools require that Perl be installed."
+ 	exit 1;
+@@ -31,6 +33,7 @@
+                        $$file > $$tmpname; \
+ 		chmod 755 $$tmpname; \
+ 	done
++endif
+ 
+ install: all installdirs
+ ifndef toolsbin
--- files/#slon.sh.in~	Wed Jul  6 11:37:43 2005
+++ files/slon.sh.in	Wed Jul  6 11:37:43 2005
@@ -20,7 +20,7 @@
 
 pidfile="/var/run/$name.pid"
 command="%%PREFIX%%/bin/slon"
-command_args="-f %%PREFIX%%/etc/$name.conf -p $pidfile"
+command_args="-f %%PREFIX%%/etc/$name.conf -p $pidfile &"
 required_files="%%PREFIX%%/etc/$name.conf"
 
 # read configuration and set defaults
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list