http://bugzilla.opensuse.org/show_bug.cgi?id=1177657
Bug ID: 1177657 Summary: brltty: missing post requirement on mcookie Classification: openSUSE Product: openSUSE Distribution Version: Leap 15.2 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 Found By: --- Blocker: ---
While I perform a standard installation that includes also the pattern: KVM Virtualization Host and tools I found this error in /var/log/zypp/history:
# 2020-10-13 18:25:11 libbrlapi0_7-6.0-lp152.1.9.x86_64.rpm installed ok # Additional rpm output: # /var/tmp/rpm-tmp.3XuonL: line 2: mcookie: command not found # 2020-10-13 18:25:11|install|libbrlapi0_7|6.0-lp152.1.9|x86_64||openSUSE-Leap-15.2-1|2e0a973c3f59275b650864fec0c081dbc779da53396f7f92f1c7d0d5bcf53bee|
The problem is that libbrlapi0_7 is installed before util-linux and at that time the binary mcookie used in the postinstall scriptlet, is not available yet.
A possible fix is to add this line in brltty.spec:
%package -n %{soname} Summary: Library to use BRLTTY from applications Group: System/Daemons Requires(post): shadow +Requires(post): util-linux +Requires(post): coreutils Recommends: %{name}
Adding the requirement for coreutils too because chgrp and chmod are also used in the postinstall scriptlet.