Description of problem: Broken buildroot in F12 ppc: See: https://koji.fedoraproject.org/koji/getfile?taskID=2510829&name=root.log DEBUG util.py:268: netbeans-platform-6.7.1-2.fc12.noarch from build has depsolving problems DEBUG util.py:268: --> Missing Dependency: jna >= 3.0.9 is needed by package netbeans-platform-6.7.1-2.fc12.noarch (build) DEBUG util.py:268: Error: Missing Dependency: jna >= 3.0.9 is needed by package netbeans-platform-6.7.1-2.fc12.noarch (build) Version-Release number of selected component (if applicable): jna-3.2.7-5.fc12
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.