Issue #13413 has been updated by usa (Usaku NAKAMURA).

Backport changed from 2.2: DONTNEED, 2.3: REQUIRED, 2.4: DONTNEED to 2.2: DONTNEED, 2.3: DONE, 2.4: DONTNEED

ruby_2_3 r59277 merged revision(s) 57446.

----------------------------------------
Bug #13413: --with-static-linked-ext doesn't install extension files on `make install`
https://bugs.ruby-lang.org/issues/13413#change-65671

* Author: mistydemeo (Misty De Meo)
* Status: Closed
* Priority: Normal
* Assignee: nobu (Nobuyoshi Nakada)
* Target version: 
* ruby -v: ruby 2.3.1p112 (2016-04-26 revision 54768) [x86_64-darwin16]
* Backport: 2.2: DONTNEED, 2.3: DONE, 2.4: DONTNEED
----------------------------------------
When compiling Ruby using the --with-static-linked-ext option, ext content is not installed into Ruby's lib directory. For modules which include pure Ruby content, it means that those parts of the module can't be required. For example, `date`'s `date.rb` isn't installed into `/lib/ruby/$ABI_VERSION`; `require "date_core"` works, but `require "date"` doesn't.

I've confirmed that this bug occurs on versions 2.3.1 through 2.4.1 and on trunk; it doesn't occur on 2.2.7 and older. I was not able to test on 2.3.0 due to what appears to be an unrelated static linked ext bug. In 2.4 and trunk, `make install` fails to complete due to the inability to require an ext module required as part of the install process; in 2.3, `make install` completes.

Ruby was configured with the following options:

~~~
--prefix=/usr/local/Cellar/portable-ruby-trunk/HEAD-9638295
--enable-load-relative
--with-static-linked-ext
--disable-dln
--with-out-ext=tk,sdbm,gdbm,dbm,dl,coverage,fiddle
--disable-install-doc
--disable-install-rdoc
--disable-dtrace
--with-opt-dir=/usr/local/opt/portable-readline:/usr/local/opt/portable-libyaml:/usr/local/opt/portable-openssl
~~~

Full build logs are available here: https://gist.github.com/b33108e03ed6eeda30c4e004a81284b3



-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>