Date: Sun, 6 May 2007 21:31:46 GMT From: John Hermes<John.Hermes@miami.k12.oh.us> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/112469: bacula-server 2.0.3 port build fails for sqlite3 backend Message-ID: <200705062131.l46LVkcB080312@www.freebsd.org> Resent-Message-ID: <200705062140.l46Le3HQ015520@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 112469 >Category: ports >Synopsis: bacula-server 2.0.3 port build fails for sqlite3 backend >Confidential: no >Severity: serious >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun May 06 21:40:03 GMT 2007 >Closed-Date: >Last-Modified: >Originator: John Hermes >Release: i386 6.2-RELEASE-p4 >Organization: Miami County ESC >Environment: FreeBSD squid.miami.k12.oh.us 6.2-RELEASE-p4 FreeBSD 6.2-RELEASE-p4 #0: Thu May 3 19:55:27 EDT 2007 jhermes@squid.miami.k12.oh.us:/usr/obj/usr/src/sys/SMP_PIII i386 >Description: Port fails to build with the following: Syntax error: redirection unexpected *** Error code 2 Stop in /usr/ports/sysutils/bacula-server. *** Error code 1 After installing the sqlite3-threaded port, attempting to build bacula-server 2.0.3 results in a script failure after successful extraction and patching phases. Suspect shell script follows (obtained using make -dA): for i in sqlite3-threads>=0:/usr/ports/databases/sqlite3-threads intl:/usr/ports/devel/gettext; do lib=${i%%:*}; case $lib in *.*.*) pattern="`echo $lib | /usr/bin/sed -e 's/\./\\\\./g'`" ;; *.*) pattern="${lib%%.*}\.${lib#*.}" ;; *) pattern="$lib" ;; esac; dir=${i#*:}; target=${i##*:}; if test $dir = $target; then target="install"; depends_args=""; else dir=${dir%%:*}; fi; if [ -z "" ] ; then echo -n "===> bacula-server-2.0.3 depends on shared library: $lib"; if /sbin/ldconfig -r | /usr/bin/grep -vwF -e "/usr/local/lib/compat/pkg" | /usr/bin/grep -qwE -e "-l$pattern"; then echo " - found"; if [ 0 = 1 ]; then echo " (but building it anyway)"; notfound=1; else notfound=0; fi; else echo " - not found"; notfound=1; fi; else echo -n "===> bacula-server-2.0.3 depends on shared library in : $lib"; if /usr/sbin/chroot /sbin/ldconfig -r | /usr/bin/grep -vwF -e "/usr/local/lib/compat/pkg" | /usr/bin/grep -qwE -e "-l$pattern"; then echo " - found"; if [ 0 = 1 ]; then echo " (but building it anyway)"; notfound=1; else notfound=0; fi; else echo " - not found"; notfound=1; fi; fi; if [ $notfound != 0 ]; then echo "===> Verifying $target for $lib in $dir"; if [ ! -d "$dir" ]; then echo " => No directory for $lib. Skipping.."; else if [ X != "X" ]; then subpkgfile=`(cd $dir; make $depends_args -V PKGFILE)`; if [ -r "${subpkgfile}" -a "$target" = "install" ]; then if [ -z "" ] ; then echo "===> Installing existing package ${subpkgfile}"; /usr/sbin/pkg_add ${subpkgfile}; else echo "===> Installing existing package ${subpkgfile} into "; /usr/sbin/pkg_add -C ${subpkgfile}; fi; else (cd $dir; make -DINSTALLS_DEPENDS $target $depends_args) ; fi; else (cd $dir; make -DINSTALLS_DEPENDS $target $depends_args) ; fi; if [ -z "" ] ; then echo "===> Returning to build of bacula-server-2.0.3"; else echo "===> Returning to build of bacula-server-2.0.3 for "; fi; if ! / sbin/ldconfig -r | /usr/bin/grep -vwF -e "/usr/local/lib/com! pat/pkg" | /usr/bin/grep -qwE -e "-l$pattern"; then echo "Error: shared library \"$lib\" does not exist"; false; fi; fi; fi; done Syntax error: redirection unexpected *** Error code 2 Stop in /usr/ports/sysutils/bacula-server. *** Error code 1 >How-To-Repeat: Attempting to build bacula-server 2.0.3 with the sqlite3 backend results in a script failure after the extraction and patching phases. cd /usr/ports/sysutils/bacula-server make WITH_SQLITE3=YES >Fix: Workaround: Use 'make config' to choose another database backend and rebuild. >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200705062131.l46LVkcB080312>