Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 528158

Summary: dev-libs/openssl: add USE=asm
Product: Gentoo Linux Reporter: Joakim Tjernlund <joakim.tjernlund>
Component: [OLD] Core systemAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED FIXED    
Severity: enhancement CC: zerochaos
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Joakim Tjernlund 2014-11-03 17:40:18 UTC
I do bringup on various PowerPC, currently T1042 from Freescale, and the
support for unimpl. instructions is not complete from time to time in Linux
so ssh-keygen -A just hangs when it tries various ppc ASM to optimize the
different crypto's.

Could Gentoo add USE flag "no-asm"(which translates to disable-asm) to
the openssl ebuild?

This avoids the use of ASM and then ssh-keygen and friends works
just fine.
Comment 1 Rick Farina (Zero_Chaos) gentoo-dev 2014-11-04 13:12:40 UTC
http://devmanual.gentoo.org/general-concepts/use-flags/

noblah style use flags are not permitted, possible an asm use flag that is default enabled but masked on ppc?  Would this need to be disabled on all ppc or should it be default on and you can disable it per processor if needed?
Comment 2 Joakim Tjernlund 2014-11-04 13:39:53 UTC
(In reply to Rick Farina (Zero_Chaos) from comment #1)
> http://devmanual.gentoo.org/general-concepts/use-flags/
> 
> noblah style use flags are not permitted, possible an asm use flag that is

I see, thanks

> default enabled but masked on ppc?  Would this need to be disabled on all
> ppc or should it be default on and you can disable it per processor if
> needed?

Yes, an asm USE flag defaulting to on for all archs. Then one can disable
asm for any arch when needed, just like libressl. I think libressl has
found asm to be slower in some cases.
Comment 3 SpanKY gentoo-dev 2015-03-21 11:01:09 UTC
should be all set now in the tree; thanks for the report!

Commit message: Add USE=asm so people can easily turn off assembly code for testing purposes
http://sources.gentoo.org/dev-libs/openssl/metadata.xml?r1=1.12&r2=1.13
http://sources.gentoo.org/dev-libs/openssl/openssl-1.0.2a.ebuild?r1=1.4&r2=1.5
Comment 4 Joakim Tjernlund 2015-03-21 12:15:48 UTC
(In reply to SpanKY from comment #3)
> should be all set now in the tree; thanks for the report!
> 
> Commit message: Add USE=asm so people can easily turn off assembly code for
> testing purposes
> http://sources.gentoo.org/dev-libs/openssl/metadata.xml?r1=1.12&r2=1.13
> http://sources.gentoo.org/dev-libs/openssl/openssl-1.0.2a.ebuild?r1=1.4&r2=1.
> 5

Tanks, now I don't need to hack the ebuild to rebuild openssl