Skip site navigation (1)Skip section navigation (2)
Date:      Wed,  6 Jul 2005 11:41:27 -0400 (EDT)
From:      Vivek Khera <vivek@khera.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/83067: fix databases/slony1 to build on systems without perl
Message-ID:  <20050706154127.8C8203E82@lorax.kcilink.com>
Resent-Message-ID: <200507061550.j66FoEJh091616@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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@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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050706154127.8C8203E82>