Opened 6 years ago

Last modified 5 years ago

#39248 assigned defect

rb ports need revbump

Reported by: ryandesign (Ryan Schmidt) Owned by: kimuraw (kimura wataru)
Priority: High Milestone:
Component: ports Version: 2.1.3
Keywords: Cc: gjasny@…, cooljeanius (Eric Gallager), mojca (Mojca Miklavec)
Port: ruby

Description

Following the changes made to the ruby-1.0 portgroup in March 2013, which added a ruby version number suffix to installed programs, all ports using the portgroup—at least those that install programs in bin—need a revbump so that they get rebuilt with those new settings. Revbumping all these ports is essential, because otherwise users installing from binaries (and those who already had the ports installed before you made these changes) will have the old program names while users building from source will have the new program names, causing havoc for other ports trying to use those ruby ports (one example: #39247).

Attachments (1)

ruby-1.0.tcl.diff (3.2 KB) - added by kimuraw (kimura wataru) 6 years ago.
pass rake path via "rake" environment

Download all attachments as: .zip

Change History (16)

comment:1 Changed 6 years ago by gjasny@…

Cc: gjasny@… added

Cc Me!

comment:2 Changed 6 years ago by cooljeanius (Eric Gallager)

Cc: egall@… added

Cc Me!

comment:3 Changed 6 years ago by cooljeanius (Eric Gallager)

(one example: #39247).

Also: #39043

comment:4 in reply to:  3 ; Changed 6 years ago by ryandesign (Ryan Schmidt)

Replying to egall@…:

Also: #39043

Thanks: I knew I had commented on this before but couldn't find it.

comment:5 in reply to:  4 Changed 6 years ago by cooljeanius (Eric Gallager)

Replying to ryandesign@…:

Replying to egall@…:

Also: #39043

Thanks: I knew I had commented on this before but couldn't find it.

You're welcome. :-)

(I had an easier time remembering, of course, since it was a ticket I had opened myself...)

comment:6 Changed 6 years ago by kimuraw (kimura wataru)

Status: newassigned

comment:7 Changed 6 years ago by cooljeanius (Eric Gallager)

This should be fixed as of r106535

comment:8 Changed 6 years ago by ryandesign (Ryan Schmidt)

Not entirely. For example, rb19-ronn has not yet been revbumped.

comment:10 Changed 6 years ago by gjasny@…

Seems this ticket got stalled. Any news here?

comment:11 Changed 6 years ago by jmroot (Joshua Root)

This is worse than I thought. Gems that use rake won't build unless you specify rake=rake-1.8 in the environment, since otherwise it uses the default_exec_format, which comes from ruby, and tries running rake1.8 which doesn't exist.

Changed 6 years ago by kimuraw (kimura wataru)

Attachment: ruby-1.0.tcl.diff added

pass rake path via "rake" environment

comment:12 in reply to:  11 Changed 6 years ago by kimuraw (kimura wataru)

I wrote a patch against group/ruby-1.0.tcl.

  1. add an option "ruby.rake", means fullpath to "rake" command. such as "ruby.bin" or "ruby.gem".
  2. set destroot.env rake=${ruby.rake}
DEBUG: Environment: CPATH='/opt/local/include' CC_PRINT_OPTIONS_FILE=...
rake='/opt/local/libexec/ruby1.8/rake'
DEBUG: Environment: CPATH='/opt/local/include' CC_PRINT_OPTIONS_FILE=...
rake='/opt/local/bin/rake1.9'
  1. ruby-1.8 gem ports requires rb-rake as depends_build
% port info --depends rb-rcov
depends_build: port:rb-rake    # <= added by ruby.setup gem from portgroup ruby
depends_run: 
depends_fetch: 
depends_lib: port:ruby, port:rb-rubygems
depends_extract:
% port info --depends rb-rake
depends_build:                 # <= rb-rake does not require rake
depends_run: 
depends_fetch: 
depends_lib: port:ruby, port:rb-rubygems
depends_extract: 
% port info --depends rb19-rcov
depends_build: 
depends_run: 
depends_fetch: 
depends_lib: port:ruby19
depends_extract: 

how about this?

Last edited 6 years ago by kimuraw (kimura wataru) (previous) (diff)

comment:13 Changed 6 years ago by jmroot (Joshua Root)

Do all gems need a rake dependency?

comment:14 in reply to:  8 Changed 5 years ago by ryandesign (Ryan Schmidt)

Replying to ryandesign@…:

Not entirely. For example, rb19-ronn has not yet been revbumped.

rb19-ronn was revbumped in r115099.

comment:15 Changed 5 years ago by mojca (Mojca Miklavec)

Cc: mojca@… added

Cc Me!

Note: See TracTickets for help on using tickets.