From owner-freebsd-ports@freebsd.org Tue Jun 12 00:18:56 2018 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B98BB1014F23 for ; Tue, 12 Jun 2018 00:18:56 +0000 (UTC) (envelope-from duckmanjbr@gmail.com) Received: from mail-it0-x22e.google.com (mail-it0-x22e.google.com [IPv6:2607:f8b0:4001:c0b::22e]) (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 44F80871E0 for ; Tue, 12 Jun 2018 00:18:56 +0000 (UTC) (envelope-from duckmanjbr@gmail.com) Received: by mail-it0-x22e.google.com with SMTP id j135-v6so13279140itj.1 for ; Mon, 11 Jun 2018 17:18:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:content-transfer-encoding:mime-version:subject:date:references :to:in-reply-to:message-id; bh=3MjXAK/OhC7TTaggG1eZF483pE27Rv7xDmvbxhMUVMY=; b=TFRPYxNaxHM/K6jIDH0frhv1YZH6wFvA6BIrRB53UnFLi2sj3OAitg1p/sPhvMhBSd UkaWo4l37GpCz/0EQEjSCYk2NXwu9kBeEafVWoxXClZ0q1/vGzbYhbX/Us8QR3WCVQ+S Qem3B47vjksdfQHfkL1ZenAqzlCybNXsDEKYcBNWyF0z9MK6nT6OR5JtZ5/AHDj120EF dK0bzw2vIlKwLcFXmDcybLXHTgeIOLRjp+BTbD4F5UEvu7qRvhTA7NkfTGc+Zrq9Ffik TmD1S7bqPHzx9AOB/9mDqD1BseNfOGdiRROCFleMFUQvJNlWHhscjFFhSSCRqXoLDUDw 7LEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:content-transfer-encoding:mime-version :subject:date:references:to:in-reply-to:message-id; bh=3MjXAK/OhC7TTaggG1eZF483pE27Rv7xDmvbxhMUVMY=; b=JBtV/oBblklFk+KNP7dqzs1AAzyVpqRlAk1MAy9atb61AeJJ44E15aXzHB7Zb8p/rd VBJiUI/zrJXicAhCThj4dGNK11kS1MCJjwZbwkXJRg9fqwdZvxCSZxivxOLHSGIZC2Og 1R60seCsYEnjLpjUaLBR8uyopF7m6CmMcNx9imwXjYCeUM1iR4kMcWYI9AWUfBSu4V0x TDaMtk8lbGd0CR9r+h48iAh788t1LXvn40OMpiYwA1FGUrsAEjQ4Z64r8hV9IzDMGF2m EO1mhwTzNLdfGHQtKTXSqH/SqSnMtkbWOkPfeCP8yoTlZr4gU5aZGMJkMzxI1IFXr3hB cnKA== X-Gm-Message-State: APt69E2yW5XZ7cZgOqW0CfcRkYGbkFGu+af5As64hCwb+UJvmStT10eP x4gxha41SKBEd1xeVjWZo2eXhU3k X-Google-Smtp-Source: ADUXVKKk8WcKI4AMIrd37aRZCfPFX5LD6SLjjm7HAQiiHNw1VDpSaGUWx6OIaDPco4xsXsyQzMKA9w== X-Received: by 2002:a24:1c42:: with SMTP id c63-v6mr1168369itc.8.1528762735373; Mon, 11 Jun 2018 17:18:55 -0700 (PDT) Received: from duckmans-mbp.viasatdomain ([172.243.216.233]) by smtp.gmail.com with ESMTPSA id i10-v6sm4845936itb.38.2018.06.11.17.18.51 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 11 Jun 2018 17:18:54 -0700 (PDT) From: duckmanjbr Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 11.3 \(3445.6.18\)) Subject: Re: make package "*** Error code 1" Date: Mon, 11 Jun 2018 19:18:44 -0500 References: <1528418192403-0.post@n6.nabble.com> <1528418530493-0.post@n6.nabble.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> <8534b886-7e0d-cdc1-d2d5-da11c634d24f@freebsd.org> To: freebsd-ports@freebsd.org In-Reply-To: <8534b886-7e0d-cdc1-d2d5-da11c634d24f@freebsd.org> Message-Id: <37089190-7219-4DA9-A5E6-6E77581BB8BD@gmail.com> X-Mailer: Apple Mail (2.3445.6.18) X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Jun 2018 00:18:57 -0000 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 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