Bug 1717367

Summary: glibc: glibc-all-langpacks should only delete locale archive during uninstallation
Product: [Fedora] Fedora Reporter: Florian Weimer <fweimer>
Component: glibcAssignee: Florian Weimer <fweimer>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: medium    
Version: 29CC: arjun.is, codonell, dj, fweimer, law, mfabian, pfrankli, rth, siddhesh
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: glibc-2.29-14.fc30 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1717347 Environment:
Last Closed: 2019-10-30 14:25:02 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1717347    

Description Florian Weimer 2019-06-05 11:06:01 UTC
+++ This bug was initially created as a clone of Bug #1717347 +++

The %postun scriptlet is buggy: It deletes /usr/lib/locale/locale-archive during package updates, not just during uninstallation.  As a result, it is currently very difficult to update to a glibc-all-langpacks package which installs this file.  See bug 1716710.

We should perform the deletion only if arg[2] == 0 (which signifies uninstallation).

Comment 1 Florian Weimer 2019-06-05 16:19:34 UTC
We also need to drop the %config attribute to avoid creating .rpmsave files in the future.

Comment 2 Fedora Update System 2019-06-06 16:14:02 UTC
FEDORA-2019-62a3a5c89d has been submitted as an update to Fedora 30. https://bodhi.fedoraproject.org/updates/FEDORA-2019-62a3a5c89d

Comment 3 Fedora Update System 2019-06-06 18:16:43 UTC
FEDORA-2019-cd0e4f3119 has been submitted as an update to Fedora 29. https://bodhi.fedoraproject.org/updates/FEDORA-2019-cd0e4f3119

Comment 4 Fedora Update System 2019-06-07 01:07:31 UTC
glibc-2.29-15.fc30 has been pushed to the Fedora 30 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-2019-62a3a5c89d

Comment 5 Fedora Update System 2019-06-07 05:08:37 UTC
glibc-2.28-33.fc29 has been pushed to the Fedora 29 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-2019-cd0e4f3119

Comment 6 Fedora Update System 2019-06-10 00:53:05 UTC
glibc-2.29-15.fc30 has been pushed to the Fedora 30 stable repository. If problems still persist, please make note of it in this bug report.

Comment 7 Fedora Update System 2019-06-22 02:56:15 UTC
glibc-2.28-33.fc29 has been pushed to the Fedora 29 stable repository. If problems still persist, please make note of it in this bug report.