From 2410daf1db3d3fc0a3d2d663db3171e986bad9e8 Mon Sep 17 00:00:00 2001 From: Jonathan Perkin Date: Wed, 4 Apr 2018 15:21:12 +0100 Subject: [PATCH] mk: Any errors creating .pkginfo should be ignored. Resolves issues when bootstrapping without a suitable pkg_info available, as the bootstrap pkg_info is unable to operate on binary packages. Fixes joyent/pkgsrc-legacy#564 --- mk/pkgformat/pkg/package.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mk/pkgformat/pkg/package.mk b/mk/pkgformat/pkg/package.mk index b79bfd128f98..f869ab6f6502 100644 --- a/mk/pkgformat/pkg/package.mk +++ b/mk/pkgformat/pkg/package.mk @@ -72,7 +72,7 @@ ${PKGFILE}: ${STAGE_PKGFILE} ${PKGINFOFILE}: ${PKGFILE} ${RUN} ${MKDIR} ${.TARGET:H}; \ - ${PKG_INFO} -X ${PKGFILE} >${.TARGET} + ${PKG_INFO} -X ${PKGFILE} >${.TARGET} 2>/dev/null || ${TRUE} .endif ######################################################################