From owner-freebsd-ports-bugs@FreeBSD.ORG Sun Jul 21 08:30:01 2013 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 74898C1F for ; Sun, 21 Jul 2013 08:30:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 531FABD6 for ; Sun, 21 Jul 2013 08:30:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r6L8U1pS097532 for ; Sun, 21 Jul 2013 08:30:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r6L8U1bp097531; Sun, 21 Jul 2013 08:30:01 GMT (envelope-from gnats) Resent-Date: Sun, 21 Jul 2013 08:30:01 GMT Resent-Message-Id: <201307210830.r6L8U1bp097531@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Jashank Jeremy Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id A6EF37B3 for ; Sun, 21 Jul 2013 08:27:49 +0000 (UTC) (envelope-from jashank@rulingia.com) Received: from vps.rulingia.com (host-122-100-2-194.octopus.com.au [122.100.2.194]) by mx1.freebsd.org (Postfix) with ESMTP id 2D091ADB for ; Sun, 21 Jul 2013 08:27:48 +0000 (UTC) Received: from server.rulingia.com (c220-239-237-213.belrs5.nsw.optusnet.com.au [220.239.237.213]) by vps.rulingia.com (8.14.5/8.14.5) with ESMTP id r6L8JieH017286 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Sun, 21 Jul 2013 18:19:45 +1000 (EST) (envelope-from jashank@rulingia.com) Received: from server.rulingia.com (localhost.rulingia.com [127.0.0.1]) by server.rulingia.com (8.14.7/8.14.7) with ESMTP id r6L8JdMw082793 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Sun, 21 Jul 2013 18:19:39 +1000 (EST) (envelope-from jashank@server.rulingia.com) Received: (from jashank@localhost) by server.rulingia.com (8.14.7/8.14.7/Submit) id r6L8JdVp082792; Sun, 21 Jul 2013 18:19:39 +1000 (EST) (envelope-from jashank) Message-Id: <201307210819.r6L8JdVp082792@server.rulingia.com> Date: Sun, 21 Jul 2013 18:19:39 +1000 (EST) From: Jashank Jeremy To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.114 Subject: ports/180713: ports/devel/xsd fails to compile due to missing dependency X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Jashank Jeremy List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Jul 2013 08:30:01 -0000 >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@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: