Bug #9406

bigdecimal 1.2.4 install fail because missing ruby/util.h macro

Added by Jon Forums about 1 year ago. Updated about 1 year ago.

[ruby-core:<unknown>]
Status:Closed
Priority:Normal
Assignee:Kenta Murata
ruby -v:- Backport:

Description

2.0.0 ruby/util.h is missing this trunk macro

http://paste.ubuntu.com/6748376/

which causes this failure

http://paste.ubuntu.com/6747904/

Manually patching util.h with the trunk macro fixes gem install fail

http://paste.ubuntu.com/6748414/


Related issues

Duplicated by Ruby trunk - Bug #9412: bigdecimal 1.2.4 fail to compile on windows Closed 01/14/2014
Duplicated by Ruby trunk - Bug #9407: bigdecimal 1.2.4 install fail because missing ruby/util.h... Closed 01/14/2014

Associated revisions

Revision 44593
Added by Nobuyoshi Nakada about 1 year ago

bigdecimal.c: backword compatibility as gem

  • ext/bigdecimal/bigdecimal.c (DECIMAL_SIZE_OF_BITS): fallback definition for 2.1 or older. [Backport #9406]
  • ext/bigdecimal/bigdecimal.c (raise_with_class): fallback definition for 1.9.

Revision 44594
Added by Nobuyoshi Nakada about 1 year ago

bigdecimal.c: backword compatibility as gem

  • ext/bigdecimal/bigdecimal.c (CLASS_NAME): macro to wrap depending on PRIsVALUE for 1.9. [Backport #9406]

History

#1 Updated by Jon Forums about 1 year ago

With no patch to util.h, bigdecimal 1.2.4 installs ok on 64bit linux in both 2.0.0 and 2.1.1

jon@ubusvr64:~$ uru gem up bigdecimal

ruby 2.0.0p384 (2014-01-12 revision 44576) [x86_64-linux]

Updating installed gems
Updating bigdecimal
Fetching: bigdecimal-1.2.4.gem (100%)
Building native extensions.  This could take a while...
Successfully installed bigdecimal-1.2.4
Gems updated: bigdecimal

ruby 2.1.1p5 (2014-01-11 revision 44557) [x86_64-linux]

Updating installed gems
Updating bigdecimal
Fetching: bigdecimal-1.2.4.gem (100%)
Building native extensions.  This could take a while...
Successfully installed bigdecimal-1.2.4
Gems updated: bigdecimal

jon@ubusvr64:~$ uru gem li bigdecimal

ruby 2.0.0p384 (2014-01-12 revision 44576) [x86_64-linux]

*** LOCAL GEMS ***
bigdecimal (1.2.4, 1.2.3, 1.2.0)

ruby 2.1.1p5 (2014-01-11 revision 44557) [x86_64-linux]

*** LOCAL GEMS ***
bigdecimal (1.2.4, 1.2.3)

#2 Updated by Nobuyoshi Nakada about 1 year ago

  • Duplicated by Bug #9412: bigdecimal 1.2.4 fail to compile on windows added

#3 Updated by Nobuyoshi Nakada about 1 year ago

  • Tracker changed from Backport to Bug
  • Project changed from Backport200 to Ruby trunk
  • Category set to ext
  • Status changed from Open to Closed
  • Assignee changed from Tomoyuki Chikanaga to Kenta Murata

Added macros for backword compatibilities at r44593 and r44594.

Next release of bigdecimal gem will fix this.

#4 Updated by Nobuyoshi Nakada about 1 year ago

  • ruby -v changed from ruby 2.0.0p384 (2014-01-12 revision 44576) [i386-mingw32] to -

Issue #9406 has been updated by Nobuyoshi Nakada.

Tracker changed from Backport to Bug
Project changed from Backport200 to ruby-trunk
Category set to ext
Status changed from Open to Closed
Assignee changed from Tomoyuki Chikanaga to Kenta Murata

Added macros for backword compatibilities at r44593 and r44594.

Next release of bigdecimal gem will fix this.


Bug #9406: bigdecimal 1.2.4 install fail because missing ruby/util.h macro
https://bugs.ruby-lang.org/issues/9406#change-44316

#5 Updated by Kenta Murata about 1 year ago

I've released bigdecimal 1.2.5.

#6 Updated by Kenta Murata about 1 year ago

Issue #9406 has been updated by Kenta Murata.

I've released bigdecimal 1.2.5.


Bug #9406: bigdecimal 1.2.4 install fail because missing ruby/util.h macro
https://bugs.ruby-lang.org/issues/9406#change-44346

#7 Updated by Nobuyoshi Nakada about 1 year ago

  • Duplicated by Bug #9407: bigdecimal 1.2.4 install fail because missing ruby/util.h macro added

Also available in: Atom PDF