Description of problem: The postinstall scriptlet contains the following sh script lines: > /sbin/chkconfig --add lsyncd > mkdir -p The first line is fine (adding the lsyncd service) The second line throws an error because the the directory to create is not actually specified, thus throwing the following error: > mkdir: missing operand > Try `mkdir --help' for more information Version-Release number of selected component (if applicable): lsyncd-2.1.4-1.el6.x86_64 How reproducible: yum install lsyncd Steps to Reproduce: 1. yum install lsyncd 2. 3. Actual results: Installing : lsyncd-2.1.4-1.el6.x86_64 1/1 Non-fatal POSTIN scriptlet failure in rpm package lsyncd-2.1.4-1.el6.x86_64 mkdir: missing operand Try `mkdir --help' for more information. warning: %post(lsyncd-2.1.4-1.el6.x86_64) scriptlet failed, exit status 1 Verifying : lsyncd-2.1.4-1.el6.x86_64 1/1 VerifyTransaction time: 0.123 Transaction time: 0.439 Installed: lsyncd.x86_64 0:2.1.4-1.el6 Expected results: Install without errors Additional info:
Can LSYNCD_OPTIONS in /etc/sysconfig/lsyncd be commented by default in the next rev too? Currently, that line overrides the value in the init script so the binary isn't given any arguments by default (resulting in a Usage: message). -T
I agree with Troy C. The 'LSYNCD_OPTIONS = " "' variable declaration should be commented out of /etc/sysconfig/lsyncd because it overrides the default value as set in /etc/rc.d/init.d/lsyncd: LSYNCD_OPTIONS="-pidfile /var/run/lsyncd.pid /etc/lsyncd.conf" This causes lsyncd to fail on using the 'service lsyncd start' command, throwing a command syntax error and showing the usage instructions on screen. Simply commenting out the 'LSYNCD_OPTIONS = " "' line in /etc/sysconfig/lsyncd fixes the issue. It is a separate issue though, so not sure if there needs to be a separate bug created.
will do
This error is more of a problem on `yum update` since it does not remove the older 2.0.4 afterwards.
Please note, this also affects the el5 package as well as the el6 version this bug is raised against.
lsyncd-2.1.4-3.el5 has been submitted as an update for Fedora EPEL 5. https://admin.fedoraproject.org/updates/lsyncd-2.1.4-3.el5
did a el6 build too, but wanted coordinate what to do with https://admin.fedoraproject.org/updates/FEDORA-EPEL-2013-0387/lsyncd-2.1.4-2.el6 first
Instead of removing the `mkdir` from the spec file entirely, could the directory /var/log/lsyncd actually be created since a logrotate.d file for that directory is provided?
That's the wrong fix. Imo, the directory should be created and owned by the package proper, not created in %post
Created attachment 707218 [details] Create log directory so the package properly owns it thanks for the clarification rdieter!
Could I also volunteer be a comaintainer of this package? We use it quite frequently.
Package lsyncd-2.1.4-3.el5: * should fix your issue, * was pushed to the Fedora EPEL 5 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=epel-testing lsyncd-2.1.4-3.el5' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-EPEL-2013-0531/lsyncd-2.1.4-3.el5 then log in and leave karma (feedback).
sure. just request the ACLs in the packagedb?
lsyncd-2.1.4-3.el5 has been submitted as an update for Fedora EPEL 5. https://admin.fedoraproject.org/updates/FEDORA-EPEL-2013-0531/lsyncd-2.1.4-3.el5
lsyncd-2.1.4-3.el5 has been pushed to the Fedora EPEL 5 stable repository. If problems still persist, please make note of it in this bug report.
lsyncd-2.1.4-4.el6 has been submitted as an update for Fedora EPEL 6. https://admin.fedoraproject.org/updates/lsyncd-2.1.4-4.el6
Package lsyncd-2.1.4-4.el6: * should fix your issue, * was pushed to the Fedora EPEL 6 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=epel-testing lsyncd-2.1.4-4.el6' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-EPEL-2013-11681/lsyncd-2.1.4-4.el6 then log in and leave karma (feedback).
lsyncd-2.1.4-4.el6 has been pushed to the Fedora EPEL 6 stable repository. If problems still persist, please make note of it in this bug report.