Rubygem .js files fubar?

Matthew Seaman matthew at FreeBSD.org
Sun Jan 17 15:29:35 UTC 2016


On 17/01/2016 06:33, Steve Wills wrote:
> On 01/17/16 12:57 AM, Steve Wills wrote:
>>
>> As for why the original file isn't deleted, I'm not sure. I don't see
>> this in my local tree, but I have some changes that may be masking it.
>>
> 
> Oh, I wasn't seeing it because I was testing with Ruby 2.1 and it only
> happens with Ruby 2.2 (and presumably 2.3). I'll look into that.

Yes, this is with ruby-2.2.x -- sorry, should have mentioned that.

There seems to be a lot of duplicated files installed, some in both
compressed and uncompressed forms:

# cd /usr/local/lib/ruby/gems
# find . -name '*.js' -print0 | xargs -0 sha256 | sort -k 4 >
/tmp/js-checksums
# for f in $( find . -name '*.js.gz' -print ); do echo -n "$f " ; gzcat
$f | sha256 ; done | sort -k 2 > /tmp/js-gz-checksums

Then for example, choosing one checksum:

# cd /tmp
# grep b928caf69cb062b33c1982f5aee4e03869fd0 *-checksums
js-checksums:SHA256 (./2.2/doc/colorator-0.1/rdoc/js/navigation.js) =
b928caf69cb062b33c1982f5aee4e03869fd0b98635c53c02e7880cd591f263f
js-checksums:SHA256 (./2.2/doc/ffi-1.9.10/rdoc/js/navigation.js) =
b928caf69cb062b33c1982f5aee4e03869fd0b98635c53c02e7880cd591f263f
js-checksums:SHA256 (./2.2/doc/jekyll-3.0.1/rdoc/js/navigation.js) =
b928caf69cb062b33c1982f5aee4e03869fd0b98635c53c02e7880cd591f263f
js-checksums:SHA256
(./2.2/doc/jekyll-sass-converter-1.4.0/rdoc/js/navigation.js) =
b928caf69cb062b33c1982f5aee4e03869fd0b98635c53c02e7880cd591f263f
js-checksums:SHA256 (./2.2/doc/jekyll-watch-1.3.0/rdoc/js/navigation.js)
= b928caf69cb062b33c1982f5aee4e03869fd0b98635c53c02e7880cd591f263f
js-checksums:SHA256 (./2.2/doc/kramdown-1.9.0/rdoc/js/navigation.js) =
b928caf69cb062b33c1982f5aee4e03869fd0b98635c53c02e7880cd591f263f
js-checksums:SHA256 (./2.2/doc/liquid-3.0.6/rdoc/js/navigation.js) =
b928caf69cb062b33c1982f5aee4e03869fd0b98635c53c02e7880cd591f263f
js-checksums:SHA256 (./2.2/doc/listen-3.0.5/rdoc/js/navigation.js) =
b928caf69cb062b33c1982f5aee4e03869fd0b98635c53c02e7880cd591f263f
js-checksums:SHA256 (./2.2/doc/mercenary-0.3.5/rdoc/js/navigation.js) =
b928caf69cb062b33c1982f5aee4e03869fd0b98635c53c02e7880cd591f263f
js-checksums:SHA256 (./2.2/doc/rb-fsevent-0.9.7/rdoc/js/navigation.js) =
b928caf69cb062b33c1982f5aee4e03869fd0b98635c53c02e7880cd591f263f
js-checksums:SHA256 (./2.2/doc/rb-inotify-0.9.5/rdoc/js/navigation.js) =
b928caf69cb062b33c1982f5aee4e03869fd0b98635c53c02e7880cd591f263f
js-checksums:SHA256 (./2.2/doc/rb-kqueue-0.2.4/rdoc/js/navigation.js) =
b928caf69cb062b33c1982f5aee4e03869fd0b98635c53c02e7880cd591f263f
js-checksums:SHA256 (./2.2/doc/rouge-1.10.1/rdoc/js/navigation.js) =
b928caf69cb062b33c1982f5aee4e03869fd0b98635c53c02e7880cd591f263f
js-checksums:SHA256 (./2.2/doc/safe_yaml-1.0.4/rdoc/js/navigation.js) =
b928caf69cb062b33c1982f5aee4e03869fd0b98635c53c02e7880cd591f263f
js-checksums:SHA256 (./2.2/doc/sass-3.4.21/rdoc/js/navigation.js) =
b928caf69cb062b33c1982f5aee4e03869fd0b98635c53c02e7880cd591f263f
js-checksums:SHA256 (./2.2/doc/svn2git-2.3.2/rdoc/js/navigation.js) =
b928caf69cb062b33c1982f5aee4e03869fd0b98635c53c02e7880cd591f263f
js-gz-checksums:./2.2/doc/colorator-0.1/rdoc/js/navigation.js.gz
b928caf69cb062b33c1982f5aee4e03869fd0b98635c53c02e7880cd591f263f
js-gz-checksums:./2.2/doc/ffi-1.9.10/rdoc/js/navigation.js.gz
b928caf69cb062b33c1982f5aee4e03869fd0b98635c53c02e7880cd591f263f
js-gz-checksums:./2.2/doc/jekyll-3.0.1/rdoc/js/navigation.js.gz
b928caf69cb062b33c1982f5aee4e03869fd0b98635c53c02e7880cd591f263f
js-gz-checksums:./2.2/doc/jekyll-sass-converter-1.4.0/rdoc/js/navigation.js.gz
b928caf69cb062b33c1982f5aee4e03869fd0b98635c53c02e7880cd591f263f
js-gz-checksums:./2.2/doc/jekyll-watch-1.3.0/rdoc/js/navigation.js.gz
b928caf69cb062b33c1982f5aee4e03869fd0b98635c53c02e7880cd591f263f
js-gz-checksums:./2.2/doc/kramdown-1.9.0/rdoc/js/navigation.js.gz
b928caf69cb062b33c1982f5aee4e03869fd0b98635c53c02e7880cd591f263f
js-gz-checksums:./2.2/doc/liquid-3.0.6/rdoc/js/navigation.js.gz
b928caf69cb062b33c1982f5aee4e03869fd0b98635c53c02e7880cd591f263f
js-gz-checksums:./2.2/doc/listen-3.0.5/rdoc/js/navigation.js.gz
b928caf69cb062b33c1982f5aee4e03869fd0b98635c53c02e7880cd591f263f
js-gz-checksums:./2.2/doc/mercenary-0.3.5/rdoc/js/navigation.js.gz
b928caf69cb062b33c1982f5aee4e03869fd0b98635c53c02e7880cd591f263f
js-gz-checksums:./2.2/doc/rb-fsevent-0.9.7/rdoc/js/navigation.js.gz
b928caf69cb062b33c1982f5aee4e03869fd0b98635c53c02e7880cd591f263f
js-gz-checksums:./2.2/doc/rb-inotify-0.9.5/rdoc/js/navigation.js.gz
b928caf69cb062b33c1982f5aee4e03869fd0b98635c53c02e7880cd591f263f
js-gz-checksums:./2.2/doc/rb-kqueue-0.2.4/rdoc/js/navigation.js.gz
b928caf69cb062b33c1982f5aee4e03869fd0b98635c53c02e7880cd591f263f
js-gz-checksums:./2.2/doc/rouge-1.10.1/rdoc/js/navigation.js.gz
b928caf69cb062b33c1982f5aee4e03869fd0b98635c53c02e7880cd591f263f
js-gz-checksums:./2.2/doc/safe_yaml-1.0.4/rdoc/js/navigation.js.gz
b928caf69cb062b33c1982f5aee4e03869fd0b98635c53c02e7880cd591f263f
js-gz-checksums:./2.2/doc/sass-3.4.21/rdoc/js/navigation.js.gz
b928caf69cb062b33c1982f5aee4e03869fd0b98635c53c02e7880cd591f263f
js-gz-checksums:./2.2/doc/svn2git-2.3.2/rdoc/js/navigation.js.gz
b928caf69cb062b33c1982f5aee4e03869fd0b98635c53c02e7880cd591f263f

	Cheers,

	Matthew


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 957 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20160117/d3902fd7/attachment.sig>


More information about the freebsd-ports mailing list