From: "k0kubun (Takashi Kokubun) via ruby-core" Date: 2026-11-16T17:42:33+00:00 Subject: [ruby-core:127512] [Ruby Bug#22480] Ruby's release tarballs are not POSIX compliant since 2018 Issue #22480 has been updated by k0kubun (Takashi Kokubun). Backport changed from 3.3: REQUIRED, 3.4: DONE, 4.0: REQUIRED to 3.3: REQUIRED, 3.4: DONE, 4.0: DONE ruby_4_0 commit:b210f9714572530971bc0f6e191928c0247d9e55 merged revision(s) commit:130c9ec44bd35c7319cdc99c301419188510e3a9. ---------------------------------------- Bug #22480: Ruby's release tarballs are not POSIX compliant since 2018 https://bugs.ruby-lang.org/issues/22480#change-119980 * Author: stabbles (Harmen Stoppels) * Status: Closed * Backport: 3.3: REQUIRED, 3.4: DONE, 4.0: DONE ---------------------------------------- Hi, This is a bit of a curiosity, but I noticed that Ruby's release tarballs are not POSIX compliant, because they're missing an end-of-archive marker. See https://pubs.opengroup.org/onlinepubs/9799919799/utilities/pax.html#:~:text=At%20the%20end%20of%20the%20archive%20file%20there%20shall%20be%20two%20512-byte%20blocks Apparently Ruby has custom code to create its release tarballs, and it does not close the tar writer, which would add this. I noticed this cause I'm working on https://stoppels.ch/tar/, a test suite with dozens of tricky tar files, plus a table that maps the differences between tar implementations. For security purposes, some package managers (like uv), are looking to harden tar parsers, and Ruby's release tarballs would not be accepted. The release tarballs from Ruby 2.6.0 onwards are not POSIX compliant, basically since 2018. -- https://bugs.ruby-lang.org/ ______________________________________________ ruby-core mailing list -- ruby-core@ml.ruby-lang.org To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org ruby-core info -- https://ml.ruby-lang.org/mailman3/lists/ruby-core.ml.ruby-lang.org/