Description of problem: trying to include the Horde package in the install process of anaconda for centos7 based distro SME server Version-Release number of selected component (if applicable): php-horde-horde-5.2.10-1.el7.noarch How reproducible: each time Steps to Reproduce: 1. create a new comp.xml for anaconda including php-horde-horde , 2. put the rpm and all dependencies including php-horde-Horde-Role-1.0.1-4.el7.noarch in the Packages folder for the iso 3. create the iso 4. launch anaconda to install Actual results: Anaconda fails in the middle of the process with the following in logs 15:01:40,540 INFO packaging: ==== start rpm scriptlet logs ==== 15:01:40,540 INFO packaging: warning: filesystem-3.2-20.el7.x86_64: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY 15:01:40,540 INFO packaging: warning: php-horde-horde-5.2.10-1.el7.noarch: Header V3 RSA/SHA256 Signature, key ID 352c64e5: NOKEY 15:01:40,541 INFO packaging: error: %pretrans(php-horde-horde-5.2.10-1.el7.noarch) scriptlet failed, exit status 127 15:01:40,541 INFO packaging: ==== end rpm scriptlet logs ==== Expected results: Anaconda finishing the complete installation Additional info: the pre scriptlet contains this: if [ -d %{pear_hordedir}/static -a ! -L %{pear_hordedir}/static ] then save=%{pear_hordedir}/static.rpmsave while [ -e $save ] do save=${save}_ done mv %{pear_hordedir}/static $save fi which means it was requiring php-horde-Horde-Role-1.0.1-4.el7.noarch to be installed prior , maybe this command should be somewhere else in the spec file.
Created attachment 1175458 [details] anaconda log
maybe the following is needed: Requires(pretrans): php-horde-Horde-Role
This script have to be %pretrans, to be run before any other horde packages installation. The real scriplet is (all macro are extended, so no need for horde_role) pretrans scriptlet (using /bin/sh): if [ -d /usr/share/horde/static -a ! -L /usr/share/horde/static ] then save=/usr/share/horde/static.rpmsave while [ -e $save ] do save=${save}_ done mv /usr/share/horde/static $save fi BTW, I thin can be caused by missing shell, probably need to converted to a lua script (something I really don't like)
suggesting something like this ? %pretrans <lua> require 'posix' if ( ( posix.stat("/usr/share/horde/static", "type") == 'directory') and not ( posix.stat("/usr/share/horde/static", "type") == 'link' ) ) then save = "/usr/share/horde/static.rpmsave" while (posix.stat(save, "type") == 'file') do save = save .. "_" end os.rename("/usr/share/horde/static", save) end
of course "/usr/share/horde/static" might be substituted by rpm.expand("%{pear_hordedir}")
php-horde-horde-5.2.12-1.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2016-5763cacac0
php-horde-horde-5.2.12-1.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2016-c5b434fc32
php-horde-horde-5.2.12-1.el6 has been submitted as an update to Fedora EPEL 6. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2016-665fb50899
php-horde-horde-5.2.12-1.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2016-bf8d17758f
php-horde-horde-5.2.12-1.el7 has been submitted as an update to Fedora EPEL 7. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2016-f71c0650c3
php-horde-horde-5.2.12-1.fc25 has been pushed to the Fedora 25 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-c5b434fc32
php-horde-horde-5.2.12-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-665fb50899
php-horde-horde-5.2.12-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-f71c0650c3
php-horde-horde-5.2.12-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-5763cacac0
php-horde-horde-5.2.12-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-bf8d17758f
php-horde-horde-5.2.12-1.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report.
php-horde-horde-5.2.12-1.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.
php-horde-horde-5.2.12-1.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report.
php-horde-horde-5.2.12-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.
php-horde-horde-5.2.12-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.