Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP4:GA
rubygem-gem2rpm
0010-Try-to-load-rbconfigpackagingsupport-and-f...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0010-Try-to-load-rbconfigpackagingsupport-and-fail-gracef.patch of Package rubygem-gem2rpm
From 953ff66677490c78ceff14afc0365f832079333a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcus=20R=C3=BCckert?= <darix@nordisch.org> Date: Tue, 21 Oct 2014 17:55:23 +0200 Subject: [PATCH 10/26] Try to load rbconfigpackagingsupport and fail gracefully if not available The file will patch ruby_install_name on unversioned ruby installations. --- templates/gem_packages.spec.erb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/templates/gem_packages.spec.erb b/templates/gem_packages.spec.erb index 29873e5..a6ab58b 100644 --- a/templates/gem_packages.spec.erb +++ b/templates/gem_packages.spec.erb @@ -1,4 +1,9 @@ <% + + begin + require 'rbconfigpackagingsupport' + rescue LoadError => ex + end def self.patch_mod_full_name(path, mod_full_name) path.gsub(/\/-/, "/#{mod_full_name}") end -- 2.10.2
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor