Bug 815953
Summary: | ppc64p7 support incomplete | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | David Aquilina <dwa> | ||||
Component: | rpm | Assignee: | Fedora Packaging Toolset Team <packaging-team> | ||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
Severity: | high | Docs Contact: | |||||
Priority: | high | ||||||
Version: | 17 | CC: | ffesti, flanagan, jnovy, packaging-team, pknirsch, pmatilai | ||||
Target Milestone: | --- | Keywords: | Reopened | ||||
Target Release: | --- | ||||||
Hardware: | ppc64 | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | rpm-4.9.1.3-6.fc17 | Doc Type: | Bug Fix | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2012-05-08 10:25:53 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: | |||||||
Attachments: |
|
Ye, the problem is that the installplatforms script changed between rpm-4.9 and rpm-4.10 so it worked fine on master (4.10) but on rpm-4.9 installplatform didn't detect ppc64p7 as a know arch and didn't autogenerate the platform dir and macro for it. Fixed it latest rpm-4.9.1.3-3.fc17 that was just built in Fedora. http://koji.fedoraproject.org/koji/taskinfo?taskID=4021759 Thanks & regards, Phil This still isn't quite right: <mock-chroot>[root@ppc-composer ~]# rpm -q rpm rpm-4.9.1.3-4.fc17.ppc64 <mock-chroot>[root@ppc-composer ~]# grep '%_lib' /usr/lib/rpm/platform/ppc64p7-linux/macros %_libexecdir %{_exec_prefix}/libexec %_lib lib %_libdir %{_prefix}/lib _lib and _libdir should be lib64. Fixed in latest stable version for Fedora 17: http://koji.fedoraproject.org/koji/taskinfo?taskID=4049123 Thanks & regards, Phil |
Created attachment 580005 [details] /usr/lib/rpm/platform/ppc64p7-linux/macros Description of problem: When building some rpms with '--target=ppc64p7', rpmbuild will fail with: Processing files: sendmail-sysvinit-8.14.5-12.fc17.noarch error: File must begin with "/": %{_initrddir}/sendmail It looks like that macro is defined in /usr/lib/rpm/platform/$CPU-$OS/macros. There is no ppc64p7-linux directory there. Copying ppc64-linux to ppc64p7-linux and s/ppc64/ppc64p7/ in the macros file fixes the rpmbuild problems and it appears that the proper optimizations are used as well. Attaching the /usr/lib/rpm/platform/ppc64p7-linux/macros I used in my single test.