Forum: Ruby-core [Backport93 - Backport #7172][Open] [[Ruby 1.9:]] fix rbconfig for --enable-load-relative (v2)

Posted by Michal Papis (mpapis)
on 2012-10-16 15:15
(Received via mailing list)
Issue #7172 has been reported by mpapis (Michal Papis).

----------------------------------------
Backport #7172: [[Ruby 1.9:]] fix rbconfig for --enable-load-relative 
(v2)
https://bugs.ruby-lang.org/issues/7172

Author: mpapis (Michal Papis)
Status: Open
Priority: Normal
Assignee:
Category:
Target version:


continuation of http://bugs.ruby-lang.org/issues/6903 and 
http://bugs.ruby-lang.org/issues/7115

Checked with 
http://bugs.ruby-lang.org/projects/ruby-193/reposi... 
and p286,
there is still missing fix for rbconfig, it can be found here:

https://github.com/wayneeseguin/rvm/blob/master/pa...

it does two things important for movable rubies:

1. 
https://github.com/wayneeseguin/rvm/blob/master/pa... 
- properly detect libruby prefix on system with `lib64`
2. 
https://github.com/wayneeseguin/rvm/blob/master/pa... 
- replace all occurrences of application prefix with `$(prefix)` so 
after moving ruby to other location final system paths are used instead 
of the build system paths, this solves number of issues, especially with 
compilation gem native extensions.
Posted by Yehuda Katz (wycats)
on 2012-10-16 15:27
(Received via mailing list)
Thanks mpapis for moving the ball forward on this. I rely on
--enable-load-relative for Tokaido, and getting/keeping it working 
reliably
will make me very happy.

Yehuda Katz
(ph) 718.877.1325
Posted by usa (Usaku NAKAMURA) (Guest)
on 2012-10-19 06:10
(Received via mailing list)
Issue #7172 has been updated by usa (Usaku NAKAMURA).

Status changed from Open to Closed

Already backport at r37155.
----------------------------------------
Backport #7172: [[Ruby 1.9:]] fix rbconfig for --enable-load-relative 
(v2)
https://bugs.ruby-lang.org/issues/7172#change-31038

Author: mpapis (Michal Papis)
Status: Closed
Priority: Normal
Assignee:
Category:
Target version:


continuation of http://bugs.ruby-lang.org/issues/6903 and 
http://bugs.ruby-lang.org/issues/7115

Checked with 
http://bugs.ruby-lang.org/projects/ruby-193/reposi... 
and p286,
there is still missing fix for rbconfig, it can be found here:

https://github.com/wayneeseguin/rvm/blob/master/pa...

it does two things important for movable rubies:

1. 
https://github.com/wayneeseguin/rvm/blob/master/pa... 
- properly detect libruby prefix on system with `lib64`
2. 
https://github.com/wayneeseguin/rvm/blob/master/pa... 
- replace all occurrences of application prefix with `$(prefix)` so 
after moving ruby to other location final system paths are used instead 
of the build system paths, this solves number of issues, especially with 
compilation gem native extensions.
Posted by Michal Papis (mpapis)
on 2012-10-25 21:02
(Received via mailing list)
Issue #7172 has been updated by mpapis (Michal Papis).


@usa I'm sorry but 
http://bugs.ruby-lang.org/projects/ruby-193/reposi... 
does not backport tool/mkconfig.rb please check again the description.
----------------------------------------
Backport #7172: [[Ruby 1.9:]] fix rbconfig for --enable-load-relative 
(v2)
https://bugs.ruby-lang.org/issues/7172#change-31583

Author: mpapis (Michal Papis)
Status: Closed
Priority: Normal
Assignee:
Category:
Target version:


continuation of http://bugs.ruby-lang.org/issues/6903 and 
http://bugs.ruby-lang.org/issues/7115

Checked with 
http://bugs.ruby-lang.org/projects/ruby-193/reposi... 
and p286,
there is still missing fix for rbconfig, it can be found here:

https://github.com/wayneeseguin/rvm/blob/master/pa...

it does two things important for movable rubies:

1. 
https://github.com/wayneeseguin/rvm/blob/master/pa... 
- properly detect libruby prefix on system with `lib64`
2. 
https://github.com/wayneeseguin/rvm/blob/master/pa... 
- replace all occurrences of application prefix with `$(prefix)` so 
after moving ruby to other location final system paths are used instead 
of the build system paths, this solves number of issues, especially with 
compilation gem native extensions.
Posted by usa (Usaku NAKAMURA) (Guest)
on 2012-11-08 09:32
(Received via mailing list)
Issue #7172 has been updated by usa (Usaku NAKAMURA).

Status changed from Closed to Open

Oh, sorry, I've mistaken.
----------------------------------------
Backport #7172: [[Ruby 1.9:]] fix rbconfig for --enable-load-relative 
(v2)
https://bugs.ruby-lang.org/issues/7172#change-32623

Author: mpapis (Michal Papis)
Status: Open
Priority: Normal
Assignee:
Category:
Target version:


continuation of http://bugs.ruby-lang.org/issues/6903 and 
http://bugs.ruby-lang.org/issues/7115

Checked with 
http://bugs.ruby-lang.org/projects/ruby-193/reposi... 
and p286,
there is still missing fix for rbconfig, it can be found here:

https://github.com/wayneeseguin/rvm/blob/master/pa...

it does two things important for movable rubies:

1. 
https://github.com/wayneeseguin/rvm/blob/master/pa... 
- properly detect libruby prefix on system with `lib64`
2. 
https://github.com/wayneeseguin/rvm/blob/master/pa... 
- replace all occurrences of application prefix with `$(prefix)` so 
after moving ruby to other location final system paths are used instead 
of the build system paths, this solves number of issues, especially with 
compilation gem native extensions.
Posted by Michal Papis (mpapis)
on 2012-12-26 02:31
(Received via mailing list)
Issue #7172 has been updated by mpapis (Michal Papis).


any chance on getting it merged for 1.9.3? I just found out p362 was 
released and do not see it included :(
----------------------------------------
Backport #7172: [[Ruby 1.9:]] fix rbconfig for --enable-load-relative 
(v2)
https://bugs.ruby-lang.org/issues/7172#change-35078

Author: mpapis (Michal Papis)
Status: Open
Priority: Normal
Assignee:
Category:
Target version:


continuation of http://bugs.ruby-lang.org/issues/6903 and 
http://bugs.ruby-lang.org/issues/7115

Checked with 
http://bugs.ruby-lang.org/projects/ruby-193/reposi... 
and p286,
there is still missing fix for rbconfig, it can be found here:

https://github.com/wayneeseguin/rvm/blob/master/pa...

it does two things important for movable rubies:

1. 
https://github.com/wayneeseguin/rvm/blob/master/pa... 
- properly detect libruby prefix on system with `lib64`
2. 
https://github.com/wayneeseguin/rvm/blob/master/pa... 
- replace all occurrences of application prefix with `$(prefix)` so 
after moving ruby to other location final system paths are used instead 
of the build system paths, this solves number of issues, especially with 
compilation gem native extensions.
Posted by usa (Usaku NAKAMURA) (Guest)
on 2012-12-26 04:30
(Received via mailing list)
Issue #7172 has been updated by usa (Usaku NAKAMURA).

Status changed from Open to Assigned
Assignee set to usa (Usaku NAKAMURA)

maybe next release.
----------------------------------------
Backport #7172: [[Ruby 1.9:]] fix rbconfig for --enable-load-relative 
(v2)
https://bugs.ruby-lang.org/issues/7172#change-35084

Author: mpapis (Michal Papis)
Status: Assigned
Priority: Normal
Assignee: usa (Usaku NAKAMURA)
Category:
Target version:


continuation of http://bugs.ruby-lang.org/issues/6903 and 
http://bugs.ruby-lang.org/issues/7115

Checked with 
http://bugs.ruby-lang.org/projects/ruby-193/reposi... 
and p286,
there is still missing fix for rbconfig, it can be found here:

https://github.com/wayneeseguin/rvm/blob/master/pa...

it does two things important for movable rubies:

1. 
https://github.com/wayneeseguin/rvm/blob/master/pa... 
- properly detect libruby prefix on system with `lib64`
2. 
https://github.com/wayneeseguin/rvm/blob/master/pa... 
- replace all occurrences of application prefix with `$(prefix)` so 
after moving ruby to other location final system paths are used instead 
of the build system paths, this solves number of issues, especially with 
compilation gem native extensions.
Posted by Michal Papis (mpapis)
on 2013-01-14 23:26
(Received via mailing list)
Issue #7172 has been updated by mpapis (Michal Papis).


improved version is applied here: 
http://bugs.ruby-lang.org/projects/ruby-trunk/repo... 
- but it is not available in the 2.0.0-rc1: 
http://ftp.ruby-lang.org/pub/ruby/2.0/ruby-2.0.0-rc1.tar.gz
----------------------------------------
Bug #7172: [[Ruby 1.9:]] fix rbconfig for --enable-load-relative (v2)
https://bugs.ruby-lang.org/issues/7172#change-35412

Author: mpapis (Michal Papis)
Status: Assigned
Priority: Normal
Assignee: nobu (Nobuyoshi Nakada)
Category:
Target version:
ruby -v:


continuation of http://bugs.ruby-lang.org/issues/6903 and 
http://bugs.ruby-lang.org/issues/7115

Checked with 
http://bugs.ruby-lang.org/projects/ruby-193/reposi... 
and p286,
there is still missing fix for rbconfig, it can be found here:

https://github.com/wayneeseguin/rvm/blob/master/pa...

it does two things important for movable rubies:

1. 
https://github.com/wayneeseguin/rvm/blob/master/pa... 
- properly detect libruby prefix on system with `lib64`
2. 
https://github.com/wayneeseguin/rvm/blob/master/pa... 
- replace all occurrences of application prefix with `$(prefix)` so 
after moving ruby to other location final system paths are used instead 
of the build system paths, this solves number of issues, especially with 
compilation gem native extensions.
Posted by Michal Papis (mpapis)
on 2013-01-16 20:55
(Received via mailing list)
Issue #7172 has been updated by mpapis (Michal Papis).


just took another look on ruby-trunk and there are still two changes 
missing:

- 
https://github.com/wayneeseguin/rvm/blob/master/pa...
- 
https://github.com/wayneeseguin/rvm/blob/master/pa...

they are required to allow proper compilation of gems/extensions after 
ruby is moved to a new location.

would it be possible to get this into 2.0.0-p0 as it was reported 
already on 1.9.3-p194 (https://bugs.ruby-lang.org/issues/7115)

----------------------------------------
Bug #7172: [[Ruby 1.9:]] fix rbconfig for --enable-load-relative (v2)
https://bugs.ruby-lang.org/issues/7172#change-35452

Author: mpapis (Michal Papis)
Status: Assigned
Priority: Normal
Assignee: nobu (Nobuyoshi Nakada)
Category:
Target version:
ruby -v:


continuation of http://bugs.ruby-lang.org/issues/6903 and 
http://bugs.ruby-lang.org/issues/7115

Checked with 
http://bugs.ruby-lang.org/projects/ruby-193/reposi... 
and p286,
there is still missing fix for rbconfig, it can be found here:

https://github.com/wayneeseguin/rvm/blob/master/pa...

it does two things important for movable rubies:

1. 
https://github.com/wayneeseguin/rvm/blob/master/pa... 
- properly detect libruby prefix on system with `lib64`
2. 
https://github.com/wayneeseguin/rvm/blob/master/pa... 
- replace all occurrences of application prefix with `$(prefix)` so 
after moving ruby to other location final system paths are used instead 
of the build system paths, this solves number of issues, especially with 
compilation gem native extensions.
Posted by Nobuyoshi Nakada (nobu)
on 2013-01-29 08:11
(Received via mailing list)
Issue #7172 has been updated by nobu (Nobuyoshi Nakada).

Category set to build
Status changed from Assigned to Feedback
Target version set to 2.0.0
ruby -v set to 2.0.0dev

How do you run the configure script and which element in RbConfig has 
prefix expanded?
----------------------------------------
Bug #7172: [[Ruby 1.9:]] fix rbconfig for --enable-load-relative (v2)
https://bugs.ruby-lang.org/issues/7172#change-35699

Author: mpapis (Michal Papis)
Status: Feedback
Priority: Normal
Assignee: nobu (Nobuyoshi Nakada)
Category: build
Target version: 2.0.0
ruby -v: 2.0.0dev


continuation of http://bugs.ruby-lang.org/issues/6903 and 
http://bugs.ruby-lang.org/issues/7115

Checked with 
http://bugs.ruby-lang.org/projects/ruby-193/reposi... 
and p286,
there is still missing fix for rbconfig, it can be found here:

https://github.com/wayneeseguin/rvm/blob/master/pa...

it does two things important for movable rubies:

1. 
https://github.com/wayneeseguin/rvm/blob/master/pa... 
- properly detect libruby prefix on system with `lib64`
2. 
https://github.com/wayneeseguin/rvm/blob/master/pa... 
- replace all occurrences of application prefix with `$(prefix)` so 
after moving ruby to other location final system paths are used instead 
of the build system paths, this solves number of issues, especially with 
compilation gem native extensions.
Posted by Michal Papis (mpapis)
on 2013-01-31 16:51
(Received via mailing list)
Issue #7172 has been updated by mpapis (Michal Papis).


So running:

    rvm install ruby-head --debug --movable

Executes:

    autoreconf
    ./configure --disable-install-doc 
--prefix=/home/mpapis/.rvm/rubies/ruby-head --enable-shared 
--enable-load-relative --sysconfdir=/etc 
--with-opt-dir=/home/mpapis/.rvm/rubies/ruby-head 
--with-baseruby=/home/mpapis/.rvm/wrappers/ruby-1.9.3-p374/ruby
    make
    make install

And this ends up with 
`/home/mpapis/.rvm/rubies/ruby-head/lib64/ruby/2.0.0/x86_64-linux/rbconfig.rb`:

  CONFIG["configure_args"] = " '--disable-install-doc' 
'--prefix=/home/mpapis/.rvm/rubies/ruby-head' '--enable-shared' 
'--enable-load-relative' '--sysconfdir=/etc' 
'--with-opt-dir=/home/mpapis/.rvm/rubies/ruby-head' 
'--with-baseruby=/home/mpapis/.rvm/wrappers/ruby-1.9.3-p374/ruby' 
'CC=ccache gcc'"
  CONFIG["DLDFLAGS"] = "-L/home/mpapis/.rvm/rubies/ruby-head/lib 
-Wl,-R/home/mpapis/.rvm/rubies/ruby-head/lib "
  CONFIG["CPPFLAGS"] = " -I/home/mpapis/.rvm/rubies/ruby-head/include 
$(DEFS) $(cppflags)"
  CONFIG["LDFLAGS"] = "-L. -fstack-protector -rdynamic 
-Wl,-export-dynamic -L/home/mpapis/.rvm/rubies/ruby-head/lib 
-Wl,-R/home/mpapis/.rvm/rubies/ruby-head/lib "

I understand that is not the usual use case, but any time some libs will 
be compiled in ruby prefix or using relative path to ruby prefix 
(assuming lib was copied along to ruby) - after moving ruby it will not 
be possible to find those libs.
----------------------------------------
Bug #7172: [[Ruby 1.9:]] fix rbconfig for --enable-load-relative (v2)
https://bugs.ruby-lang.org/issues/7172#change-35748

Author: mpapis (Michal Papis)
Status: Feedback
Priority: Normal
Assignee: nobu (Nobuyoshi Nakada)
Category: build
Target version: 2.0.0
ruby -v: 2.0.0dev


continuation of http://bugs.ruby-lang.org/issues/6903 and 
http://bugs.ruby-lang.org/issues/7115

Checked with 
http://bugs.ruby-lang.org/projects/ruby-193/reposi... 
and p286,
there is still missing fix for rbconfig, it can be found here:

https://github.com/wayneeseguin/rvm/blob/master/pa...

it does two things important for movable rubies:

1. 
https://github.com/wayneeseguin/rvm/blob/master/pa... 
- properly detect libruby prefix on system with `lib64`
2. 
https://github.com/wayneeseguin/rvm/blob/master/pa... 
- replace all occurrences of application prefix with `$(prefix)` so 
after moving ruby to other location final system paths are used instead 
of the build system paths, this solves number of issues, especially with 
compilation gem native extensions.
Posted by mame (Yusuke Endoh) (Guest)
on 2013-02-18 16:11
(Received via mailing list)
Issue #7172 has been updated by mame (Yusuke Endoh).


Sorry but I don't understand both the issue and the status at all.
Any action needed for 2.0.0-p0?

--
Yusuke Endoh <mame@tsg.ne.jp>
----------------------------------------
Bug #7172: [[Ruby 1.9:]] fix rbconfig for --enable-load-relative (v2)
https://bugs.ruby-lang.org/issues/7172#change-36538

Author: mpapis (Michal Papis)
Status: Feedback
Priority: Normal
Assignee: nobu (Nobuyoshi Nakada)
Category: build
Target version: 2.0.0
ruby -v: 2.0.0dev


continuation of http://bugs.ruby-lang.org/issues/6903 and 
http://bugs.ruby-lang.org/issues/7115

Checked with 
http://bugs.ruby-lang.org/projects/ruby-193/reposi... 
and p286,
there is still missing fix for rbconfig, it can be found here:

https://github.com/wayneeseguin/rvm/blob/master/pa...

it does two things important for movable rubies:

1. 
https://github.com/wayneeseguin/rvm/blob/master/pa... 
- properly detect libruby prefix on system with `lib64`
2. 
https://github.com/wayneeseguin/rvm/blob/master/pa... 
- replace all occurrences of application prefix with `$(prefix)` so 
after moving ruby to other location final system paths are used instead 
of the build system paths, this solves number of issues, especially with 
compilation gem native extensions.
Posted by Nobuyoshi Nakada (nobu)
on 2013-02-19 03:04
(Received via mailing list)
Issue #7172 has been updated by nobu (Nobuyoshi Nakada).

Status changed from Feedback to Closed

Try --with-opt-dir='${prefix}'.
r39176 is needed for `make reconfig' to work, though.
----------------------------------------
Bug #7172: [[Ruby 1.9:]] fix rbconfig for --enable-load-relative (v2)
https://bugs.ruby-lang.org/issues/7172#change-36582

Author: mpapis (Michal Papis)
Status: Closed
Priority: Normal
Assignee: nobu (Nobuyoshi Nakada)
Category: build
Target version: 2.0.0
ruby -v: 2.0.0dev


continuation of http://bugs.ruby-lang.org/issues/6903 and 
http://bugs.ruby-lang.org/issues/7115

Checked with 
http://bugs.ruby-lang.org/projects/ruby-193/reposi... 
and p286,
there is still missing fix for rbconfig, it can be found here:

https://github.com/wayneeseguin/rvm/blob/master/pa...

it does two things important for movable rubies:

1. 
https://github.com/wayneeseguin/rvm/blob/master/pa... 
- properly detect libruby prefix on system with `lib64`
2. 
https://github.com/wayneeseguin/rvm/blob/master/pa... 
- replace all occurrences of application prefix with `$(prefix)` so 
after moving ruby to other location final system paths are used instead 
of the build system paths, this solves number of issues, especially with 
compilation gem native extensions.
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.