https://bugs.ruby-lang.org/https://bugs.ruby-lang.org/favicon.ico?17113305112020-01-06T07:59:48ZRuby Issue Tracking SystemRuby master - Misc #16483: How about stopping new *.tar.bz2 releases?https://bugs.ruby-lang.org/issues/16483?journal_id=836672020-01-06T07:59:48Zshevegen (Robert A. Heiler)shevegen@gmail.com
<ul></ul><p>I don't mind as in I don't need .tar.bz2.</p>
<p>Personally I use .tar.xz; all local archives of source files that I<br>
keep are in .tar.xz format.</p>
<p>(Note that github offers either git clone, or .zip, so .tar.bz2 is<br>
probably becoming more rare every year.)</p> Ruby master - Misc #16483: How about stopping new *.tar.bz2 releases?https://bugs.ruby-lang.org/issues/16483?journal_id=836692020-01-06T08:50:53Zalanwu (Alan Wu)
<ul></ul><p>I like it. I’m biased though since I’m a sucker for opportunities to simplify like this one.</p>
<p>If we do go ahead, we should maybe announce it one release in advance to minimize impact.</p> Ruby master - Misc #16483: How about stopping new *.tar.bz2 releases?https://bugs.ruby-lang.org/issues/16483?journal_id=836772020-01-06T18:15:02ZEregon (Benoit Daloze)
<ul></ul><p><code>ruby-install</code> also uses <code>.tar.bz2</code> currently, so changing that would mean that existing ruby-install releases (and installations) would no longer work:<br>
<a href="https://github.com/postmodern/ruby-install/blob/402cbdeaffb99d105ecd9b93c75828b32f0f382f/share/ruby-install/ruby/functions.sh#L4" class="external">https://github.com/postmodern/ruby-install/blob/402cbdeaffb99d105ecd9b93c75828b32f0f382f/share/ruby-install/ruby/functions.sh#L4</a></p>
<p>Not sure about RVM.</p> Ruby master - Misc #16483: How about stopping new *.tar.bz2 releases?https://bugs.ruby-lang.org/issues/16483?journal_id=836842020-01-07T04:38:05Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<ul></ul><p>I prefer to remove bz2 from release packages. I can change to use gz from bz2 at ruby-build.</p> Ruby master - Misc #16483: How about stopping new *.tar.bz2 releases?https://bugs.ruby-lang.org/issues/16483?journal_id=836852020-01-07T07:10:11Zshan (Shannon Skipper)
<ul></ul><p>RVM also primarily uses bz2.</p> Ruby master - Misc #16483: How about stopping new *.tar.bz2 releases?https://bugs.ruby-lang.org/issues/16483?journal_id=836952020-01-08T00:38:24Zshan (Shannon Skipper)
<ul></ul><p>If bz2 removal goes forward, it might be nice to deprecate now but not remove until later. It'd be ideal to have working versions of RVM, ruby-install and ruby-build in wide distribution before bz2 goes away. If we change the tools now but don't remove bz2 for a few years, I think it'd go smoother without having users tempted to bypass checksums.</p>
<p>For ruby-install, users will have to upgrade the tool itself to move off bz2. It uses a different repo, ruby-versions, for checksums, so it already has xz, etc. But, the choice of bz2 is hardcoded in ruby-install. Currently, bz2 is used for Ruby and Rubinius and gz is used for MRuby, JRuby and TruffleRuby. Only small code changes are necessary, but everyone would have to upgrade the tool rather than just using the --latest flag to fetch the latest Ruby metadata like normal. Since metadata isn't handled in the tool itself, ruby-install isn't updated frequently. Users tend not to upgrade often and it doesn't have a self-update mechanism.</p>
<p>RVM has bz2 md5 and sha512 checksums hardcoded inline, so it's just the RVM repo to update to new checksums. RVM already has tooling to support alternative decompression, but I'm not sure where all else bz2 might be intertwined. It's probably not too bad after changing a bunch of checksums. Users would need to get an updated version of RVM for bz2 support too, but that's also the normal upgrade mechanism for access to new Ruby metadata—so it's normal for RVM users to upgrade fairly often.</p> Ruby master - Misc #16483: How about stopping new *.tar.bz2 releases?https://bugs.ruby-lang.org/issues/16483?journal_id=843942020-02-27T05:16:13Znaruse (Yui NARUSE)naruse@airemix.jp
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Closed</i></li></ul><p>From Ruby 2.8, I'll provide only .zip, .gz, and .xz (not provide .bz2).<br>
For 2.7.x or prior we'll still provide also .bz2.</p>
<p>In general we provide</p>
<ul>
<li>.zip for Windows</li>
<li>.gz for general Unix environments</li>
<li>.xz (or most efficient compression format) for latest Unix</li>
</ul> Ruby master - Misc #16483: How about stopping new *.tar.bz2 releases?https://bugs.ruby-lang.org/issues/16483?journal_id=878302020-09-30T19:57:29ZEregon (Benoit Daloze)
<ul></ul><p>Not sure what to conclude from this article, but at least .xz should not be the only format: <a href="https://www.nongnu.org/lzip/xz_inadequate.html" class="external">https://www.nongnu.org/lzip/xz_inadequate.html</a></p>
<p>Given the various issues, maybe it should not even be used for distribution?</p> Ruby master - Misc #16483: How about stopping new *.tar.bz2 releases?https://bugs.ruby-lang.org/issues/16483?journal_id=898002021-01-06T09:52:04Zznz (Kazuhiro NISHIYAMA)
<ul><li><strong>Related to</strong> <i><a class="issue tracker-5 status-6 priority-4 priority-default closed" href="/issues/17515">Misc #17515</a>: tar.bz2 edition of Ruby 3.0.0 is missing on cache.ruby-lang.org</i> added</li></ul>