Files
packages/lang/ruby/ruby_missingfiles
T
Luiz Angelo Daros de Luca d18d959f56 ruby: update to 4.0.7
ruby 4.0.3 only contains ERB 6.0.1.1, which fixes CVE-2026-41316.

ruby 4.0.4 is a routine update that includes bugfixes.

ruby 4.0.5 only contains a security fix for CVE-2026-46727:
Use-after-free in pthread-based getaddrinfo timeout handler and a build
system regression in Ruby 4.0.4 under C locale.

ruby 4.0.6 is a routine update that includes bugfixes.

ruby 4.0.7 is a routine update that includes bugfixes.

Packaging changes:
- Patch 010-fix-riscv64-build.patch was dropped as MUSL 1.2.5 fixes the
  issue.
- Exclude source files (*.c, *.h, Makefile...) from packages.
- Updated ruby_missingfiles to match package files exclusions.
- Changed the dependency order (rake -> rubygem, racc -> rubygem)
- Moved rdoc_plugin.rb to ruby-rdoc package (and dropping ruby-gems
  dependency on ruby-rdoc).
- Refreshed the dependencies.
- ruby_find_pkgsdeps:
  * fixed a bug in dependency expansion
  * updated weak dependencies
- Added custom test-version.sh to ignore version check on subpackages
  commands as they use their own gem version.

Link: https://www.ruby-lang.org/en/news/2026/04/21/ruby-4-0-3-released/
Changelog: https://github.com/ruby/ruby/releases/tag/v4.0.3
Link: https://www.ruby-lang.org/en/news/2026/05/11/ruby-4-0-4-released/
Changelog: https://github.com/ruby/ruby/releases/tag/v4.0.4
Link: https://www.ruby-lang.org/en/news/2026/05/20/ruby-4-0-5-released/
Changelog: https://github.com/ruby/ruby/releases/tag/v4.0.5
Link: https://www.ruby-lang.org/en/news/2026/07/14/ruby-4-0-6-released/
Changelog: https://github.com/ruby/ruby/releases/tag/v4.0.6
Link: https://www.ruby-lang.org/en/news/2026/09/15/ruby-4-0-7-released/
Changelog: https://github.com/ruby/ruby/releases/tag/v4.0.7
Signed-off-by: Luiz Angelo Daros de Luca <luizluca@gmail.com>
2026-10-24 10:37:33 +03:00

85 lines
2.6 KiB
Bash

#!/bin/bash
#
# bash feeds/packages/lang/ruby/ruby_missingfiles staging_dir/target-x86_64_musl/ bin/packages/x86_64/packages/*ruby*-[0-9]*.apk
#
function list_staging_files {
cd "$1"; find \
\( \( -name "root-*" -or -name "packages" -or -name "stamp" -or -name "pkginfo" -or -name "host" -or -name man \) -prune \) -or -true \
\( \
-path "*ruby*" -or \
-name "bundle" -or \
-name "bundler" -or \
-name "erb" -or \
-name "gem" -or \
-name "irb" -or \
-name "racc" -or \
-name "racc2y" -or \
-name "rake" -or \
-name "rbs" -or \
-name "rdbg" -or \
-name "rdoc" -or \
-name "ri" -or \
-name "syntax_suggest" -or \
-name "testrb" -or \
-name "typeprof" -or \
-name "y2racc" \
\) \
-not -path "*/usr/lib/ruby/gems/*/cache/*" \
-not -name "*test_case.rb" \
-not -name "*.rdoc" \
-not -name "*.md" \
-not -name "*.mk" \
-not -name "*.doc" \
-not -name "*.o" \
-not -name "*.c" \
-not -name "Makefile" \
-not -name "extconf.rb" \
-not -regex ".*/usr/lib/ruby/gems/[^/]*/gems/[^/]*/.*\.h" \
-not -name "mkmf.log" \
\( -name "LICENSE.txt" -or -not -name "*.txt" \) \
-not -name "*.travis.yml" \
-not -name "Rakefile" \
-not -path "*/ext/java/*" \
-not -regex ".*/usr/lib/ruby/gems/[^/]*/gems/[^/]*/benchmark/.*" \
-not -regex ".*/usr/lib/ruby/gems/[^/]*/gems/[^/]*/evaluation/.*" \
-not -regex ".*/usr/lib/ruby/gems/[^/]*/gems/[^/]*/sample/.*" \
-not -regex ".*/usr/lib/ruby/gems/[^/]*/gems/[^/]*/test/.*" \
-not -regex ".*/usr/lib/ruby/gems/[^/]*/gems/[^/]*/doc/.*" \
-not -regex ".*/usr/lib/ruby/gems/[^/]*/gems/fiddle[^/]*/ext/.*" \
-not -type d \
-print | sort | sed -e 's,^\./,/,'
}
function list_ipkg_files {
for OPKG; do
tar --to-stdout -xzf "$OPKG" ./data.tar.gz | tar tzv | grep -v ^d | sed -e 's,.* \./,./,;s/ -> .*//'
done | sort -u | grep -v ./usr/lib/ruby/ruby...-bin
}
function list_apk_file {
local pkg
$HOST_STAGING_DIR/bin/apk adbdump --allow-untrusted "$@" |
sed -e '/|$/{N;s/|\n *//}' |
awk '/^ - name: / { dir=$3 } /^ - name:/ { printf "%s/%s\n", dir, $3}' |
grep -v ^lib/apk/packages | sort -u | sed -e 's,^,/,' | grep -v /usr/lib/ruby/ruby...-bin
}
set -e
: ${1:?First arg is staging_dir}
: ${2:?Second and following args are ruby ipkg packages}
STAGING_DIR=$1; shift
HOST_STAGING_DIR=$STAGING_DIR/../host
(cd "$STAGING_DIR" )
if ! [ -e "$1" ]; then
echo "$1 does not exist!"
exit 1
fi
printf '%-62s %-62s\n' "Installed in Staging" "From Packages Files"
#diff -d -y <(list_staging_files "$STAGING_DIR") <(list_ipkg_files "$@") -W $COLUMNS
diff -d -y <(list_staging_files "$STAGING_DIR") <(list_apk_file "$@") -W $COLUMNS