Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Jun 2018 19:22:07 -0500
From:      duckmanjbr <duckmanjbr@gmail.com>
To:        freebsd-ports@freebsd.org
Subject:   Fwd: make package "*** Error code 1"
Message-ID:  <55AAD5B4-D5FB-4E05-91F6-493C0B878173@gmail.com>
References:  <37089190-7219-4DA9-A5E6-6E77581BB8BD@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--Apple-Mail=_01A1012B-5D79-48A7-9E00-CE5491C732C3
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=utf-8

In case this helps, here is the full code base:  =
https://github.com/Duckmanjbr/pfSense-pkg-localrepo.git =
<https://github.com/Duckmanjbr/pfSense-pkg-localrepo.git>;


> Begin forwarded message:
>=20
> From: duckmanjbr <duckmanjbr@gmail.com>
> Subject: Re: make package "*** Error code 1"
> Date: June 11, 2018 at 7:18:44 PM CDT
> To: freebsd-ports@freebsd.org
>=20
> This is the result I get with a full debug.  Why is the make package =
looking for a 0.1_GH0.tar.gz file that isn=E2=80=99t there?  What am I =
missing for this basic new port?
>=20
> Applying[_PORTSDIR] :t to "/usr/ports"
> Result[_PORTSDIR] of :t is "/usr/ports"
> Applying[DISTFILES] :C to " =
duckmanjbr-pfSense-pkg-localrepo-0.1_GH0.tar.gz"
> Modifier pattern: ".*"
> Modifier pattern: "'&'"
> Result[DISTFILES] of :C is =
"'duckmanjbr-pfSense-pkg-localrepo-0.1_GH0.tar.gz'"
> /usr/bin/env  dp_DISABLE_SIZE=3D''  dp_DISTDIR=3D'/usr/ports/distfiles/'=
  dp_DISTINFO_FILE=3D'/root/pfSense-pkg-localrepo/distinfo'  =
dp_DIST_SUBDIR=3D''  dp_ECHO_MSG=3D'echo'  dp_FETCH_AFTER_ARGS=3D''  =
dp_FETCH_BEFORE_ARGS=3D''  dp_FETCH_CMD=3D'/usr/bin/fetch -Fpr'  =
dp_FETCH_ENV=3DSSL_NO_VERIFY_PEER=3D1\ SSL_NO_VERIFY_HOSTNAME=3D1  =
dp_FORCE_FETCH_ALL=3D''  dp_FORCE_FETCH_LIST=3D''  =
dp_MASTER_SITE_BACKUP=3D'http://distcache.FreeBSD.org/ports-distfiles/'  =
dp_MASTER_SITE_OVERRIDE=3D''  dp_MASTER_SORT_AWK=3D'BEGIN { RS =3D " "; =
ORS =3D " "; IGNORECASE =3D 1 ; gl =3D "://[^/]*/"; } /:\/\/[^\/]*\// { =
good["://[^/]*/"] =3D good["://[^/]*/"] " " $0 ; next; } { rest =3D rest =
" " $0; } END { n=3Dsplit(gl, gla); for(i=3D1;i<=3Dn;i++) { print =
good[gla[i]]; } print rest; }'  dp_NO_CHECKSUM=3D''  =
dp_RANDOMIZE_SITES=3D''  dp_SCRIPTSDIR=3D'/usr/ports/Mk/Scripts'  =
dp_TARGET=3D'do-fetch' dp_DEVELOPER=3D =
_MASTER_SITES_DEFAULT=3Dhttps://codeload.github.com/duckmanjbr/pfSense-pkg=
-localrepo/tar.gz/0.1\?dummy=3D/  dp_SITE_FLAVOR=3DMASTER  /bin/sh =
/usr/ports/Mk/Scripts/do-fetch.sh =
'duckmanjbr-pfSense-pkg-localrepo-0.1_GH0.tar.gz'
> Execute: '/usr/bin/env  dp_DISABLE_SIZE=3D''  =
dp_DISTDIR=3D'/usr/ports/distfiles/'  =
dp_DISTINFO_FILE=3D'/root/pfSense-pkg-localrepo/distinfo'  =
dp_DIST_SUBDIR=3D''  dp_ECHO_MSG=3D'echo'  dp_FETCH_AFTER_ARGS=3D''  =
dp_FETCH_BEFORE_ARGS=3D''  dp_FETCH_CMD=3D'/usr/bin/fetch -Fpr'  =
dp_FETCH_ENV=3DSSL_NO_VERIFY_PEER=3D1\ SSL_NO_VERIFY_HOSTNAME=3D1  =
dp_FORCE_FETCH_ALL=3D''  dp_FORCE_FETCH_LIST=3D''  =
dp_MASTER_SITE_BACKUP=3D'http://distcache.FreeBSD.org/ports-distfiles/'  =
dp_MASTER_SITE_OVERRIDE=3D''  dp_MASTER_SORT_AWK=3D'BEGIN { RS =3D " "; =
ORS =3D " "; IGNORECASE =3D 1 ; gl =3D "://[^/]*/"; } /:\/\/[^\/]*\// { =
good["://[^/]*/"] =3D good["://[^/]*/"] " " $0 ; next; } { rest =3D rest =
" " $0; } END { n=3Dsplit(gl, gla); for(i=3D1;i<=3Dn;i++) { print =
good[gla[i]]; } print rest; }'  dp_NO_CHECKSUM=3D''  =
dp_RANDOMIZE_SITES=3D''  dp_SCRIPTSDIR=3D'/usr/ports/Mk/Scripts'  =
dp_TARGET=3D'do-fetch' dp_DEVELOPER=3D =
_MASTER_SITES_DEFAULT=3Dhttps://codeload.github.com/duckmanjbr/pfSense-pkg=
-localrepo/tar.gz/0.1\?dummy=3D/  dp_SITE_FLAVOR=3DMASTER  /bin/sh =
/usr/ports/Mk/Scripts/do-fetch.sh =
'duckmanjbr-pfSense-pkg-localrepo-0.1_GH0.tar.gz''
> Applying[.MAKE.EXPORTED] :O to "META_MODE LANG LC_ALL"
> Result[.MAKE.EXPORTED] of :O is "LANG LC_ALL META_MODE"
> Applying[.MAKE.EXPORTED] :u to "LANG LC_ALL META_MODE"
> Result[.MAKE.EXPORTED] of :u is "LANG LC_ALL META_MODE"
> + /usr/bin/env 'dp_DISABLE_SIZE=3D' 'dp_DISTDIR=3D/usr/ports/distfiles/'=
 'dp_DISTINFO_FILE=3D/root/pfSense-pkg-localrepo/distinfo' =
'dp_DIST_SUBDIR=3D' 'dp_ECHO_MSG=3Decho' 'dp_FETCH_AFTER_ARGS=3D' =
'dp_FETCH_BEFORE_ARGS=3D' 'dp_FETCH_CMD=3D/usr/bin/fetch -Fpr' =
'dp_FETCH_ENV=3DSSL_NO_VERIFY_PEER=3D1 SSL_NO_VERIFY_HOSTNAME=3D1' =
'dp_FORCE_FETCH_ALL=3D' 'dp_FORCE_FETCH_LIST=3D' =
'dp_MASTER_SITE_BACKUP=3Dhttp://distcache.FreeBSD.org/ports-distfiles/' =
'dp_MASTER_SITE_OVERRIDE=3D' 'dp_MASTER_SORT_AWK=3DBEGIN { RS =3D " "; =
ORS =3D " "; IGNORECASE =3D 1 ; gl =3D "://[^/]*/"; } /:\/\/[^\/]*\// { =
good["://[^/]*/"] =3D good["://[^/]*/"] " " $0 ; next; } { rest =3D rest =
" " $0; } END { n=3Dsplit(gl, gla); for(i=3D1;i<=3Dn;i++) { print =
good[gla[i]]; } print rest; }' 'dp_NO_CHECKSUM=3D' 'dp_RANDOMIZE_SITES=3D'=
 'dp_SCRIPTSDIR=3D/usr/ports/Mk/Scripts' 'dp_TARGET=3Ddo-fetch' =
'dp_DEVELOPER=3D' =
'_MASTER_SITES_DEFAULT=3Dhttps://codeload.github.com/duckmanjbr/pfSense-pk=
g-localrepo/tar.gz/0.1?dummy=3D/' 'dp_SITE_FLAVOR=3DMASTER' /bin/sh =
/usr/ports/Mk/Scripts/do-fetch.sh =
duckmanjbr-pfSense-pkg-localrepo-0.1_GH0.tar.gz
> =3D> duckmanjbr-pfSense-pkg-localrepo-0.1_GH0.tar.gz doesn't seem to =
exist in /usr/ports/distfiles/.
> =3D> Attempting to fetch =
https://codeload.github.com/duckmanjbr/pfSense-pkg-localrepo/tar.gz/0.1?du=
mmy=3D/duckmanjbr-pfSense-pkg-localrepo-0.1_GH0.tar.gz
> fetch: =
https://codeload.github.com/duckmanjbr/pfSense-pkg-localrepo/tar.gz/0.1?du=
mmy=3D/duckmanjbr-pfSense-pkg-localrepo-0.1_GH0.tar.gz: Not Found
> =3D> Attempting to fetch =
http://distcache.FreeBSD.org/ports-distfiles/duckmanjbr-pfSense-pkg-localr=
epo-0.1_GH0.tar.gz
> fetch: =
http://distcache.FreeBSD.org/ports-distfiles/duckmanjbr-pfSense-pkg-localr=
epo-0.1_GH0.tar.gz: Not Found
> =3D> Couldn't fetch it - please try to retrieve this
> =3D> port manually into /usr/ports/distfiles/ and try again.
>=20
> *** Failed target:  do-fetch
> *** Failed command: /usr/bin/env dp_DISABLE_SIZE=3D'' =
dp_DISTDIR=3D'/usr/ports/distfiles/' =
dp_DISTINFO_FILE=3D'/root/pfSense-pkg-localrepo/distinfo' =
dp_DIST_SUBDIR=3D'' dp_ECHO_MSG=3D'echo' dp_FETCH_AFTER_ARGS=3D'' =
dp_FETCH_BEFORE_ARGS=3D'' dp_FETCH_CMD=3D'/usr/bin/fetch -Fpr' =
dp_FETCH_ENV=3DSSL_NO_VERIFY_PEER=3D1\ SSL_NO_VERIFY_HOSTNAME=3D1 =
dp_FORCE_FETCH_ALL=3D'' dp_FORCE_FETCH_LIST=3D'' =
dp_MASTER_SITE_BACKUP=3D'http://distcache.FreeBSD.org/ports-distfiles/' =
dp_MASTER_SITE_OVERRIDE=3D'' dp_MASTER_SORT_AWK=3D'BEGIN { RS =3D " "; =
ORS =3D " "; IGNORECASE =3D 1 ; gl =3D "://[^/]*/"; } /:\/\/[^\/]*\// { =
good["://[^/]*/"] =3D good["://[^/]*/"] " " $0 ; next; } { rest =3D rest =
" " $0; } END { n=3Dsplit(gl, gla); for(i=3D1;i<=3Dn;i++) { print =
good[gla[i]]; } print rest; }' dp_NO_CHECKSUM=3D'' dp_RANDOMIZE_SITES=3D''=
 dp_SCRIPTSDIR=3D'/usr/ports/Mk/Scripts' dp_TARGET=3D'do-fetch' =
dp_DEVELOPER=3D =
_MASTER_SITES_DEFAULT=3Dhttps://codeload.github.com/duckmanjbr/pfSense-pkg=
-localrepo/tar.gz/0.1\?dummy=3D/ dp_SITE_FLAVOR=3DMASTER /bin/sh =
/usr/ports/Mk/Scripts/do-fetch.sh =
'duckmanjbr-pfSense-pkg-localrepo-0.1_GH0.tar.gz'
> *** Error code 1
>=20
> Stop.
> make: stopped in /root/pfSense-pkg-localrepo
> Global:.ERROR_TARGET =3D do-fetch
> Global:delete .ERROR_CMD (not found)
> Applying[MAKE_PRINT_VAR_ON_ERROR] :@ to ""
> Modifier pattern: "v"
> Modifier pattern: "$v=3D'${$v}'
> "
> Global:delete v (not found)
> Result[MAKE_PRINT_VAR_ON_ERROR] of :@ is ""
> root@:~/pfSense-pkg-localrepo #
>=20
>> On Jun 8, 2018, at 9:07 AM, Stefan Esser <se@freebsd.org> wrote:
>>=20
>> Am 08.06.18 um 15:12 schrieb duckmanjbr:
>> Sorry, I have no idea where the error message regarding "[=E2=80=9D =
comes from,
>> but it is obviously not from your Makefile (but rather from some =
script,
>> that is executed during "make package" - you may want to check the
>> output generated by "make -n do-package".
>>=20
>> But I have one comment/advice:
>>=20
>>> 	${INSTALL_DATA} ${FILESDIR}${DATADIR}/info.xml \
>>> 		${STAGEDIR}/share/pfSense-pkg-LocalRepo
>>> 	@${REINPLACE_CMD} -i '' -e "s|%%PKGVERSION%%|${PKGVERSION}|" \
>>> 		${STAGEDIR}/share/pfSense-pkg-LocalRepo/info.xml
>>=20
>> It is generally better to perform all preparations for the stage and
>> install phases during the build. So how about moving the =
REINPLACE_CMD
>> to the post-build phase:
>>=20
>> post-build:
>> 	@${REINPLACE_CMD} "s|%%PKGVERSION%%|${PKGVERSION}|" \
>> 		${FILESDIR}${DATADIR}/info.xml
>>=20
>> This command can then be removed from the stage phase, of course.
>> (BTW: It could also be moved to post-patch, for example, if it does
>> already exist at that time and is not later generated during the =
build
>> phase.)
>>=20
>> Best regards, STefan
>=20


--Apple-Mail=_01A1012B-5D79-48A7-9E00-CE5491C732C3
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename=signature.asc
Content-Type: application/pgp-signature;
	name=signature.asc
Content-Description: Message signed with OpenPGP

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEiiJNQp749V4sn0x4G0CUBgB2CKMFAlsfEi8ACgkQG0CUBgB2
CKMvtA//fxNKYjt9z01oofHiDSVeadCqUUtaMBanCf5Uua1TafFnXvzkeLzLFz0b
A2tjthMKlMYsedX3/J0/0deWjKWf/70qVw57EmRkX0S6K0yKz0ydgcDq3GcGbDx4
MMhf2/3MoA2Xm5L7FuGvwoXYXUDeJHeCdeIuU3EfFZq1njLP5e2KCQPqggjHtpxV
e9SVE652UxiaMSDJZE+uxu6oPLRPENA4IOe+L/SKp16U9TeskTqVn32BEs1mwOAP
9d6jjV/Z30LhjfFwIJ0lsNMOAmQIYK3q0Y3WsGbxkLT76rkGOMyRn+/tQOz2iXKc
3vDxquFESl5edADmeVEgNJTWBLPGUMnJUC0L7vkWrfU/2bXwZFD8v/m4W1SopQJA
zn8QbswBmUtBXqv0REWNzg0amr3FCKcDUCj9pG9K3O/PDmgBrF2nDKt0ITYNcoyl
aUzbSobbk2eFgD2PnQMyYHKufse/SIloDKg9QwgML4RA30t8/39v1LGWWlUTKXUf
wf83hxliyGuEZgY3SCQOiCAbCTOQbVX3xnuwcomzrLk2ieiBrT256ce731XEh6YH
PrRWEgisS/osjcDgjorzOHrvfqvMJIP9HBuVCcvFB1T9NQh81BL8XD/F9wBlCh3E
ywWWEzKGuEZd8RYcge7+qox1QZP4lfWoN5gdn+epPJnPltKCVeo=
=U5gJ
-----END PGP SIGNATURE-----

--Apple-Mail=_01A1012B-5D79-48A7-9E00-CE5491C732C3--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?55AAD5B4-D5FB-4E05-91F6-493C0B878173>