Forum: Ruby-core [ruby-trunk - Bug #9186][Open] json/pure.rb missing on trunk

F736999f7c1b7a87a100faa112bbc0f3?d=identicon&s=25 charliesome (Charlie Somerville) (Guest)
on 2013-12-01 00:42
(Received via mailing list)
Issue #9186 has been reported by charliesome (Charlie Somerville).

----------------------------------------
Bug #9186: json/pure.rb missing on trunk
https://bugs.ruby-lang.org/issues/9186

Author: charliesome (Charlie Somerville)
Status: Open
Priority: High
Assignee:
Category:
Target version:
ruby -v: ruby 2.1.0dev (2013-11-30 trunk 43927) [x86_64-darwin13.0]
Backport: 1.9.3: UNKNOWN, 2.0.0: UNKNOWN


Line 60 of ext/json/lib/json.rb requires json/pure if json/ext cannot be
required.

This file is missing on trunk, meaning the JSON library is broken unless
the C extension is present.
Eabad423977cfc6873b8f5df62b848a6?d=identicon&s=25 hsbt (Hiroshi SHIBATA) (Guest)
on 2013-12-01 12:02
(Received via mailing list)
Issue #9186 has been updated by hsbt (Hiroshi SHIBATA).

Assignee set to naruse (Yui NARUSE)
Target version set to current: 2.1.0


----------------------------------------
Bug #9186: json/pure.rb missing on trunk
https://bugs.ruby-lang.org/issues/9186#change-43302

Author: charliesome (Charlie Somerville)
Status: Open
Priority: High
Assignee: naruse (Yui NARUSE)
Category:
Target version: current: 2.1.0
ruby -v: ruby 2.1.0dev (2013-11-30 trunk 43927) [x86_64-darwin13.0]
Backport: 1.9.3: UNKNOWN, 2.0.0: UNKNOWN


Line 60 of ext/json/lib/json.rb requires json/pure if json/ext cannot be
required.

This file is missing on trunk, meaning the JSON library is broken unless
the C extension is present.
C4c327c418a3182b7f6a30dd1534143a?d=identicon&s=25 Vít Ondruch (vo_x)
on 2013-12-01 20:33
(Received via mailing list)
Issue #9186 has been updated by vo.x (Vit Ondruch).


I'm just wondering, what should be the circumstances that C extension is
missing?
----------------------------------------
Bug #9186: json/pure.rb missing on trunk
https://bugs.ruby-lang.org/issues/9186#change-43320

Author: charliesome (Charlie Somerville)
Status: Open
Priority: High
Assignee: naruse (Yui NARUSE)
Category:
Target version: current: 2.1.0
ruby -v: ruby 2.1.0dev (2013-11-30 trunk 43927) [x86_64-darwin13.0]
Backport: 1.9.3: UNKNOWN, 2.0.0: UNKNOWN


Line 60 of ext/json/lib/json.rb requires json/pure if json/ext cannot be
required.

This file is missing on trunk, meaning the JSON library is broken unless
the C extension is present.
F736999f7c1b7a87a100faa112bbc0f3?d=identicon&s=25 charliesome (Charlie Somerville) (Guest)
on 2013-12-01 22:55
(Received via mailing list)
Issue #9186 has been updated by charliesome (Charlie Somerville).


@vo.x: I noticed this because it was breaking on Rubinius - there's also
probably some situations where C extensions can't be loaded in CRuby.
----------------------------------------
Bug #9186: json/pure.rb missing on trunk
https://bugs.ruby-lang.org/issues/9186#change-43322

Author: charliesome (Charlie Somerville)
Status: Open
Priority: High
Assignee: naruse (Yui NARUSE)
Category:
Target version: current: 2.1.0
ruby -v: ruby 2.1.0dev (2013-11-30 trunk 43927) [x86_64-darwin13.0]
Backport: 1.9.3: UNKNOWN, 2.0.0: UNKNOWN


Line 60 of ext/json/lib/json.rb requires json/pure if json/ext cannot be
required.

This file is missing on trunk, meaning the JSON library is broken unless
the C extension is present.
02da662c083396641da96c1d32fc86ed?d=identicon&s=25 kosaki (Motohiro KOSAKI) (Guest)
on 2013-12-02 00:58
(Received via mailing list)
Issue #9186 has been updated by kosaki (Motohiro KOSAKI).


> there's also probably some situations where C extensions can't be loaded in
CRuby.

Hmm.. When? It shouldn't happen on CRuby.
----------------------------------------
Bug #9186: json/pure.rb missing on trunk
https://bugs.ruby-lang.org/issues/9186#change-43325

Author: charliesome (Charlie Somerville)
Status: Open
Priority: High
Assignee: naruse (Yui NARUSE)
Category:
Target version: current: 2.1.0
ruby -v: ruby 2.1.0dev (2013-11-30 trunk 43927) [x86_64-darwin13.0]
Backport: 1.9.3: UNKNOWN, 2.0.0: UNKNOWN


Line 60 of ext/json/lib/json.rb requires json/pure if json/ext cannot be
required.

This file is missing on trunk, meaning the JSON library is broken unless
the C extension is present.
F736999f7c1b7a87a100faa112bbc0f3?d=identicon&s=25 charliesome (Charlie Somerville) (Guest)
on 2013-12-02 01:15
(Received via mailing list)
Issue #9186 has been updated by charliesome (Charlie Somerville).


> Hmm.. When? It shouldn't happen on CRuby.

It isn't a common use case, but I have experienced some issues with C
extensions when cross-compiling CRuby.
----------------------------------------
Bug #9186: json/pure.rb missing on trunk
https://bugs.ruby-lang.org/issues/9186#change-43326

Author: charliesome (Charlie Somerville)
Status: Open
Priority: High
Assignee: naruse (Yui NARUSE)
Category:
Target version: current: 2.1.0
ruby -v: ruby 2.1.0dev (2013-11-30 trunk 43927) [x86_64-darwin13.0]
Backport: 1.9.3: UNKNOWN, 2.0.0: UNKNOWN


Line 60 of ext/json/lib/json.rb requires json/pure if json/ext cannot be
required.

This file is missing on trunk, meaning the JSON library is broken unless
the C extension is present.
02da662c083396641da96c1d32fc86ed?d=identicon&s=25 KOSAKI Motohiro (Guest)
on 2013-12-02 02:47
(Received via mailing list)
2013/12/1 charliesome (Charlie Somerville) <charliesome@ruby-lang.org>:
>
> Issue #9186 has been updated by charliesome (Charlie Somerville).
>
>
>> Hmm.. When? It shouldn't happen on CRuby.
>
> It isn't a common use case, but I have experienced some issues with C extensions
when cross-compiling CRuby.

Can you please elaborate more? Do you mean JSON is now cross-compile
unsafe? It seems horrible.
F736999f7c1b7a87a100faa112bbc0f3?d=identicon&s=25 charliesome (Charlie Somerville) (Guest)
on 2013-12-02 03:51
(Received via mailing list)
Issue #9186 has been updated by charliesome (Charlie Somerville).


> Can you please elaborate more? Do you mean JSON is now cross-compile unsafe? It
seems horrible.

This was a long time ago, and I can't recall specific details. I was
just using this as an example of when C extensions may not work properly
and this bug could be triggered in CRuby.
----------------------------------------
Bug #9186: json/pure.rb missing on trunk
https://bugs.ruby-lang.org/issues/9186#change-43336

Author: charliesome (Charlie Somerville)
Status: Open
Priority: High
Assignee: naruse (Yui NARUSE)
Category:
Target version: current: 2.1.0
ruby -v: ruby 2.1.0dev (2013-11-30 trunk 43927) [x86_64-darwin13.0]
Backport: 1.9.3: UNKNOWN, 2.0.0: UNKNOWN


Line 60 of ext/json/lib/json.rb requires json/pure if json/ext cannot be
required.

This file is missing on trunk, meaning the JSON library is broken unless
the C extension is present.
9361878d459f1709feec780518946ee5?d=identicon&s=25 naruse (Yui NARUSE) (Guest)
on 2014-01-09 09:33
(Received via mailing list)
Issue #9186 has been updated by naruse (Yui NARUSE).

Status changed from Open to Rejected

I intentionally removed pure.rb on ruby's repo because CRuby always have
C exts.

If C exts is not properly build, the binary shouldn't work.
----------------------------------------
Bug #9186: json/pure.rb missing on trunk
https://bugs.ruby-lang.org/issues/9186#change-44186

Author: charliesome (Charlie Somerville)
Status: Rejected
Priority: High
Assignee: naruse (Yui NARUSE)
Category:
Target version: 2.1.0
ruby -v: ruby 2.1.0dev (2013-11-30 trunk 43927) [x86_64-darwin13.0]
Backport: 1.9.3: UNKNOWN, 2.0.0: UNKNOWN


Line 60 of ext/json/lib/json.rb requires json/pure if json/ext cannot be
required.

This file is missing on trunk, meaning the JSON library is broken unless
the C extension is present.
This topic is locked and can not be replied to.