[ruby-core:67962] [ruby-trunk - Bug #10821] [Open] mkmf.rb: Incorrect have_devel? test depending on run order

5 zobrazení
Přeskočit na první nepřečtenou zprávu

jo...@joshpeek.com

nepřečteno,
2. 2. 2015 19:05:1902.02.15
komu: ruby...@ruby-lang.org
Issue #10821 has been reported by Joshua Peek.

----------------------------------------
Bug #10821: mkmf.rb: Incorrect have_devel? test depending on run order
https://bugs.ruby-lang.org/issues/10821

* Author: Joshua Peek
* Status: Open
* Priority: Normal
* Assignee:
* ruby -v: ruby 2.1.2p95 (2014-05-08 revision 45877) [x86_64-darwin14.0]
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN
----------------------------------------
have_devel? is usually lazily checked on the first call to try_do(). However, try_do() may be invoked within the scope of a with_ldflags or with_cflags block. If have_devel? is checked for the first time with altered test LDFLAGS or CFLAGS it may crash.

~~~
# extconf.rb
$LDFLAGS = "-L/custom/path/to/lib
try_ldflags "-Issl"
# try_ldflags -> try_link -> try_do -> have_devel (with incorrect $LDFLAG in scope)
~~~



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

ru...@tmm1.net

nepřečteno,
3. 2. 2015 17:01:5003.02.15
komu: ruby...@ruby-lang.org
Issue #10821 has been updated by Aman Gupta.

Backport changed from 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN to 2.0.0: UNKNOWN, 2.1: REQUIRED, 2.2: REQUIRED

----------------------------------------
Bug #10821: mkmf.rb: Incorrect have_devel? test depending on run order
https://bugs.ruby-lang.org/issues/10821#change-51372

* Author: Joshua Peek
* Status: Closed
* Priority: Normal
* Assignee:
* ruby -v: ruby 2.1.2p95 (2014-05-08 revision 45877) [x86_64-darwin14.0]
* Backport: 2.0.0: UNKNOWN, 2.1: REQUIRED, 2.2: REQUIRED

nar...@airemix.jp

nepřečteno,
13. 2. 2015 0:01:0213.02.15
komu: ruby...@ruby-lang.org
Issue #10821 has been updated by Yui NARUSE.

Backport changed from 2.0.0: UNKNOWN, 2.1: REQUIRED, 2.2: REQUIRED to 2.0.0: UNKNOWN, 2.1: REQUIRED, 2.2: DONE

ruby_2_2 r49581 merged revision(s) 49482,49487.

----------------------------------------
Bug #10821: mkmf.rb: Incorrect have_devel? test depending on run order
https://bugs.ruby-lang.org/issues/10821#change-51485

* Author: Joshua Peek
* Status: Closed
* Priority: Normal
* Assignee:
* ruby -v: ruby 2.1.2p95 (2014-05-08 revision 45877) [x86_64-darwin14.0]
* Backport: 2.0.0: UNKNOWN, 2.1: REQUIRED, 2.2: DONE

u...@garbagecollect.jp

nepřečteno,
13. 2. 2015 8:05:4613.02.15
komu: ruby...@ruby-lang.org
Issue #10821 has been updated by Usaku NAKAMURA.

Backport changed from 2.0.0: UNKNOWN, 2.1: REQUIRED, 2.2: DONE to 2.0.0: REQUIRED, 2.1: REQUIRED, 2.2: DONE

----------------------------------------
Bug #10821: mkmf.rb: Incorrect have_devel? test depending on run order
https://bugs.ruby-lang.org/issues/10821#change-51490

* Author: Joshua Peek
* Status: Closed
* Priority: Normal
* Assignee:
* ruby -v: ruby 2.1.2p95 (2014-05-08 revision 45877) [x86_64-darwin14.0]
* Backport: 2.0.0: REQUIRED, 2.1: REQUIRED, 2.2: DONE
Odpovědět všem
Odpověď autorovi
Přeposlat
0 nových zpráv