[Bug 1217979] New: package xfsprogs: error while installing libhandle1
https://bugzilla.suse.com/show_bug.cgi?id=1217979 Bug ID: 1217979 Summary: package xfsprogs: error while installing libhandle1 Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Other Assignee: screening-team-bugs@suse.de Reporter: comes@naic.edu QA Contact: qa-bugs@suse.de Target Milestone: --- Found By: --- Blocker: --- During a tumbleweed installation I saw this error message in /var/log/zypp/history: # 2023-12-11 14:37:08 libhandle1-6.5.0-1.1.x86_64.rpm installed ok # Additional rpm output: # /var/tmp/rpm-tmp.ywCvQW: line 2: mkdir: command not found # /var/tmp/rpm-tmp.ywCvQW: line 3: touch: command not found # 2023-12-11 14:37:08|install|libhandle1|6.5.0-1.1|x86_64||openSUSE-20231210-0|b9253b5573636c9723bccb7083cdcf371f1d3b9adc1de9045fe144fd2b25d7a6a89df186bf4adf81590 When libhandle1 is installed it runs the post scriptlet %{regenerate_initrd_post} which runs the command mkdir and touch which fail if coreutils is not installed The fix is to add: %package -n %{libname} Summary: XFS Filesystem-specific Shared library Group: Development/Libraries/C and C++ +Requires(post): coreutils in the spec file. I did try to submit a fix branching filesystems:xfsprogs but the branched package was empty. -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1217979 https://bugzilla.suse.com/show_bug.cgi?id=1217979#c2 --- Comment #2 from Giacomo Comes <comes@naic.edu> --- the error is due to the fact that when libhandle1 is installed and the post scriptles is executed, coreutils has not been installed yet. Adding Requires(post): coreutils assures that coreutils is installed before libhandle1 is -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1217979 https://bugzilla.suse.com/show_bug.cgi?id=1217979#c6 --- Comment #6 from Giacomo Comes <comes@naic.edu> ---
This can be replaced by not using a subdirectory.
I'm not sure about that. It looks like the procedure to trigger the regeneration of initrd is to create the file: /run/regenerate-initrd/all If we skip the creation of the subdirectory "generate-initrd" and do: : >/run/all are you sure the initrd will get regenerated? Also what you suggest is to replace the system macro %regenerate_initrd_post with an alternative implementation that may do the same thing now. But if in the future such macro get changed because the way to trigger the regeneration of initrd changes, who is going to remember that and change the reimplementation for libhandle1? -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1217979 https://bugzilla.suse.com/show_bug.cgi?id=1217979#c8 --- Comment #8 from Giacomo Comes <comes@naic.edu> --- One week has passed and nobody else has commented on this issue. I would suggest to go ahead and accept the pull request I submitted. That will allow to close this bug. A better solution, once available, can be used later. -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1217979 https://bugzilla.suse.com/show_bug.cgi?id=1217979#c23 --- Comment #23 from OBSbugzilla Bot <bwiedemann+obsbugzillabot@suse.com> --- This is an autogenerated message for OBS integration: This bug (1217979) was mentioned in https://build.opensuse.org/request/show/1143010 Factory / suse-module-tools -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@suse.com