Bug 640005 - Missing ppc/ppc64 build on F-12
Summary: Missing ppc/ppc64 build on F-12
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: jna
Version: 12
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Colin Walters
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-10-04 14:25 UTC by Mattias Ellert
Modified: 2010-10-25 16:35 UTC (History)
3 users (show)

Fixed In Version: jna-3.2.7-6.el5
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-10-22 18:04:10 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Mattias Ellert 2010-10-04 14:25:38 UTC
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

Comment 1 Mattias Ellert 2010-10-06 05:21:49 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

Comment 2 Mattias Ellert 2010-10-06 09:48:23 UTC
Or (since it is not built on RHEL4 anyway):

%if %{?rhel}%{!?rhel:0} = 5

Comment 3 Mattias Ellert 2010-10-06 15:54:28 UTC
(In reply to comment #2)
> %if %{?rhel}%{!?rhel:0} = 5

%if %{?rhel}%{!?rhel:0} == 5

Comment 4 Levente Farkas 2010-10-06 16:41:24 UTC
unfortunately currently can't build
fedpkg build
Could not log into koji: Opening a SSL connection failed

Comment 5 Fedora Update System 2010-10-07 16:35:35 UTC
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

Comment 6 Fedora Update System 2010-10-07 19:29:42 UTC
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

Comment 7 Mattias Ellert 2010-10-07 22:46:33 UTC
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.

Comment 8 Levente Farkas 2010-10-08 07:54:10 UTC
this never works:
%if 0%{?rhel} == 5
since on rhel-5 %rhel is not defined...

Comment 9 Mattias Ellert 2010-10-08 09:23:48 UTC
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.

Comment 10 Levente Farkas 2010-10-08 20:23:48 UTC
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:-(

Comment 11 Mattias Ellert 2010-10-08 20:34:27 UTC
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/

Comment 12 Mattias Ellert 2010-10-11 06:06:29 UTC
Should be buildable now...

Comment 13 Fedora Update System 2010-10-12 07:41:52 UTC
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

Comment 14 Fedora Update System 2010-10-22 18:04:06 UTC
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.

Comment 15 Fedora Update System 2010-10-25 16:35:09 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.