Andreas Schleifer pushed to branch main at Arch Linux / Packaging / Packages /
ruby
Commits:
c1674edf by Andreas Schleifer at 2024-08-04T15:59:40+02:00
feat: add information about ruby rebuilds to README.md
- - - - -
2 changed files:
- README.md
- + build-rebuild-todo-list.sh
Changes:
=====================================
README.md
=====================================
@@ -86,3 +86,9 @@ libraries are compatible with the new Ruby version. This
rebuild must be
carefully managed to maintain dependency integrity.
- rebuild all packages in order
+
+#### command to find packages to rebuild
+
+```bash
+./build-rebuild-todo-list.sh <old_ruby_version>
+```
=====================================
build-rebuild-todo-list.sh
=====================================
@@ -0,0 +1,22 @@
+#!/usr/bin/env bash
+
+if [ -z "${1}" ]; then
+ echo "Usage: $0 <old_ruby_version>"
+ exit 1
+fi
+
+ruby_version_short="${1:0:3}"
+ruby_version_long="${ruby_version_short}.0"
+todo_list_filename="./ruby_rebuild_todo.txt"
+
+sudo pacman -Fy
+
+echo
+echo "Generating ${todo_list_filename} ..."
+
+{
+ pacman -Fx
".*/ruby/(${ruby_version_long}|gems/${ruby_version_long}|vendor_ruby/${ruby_version_short}|vendor_ruby/${ruby_version_long})/*"
|sed -ne 's,^.*\(core\|extra\|multilib\)/\(.*\) .*$,\2,p'
+
+ sogrep extra libruby.so
+ sogrep extra "libruby.so.${ruby_version_short}"
+} | sort -u > "${todo_list_filename}"
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/ruby/-/commit/c1674edf8350298cb4557c63824b0dcc9f55e9f5
--
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/ruby/-/commit/c1674edf8350298cb4557c63824b0dcc9f55e9f5
You're receiving this email because of your account on gitlab.archlinux.org.