[#83096] File.setuid? on IO (Re: [ruby-cvs:67289] normal:r60108 (trunk): file.c: release GVL in File.{setuid?, setgid?, sticky?}) — Nobuyoshi Nakada <nobu@...>
On 2017/10/04 8:47, normal@ruby-lang.org wrote:
5 messages
2017/10/04
[#83100] Re: File.setuid? on IO (Re: [ruby-cvs:67289] normal:r60108 (trunk): file.c: release GVL in File.{setuid?, setgid?, sticky?})
— Eric Wong <normalperson@...>
2017/10/04
Nobuyoshi Nakada <nobu@ruby-lang.org> wrote:
[#83105] Re: File.setuid? on IO (Re: [ruby-cvs:67289] normal:r60108 (trunk): file.c: release GVL in File.{setuid?, setgid?, sticky?})
— Nobuyoshi Nakada <nobu@...>
2017/10/04
On 2017/10/04 15:55, Eric Wong wrote:
[#83107] Alias Enumerable#include? to Enumerable#includes? — Alberto Almagro <albertoalmagro@...>
Hello,
9 messages
2017/10/04
[#83113] Re: Alias Enumerable#include? to Enumerable#includes?
— "Urabe, Shyouhei" <shyouhei@...>
2017/10/05
This has been requested countless times, then rejected each and every time.
[#83129] Re: Alias Enumerable#include? to Enumerable#includes?
— Alberto Almagro <albertoalmagro@...>
2017/10/05
Sorry I didn't found it on the core mail list's archive.
[#83138] Re: Alias Enumerable#include? to Enumerable#includes?
— "Urabe, Shyouhei" <shyouhei@...>
2017/10/06
Ruby has not been made of popular votes so far. You have to show us
[#83149] Re: Alias Enumerable#include? to Enumerable#includes?
— Eric Wong <normalperson@...>
2017/10/06
Alberto Almagro <albertoalmagro@gmail.com> wrote:
[#83200] [Ruby trunk Feature#13996] [PATCH] file.c: apply2files releases GVL — normalperson@...
Issue #13996 has been reported by normalperson (Eric Wong).
4 messages
2017/10/10
[ruby-core:83462] [Ruby trunk Bug#11434][Rejected] test_try_ldflag_invalid_opt fails when ruby is not installed
From:
usa@...
Date:
2017-10-21 12:31:23 UTC
List:
ruby-core #83462
Issue #11434 has been updated by usa (Usaku NAKAMURA).
Status changed from Open to Rejected
2.0.0 is out of date
----------------------------------------
Bug #11434: test_try_ldflag_invalid_opt fails when ruby is not installed
https://bugs.ruby-lang.org/issues/11434#change-67448
* Author: vo.x (Vit Ondruch)
* Status: Rejected
* Priority: Normal
* Assignee: usa (Usaku NAKAMURA)
* Target version:
* ruby -v: ruby 2.0.0p645 (2015-04-13) [x86_64-linux]
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN
----------------------------------------
This test fails when building Ruby package:
~~~
$ make test-all TESTS="-n /test_try_ldflag_invalid_opt/"
CC = gcc
LD = ld
LDSHARED = gcc -shared
CFLAGS = -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -mtune=generic -fPIC -m64
XCFLAGS = -include ruby/config.h -include ruby/missing.h -D_FORTIFY_SOURCE=2 -fstack-protector -fno-strict-overflow -fvisibility=hidden -DRUBY_EXPORT
CPPFLAGS = -I. -I.ext/include/x86_64-linux -I./include -I.
DLDFLAGS = -Wl,-soname,libruby.so.2.0 -fstack-protector -m64
SOLIBS = -lpthread -lrt -ldl -lcrypt -lm
./miniruby -I./lib -I. -I.ext/common ./tool/runruby.rb --extout=.ext -- --disable-gems "./test/runner.rb" --ruby="./miniruby -I./lib -I. -I.ext/common ./tool/runruby.rb --extout=.ext -- --disable-gems" -n /test_try_ldflag_invalid_opt/
/builddir/build/BUILD/ruby-2.0.0-p645/test/-ext-/symbol/test_type.rb: cannot load such file -- -test-/symbol
Run options: "--ruby=./miniruby -I./lib -I. -I.ext/common ./tool/runruby.rb --extout=.ext -- --disable-gems" -n /test_try_ldflag_invalid_opt/
# Running tests:
[1/1] TestMkmf::TestFlags#test_try_ldflag_invalid_opt = 0.11 s
1) Error:
test_try_ldflag_invalid_opt(TestMkmf::TestFlags):
RuntimeError: The compiler failed to generate an executable file.
You have to install development tools first.
/builddir/build/BUILD/ruby-2.0.0-p645/lib/mkmf.rb:434:in `try_do'
/builddir/build/BUILD/ruby-2.0.0-p645/lib/mkmf.rb:519:in `try_link0'
/builddir/build/BUILD/ruby-2.0.0-p645/lib/mkmf.rb:534:in `try_link'
/builddir/build/BUILD/ruby-2.0.0-p645/lib/mkmf.rb:615:in `try_ldflags'
/builddir/build/BUILD/ruby-2.0.0-p645/test/mkmf/base.rb:145:in `<main>'
Finished tests in 0.824727s, 1.2125 tests/s, 1.2125 assertions/s.
1 tests, 1 assertions, 0 failures, 1 errors, 0 skips
ruby -v: ruby 2.0.0p645 (2015-04-13) [x86_64-linux]
uncommon.mk:513: recipe for target 'yes-test-all' failed
make: *** [yes-test-all] Error 1
~~~
When I link the libruby.so into /usr/lib64/, it passes just fine:
~~~
# ln -sf /builddir/build/BUILD/ruby-2.0.0-p645/libruby.so /usr/lib64/
$ make test-all TESTS="-n /test_try_ldflag_invalid_opt/"
CC = gcc
LD = ld
LDSHARED = gcc -shared
CFLAGS = -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -mtune=generic -fPIC -m64
XCFLAGS = -include ruby/config.h -include ruby/missing.h -D_FORTIFY_SOURCE=2 -fstack-protector -fno-strict-overflow -fvisibility=hidden -DRUBY_EXPORT
CPPFLAGS = -I. -I.ext/include/x86_64-linux -I./include -I.
DLDFLAGS = -Wl,-soname,libruby.so.2.0 -fstack-protector -m64
SOLIBS = -lpthread -lrt -ldl -lcrypt -lm
./miniruby -I./lib -I. -I.ext/common ./tool/runruby.rb --extout=.ext -- --disable-gems "./test/runner.rb" --ruby="./miniruby -I./lib -I. -I.ext/common ./tool/runruby.rb --extout=.ext -- --disable-gems" -n /test_try_ldflag_invalid_opt/
/builddir/build/BUILD/ruby-2.0.0-p645/test/-ext-/symbol/test_type.rb: cannot load such file -- -test-/symbol
Run options: "--ruby=./miniruby -I./lib -I. -I.ext/common ./tool/runruby.rb --extout=.ext -- --disable-gems" -n /test_try_ldflag_invalid_opt/
# Running tests:
Finished tests in 0.841411s, 1.1885 tests/s, 5.9424 assertions/s.
1 tests, 5 assertions, 0 failures, 0 errors, 0 skips
ruby -v: ruby 2.0.0p645 (2015-04-13) [x86_64-linux]
~~~
This is probably due to backport of #10821. Interestingly, for Ruby 2.2.2, the test passes just fine. Not sure about Ruby 2.1
--
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>