Subject: Re: su-install-all fails with dependencies for print/teTeX
To: OBATA Akio <obata@lins.jp>
From: Gary Thorpe <gathorpe79@yahoo.com>
List: pkgsrc-users
Date: 04/23/2007 14:31:38
--- OBATA Akio <obata@lins.jp> wrote:

> 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

Hi,

Thanks, this patch seems to work. Should I file a PR?



      Be smarter than spam. See how smart SpamGuard is at giving junk email the boot with the All-new Yahoo! Mail at http://mrd.mail.yahoo.com/try_beta?.intl=ca