ports/180713: ports/devel/xsd fails to compile due to missing dependency
Jashank Jeremy
jashank at rulingia.com
Sun Jul 21 08:30:01 UTC 2013
>Number: 180713
>Category: ports
>Synopsis: ports/devel/xsd fails to compile due to missing dependency
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Sun Jul 21 08:30:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator: Jashank Jeremy
>Release: FreeBSD 10.0-CURRENT amd64
>Organization:
>Environment:
System: FreeBSD beckett.rulingia.com 10.0-CURRENT FreeBSD 10.0-CURRENT #21: Wed Jul 10 19:50:48 EST 2013 root at server.rulingia.com:/var/obj/usr/src/sys/server amd64
ports/devel/xsd/Makefile r311493
>Description:
ports/devel/xsd build fails due to undeclared build dependency on gsed
>How-To-Repeat:
Check out the ports tree after r311493;
Attempt to build ports/devel/xsd.
Many, many non-terminal sed(1) and clang(1) errors appear.
Build eventually fails due to missing file
.../work/xsd-3.3.0-2+dep/libxsd-frontend/xsd-frontend/semantic-graph/fundamental.hxx
>Fix:
This issue appears to be the reliance on a GNU sed-ism, which
base's sed(1) does not support.
The following patch fixes the build, by adding GNU sed to the
BUILD_DEPENDS and adding a patch that makes the 'dep' script
in xsd's build system use gsed.
--- ports/devel/xsd/Makefile~ 2013-07-21 17:15:43.409126741 +1000
+++ ports/devel/xsd/Makefile 2013-07-21 17:15:43.411127008 +1000
@@ -16,7 +16,8 @@
# FIXME: One could patch all the `#!/usr/bin/env bash' invocations in the build scripts and
# check if things still work to get rid of the shells/bash dependency.
BUILD_DEPENDS= bash:${PORTSDIR}/shells/bash \
- gm4:${PORTSDIR}/devel/m4
+ gm4:${PORTSDIR}/devel/m4 \
+ gsed:${PORTSDIR}/textproc/gsed
LIB_DEPENDS= boost_filesystem:${PORTSDIR}/devel/boost-libs \
xerces-c.3:${PORTSDIR}/textproc/xerces-c3
--- /dev/null 2013-07-21 17:17:01.000000000 +1000
+++ ports/devel/xsd/files/patch-build-0.3__c__gnu__dep 2013-07-21 17:15:23.643128375 +1000
@@ -0,0 +1,17 @@
+--- build-0.3/c/gnu/dep~ 2013-07-21 17:09:58.435150721 +1000
++++ build-0.3/c/gnu/dep 2013-07-21 17:09:58.436150740 +1000
+@@ -43,7 +43,7 @@
+ }
+
+ if [ "$files" ]; then
+- prefixes=`sed -e 's%^prefix: \(.*\)$%\1%' -e t -e d $files`
++ prefixes=`gsed -e 's%^prefix: \(.*\)$%\1%' -e t -e d $files`
+ gen_script $prefixes
+ fi
+
+@@ -55,4 +55,4 @@
+ #
+ epilogue="s% \([^/. \\\\]\)% $out_base/\1%g;s%^\([^/. ].*:\)%$out_base/\1%"
+
+-exec sed -e "$script$epilogue"
++exec gsed -e "$script$epilogue"
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list