Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 925904

Summary: libtpms: Does not support aarch64 in f19 and rawhide
Product: [Fedora] Fedora Reporter: Dennis Gilmore <dennis>
Component: libtpmsAssignee: Stefan Berger <stefanb>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: stefanb
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-07-01 23:04:16 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:
Bug Depends On:    
Bug Blocks: 922257    

Description Dennis Gilmore 2013-03-23 01:10:59 UTC
Support for the ARM 64 bit CPU architecture (aarch64) was introduced in 
autoconf 2.69.  libtpms appears to use an earlier version of 
autoconf, preventing its being built.  This can be fixed in of three ways (In order of preference):

1. Work with upstream to migrate the package to autoconf 2.69.

2. Rerun autoconf or autoreconf in %prep or %build prior to running 
configure.

3. Apply the patch at http://ausil.fedorapeople.org/aarch64/libtpms/libtpms-aarch64.patch
which updates config.guess and config.sub to recognize aarch64.

Comment 1 Stefan Berger 2013-03-24 22:24:07 UTC
Dennis,

  I am just trying to figure out how ARM is being built. I have done a couple of builds now with the latest package of libtpms in the repository:

http://arm.koji.fedoraproject.org/koji/tasks?owner=stefanberger&state=all

Building for f18 worked (arm5tel and armv7hl)
Building for f19 worked (armv7hl)

Building for rawhide failed due to this error here:

DEBUG util.py:314:  Executing command: ['/usr/bin/yum', '--installroot', '/var/lib/mock/f20-build-398255-258113/root/', 'groupinstall', 'build'] with env {'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOSTNAME': 'mock', 'PROMPT_COMMAND': 'echo -n "<mock-chroot>"', 'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin'}
DEBUG util.py:264:  Error: Package: ca-certificates-2012.87-11.fc20.noarch (build)
DEBUG util.py:264:             Requires: p11-kit >= 0.17.3
DEBUG util.py:264:             Available: p11-kit-0.16.4-1.fc19.armv7hl (build)
DEBUG util.py:264:                 p11-kit = 0.16.4-1.fc19
DEBUG util.py:264:   You could try using --skip-broken to work around the problem
DEBUG util.py:264:   You could try running: rpm -Va --nofiles --nodigest
DEBUG util.py:264:  Error: Package: ca-certificates-2012.87-11.fc20.noarch (build)
DEBUG util.py:264:             Requires: p11-kit-trust >= 0.17.3
DEBUG util.py:264:             Available: p11-kit-trust-0.16.4-1.fc19.armv7hl (build)
DEBUG util.py:264:                 p11-kit-trust = 0.16.4-1.fc19
DEBUG util.py:264:  Error: Package: ca-certificates-2012.87-11.fc20.noarch (build)
DEBUG util.py:264:             Requires: p11-kit >= 0.17.3
DEBUG util.py:264:             Installing: p11-kit-0.16.4-1.fc19.armv7hl (build)
DEBUG util.py:264:                 p11-kit = 0.16.4-1.fc19
DEBUG util.py:354:  Child return code was: 1

Similar problems with f20 target.

I doubt I can do anything about this. If there is something else I should try at this point, please let me know.

I will need to update the code for ARM64, though. What is the 64bit equivalent of __arm__ ? __arm64__ or __aarch64__ ?

Regards,
   Stefan

Comment 2 Stefan Berger 2013-03-25 02:32:37 UTC
--arch armhfp seems to be the necessary addition to the arm-koji command. I'll take it from here...

arm-kojo build f19 --arch armhfp --scratch ~/rpmbuild/SRPMS/libtpms-0.5.1-17.fc16.src.rpm

   Stefan

Comment 3 Stefan Berger 2014-07-01 23:04:16 UTC
libtpms-0.5.2 now uses the correct(ed) check for __aarch64__ and a scratch build of libtpms-0.5.2 has shown that it can be built on aarch64.

http://arm.koji.fedoraproject.org/koji/taskinfo?taskID=2463833

Closing this bug now.