Bug 1292296
| Summary: | mintlocale: noarch package uses %_libdir in %files | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Yaakov Selkowitz <yselkowi> |
| Component: | mintlocale | Assignee: | leigh scott <leigh123linux> |
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 24 | CC: | jbastian, leigh123linux |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | mintlocale-1.1.6-0.7.gitfb4118d.el7 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2016-05-15 02:40:44 UTC | Type: | Bug |
| 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: | 1285484 | ||
I'm trying to build Cinnamon 2.8 for RHEL 7.2 (*), and I hit this bug trying to build mintlocale on x86_64:
[rpmbuild@localhost ~]$ rpmbuild --rebuild mintlocale-1.1.6-0.6.gitfb4118d.fc23.src.rpm
...
Processing files: mintlocale-1.1.6-0.6.gitfb4118d.el7.noarch
error: Directory not found: /home/rpmbuild/rpmbuild/BUILDROOT/mintlocale-1.1.6-0.6.gitfb4118d.el7.x86_64/usr/lib64/linuxmint
...
I fixed it by just hard-coding /usr/lib in the %files section instead of using the macro:
-%{_libdir}/linuxmint/
+/usr/lib/linuxmint/
(*) https://copr.fedoraproject.org/coprs/jbastian/rhel7-cinnamon-2.8/
(In reply to Jeff Bastian from comment #1) > I'm trying to build Cinnamon 2.8 for RHEL 7.2 (*), and I hit this bug trying > to build mintlocale on x86_64: > > [rpmbuild@localhost ~]$ rpmbuild --rebuild > mintlocale-1.1.6-0.6.gitfb4118d.fc23.src.rpm > ... > Processing files: mintlocale-1.1.6-0.6.gitfb4118d.el7.noarch > error: Directory not found: > /home/rpmbuild/rpmbuild/BUILDROOT/mintlocale-1.1.6-0.6.gitfb4118d.el7.x86_64/ > usr/lib64/linuxmint > ... > > > I fixed it by just hard-coding /usr/lib in the %files section instead of > using the macro: > > -%{_libdir}/linuxmint/ > +/usr/lib/linuxmint/ > > > > (*) https://copr.fedoraproject.org/coprs/jbastian/rhel7-cinnamon-2.8/ You could have used --target=noarch to build on 64bit rpmbuild --rebuild --target=noarch mintlocale/mintlocale-1.1.6-0.6.gitfb4118d.fc24.src.rpm (In reply to leigh scott from comment #2) > You could have used --target=noarch to build on 64bit > > rpmbuild --rebuild --target=noarch > mintlocale/mintlocale-1.1.6-0.6.gitfb4118d.fc24.src.rpm That doesn't help for a mock or koji build. This bug appears to have been reported against 'rawhide' during the Fedora 24 development cycle. Changing version to '24'. More information and reason for this action is here: https://fedoraproject.org/wiki/Fedora_Program_Management/HouseKeeping/Fedora24#Rawhide_Rebase mintlocale-1.1.6-0.7.gitfb4118d.el7 has been submitted as an update to Fedora EPEL 7. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2016-f57764e0d1 mintlocale-1.1.6-0.7.gitfb4118d.el7 has been pushed to the Fedora EPEL 7 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-EPEL-2016-f57764e0d1 mintlocale-1.1.6-0.7.gitfb4118d.el7 has been pushed to the Fedora EPEL 7 stable repository. If problems still persist, please make note of it in this bug report. |
mintlocale is BuildArch: noarch but uses %{_libdir}/linuxmint/ in %files. As a noarch package can be built on any builder, depending on which it ends up on, the value of %{_libdir} can vary. You've been lucky until now that, as frequently happens with noarch packages, mintlocale has been built on armv7 machines where _libdir == lib. If, however, mintlocale were to be built on a 64-bit system, the build would fail because this package uses /usr/lib/linuxmint which would not match %{_libdir}/linuxmint. This affects all versions of Fedora as well as epel7.