Bug 191313

Summary: [PATCH] Mk/bsd.ruby.mk: fix staging error of normal user with 'USE_RUBY_EXTCONF=yes'
Product: Ports & Packages Reporter: Yasuhiro Kimura <yasu>
Component: Ports FrameworkAssignee: freebsd-ruby (Nobody) <ruby>
Status: Closed FIXED    
Severity: Affects Some People    
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
Fix staging error of normal user with 'USE_RUBY_EXTCONF=yes'
none
noneedroot none

Description Yasuhiro Kimura freebsd_committer freebsd_triage 2014-06-23 14:32:15 UTC
If 'USE_RUBY_EXTCONF=yes' is defined in Makefile of port, 'make stage' fails when it is executed by normal user.

Attached patch fixes it.
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2014-06-25 02:43:56 UTC
Over to maintainers.
Comment 2 Yasuhiro Kimura freebsd_committer freebsd_triage 2014-08-23 04:12:35 UTC
Created attachment 146168 [details]
Fix staging error of normal user with 'USE_RUBY_EXTCONF=yes'

Oops, I forgot to attach patch.
Comment 3 Antoine Brodin freebsd_committer freebsd_triage 2014-08-25 17:26:06 UTC
I have this patch,  I think you don't need to conditionalize on uid

Index: /usr/ports/Mk/bsd.ruby.mk
===================================================================
--- /usr/ports/Mk/bsd.ruby.mk   (revision 366094)
+++ /usr/ports/Mk/bsd.ruby.mk   (working copy)
@@ -522,6 +522,7 @@
 
 RUBY_EXTCONF?=         extconf.rb
 CONFIGURE_ARGS+=       --with-opt-dir="${LOCALBASE}"
+CONFIGURE_ENV+=                RB_USER_INSTALL=yes
 
 do-configure:  ruby-extconf-configure
Comment 4 Antoine Brodin freebsd_committer freebsd_triage 2014-08-25 18:44:19 UTC
Created attachment 146261 [details]
noneedroot
Comment 5 commit-hook freebsd_committer freebsd_triage 2014-08-25 18:49:43 UTC
A commit references this bug:

Author: antoine
Date: Mon Aug 25 18:49:36 UTC 2014
New revision: 366129
URL: http://svnweb.freebsd.org/changeset/ports/366129

Log:
  Allow ports using ruby extconf to be built as non root

  PR:		ports/191313

Changes:
  head/Mk/bsd.ruby.mk
  head/databases/postgresql-plruby/Makefile
  head/databases/ruby-bdb/Makefile
  head/devel/libpafe-ruby/Makefile
  head/graphics/ruby-gd/Makefile