From 73b51fb969a9b7462842cfab1379c120b1068c41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Thu, 30 May 2024 14:52:00 +0200 Subject: [PATCH] debug --- filesystem.spec | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/filesystem.spec b/filesystem.spec index 932d077323..1e936ebeaf 100644 --- a/filesystem.spec +++ b/filesystem.spec @@ -2194,6 +2194,8 @@ print('}') } %filetriggerin -p -- /usr/bin +print('FILETRIGGERIN start') + --# This implements filesystem(unmerged-sbin-symlinks) feature. st = posix.stat("/usr/sbin") if not st or st.type == "link" then @@ -2205,6 +2207,8 @@ filenames = %sbin_filenames a = rpm.next_file() while a do name = a:match("^.+/(.+)$") + print('filetriggerin', a) + if filenames[name] then b = "/usr/sbin/"..name sta = posix.stat(a) @@ -2220,7 +2224,12 @@ while a do a = rpm.next_file() end +print('FILETRIGGERIN end') + + %filetriggerpostun -p -- /usr/bin +print('FILETRIGGERPOSTUN /usr/bin start') + --# This implements filesystem(unmerged-sbin-symlinks) feature. st = posix.stat("/usr/sbin") if not st or st.type == "link" then @@ -2232,6 +2241,8 @@ filenames = %sbin_filenames a = rpm.next_file() while a do name = a:match("^.+/(.+)$") + print('filetriggerpostun', a) + if filenames[name] then b = "/usr/sbin/"..name sta = posix.stat(a) @@ -2255,7 +2266,11 @@ while a do a = rpm.next_file() end +print('FILETRIGGERPOSTUN /usr/bin stop') + %filetriggerpostun -p -- /sbin /usr/sbin +print('FILETRIGGERPOSTUN /usr/sbin start') + --# This implements filesystem(unmerged-sbin-symlinks) feature. st = posix.stat("/usr/sbin") if not st or st.type == "link" then @@ -2273,6 +2288,7 @@ while b do a = "/usr/bin/"..name sta = posix.stat(a) stb = posix.stat(b) + print(a, sta, b, stb) if sta and not stb then print('Symlinking /usr/sbin/'..name..'->'..a) @@ -2283,6 +2299,8 @@ while b do b = rpm.next_file() end +print('FILETRIGGERPOSTUN /usr/sbin stop') + %global merge_scriptlet %{expand: --# Symlink /usr/sbin→/usr/bin and /usr/local/sbin→/usr/local/bin if possible @@ -2334,6 +2352,7 @@ end } %posttrans -p +print('POSTTRANS start') --# we need to restorecon on some dirs created in %pretrans or by other packages if posix.access ("/usr/sbin/restorecon", "x") then rpm.execute("/usr/sbin/restorecon", "/var", "/var/run", "/var/lock", "/sys", "/boot", "/dev", "/media", "/afs") @@ -2341,9 +2360,12 @@ if posix.access ("/usr/sbin/restorecon", "x") then end %merge_scriptlet +print('POSTTRANS end') %transfiletriggerpostun -p -- /sbin /usr/sbin +print('TRANSFILETRIGGERPOSTUN start') %merge_scriptlet +print('TRANSFILETRIGGERPOSTUN end') %files content %dir %{_datadir}/filesystem