Bug 1818481 - light postinstall scriptlet does not properly work for new installs
Summary: light postinstall scriptlet does not properly work for new installs
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: light
Version: 31
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jakub Kadlčík
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-03-28 13:43 UTC by Till Maas
Modified: 2020-04-06 12:37 UTC (History)
2 users (show)

Fixed In Version: light-1.2.2-2.fc32 light-1.2.2-2.fc31 light-1.2.2-2.fc30
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-04-06 00:16:20 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Till Maas 2020-03-28 13:43:59 UTC
Description of problem:

Error when installing light:


chown: Zugriff auf '/etc/light' nicht möglich: Datei oder Verzeichnis nicht gefunden
Warnung: %post(light-1.2.2-1.fc31.x86_64) Scriptlet fehlgeschlagen, Beenden-Status 1

Error in POSTIN scriptlet in rpm package light
  Überprüfung läuft     : light-1.2.2-1.fc31.x86_64        

The problem is that the scriptlet runs:

chown -R :root /etc/light

but the package does not install/own this directory. Therefore it does not exist and the scriptlet creates an error.

Version-Release number of selected component (if applicable):
light-1.2.2-1.fc31.x86_64

How reproducible:
always

Steps to Reproduce:
1. dnf remove light; mv /etc/light /tmp/light.old; dnf install light


Actual results:
error

Expected results:
no error

Additional info:

Comment 1 Fedora Update System 2020-03-29 00:15:02 UTC
FEDORA-2020-5f93872592 has been submitted as an update to Fedora 30. https://bodhi.fedoraproject.org/updates/FEDORA-2020-5f93872592

Comment 2 Fedora Update System 2020-03-29 00:16:02 UTC
FEDORA-2020-213e0bc613 has been submitted as an update to Fedora 32. https://bodhi.fedoraproject.org/updates/FEDORA-2020-213e0bc613

Comment 3 Fedora Update System 2020-03-29 00:16:32 UTC
FEDORA-2020-44e0f74379 has been submitted as an update to Fedora 31. https://bodhi.fedoraproject.org/updates/FEDORA-2020-44e0f74379

Comment 4 Jakub Kadlčík 2020-03-29 00:18:55 UTC
Thank you for the report Till,
I didn't realize that.

I've pushed a new update, can you try if it fixes the issue for you?

Comment 5 Fedora Update System 2020-03-29 01:42:18 UTC
FEDORA-2020-213e0bc613 has been pushed to the Fedora 32 testing repository.
In short time you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-213e0bc613`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-213e0bc613

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 6 Fedora Update System 2020-03-29 02:58:14 UTC
FEDORA-2020-5f93872592 has been pushed to the Fedora 30 testing repository.
In short time you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-5f93872592`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-5f93872592

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 7 Fedora Update System 2020-03-29 17:41:47 UTC
FEDORA-2020-44e0f74379 has been pushed to the Fedora 31 testing repository.
In short time you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-44e0f74379`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-44e0f74379

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 8 Fedora Update System 2020-04-06 00:16:20 UTC
FEDORA-2020-213e0bc613 has been pushed to the Fedora 32 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 9 Fedora Update System 2020-04-06 12:09:27 UTC
FEDORA-2020-44e0f74379 has been pushed to the Fedora 31 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 10 Fedora Update System 2020-04-06 12:37:10 UTC
FEDORA-2020-5f93872592 has been pushed to the Fedora 30 stable repository.
If problem still persists, 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.