Bug 864792 - Typo in %post scriptlet of qpid-cpp-server makes it fail
Summary: Typo in %post scriptlet of qpid-cpp-server makes it fail
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: qpid-cpp
Version: 17
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Darryl L. Pierce
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-10-10 07:14 UTC by Jan van Eldik
Modified: 2015-06-22 00:08 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2012-10-12 19:36:03 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Jan van Eldik 2012-10-10 07:14:28 UTC
Description of problem:

RPM upgrade fails because of typo in %post scriptlet of qpid-cpp-server.

There seems to be a missing blank in

  if [$1 -eq 1] ; then
      # Initial installation
      /sbin/systemctl --no-reload enable qpidd.service >/dev/null 2>&1 || :
  fi

Which leads to

  D: %post(qpid-cpp-server-0.18-2.fc17.x86_64): execv(/bin/sh) pid 4088
  + '[2' -eq '1]'
  /var/tmp/rpm-tmp.IaBxlF: line 2: [2: command not found

Changing the first line to "if [ $1 -eq 1] ; then" should fix this.


Version-Release number of selected component (if applicable):

qpid-cpp-client-0.18-2.fc17

How reproducible:

100%

Comment 1 Fedora Update System 2012-10-10 11:39:42 UTC
qpid-cpp-0.18-3.1.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/qpid-cpp-0.18-3.1.fc17

Comment 2 Jan van Eldik 2012-10-10 11:45:37 UTC
Works for me, Karma given.

  thanks, Jan

Comment 3 Fedora Update System 2012-10-10 12:07:14 UTC
qpid-cpp-0.18-3.1.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/qpid-cpp-0.18-3.1.fc18

Comment 4 Jan van Eldik 2012-10-10 13:45:58 UTC
Hi,

Seems another bug was lurking there - the scriptlet should use
"/bin/systemctl" rather than "/sbin/systemctl".

Let me know if you prefer a separate BZ for this.

  cheers, Jan

Comment 5 Darryl L. Pierce 2012-10-10 13:49:52 UTC
(In reply to comment #4)
> Hi,
> 
> Seems another bug was lurking there - the scriptlet should use
> "/bin/systemctl" rather than "/sbin/systemctl".
> 
> Let me know if you prefer a separate BZ for this.
> 
>   cheers, Jan

Yeah, that way we can track it separately.

Comment 6 Jan van Eldik 2012-10-10 15:06:23 UTC
OK, just opened 864987

cheers, Jan

Comment 7 Fedora Update System 2012-10-10 18:05:59 UTC
Package qpid-cpp-0.18-3.1.fc18:
* should fix your issue,
* was pushed to the Fedora 18 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing qpid-cpp-0.18-3.1.fc18'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-15794/qpid-cpp-0.18-3.1.fc18
then log in and leave karma (feedback).

Comment 8 Fedora Update System 2012-10-13 00:56:33 UTC
qpid-cpp-0.18-4.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/qpid-cpp-0.18-4.fc17

Comment 9 Fedora Update System 2012-10-14 02:42:27 UTC
qpid-cpp-0.18-4.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/qpid-cpp-0.18-4.fc18

Comment 10 Fedora Update System 2012-10-16 15:31:03 UTC
qpid-cpp-0.18-5.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/qpid-cpp-0.18-5.fc17

Comment 11 Fedora Update System 2012-10-16 17:14:54 UTC
qpid-cpp-0.18-5.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/qpid-cpp-0.18-5.fc18


Note You need to log in before you can comment on or make changes to this bug.