[ruby-core:68973] [Ruby trunk - Bug #11092] [Open] rdoc-generated *.gz files contain references to full path of the original, breaking rpmbuild

From: mi+ruby-lang-2015@...
Date: 2015-04-23 17:33:14 UTC
List: ruby-core #68973
Issue #11092 has been reported by =D0=9C=D1=96=D1=88=D0=B0 (null).

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

* Author: =D0=9C=D1=96=D1=88=D0=B0 (null)
* Status: Open
* Priority: Normal
* Assignee:=20
* 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 complaint=
 from 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 locatio=
n 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 fixed=
 to avoid leaking the location of the originals, reduce occupied space, and=
, indeed, avoid freaking-out rpmbuild.



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

In This Thread

Prev Next