Commit Graph

21 Commits

Author SHA256 Message Date
13ad85b94b - Fix for the previous change. we need to set the GEM_HOME before
even wrapping into the re-exec with ruby.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:ruby/ruby-common?expand=0&rev=131
2023-11-14 10:29:57 +00:00
9cf70d5884 Accepting request 1125725 from home:darix:apps
jemalloc locking + fix for ruby3.3~preview3 GEM_HOME breakage

OBS-URL: https://build.opensuse.org/request/show/1125725
OBS-URL: https://build.opensuse.org/package/show/devel:languages:ruby/ruby-common?expand=0&rev=130
2023-11-13 20:56:58 +00:00
68b70fa120 - replace File.exists? with File.exist? as the File.exists?
is no longer supported in 3.2

OBS-URL: https://build.opensuse.org/package/show/devel:languages:ruby/ruby-common?expand=0&rev=117
2022-11-17 12:00:45 +00:00
963f8606ee Accepting request 913938 from home:coolo:branches:devel:languages:ruby
- Do not create links in /etc/alternatives at all - they are ghosts
  and rpm database will only be confused if we have some wrong
  information about them (the link target is defined at runtime)
 
  This aligns with ruby2.7 package to avoid file conflicts about
  bundler and other built in gems

OBS-URL: https://build.opensuse.org/request/show/913938
OBS-URL: https://build.opensuse.org/package/show/devel:languages:ruby/ruby-common?expand=0&rev=113
2021-08-24 07:21:08 +00:00
Stephan Kulow
abbc00ff16 - Fix the links in /etc/alternatives not to point to themselves
OBS-URL: https://build.opensuse.org/package/show/devel:languages:ruby/ruby-common?expand=0&rev=112
2021-07-08 12:10:56 +00:00
Stephan Kulow
2b22fe80f1 Accepting request 866671 from home:darix:apps
- add support to package rubygems plugin dirs 
  as the file is conflicting you can only have one version of the
  same gem installed if it provides a rubygems plugin. at least for
  now

- disable docs and testsuite packaging by default
- support --no-document option

OBS-URL: https://build.opensuse.org/request/show/866671
OBS-URL: https://build.opensuse.org/package/show/devel:languages:ruby/ruby-common?expand=0&rev=109
2021-01-26 14:22:17 +00:00
890296d913 Accepting request 660610 from home:darix:apps
- --no-rdoc/--no-ri are obsolete in, if we get it passed in convert
  them to --no-document

OBS-URL: https://build.opensuse.org/request/show/660610
OBS-URL: https://build.opensuse.org/package/show/devel:languages:ruby/ruby-common?expand=0&rev=102
2018-12-21 23:36:25 +00:00
Jordi Massaguer
bd28d977e1 Accepting request 617126 from home:darix:ruby
- rename the gem_packages template from opensuse.spec.erb to
  gem_packages.spec.erb
- add support for binary_map flag in gem2rpm.yml
  - This can be used to rename the _unversioned_ symlink of the
    binaries in /usr/bin/ to avoid conflicts with other packages
- gem_packages.spec.erb: sync with file in gem2rpm

OBS-URL: https://build.opensuse.org/request/show/617126
OBS-URL: https://build.opensuse.org/package/show/devel:languages:ruby/ruby-common?expand=0&rev=99
2018-06-15 17:02:44 +00:00
6106252abc Accepting request 556491 from home:darix:apps
- switch requires of the autogenerated subpackages from
  rb_suffix-rubygem-gemname = version to
  rubygem(rb_abi:gemname) = version

- split our the rails part

- we need bundler now. given ruby 2.5 will have it intree anyway,
  this soon wont be a big burden.

- add support to generate requires from Gemfile.lock

- package the buildinfo dir
- allow passing options to extconf.rb

OBS-URL: https://build.opensuse.org/request/show/556491
OBS-URL: https://build.opensuse.org/package/show/devel:languages:ruby/ruby-common?expand=0&rev=95
2017-12-18 14:59:30 +00:00
75d1c0de7c - Since rubygems 2.5.0 the default version in the gem bin stub
changed from '>= 0' to '>= 0.a'. This was done to allow
  prerelease versions. Our patching script didn't take the '.a'
  into account and generated version fields like '= 0.10.1.a'
  instead of the expected '= 0.10.1'. This fix accounts for the
  '.a'.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:ruby/ruby-common?expand=0&rev=91
2016-03-01 01:05:13 +00:00
a85e941c04 Accepting request 305056 from home:darix:ruby
- Fix patching of the shebang line

OBS-URL: https://build.opensuse.org/request/show/305056
OBS-URL: https://build.opensuse.org/package/show/devel:languages:ruby/ruby-common?expand=0&rev=87
2015-05-02 12:05:54 +00:00
Stephan Kulow
74c83c31c9 Accepting request 297509 from home:darix:ruby
- The script sometimes returned from gem install already although
  the install wasn't finished yet. This broke e.g. the binary
  rename part.

OBS-URL: https://build.opensuse.org/request/show/297509
OBS-URL: https://build.opensuse.org/package/show/devel:languages:ruby/ruby-common?expand=0&rev=86
2015-04-17 11:51:10 +00:00
Stephan Kulow
5a8ec3496b Accepting request 290792 from home:darix:ruby
- Fail early if gem install fails
  This avoids confusing error messages at the end of the build.

- More fixes for ruby 1.8

- Ruby 1.8 insists on the () for the parameter

- Cleaner solution for the extensions doc dir
  The other solution was also failing on 1.8

- Forgot another option for forwarding

- Do not overwrite options.otheropts

- Fixed forwarding of options to gem install

- Only use the extensions doc dir on MRI 2.1.x

- Fix the ruby suffix for distributions before 13.2
- Do not fail with --gem-binary

- switch to ruby version of gem_install.sh
- added ruby-find-versioned to make it easier to find versioned
  binaries.
  - all for loops in the shell scripts and macros are now using
    this script

OBS-URL: https://build.opensuse.org/request/show/290792
OBS-URL: https://build.opensuse.org/package/show/devel:languages:ruby/ruby-common?expand=0&rev=85
2015-03-14 16:46:00 +00:00
e9e080dd40 Accepting request 281049 from home:dirkmueller:branches:devel:languages:ruby
- gem_install.sh: fix ruby shebang patching

OBS-URL: https://build.opensuse.org/request/show/281049
OBS-URL: https://build.opensuse.org/package/show/devel:languages:ruby/ruby-common?expand=0&rev=81
2015-01-14 10:41:22 +00:00
0c812e5108 Accepting request 253103 from home:darix:ruby
- we dont always have /usr/bin/ruby, use perl for patching the
  version in the bin wrapper. also replaced the sed for patching
  the shebang line.
- fixed a bad bug in the shebang line. we had an additional "."
  there.

- install gemrc on all distros

- dont delete .a files. there are actually gems where we need them
  like rubygem-libv8 for rubygem-therubyracer

- fix the case where we dont symlink the binaries. 

- gem_cleanup macro was missed when updating for old ruby versions.

- switch from "ruby -rrubygems -e 
  'print Gem::Specification.new.base_dir'"
  to "gem env gemdir"
 

- gem_build_cleanup: also delete static library files

- ruby 1.8 support:
  - gem_packages.sh: change to /usr/src/packages when
    /home/abuild/rpmbuild doesn't exist.
  - gem_packages template:
    - require rbconfigpackagingsupport to fix the ruby_install_name
      dependent variables. we do that for all distros but catch the
      LoadError and continue.
    - and dont use not(), we need to use "!" instead.

OBS-URL: https://build.opensuse.org/request/show/253103
OBS-URL: https://build.opensuse.org/package/show/devel:languages:ruby/ruby-common?expand=0&rev=73
2014-09-29 13:29:35 +00:00
Stephan Kulow
947e1e510d Accepting request 248313 from devel:languages:ruby:factory
- disable extensions doc dir on rubinius

- workaround https://github.com/rubinius/rubinius/issues/2732
  for UTF8 locale in gem_packages.sh

- we actually need the splitted version in any case. uncomment it
  again

- pass the ruby abi as hash containing :interpreter, :version,
  :abi as keys. that way we have the full new string but also the
  version for the 1.8 support

- rubygemsdeps.rb:
  - make the provides/requires also include the ruby interpreter
  - no longer emit the old package name style provides
- rubygems.attr:
  - make the path a bit more relaxed so we can match other ruby
    interpreter too

- added ruby-common.macros:
  Holds the common macros for the rpm macro based buildrequires.
- merged ruby.macros into ruby.rpm-macros:
  the later file now carries the rb_* and gem_* macros

- ruby.macros: drop the duplicate gem macros

- fix small typo in opensuse.spec.erb which broke the formatting.

- no longer require ruby(-devel). ruby-common is required by
  rubyX.Y so we should always be installed and this breaks a small

OBS-URL: https://build.opensuse.org/request/show/248313
OBS-URL: https://build.opensuse.org/package/show/devel:languages:ruby/ruby-common?expand=0&rev=69
2014-09-10 11:32:21 +00:00
Klaus Kämpf
6e886a6048 OBS-URL: https://build.opensuse.org/package/show/devel:languages:ruby/ruby-common?expand=0&rev=67 2014-02-13 15:13:27 +00:00
Stephan Kulow
e96f0e3337 - replace all */ruby with /usr/bin/ruby
OBS-URL: https://build.opensuse.org/package/show/devel:languages:ruby/ruby-common?expand=0&rev=13
2012-07-30 10:39:30 +00:00
Stephan Kulow
0d05c4d098 catch errors
OBS-URL: https://build.opensuse.org/package/show/devel:languages:ruby/ruby-common?expand=0&rev=12
2012-07-28 20:30:18 +00:00
Stephan Kulow
e12482ed93 - replace /usr/local/bin/ruby with /usr/bin/ruby - a very often mistake
OBS-URL: https://build.opensuse.org/package/show/devel:languages:ruby/ruby-common?expand=0&rev=11
2012-07-27 14:03:20 +00:00
Stephan Kulow
b52fd6d705 osc copypac from project:devel:languages:ruby:backports package:ruby-common revision:1
OBS-URL: https://build.opensuse.org/package/show/devel:languages:ruby/ruby-common?expand=0&rev=1
2012-07-26 07:22:03 +00:00