| Summary: | Bug in installing any php4-extension as non-root user: file that needs writing during install is set to mode 444 during install. | ||
|---|---|---|---|
| Product: | Ports & Packages | Reporter: | boelaars <boelaars> |
| Component: | Individual Port(s) | Assignee: | Alex Dupre <ale> |
| Status: | Closed FIXED | ||
| Severity: | Affects Only Me | ||
| Priority: | Normal | ||
| Version: | Latest | ||
| Hardware: | Any | ||
| OS: | Any | ||
|
Description
boelaars
2006-07-19 15:40:15 UTC
The error occurs for www/lynx-ssl (and I guess the other lynx ports as well):
sed -e '/^HELPFILE:http/s!^!#!' -e '/^#HELPFILE:file/s!#!!' -e
'/^HELPFILE:file/s!/PATH_TO/lynx_help!/home/users/whiter/apps/share/lynx_help!'
-e
'/^[A-Z_]*:/s!/PATH_TO/lynx_doc!/home/users/whiter/apps/share/doc/lynx!'
-e '/^HELPFILE:file/s!$!!' -e '/^HELPFILE:file/s!$!!'
/home/users/whiter/apps/etc/lynx.tmp
>/home/users/whiter/apps/etc/lynx.cfg.default
cannot create /home/users/whiter/apps/etc/lynx.cfg.default: Permission denied
*** Error code 2
It's a problem that doesn't occur when installing as root, since root
doesn't care about write permissions.
Responsible Changed From-To: freebsd-i386->ale Make this a ports PR and assign to maintainer Is this patch enough to fix your problem?
--- bsd.php.mk 5 Jul 2006 02:18:08 -0000 1.31
+++ bsd.php.mk 24 Jul 2006 06:09:59 -0000
@@ -169,6 +169,7 @@
@${INSTALL_DATA} ${WRKSRC}/${header}/*.h \
${PREFIX}/include/php/ext/${PHP_MODNAME}/${header}
. endfor
+ @${RM} -f ${PREFIX}/include/php/ext/${PHP_MODNAME}/config.h
@${GREP} "#define \(COMPILE\|HAVE\|USE\)_" ${WRKSRC}/config.h \
> ${PREFIX}/include/php/ext/${PHP_MODNAME}/config.h
@${ECHO_CMD} \#include \"ext/${PHP_MODNAME}/config.h\" \
Yeap. That solves the problem. (For PHP extensions that is, not yet for lynx) State Changed From-To: open->closed Fixed, thanks! |