ports/126308: openoffice compilation fails on -CURRENT (patch attached)
Ted Faber
faber at ISI.EDU
Wed Aug 6 19:00:10 UTC 2008
>Number: 126308
>Category: ports
>Synopsis: openoffice compilation fails on -CURRENT (patch attached)
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Wed Aug 06 19:00:09 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator: Ted Faber
>Release: FreeBSD 8.0-CURRENT i386
>Organization:
USC/ISI
>Environment:
System: FreeBSD zod.isi.edu 8.0-CURRENT FreeBSD 8.0-CURRENT #4: Mon Aug 4 14:58:45 PDT 2008 root at zod.isi.edu:/usr/obj/usr/src/sys/ZOD i386
>Description:
The configure script for the local copy of libxslt that OO compiles has
a line in it that is invalide for FreeBSD's /bin/test that causes the
configure script to fail. Specifically, the script uses == for
equality and /bin/test expects =/ I'm not sure why OO is compiling the
local copy of libxslt, but this patch removes the configuration error.
This is resolved somewhat indirectly. OO patches the libxslt
configuration script, and this patch alters that patch.
>How-To-Repeat:
I suspect that there's an installed ports interaction that's causing
the compilation to go on, but casuing a local copy of libxslt to get
compiled by the port should fail on any FreeBSD.
>Fix:
Attached:
diff -ruN openoffice.org-2.bak/files/patch-xslt-patch openoffice.org-2/files/patch-xslt-patch
--- openoffice.org-2.bak/files/patch-xslt-patch 1969-12-31 16:00:00.000000000 -0800
+++ openoffice.org-2/files/patch-xslt-patch 2008-08-06 10:55:58.000000000 -0700
@@ -0,0 +1,11 @@
+--- libxslt/libxslt-1.1.16.patch.orig 2007-07-19 06:25:43.000000000 -0700
++++ libxslt/libxslt-1.1.16.patch 2008-08-06 10:54:28.000000000 -0700
+@@ -30,7 +30,7 @@
+ fi
+
+
+-! if test "1" == "1"
++! if test "1" = "1"
+ then
+ XMLVERS=`$XML_CONFIG --version`
+ if test `echo $XMLVERS | sed -e 's/libxml //' | awk 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'` -ge `echo $LIBXML_REQUIRED_VERSION | sed -e 's/libxml //' | awk 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list