poudriere: "Permission denied" in the extract phase?

Marcin Cieslak saper at saper.info
Sun Feb 25 02:39:45 UTC 2018


Hello,

why is poudriere on 11.1-STABLE trying to build by custom port which has the following
in the Makefile:

post-fetch:
	${MKDIR} ${DISTDIR}/${PORTNAME}
	${MKDIR} ${NPM_CACHE}
	${CP} ${FILESDIR}/package-lock.json ${DISTDIR}/${PORTNAME}
	${CP} ${FILESDIR}/package.json ${DISTDIR}/${PORTNAME}
	(cd ${DISTDIR}/${PORTNAME} && ${SETENV} NPM_CONFIG_CACHE=${NPM_CACHE} npm install --ignore-scripts)

( complete port: https://github.com/saper/ports-exp/tree/master/textproc/node-sass )

The results are those:

===>   Returning to build of node-sass-4.7.2
===========================================================================
=======================<phase: fetch          >============================
===>  License MIT accepted by the user
===> Fetching all distfiles required by node-sass-4.7.2 for building
/bin/mkdir -p /portdistfiles/node-sass
/bin/mkdir -p /portdistfiles/npm
/bin/cp /usr/ports/textproc/node-sass/files/package-lock.json /portdistfiles/node-sass
(cd /portdistfiles/node-sass && /usr/bin/env NPM_CONFIG_CACHE=/portdistfiles/npm npm install --ignore-scripts)
npm WARN saveError ENOENT: no such file or directory, open '/portdistfiles/node-sass/package.json'
npm WARN enoent ENOENT: no such file or directory, open '/portdistfiles/node-sass/package.json'
npm WARN node-sass No description
npm WARN node-sass No repository field.
npm WARN node-sass No README data
npm WARN node-sass No license field.

added 4 packages in 1.185s
===========================================================================
=======================<phase: checksum       >============================
===>  License MIT accepted by the user
===> Fetching all distfiles required by node-sass-4.7.2 for building
/bin/mkdir -p /portdistfiles/node-sass
/bin/mkdir -p /portdistfiles/npm
/bin/cp /usr/ports/textproc/node-sass/files/package-lock.json /portdistfiles/node-sass
(cd /portdistfiles/node-sass && /usr/bin/env NPM_CONFIG_CACHE=/portdistfiles/npm npm install --ignore-scripts)
npm WARN saveError ENOENT: no such file or directory, open '/portdistfiles/node-sass/package.json'
npm WARN enoent ENOENT: no such file or directory, open '/portdistfiles/node-sass/package.json'
npm WARN node-sass No description
npm WARN node-sass No repository field.
npm WARN node-sass No README data
npm WARN node-sass No license field.

up to date in 0.514s
=> SHA256 Checksum OK for sass-node-sass-v4.7.2_GH0.tar.gz.
===========================================================================
=======================<phase: extract-depends>============================
===========================================================================
=======================<phase: extract        >============================
===>  License MIT accepted by the user
===> Fetching all distfiles required by node-sass-4.7.2 for building
/bin/mkdir -p /portdistfiles/node-sass
/bin/mkdir -p /portdistfiles/npm
/bin/cp /usr/ports/textproc/node-sass/files/package-lock.json /portdistfiles/node-sass
cp: /portdistfiles/node-sass/package-lock.json: Permission denied
*** Error code 1

Stop.
make: stopped in /usr/ports/textproc/node-sass

(full log: https://gist.github.com/saper/0be3f9b4e9eb819d3ec00f5273705517#file-node-sass-4-7-2-log )

Why are /bin/mkdir -p and /bin/cp commands invoked again in the "extract" phase?

FreeBSD 11.1-STABLE #10 r321629 running poudriere-3.2.4 (I have updated poudriere today)

What's wrong? That part of port code didn't change for some time.

Marcin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3663 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20180225/4c8d2180/attachment.bin>


More information about the freebsd-ports mailing list