Bug 810775 - Bad %post scritlet
Summary: Bad %post scritlet
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: tomcat
Version: 16
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ---
Assignee: Ivan Afonichev
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-04-09 04:55 UTC by Mattias Ellert
Modified: 2012-08-09 23:31 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2012-08-09 23:31:25 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Mattias Ellert 2012-04-09 04:55:23 UTC
Description of problem:
Installing tomcat results in the following error:

  Installerar : tomcat-7.0.26-1.fc16.noarch                                 8/8 
fel vid läsning av information om tjänsten tomcat: Filen eller katalogen finns inte

Version-Release number of selected component (if applicable):
tomcat-7.0.26-1.fc16.noarch

How reproducible:
always

Steps to Reproduce:
1. yum install tomcat
  
Actual results:
Error messaged about missing service information during installation

Expected results:
No errors during installation

Additional info:
Tomcat is handled using systemd. However the %post scriptlet still tries to configure the service using chkconfig in the %post scriptlet. This call is responsible for the error.

postinstall scriptlet (using /bin/sh):
# install but don't activate
/sbin/chkconfig --add tomcat
if [ $1 -eq 1 ]; then
    #initial installation
    /bin/systemctl daemon-reload >/dev/null 2>&1 || :
fi

Additionally: installing tomcat resulted in that redhat-lsb was installed as a dependency. Native Fedora packages are not supposed to depend on this. Do you really need it?

Comment 1 Philippe Troin 2012-06-14 15:54:25 UTC
Still present on F17 with tomcat-7.0.27-2.fc17.noarch.

Comment 2 Fedora Update System 2012-07-01 23:02:03 UTC
tomcat-7.0.28-1.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/tomcat-7.0.28-1.fc17

Comment 3 Fedora Update System 2012-07-02 22:25:15 UTC
Package tomcat-7.0.28-1.fc17:
* should fix your issue,
* was pushed to the Fedora 17 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing tomcat-7.0.28-1.fc17'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-10134/tomcat-7.0.28-1.fc17
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2012-07-25 21:06:12 UTC
tomcat-7.0.29-1.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/tomcat-7.0.29-1.fc17

Comment 5 Fedora Update System 2012-08-09 23:31:25 UTC
tomcat-7.0.29-1.fc17 has been pushed to the Fedora 17 stable repository.  If problems still persist, please make note of it in this bug report.


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