Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 638926 - dev-libs/openssl - add aarch64 machine instead of generic64 for arm64
Summary: dev-libs/openssl - add aarch64 machine instead of generic64 for arm64
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-11-26 22:08 UTC by Conrad Kostecki
Modified: 2018-05-12 20:26 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
openssl-aarch64-machine.patch (openssl-aarch64-machine.patch,579 bytes, patch)
2017-11-26 22:08 UTC, Conrad Kostecki
Details | Diff
openssl speed with aarch64.txt (aarch64.txt,19.10 KB, text/plain)
2017-11-26 22:09 UTC, Conrad Kostecki
Details
openssl speed with generic64.txt (generic64.txt,19.06 KB, text/plain)
2017-11-26 22:09 UTC, Conrad Kostecki
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Conrad Kostecki gentoo-dev 2017-11-26 22:08:27 UTC
Found here: https://forums.gentoo.org/viewtopic-t-1065782.html?sid=c49377d82f58857e6846b9111da66798

Currently, OpenSSL is compiled on aarch64 (arm64) with generic64.
But OpenSSL also supports aarch64, which can be easly added.

Only gentoo.config-1.0.2 (used for 1.0.2* & 1.1.0*) has to be changed:
> -      aarch64*be*)  machine="generic64 -DB_ENDIAN";;
> -      aarch64*)     machine="generic64 -DL_ENDIAN";;
> +      aarch64*be*)  machine="aarch64 -DB_ENDIAN";;
> +      aarch64*)     machine="aarch64 -DL_ENDIAN";;

After recompiling with aarch64 instead of generic64, I can see some improvement with "openssl speed" on my Raspberry Pi 3.
Comment 1 Conrad Kostecki gentoo-dev 2017-11-26 22:08:43 UTC
Created attachment 506786 [details, diff]
openssl-aarch64-machine.patch
Comment 2 Conrad Kostecki gentoo-dev 2017-11-26 22:09:01 UTC
Created attachment 506788 [details]
openssl speed with aarch64.txt
Comment 3 Conrad Kostecki gentoo-dev 2017-11-26 22:09:17 UTC
Created attachment 506790 [details]
openssl speed with generic64.txt
Comment 4 Mart Raudsepp gentoo-dev 2018-03-31 19:23:17 UTC
ping
Comment 5 Larry the Git Cow gentoo-dev 2018-05-12 20:26:13 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9fe32836f19db9b4c614e0e6d563ac267ba21e2f

commit 9fe32836f19db9b4c614e0e6d563ac267ba21e2f
Author:     Conrad Kostecki <conrad@kostecki.com>
AuthorDate: 2018-04-26 20:18:45 +0000
Commit:     Robin H. Johnson <robbat2@gentoo.org>
CommitDate: 2018-05-12 20:25:45 +0000

    dev-libs/openssl: use aarch64 machine for arm64 arch
    
    Closes: https://bugs.gentoo.org/638926
    Package-Manager: Portage-2.3.24, Repoman-2.3.6
    (cherry picked from commit d1a9b4ac497aa915d51b40c56f160619c62b801a)
    Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
    Closes: https://github.com/gentoo/gentoo/pull/7306

 dev-libs/openssl/files/gentoo.config-1.0.2 | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)