make package "*** Error code 1"

duckmanjbr duckmanjbr at gmail.com
Fri Jun 8 13:12:56 UTC 2018


1st off,  thanks everyone for helping me out!  There was indeed a missing filename and I believe I’ve remedied that.  I’m moving along but now getting a "missing property prefix” error.  Am I missing a log file or something to help trouble shoot these errors?  I’d like to piece it together to a working state before I offer it as a pull request to pfSense/FreeBSD-ports. 

build_error:
root@:~/pfSense-pkg-localrepo # make package
===>  License APACHE20 accepted by the user
===>   pfSense-pkg-LocalRepo-0.1_1 depends on file: /usr/local/sbin/pkg - found
===> Fetching all distfiles required by pfSense-pkg-LocalRepo-0.1_1 for building
===>  Extracting for pfSense-pkg-LocalRepo-0.1_1
/bin/mkdir -p /root/pfSense-pkg-localrepo/work/pfSense-pkg-LocalRepo-0.1
===>  Patching for pfSense-pkg-LocalRepo-0.1_1
===>  Configuring for pfSense-pkg-LocalRepo-0.1_1
===>  Staging for pfSense-pkg-LocalRepo-0.1_1
===>   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/info.xml  /root/pfSense-pkg-localrepo/work/stage/share/pfSense-pkg-LocalRepo
====> Compressing man pages (compress-man)
===>  Building package for pfSense-pkg-LocalRepo-0.1_1
[: =: 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=	pfSense-pkg-LocalRepo
PORTVERSION= 0.1
PORTREVISION= 1
CATEGORIES=	sysutils
MASTER_SITES=	# empty
DISTFILES=	# empty
EXTRACT_ONLY=	# empty

MAINTAINER=
COMMENT=	Create local repositories on pfSense

LICENSE=	APACHE20

NO_BUILD=	yes
NO_MTREE=	yes

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

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

do-install:
	# {STAGEDIR}= /root/pfSense-pkg-localrepo/work/stage
	# {PREFIX}= /usr/local
	# {DATADIR}= /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 at grosbein.net> wrote:
> 
> 08.06.2018 16:58, Matthew Seaman wrote:
> 
>>>> 	@${REINPLACE_CMD} -i '' -e "s|%%PKGVERSION%%|${PKGVERSION}|" \
>>>> 
>>>> .include <bsd.port.mk>
>>> 
>>> Here is obvious bug: the line with REINPLACE_CMD has continuation backslash
>>> 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.
> 
> No. A filename is still missing.
> 
> _______________________________________________
> freebsd-ports at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-ports
> To unsubscribe, send any mail to "freebsd-ports-unsubscribe at freebsd.org"



More information about the freebsd-ports mailing list