pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkg/43687: make package in devel/ruby-readline needs root privilege



The following reply was made to PR pkg/43687; it has been noted by GNATS.

From: "OBATA Akio" <obache%netbsd.org@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: 
Subject: Re: pkg/43687: make package in devel/ruby-readline needs root
 privilege
Date: Sat, 31 Jul 2010 22:25:35 +0900

 On Sat, 31 Jul 2010 10:05:03 +0900, OBATA Akio <obache%netbsd.org@localhost> 
wrote:
 
 >  On Sat, 31 Jul 2010 05:50:01 +0900, <ryo_on%yk.rim.or.jp@localhost> wrote:
 > >> Description:
 >  > make package in devel/ruby-readline needs root privilege.
 >  > In ext/readline/Makefile, install has "-o root -g wheel" options.
 > I feel this issue is not only for this package.
 >  See PR#39333 and PR#43684.
 
 For extconf packages in pkgsrc, following patch should avoid the issue.
 
 Index: modules.mk
 ===================================================================
 RCS file: /cvsroot/pkgsrc/lang/ruby/modules.mk,v
 retrieving revision 1.27
 diff -u -r1.27 modules.mk
 --- modules.mk 14 Jun 2009 22:58:03 -0000      1.27
 +++ modules.mk 31 Jul 2010 13:18:31 -0000
 @@ -32,6 +32,9 @@
   RUBY_EXTCONF_ARGS?=  --with-opt-dir=${PREFIX:Q} --vendor
   RUBY_EXTCONF_CHECK?= yes
   RUBY_EXTCONF_MAKEFILE?=      Makefile
 +INSTALL_MAKE_FLAGS+=  INSTALL=${INSTALL:Q}\ -c\ -o\ ${BINOWN:Q}\ -g\ 
${BINGRP:Q}
 +INSTALL_MAKE_FLAGS+=  INSTALL_PROG=${INSTALL_PROGRAM:Q}
 +INSTALL_MAKE_FLAGS+=  INSTALL_DATA=${INSTALL_DATA:Q}
 
   do-configure:        ruby-extconf-configure
 
 @@ -63,7 +66,7 @@
   ruby-extconf-install:
   .for d in ${RUBY_EXTCONF_SUBDIRS}
        @${ECHO_MSG} "===>  Installing ${d}"
 -      ${RUN}cd ${WRKSRC}/${d}; ${SETENV} ${INSTALL_ENV} ${MAKE_ENV} ${MAKE} 
${INSTALL_TARGET}
 +      ${RUN}cd ${WRKSRC}/${d}; ${SETENV} ${INSTALL_ENV} ${MAKE_ENV} ${MAKE} 
${INSTALL_TARGET} ${INSTALL_MAKE_FLAGS}
   .endfor
   .endif
 
 
 


Home | Main Index | Thread Index | Old Index