Date: Sun, 15 Oct 2017 19:23:49 +0800 From: blubee blubeeme <gurenchan@gmail.com> To: FreeBSD Ports <freebsd-ports@freebsd.org> Subject: Re: Porting github code to FreeBSD [configure] Message-ID: <CALM2mEnyTBpSOgsHk%2BvUNrO6XYFsR_82bTj7HEkP90TBwYjsRQ@mail.gmail.com> In-Reply-To: <CALM2mE=D0=aM=4rETC%2BtS0kA%2B9shZwkQesX7G64aySM11XQLSQ@mail.gmail.com> References: <CALM2mEmxx0mOLNOZGF3Zd0BDHPLQo4ci=hiP7q6S0owadCXzpA@mail.gmail.com> <CALM2mE=D0=aM=4rETC%2BtS0kA%2B9shZwkQesX7G64aySM11XQLSQ@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
trigger happy missed sending the error: format=`echo tmp/tag.hpp | sed 's|.*\.\([^.]*\)$|\1|'`; \ sed -n \ -e "/^<!--/s/\.xml ::/.$format --/" \ -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 "/^<!--/s/\.xml ::/.$format --/" \ -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 <gurenchan@gmail.com> 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 <gurenchan@gmail.com> > 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 <bsd.port.pre.mk> >> >> # post-extract: >> # post-patch: >> # do-install: >> >> .include <bsd.port.post.mk> >> >> 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 >> >> >> >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CALM2mEnyTBpSOgsHk%2BvUNrO6XYFsR_82bTj7HEkP90TBwYjsRQ>