Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Jun 2018 19:18:44 -0500
From:      duckmanjbr <duckmanjbr@gmail.com>
To:        freebsd-ports@freebsd.org
Subject:   Re: make package "*** Error code 1"
Message-ID:  <37089190-7219-4DA9-A5E6-6E77581BB8BD@gmail.com>
In-Reply-To: <8534b886-7e0d-cdc1-d2d5-da11c634d24f@freebsd.org>
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> <1a73a8dd-296c-e918-f81a-26e3b6995baa@FreeBSD.org> <5B1A72E4.3020400@grosbein.net> <B19221B6-FBE3-4999-AFC6-7A11811A3D23@gmail.com> <8534b886-7e0d-cdc1-d2d5-da11c634d24f@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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?

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.

*** 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

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?37089190-7219-4DA9-A5E6-6E77581BB8BD>