Description of problem: Trying to run a rake task that makes use of redcloth_scan I get: # bundle exec rake snorby:setup Jammit Warning: Asset compression disabled -- Java unavailable. rake aborted! cannot load such file -- redcloth_scan Couldn't load redcloth_scan The $LOAD_PATH was: .... /usr/share/gems/gems/RedCloth-4.2.9/lib /usr/share/gems/gems/RedCloth-4.2.9/lib/case_sensitive_require /usr/share/gems/gems/RedCloth-4.2.9/ext /usr/lib64/gems/ruby/RedCloth-4.2.9/lib .... But redcloth_scan.so is installed here: /usr/lib64/gems/ruby/RedCloth-4.2.9/redcloth_scan.so Version-Release number of selected component (if applicable): rubygem-RedCloth-4.2.9-13.el7
Created attachment 1203060 [details] Fix lib install location This appears to do the trick and fixes my rake error.
These are older guidelines which should be applied for EPEL7 packages: https://fedoraproject.org/w/index.php?title=Packaging:Ruby&oldid=363159 precisely this part: ``` # If there are C extensions, mv them to the extdir. # You must replace REQUIRE_PATHS according to your gem specifics. mkdir -p %{buildroot}%{gem_extdir_mri}/REQUIRE_PATHS mv %{buildroot}%{gem_instdir}/REQUIRE_PATHS/shared_object.so %{buildroot}%{gem_extdir_mri}/REQUIRE_PATHS/ You should replace REQUIRE_PATHS with the first value of the require_paths field in the gemspec file. It will typically be either "lib" or "ext". For instance if you find following line in your gemspec file: s.require_paths = ["lib"] then the example above would look like: mkdir -p %{buildroot}%{gem_extdir_mri}/lib mv %{buildroot}%{gem_instdir}/lib/shared_object.so %{buildroot}%{gem_extdir_mri}/lib/ ```
I think the same error is in rubygem-bcrypt. Greg - you probably want to check your other EPEL7 rubygem packages as well.
(In reply to Orion Poplawski from comment #3) > I think the same error is in rubygem-bcrypt. Greg - you probably want to > check your other EPEL7 rubygem packages as well. Indeed, one of the gems I was trying to package that depended on bcrypt keeps having issues finding the library and I was struggling to identify why that was.
I've pushed a new version with the pathing change to Bodhi - it should come available in updates-testing in the next compose.
rubygem-RedCloth-4.2.9-14.el7 has been pushed to the Fedora EPEL 7 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2016-51dededba0
rubygem-RedCloth-4.2.9-14.el7 has been pushed to the Fedora EPEL 7 stable repository. If problems still persist, please make note of it in this bug report.