Issue #11092 has been reported by  (null).

----------------------------------------
Bug #11092: rdoc-generated *.gz files contain references to full path of the original, breaking rpmbuild
https://bugs.ruby-lang.org/issues/11092

* Author:  (null)
* Status: Open
* Priority: Normal
* Assignee: 
* ruby -v: ruby 2.2.2p95 (2015-04-13 revision 50295) [x86_64-linux]
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN
----------------------------------------
Trying to build some RPMs here from GEMs I'm seeing the following complaintfrom rpmbuild-utility:

+ /usr/lib/rpm/check-buildroot
Binary file /home/mi/rpmbuild/ti_ruby_gems/BUILDROOT/ti_ruby22-rubygem-rake-10.4.2-1.x86_64/data/packages/ti_ruby22/lib/ruby/gems/2.2.0/doc/rake-10.4.2/rdoc/js/search_index.js.gz matches
Binary file /home/mi/rpmbuild/ti_ruby_gems/BUILDROOT/ti_ruby22-rubygem-rake-10.4.2-1.x86_64/data/packages/ti_ruby22/lib/ruby/gems/2.2.0/doc/rake-10.4.2/rdoc/js/navigation.js.gz matches
Binary file /home/mi/rpmbuild/ti_ruby_gems/BUILDROOT/ti_ruby22-rubygem-rake-10.4.2-1.x86_64/data/packages/ti_ruby22/lib/ruby/gems/2.2.0/doc/rake-10.4.2/rdoc/js/searcher.js.gz matches
Found '/home/mi/rpmbuild/ti_ruby_gems/BUILDROOT/ti_ruby22-rubygem-rake-10.4.2-1.x86_64' in installed files; aborting
error: Bad exit status from /data/tmp/rpm-tmp.hv080f (%install)

Indeed, those three .js.gz all contain fill string referring to the location of the original (uncompressed) file.

Note, that the references are not inside the .js files -- but in the js.gz (likely inserted by zlib, when writing out gz-header). This should be fixedto avoid leaking the location of the originals, reduce occupied space, and, indeed, avoid freaking-out rpmbuild.



-- 
https://bugs.ruby-lang.org/