Bug 640005
Summary: | Missing ppc/ppc64 build on F-12 | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Mattias Ellert <mattias.ellert> |
Component: | jna | Assignee: | Colin Walters <walters> |
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | high | Docs Contact: | |
Priority: | high | ||
Version: | 12 | CC: | dbhole, lfarkas, walters |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | jna-3.2.7-6.el5 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2010-10-22 18:04:10 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: |
Description
Mattias Ellert
2010-10-04 14:25:38 UTC
This looks like bug #548099 came back. If you want to use the same spec in Fedora and RHEL (which is something I understand completely) you could do something like: %if %{?rhel}%{!?rhel:0} && %{?rhel}%{!?rhel:0} <= 5 ExclusiveArch: %{ix86} x86_64 %endif Or (since it is not built on RHEL4 anyway): %if %{?rhel}%{!?rhel:0} = 5 (In reply to comment #2) > %if %{?rhel}%{!?rhel:0} = 5 %if %{?rhel}%{!?rhel:0} == 5 unfortunately currently can't build fedpkg build Could not log into koji: Opening a SSL connection failed jna-3.2.7-6.el5 has been submitted as an update for Fedora EPEL 5. https://admin.fedoraproject.org/updates/jna-3.2.7-6.el5 jna-3.2.7-6.el5 has been pushed to the Fedora EPEL 5 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update jna'. You can provide feedback for this update here: https://admin.fedoraproject.org/updates/jna-3.2.7-6.el5 This does not solve the problem. You need to do a new build on F12 that does NOT exclude ppc/ppc64. Using %if 0%{?rhel} < 6 ExclusiveArch: %{ix86} x86_64 %endif will NOT do the right thing - and it is the reason the current version is broken on Fedora 12. It will also not do the right thing for ppc/ppc64 builds as secondary arch for Fedora 13 and later. %if 0%{?rhel} == 5 ExclusiveArch: %{ix86} x86_64 %endif would work. this never works: %if 0%{?rhel} == 5 since on rhel-5 %rhel is not defined... The %{rhel} macro IS correctly set up when you build packages in koji, so there is no problem using it in your spec files for EPEL. See my dummy scratch build https://koji.fedoraproject.org/koji/taskinfo?taskID=2521822 where the specfile says: %if %{?rhel}%{!?rhel:0} == 5 echo "rhel is 5" %endif and the logs say "rhel is 5". The problem with %if 0%{?rhel} < 6 is not when you build for EPEL, the problem is that it is wrong when you build for Fedora. In a fedora build %{rhel} is undefined (as it should be in this case), so the expression above expands to if 0 < 6 which is always true. So if you use this expression you will disable ppc/ppc64 for every build on any Fedora release. And this is the problem. I really don't care exactly what conditionals you use in the specfile as long as the package is built for all architectures as it should. I.e. the restriction to ix86 + x86_64 should only be applied for RHEL 5 and not for Fedora. ok but it's only defined in epel but not on normal rhel/centos release. now i try ot fix this problem, but unfortunately: - jna buildrequires java - java buildrequires netbeans-platform - netbeans-platform buildrequires jna so i can't build newer jna:-( You need to file a rel-eng ticket requesting that the previous version of jna that had a ppc build (jna-3.2.4-3.fc12) should be tagged into the F12 buildroot as a buildroot override. Once this is accepted you should be able to build the new jna with this older jna version satisfying the needed dependency from netbeans-platform. https://fedorahosted.org/rel-eng/ Should be buildable now... jna-3.2.7-8.fc12 has been submitted as an update for Fedora 12. https://admin.fedoraproject.org/updates/jna-3.2.7-8.fc12 jna-3.2.7-8.fc12 has been pushed to the Fedora 12 stable repository. If problems still persist, please make note of it in this bug report. jna-3.2.7-6.el5 has been pushed to the Fedora EPEL 5 stable repository. If problems still persist, please make note of it in this bug report. |