Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 8 Jun 2018 08:12:43 -0500
From:      duckmanjbr <duckmanjbr@gmail.com>
To:        freebsd-ports@freebsd.org
Subject:   Re: make package "*** Error code 1"
Message-ID:  <B19221B6-FBE3-4999-AFC6-7A11811A3D23@gmail.com>
In-Reply-To: <5B1A72E4.3020400@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> <1a73a8dd-296c-e918-f81a-26e3b6995baa@FreeBSD.org> <5B1A72E4.3020400@grosbein.net>

next in thread | previous in thread | raw e-mail | index | archive | help
1st off,  thanks everyone for helping me out!  There was indeed a =
missing filename and I believe I=E2=80=99ve remedied that.  I=E2=80=99m =
moving along but now getting a "missing property prefix=E2=80=9D error.  =
Am I missing a log file or something to help trouble shoot these errors? =
 I=E2=80=99d like to piece it together to a working state before I offer =
it as a pull request to pfSense/FreeBSD-ports.=20

build_error:
root@:~/pfSense-pkg-localrepo # make package
=3D=3D=3D>  License APACHE20 accepted by the user
=3D=3D=3D>   pfSense-pkg-LocalRepo-0.1_1 depends on file: =
/usr/local/sbin/pkg - found
=3D=3D=3D> Fetching all distfiles required by =
pfSense-pkg-LocalRepo-0.1_1 for building
=3D=3D=3D>  Extracting for pfSense-pkg-LocalRepo-0.1_1
/bin/mkdir -p /root/pfSense-pkg-localrepo/work/pfSense-pkg-LocalRepo-0.1
=3D=3D=3D>  Patching for pfSense-pkg-LocalRepo-0.1_1
=3D=3D=3D>  Configuring for pfSense-pkg-LocalRepo-0.1_1
=3D=3D=3D>  Staging for pfSense-pkg-LocalRepo-0.1_1
=3D=3D=3D>   Generating temporary packing list
/bin/mkdir -p /root/pfSense-pkg-localrepo/work/stage/usr/local/pkg
/bin/mkdir -p =
/root/pfSense-pkg-localrepo/work/stage/usr/local/bin/localrepo
/bin/mkdir -p /root/pfSense-pkg-localrepo/work/stage/etc/inc/priv
/bin/mkdir -p =
/root/pfSense-pkg-localrepo/work/stage/share/pfSense-pkg-LocalRepo
install  -m 0644 -m 0644 =
/root/pfSense-pkg-localrepo/files/usr/local/pkg/localrepo.xml  =
/root/pfSense-pkg-localrepo/work/stage/usr/local/pkg
install  -m 0644 =
/root/pfSense-pkg-localrepo/files/usr/local/pkg/localrepo.inc  =
/root/pfSense-pkg-localrepo/work/stage/usr/local/pkg
install  -m 0644 =
/root/pfSense-pkg-localrepo/files/usr/local/bin/localrepo/localrepo.conf =
 /root/pfSense-pkg-localrepo/work/stage/usr/local/bin/localrepo
install  -m 0644 =
/root/pfSense-pkg-localrepo/files/etc/inc/priv/localrepo.priv.inc  =
/root/pfSense-pkg-localrepo/work/stage/etc/inc/priv
install  -m 0644 =
/root/pfSense-pkg-localrepo/files/usr/local/share/pfSense-pkg-LocalRepo/in=
fo.xml  =
/root/pfSense-pkg-localrepo/work/stage/share/pfSense-pkg-LocalRepo
=3D=3D=3D=3D> Compressing man pages (compress-man)
=3D=3D=3D>  Building package for pfSense-pkg-LocalRepo-0.1_1
[: =3D: unexpected operator
pkg-static: Invalid package: object has missing property prefix
pkg-static: the package is not valid
*** Error code 1

Stop.
make: stopped in /root/pfSense-pkg-localrepo
root@:~/pfSense-pkg-localrepo #

makefile:
# $FreeBSD$

PORTNAME=3D	pfSense-pkg-LocalRepo
PORTVERSION=3D 0.1
PORTREVISION=3D 1
CATEGORIES=3D	sysutils
MASTER_SITES=3D	# empty
DISTFILES=3D	# empty
EXTRACT_ONLY=3D	# empty

MAINTAINER=3D
COMMENT=3D	Create local repositories on pfSense

LICENSE=3D	APACHE20

NO_BUILD=3D	yes
NO_MTREE=3D	yes

SUB_FILES=3D	pkg-install pkg-deinstall
SUB_LIST=3D	PORTNAME=3D${PORTNAME}

do-extract:
	${MKDIR} ${WRKSRC}

do-install:
	# {STAGEDIR}=3D /root/pfSense-pkg-localrepo/work/stage
	# {PREFIX}=3D /usr/local
	# {DATADIR}=3D /usr/local/share/pfSense-pkg-LocalRepo
	${MKDIR} ${STAGEDIR}${PREFIX}/pkg
	${MKDIR} ${STAGEDIR}${PREFIX}/bin/localrepo
	${MKDIR} ${STAGEDIR}/etc/inc/priv
	${MKDIR} ${STAGEDIR}/share/pfSense-pkg-LocalRepo
	${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}/share/pfSense-pkg-LocalRepo
	@${REINPLACE_CMD} -i '' -e "s|%%PKGVERSION%%|${PKGVERSION}|" \
		${STAGEDIR}/share/pfSense-pkg-LocalRepo/info.xml

.include <bsd.port.mk>

pkg-plist:
usr/local/pkg/localrepo.xml
usr/local/pkg/localrepo.inc
usr/local/bin/localrepo/localrepo.conf
/etc/inc/priv/localrepo.priv.inc
%%DATADIR%%/info.xml
@dir /etc/inc/priv



> On Jun 8, 2018, at 7:13 AM, Eugene Grosbein <eugen@grosbein.net> =
wrote:
>=20
> 08.06.2018 16:58, Matthew Seaman wrote:
>=20
>>>> 	@${REINPLACE_CMD} -i '' -e "s|%%PKGVERSION%%|${PKGVERSION}|" \
>>>>=20
>>>> .include <bsd.port.mk>
>>>=20
>>> Here is obvious bug: the line with REINPLACE_CMD has continuation =
backslash
>>> without any continuation text and without file name to process. Fix =
it.
>>=20
>> Actually, since the next line is a blank line, that's going to be =
pretty
>> harmless.
>=20
> No. A filename is still missing.
>=20
> _______________________________________________
> freebsd-ports@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-ports
> To unsubscribe, send any mail to =
"freebsd-ports-unsubscribe@freebsd.org"




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?B19221B6-FBE3-4999-AFC6-7A11811A3D23>