Installing mock-1.2.14-1.fc24 on rawhide gives: Installing : mock-1.2.14-1.fc24.noarch 36/63 warning: %post(mock-1.2.14-1.fc24.noarch) scriptlet failed, exit status 254 Non-fatal POSTIN scriptlet failure in rpm package mock Non-fatal POSTIN scriptlet failure in rpm package mock
I cannot reproduce it. It would be nice to know content of your /etc/mock/, /etc/os-release and from which version you were updating.
$ cat /etc/os-release NAME=Fedora VERSION="24 (Workstation Edition)" ID=fedora VERSION_ID=24 PRETTY_NAME="Fedora 24 (Workstation Edition)" ANSI_COLOR="0;34" CPE_NAME="cpe:/o:fedoraproject:fedora:24" HOME_URL="https://fedoraproject.org/" BUG_REPORT_URL="https://bugzilla.redhat.com/" REDHAT_BUGZILLA_PRODUCT="Fedora" REDHAT_BUGZILLA_PRODUCT_VERSION=rawhide REDHAT_SUPPORT_PRODUCT="Fedora" REDHAT_SUPPORT_PRODUCT_VERSION=rawhide PRIVACY_POLICY_URL=https://fedoraproject.org/wiki/Legal:PrivacyPolicy VARIANT="Workstation Edition" VARIANT_ID=workstation /etc/mock does not exist. All packages are latest rawhide. $ sudo dnf install @fedora-packager (...) Installing : mock-1.2.14-2.fc24.noarch 45/67 warning: %post(mock-1.2.14-2.fc24.noarch) scriptlet failed, exit status 254 Non-fatal POSTIN scriptlet failure in rpm package mock Non-fatal POSTIN scriptlet failure in rpm package mock (...) Reliably reproducible after removing @fedora-packager and then installing it again.
You do not have /etc/mock directory? That is weird because mock ship it.
I have it after installation, of course.
Can you try this?: $ wget https://kojipkgs.fedoraproject.org//packages/mock/1.2.14/2.fc24/noarch/mock-1.2.14-2.fc24.noarch.rpm $ rpm -qp --scripts mock-1.2.14-2.fc24.noarch.rpm And after the line: postinstall scriptlet (using /bin/sh): there is the script which is run. Can you save it as shell script and execute it. Likely bash -x post.sh This will show you how variable are evaluate and show where the error occure. Can you post the result here?
This bug appears to have been reported against 'rawhide' during the Fedora 24 development cycle. Changing version to '24'. More information and reason for this action is here: https://fedoraproject.org/wiki/Fedora_Program_Management/HouseKeeping/Fedora24#Rawhide_Rebase
Sorry for the delay. Here is the relevant script: preinstall scriptlet (using /bin/sh): # check for existence of mock group, create it if not found getent group mock > /dev/null || groupadd -f -g 135 -r mock exit 0 postinstall scriptlet (using /bin/sh): # fix cache permissions from old installs chmod 2775 /var/cache/mock if [ -s /etc/os-release ]; then # fedora and rhel7 if grep -Fq Rawhide /etc/os-release; then ver=rawhide else ver=$(source /etc/os-release && echo $VERSION_ID | cut -d. -f1 | grep -o '[0-9]\+') fi else # rhel6 or something obsure, use buildtime version ver=24 fi mock_arch=$(python -c "import rpmUtils.arch; baseArch = rpmUtils.arch.getBaseArch(); print baseArch") cfg=fedora-$ver-${mock_arch}.cfg [ -e /etc/mock/$cfg ] || exit -2 if [ "$(readlink /etc/mock/default.cfg)" != "$cfg" ]; then ln -s $cfg /etc/mock/default.cfg 2>/dev/null || ln -s -f $cfg /etc/mock/default.cfg.rpmnew fi : However, this does not happen with mock 1.2.17 which is currently in F24.
The problem is that this error is likely triggered by some obscure situation in /etc/mock/ and I see no error by just reading the code. So unless this happen to you and then you run this code manually by hand (becouse rpm does not print the error) and you post here the error message, there is hardly enything I can do about it. :(
(In reply to Vedran Miletić from comment #7) > However, this does not happen with mock 1.2.17 which is currently in F24. Well, I do see this issue in current rawhide: "warning: %post(mock-1.2.17-1.fc25.noarch) scriptlet failed, exit status 254 Non-fatal POSTIN scriptlet failure in rpm package mock".
Notes for myself. It seems to be caused by this line: [ -e /etc/mock/$cfg ] || exit -2 I should probably change it from this fatal exit just to some warning.
Fixed in commit * 4630ebf (HEAD -> devel) do not fail when we cannot link default.cfg [RHBZ#1305367]
mock-1.2.16-1.fc22 has been submitted as an update to Fedora 22. https://bodhi.fedoraproject.org/updates/FEDORA-2016-89209fd48b
mock-1.2.18-1.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2016-70cdc0c410
mock-1.2.18-1.el7 has been submitted as an update to Fedora EPEL 7. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2016-3d9f899f6a
mock-1.2.18-1.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2016-de15171a43
mock-1.2.18-1.el6 has been submitted as an update to Fedora EPEL 6. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2016-9e2f372208
mock-1.2.18-1.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-70cdc0c410
mock-1.2.18-1.el6 has been pushed to the Fedora EPEL 6 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2016-9e2f372208
mock-1.2.18-1.el7 has been pushed to the Fedora EPEL 7 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2016-3d9f899f6a
mock-1.2.16-1.fc22 has been pushed to the Fedora 22 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-89209fd48b
mock-1.2.18-1.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-de15171a43
mock-1.2.18-1.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.
Thanks!
mock-1.2.18-1.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report.
mock-1.2.18-1.el7 has been pushed to the Fedora EPEL 7 stable repository. If problems still persist, please make note of it in this bug report.
mock-1.2.18-1.el6 has been pushed to the Fedora EPEL 6 stable repository. If problems still persist, please make note of it in this bug report.
*** Bug 1183454 has been marked as a duplicate of this bug. ***