pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: su-install-all fails with dependencies for print/teTeX
Hi!
On Sun, 22 Apr 2007 13:14:16 -0400 (EDT), Gary Thorpe wrote:
> => Unwrapping files-to-be-installed.
> ===> Installing for libwww-5.4.0nb5
> => Becoming ``root'' to make su-install-all (/usr/bin/su)
> su: Sorry: conversation failure
> *** Error code 1
Following patch should fix the problem.
Index: mk/flavor/pkg/depends.mk
===================================================================
RCS file: /cvsroot/pkgsrc/mk/flavor/pkg/depends.mk,v
retrieving revision 1.26
diff -u -r1.26 depends.mk
--- mk/flavor/pkg/depends.mk 19 Mar 2007 16:43:59 -0000 1.26
+++ mk/flavor/pkg/depends.mk 31 Mar 2007 07:59:00 -0000
@@ -72,11 +72,12 @@
#
_flavor-install-dependencies: .PHONY ${_DEPENDS_FILE}
${RUN} \
+ exec 3<&0; \
while read type pattern dir rest; do \
{ [ "$$dir" ] && [ ! "$$rest" ]; } \
|| ${FAIL_MSG} "[depends.mk] Internal error #1: Check
${_DEPENDS_FILE}"; \
silent=; \
- ${_DEPENDS_INSTALL_CMD}; \
+ ${_DEPENDS_INSTALL_CMD} <&3; \
done < ${_DEPENDS_FILE}
######################################################################
Following commit break the function:
http://mail-index.netbsd.org/pkgsrc-changes/2007/02/19/0021.html
Stdin is changed to ${_DEPENDS_FILE}, /usr/bin/su read stdin, so failed.
("sudo" command doesn't havs such a ploblem).
This commit seems to try fixing problem on IRIX, but I don't have knowledge of
the platform.
Maybe PR 35294?
--
"Of course I love NetBSD":-)
OBATA Akio / obata%lins.jp@localhost
Home |
Main Index |
Thread Index |
Old Index