Date: Fri, 8 Jun 2018 05:58:01 -0400 From: Matthew Seaman <matthew@FreeBSD.org> To: freebsd-ports@freebsd.org Subject: Re: make package "*** Error code 1" Message-ID: <1a73a8dd-296c-e918-f81a-26e3b6995baa@FreeBSD.org> In-Reply-To: <5B19D938.4010205@grosbein.net> References: <1528418192403-0.post@n6.nabble.com> <c7c04b8e-e1d2-b3c0-dbaa-5bd899ccaaf2@pobox.com> <1528418530493-0.post@n6.nabble.com> <dc857c26-cfe9-3c84-9ac5-42fa49e7249a@pobox.com> <1528420181359-0.post@n6.nabble.com> <0FB42264-1C8A-46AE-B162-74EDD226F294@gmail.com> <5B19D938.4010205@grosbein.net>
next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --CFB7afo9QoHT0gpxSz8j5eSs4SoRbo2e6 Content-Type: multipart/mixed; boundary="mSMtC2MDI2UV28NwN8Cdv0GDUOfwppJyh"; protected-headers="v1" From: Matthew Seaman <matthew@FreeBSD.org> To: freebsd-ports@freebsd.org Message-ID: <1a73a8dd-296c-e918-f81a-26e3b6995baa@FreeBSD.org> Subject: Re: make package "*** Error code 1" References: <1528418192403-0.post@n6.nabble.com> <c7c04b8e-e1d2-b3c0-dbaa-5bd899ccaaf2@pobox.com> <1528418530493-0.post@n6.nabble.com> <dc857c26-cfe9-3c84-9ac5-42fa49e7249a@pobox.com> <1528420181359-0.post@n6.nabble.com> <0FB42264-1C8A-46AE-B162-74EDD226F294@gmail.com> <5B19D938.4010205@grosbein.net> In-Reply-To: <5B19D938.4010205@grosbein.net> --mSMtC2MDI2UV28NwN8Cdv0GDUOfwppJyh Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: quoted-printable On 07/06/2018 21:17, Eugene Grosbein wrote: > 08.06.2018 8:12, duckmanjbr wrote: >=20 >> do-install: >> ${MKDIR} ${STAGEDIR}${PREFIX}/pkg >> ${MKDIR} ${STAGEDIR}${PREFIX}/bin/localrepo >> ${MKDIR} ${STAGEDIR}/etc/inc/priv >> ${MKDIR} ${STAGEDIR}${DATADIR} >> ${INSTALL_DATA} -m 0644 ${FILESDIR}${PREFIX}/pkg/localrepo.xml \ >> ${STAGEDIR}${PREFIX}/pkg >> ${INSTALL_DATA} ${FILESDIR}${PREFIX}/pkg/localrepo.inc \ >> ${STAGEDIR}${PREFIX}/pkg >> ${INSTALL_DATA} ${FILESDIR}${PREFIX}/bin/localrepo/localrepo.conf \ >> ${STAGEDIR}${PREFIX}/bin/localrepo >> ${INSTALL_DATA} ${FILESDIR}/etc/inc/priv/localrepo.priv.inc \ >> ${STAGEDIR}/etc/inc/priv >> ${INSTALL_DATA} ${FILESDIR}${DATADIR}/info.xml \ >> ${STAGEDIR}${DATADIR}/info.xml >> @${REINPLACE_CMD} -i '' -e "s|%%PKGVERSION%%|${PKGVERSION}|" \ >> >> .include <bsd.port.mk> >=20 > Here is obvious bug: the line with REINPLACE_CMD has continuation backs= lash > without any continuation text and without file name to process. Fix it.= Actually, since the next line is a blank line, that's going to be pretty harmless. It should be fixed as a matter of style though. The thing that is actually biting the OP is that ${REINPLACE_CMD} expands to this: % make -V REINPLACE_CMD /usr/bin/sed -i.bak So you're already passing a '-i' flag to sed(1), and it's the additional -i '' on your command line that sed(1) doesn't like. Cheers, Matthew --mSMtC2MDI2UV28NwN8Cdv0GDUOfwppJyh-- --CFB7afo9QoHT0gpxSz8j5eSs4SoRbo2e6 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQKTBAEBCgB9FiEEGfFU7L8RLlBUTj8wAFE/EOCp5OcFAlsaUypfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDE5 RjE1NEVDQkYxMTJFNTA1NDRFM0YzMDAwNTEzRjEwRTBBOUU0RTcACgkQAFE/EOCp 5Ocwcw/+Lw9pCxyv+id2uHJ1twi3RJFGg6UJIhvOgprvcXJD7R6XzCqV92b7Jl0S kgVHyznrLGobN21+MDz9dDbDBTBjocPKaU5kavjTAmxnZGeLfmVQ5b17Mpf3AihQ FCIFqo+9tP9K0KurUL6nlHAGB1Te/93jwkInmA+hGTlkgPNh2Ma+q8p665qPy7V9 /+6Wqf58iSrxtigFuVe6RhsbBVtL1H3b6huNDGtZ9e5yhZGzAr8/VKeYtJ4e64/m cru/pdLLQX5u2r3yuzkDmtjL42TT5MRB63cAOYsJXM5ru1LNQGb8RxZIORghMjaf O0zkss6y2laBSPMJRjZofZDsyDRsgNbWe03oiovxL1GlpRoq4t0OCxc61Cm3bIB0 UMAiVufS9pr1BkvyYkaUyK56EdGGJGntHFCM6hXrCMJYOEYmi1LY0ssTXrMnjS7T QOlnsnzkGctgc+vCyoEAsy4LvnEzZ7QfJFJpBsKIVB4PEdvFomokZgqhwrr1vKvC fGE0YLCsLD1F5fFVuDemrabpX+wMhhrO0OSDR0Xug5XgFCPiabt++9lEPFQOm/qb 1kVM7kAEaLlPPP/PMN1tl7ZmbeY/ims1mNJiu2pQMMuAuwmgzOELxAS1WgeHekyA Zrt3c+nYGwApkk17dYdlAI40ywq9uGru+7pf860trKLjnQ/kdv0= =mA2s -----END PGP SIGNATURE----- --CFB7afo9QoHT0gpxSz8j5eSs4SoRbo2e6--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1a73a8dd-296c-e918-f81a-26e3b6995baa>