From owner-freebsd-ports@freebsd.org Sun Oct 15 11:23:51 2017 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4EDA6E4094C for ; Sun, 15 Oct 2017 11:23:51 +0000 (UTC) (envelope-from gurenchan@gmail.com) Received: from mail-io0-x232.google.com (mail-io0-x232.google.com [IPv6:2607:f8b0:4001:c06::232]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 14AFF73627 for ; Sun, 15 Oct 2017 11:23:51 +0000 (UTC) (envelope-from gurenchan@gmail.com) Received: by mail-io0-x232.google.com with SMTP id 101so13201689ioj.3 for ; Sun, 15 Oct 2017 04:23:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=REzeIyAx5kehLlw1LuPqB0z4v85olGvVgDfm6/7O3/I=; b=l0lIm4W+GYhy0NijbfbXV/3U1Qf/P/vBJi+N4Q3tn+L7BbFgfNh8tsDBGxP5MeaLEw CSVhAVoCpl5r93ffSb/rYv45e0toN1LSD6bENGlWoh4elzvje7TXX1qrIeR4DBv5/nuS fGC7z4xIZG/src58NFAy11ZXo2Fia04eZaMEuWANsQ6qT1b+ooErc+LtcTTxthE4WtQi ajD7hAZpui++ZGs/0IWc2DRV4ZV2dDdYDdS29n+JxQS1Ro12ejuUnrc3bb3/0XTg3Rhg awG5FzD9ZixD0i4g74UgmneqTrTADZiyvPyPMN4cJXQU0Y65oez6USKIoXOHucYV+DY5 d4RQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=REzeIyAx5kehLlw1LuPqB0z4v85olGvVgDfm6/7O3/I=; b=Y/gGRa2sgdD8Le8VLEQJoTD3ABfi8w0l5Y+ZdjFzC2/mf8PdW0Uzicy7ZzS13iQ5Uo lPMsvSI27U9jEq+Q8ZdzQC9JQ0IljgD4cZjTe6ESI1Al0P4CqZs7qqVIiszBiec85qmZ +diitVegLtNhPHCzQUJxNZSge+Ld2XMjlXj7tK41+j8fX7oljbTKFmGukA/0vN5SN8ws 33xywnjonuzMevssjcoav/JeU9jyOiBFe3UH75foRCOk0M9FRT2daEjY8s50p/ROKcuN /QmPUm2dXc9Nf1TTQF45Dvpv/H/OgvHv1yRUs2Uk9oC9DDt8xbJI47IN0vhfQGyDwgqe Moiw== X-Gm-Message-State: AMCzsaWJUou9fDYeo93q4F+91wcc8GCB8hqejO9zyYhll+yBPVJj40rg fH3G2cYPYJCSyk6LoLRc33/ZG3gSnO1Dr035lhh0zQ== X-Google-Smtp-Source: ABhQp+R4myza0tOzoY8mcyQ0asakwJTxjTcxq5i9QlQriWZe/H93eVyXGojKW0vrxNW2rRx6yvyynF8g0gU5sHllUvo= X-Received: by 10.107.62.65 with SMTP id l62mr9145775ioa.153.1508066630094; Sun, 15 Oct 2017 04:23:50 -0700 (PDT) MIME-Version: 1.0 Received: by 10.107.8.66 with HTTP; Sun, 15 Oct 2017 04:23:49 -0700 (PDT) In-Reply-To: References: From: blubee blubeeme Date: Sun, 15 Oct 2017 19:23:49 +0800 Message-ID: Subject: Re: Porting github code to FreeBSD [configure] To: FreeBSD Ports Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Oct 2017 11:23:51 -0000 trigger happy missed sending the error: format=`echo tmp/tag.hpp | sed 's|.*\.\([^.]*\)$|\1|'`; \ sed -n \ -e "/^/{ /-->/d; s|^$|//|p; s|^....|//|p; }' lib/tag.xml > tmp/tag.hpp; \ xsltproc --stringparam format $format ./lib/tag.xsl lib/tag.xml >> tmp/tag.hpp format=`echo lib/tag.cpp | sed 's|.*\.\([^.]*\)$|\1|'`; \ sed -n \ -e "/^/{ /-->/d; s|^$|//|p; s|^....|//|p; }' lib/tag.xml > lib/tag.cpp; \ xsltproc --stringparam format $format ./lib/tag.xsl lib/tag.xml >> lib/tag.cpp sed -i 's/SEC_N_("%1%")/"%1%"/' tmp/tag.hpp sed -i 's/SEC_N_("%1%")/"%1%"/' lib/tag.cpp sed: 1: "tmp/tag.hpp": invalid command code u sed: 1: "lib/tag.cpp": extra characters at the end of l command You can see the FreeBSD version of sed failing on the commands, If I remember correctly this requires gnu sed to work properly. How can I set that in my Makefile? On Sun, Oct 15, 2017 at 7:22 PM, blubee blubeeme wrote: > I figured out the configure script part by adding: GNU_CONFIGURE= yes > and that works fine so far. > > I also found that I could use build_depends macro and I added this line > below > BUILD_DEPENDS= gsed:textproc/gsed > > but looking at the output command, the build steps is still attempting to > use regular sed, you can see the error here: > > > On Sun, Oct 15, 2017 at 6:44 PM, blubee blubeeme > wrote: > >> I'm trying to port some code from github to FreeBSD but I run into a few >> issues; >> >> 1) The project needs to use gnu make, gnu sed and other gnu tools since >> it uses the gnu version of @< for variable names >> 2) The project also uses autoreconf because there's .am and .in files >> >> I can pull the files down and run autoreconf that seems to populate the >> proper files but then I need to run the configure script then the make >> command as well but I am running into issues there. >> >> >> In my Makefile, I added this line: >> USES= autoreconf gmake >> >> .include >> >> # post-extract: >> # post-patch: >> # do-install: >> >> .include >> >> connexions/Makefile.am: installing 'upstream/depcomp' >> parallel-tests: installing 'upstream/test-driver' >> ===> Building for utsushi-1.0.0 >> gmake[1]: Entering directory '/usr/ports/graphics/tmp/work/test' >> gmake[1]: Makefile: No such file or directory >> gmake[1]: *** No rule to make target 'Makefile'. Stop. >> gmake[1]: Leaving directory '/usr/ports/graphics/tmp/work/test' >> ===> Compilation failed unexpectedly. >> Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure >> to >> the maintainer. >> *** Error code >> >> What do I need to add to my uses command to get things to proceed? Doing >> things by hand I have to follow these steps: >> >> change to the download folder and run: >> autoreconf -fi >> ./configure >> make >> >> >> >