[packages/ardour] force build with MMX and SSE

Elan Ruusamäe glen at pld-linux.org
Wed Oct 12 09:30:15 CEST 2016


you can enforce runtime probe dependency:

$ grep -r Requires.*cpuinfo ~/all-specs
/home/users/glen/all-specs/adobe-flash.spec:Requires: cpuinfo(sse2)
/home/users/glen/all-specs/google-earth.spec:Requires: cpuinfo(sse2)
/home/users/glen/all-specs/kernel.spec:Requires: cpuinfo(pae)
/home/users/glen/all-specs/ClanLib.spec:%{?with_sse2:Requires: 
cpuinfo(sse2)}

sorry if this is totally out of context.

On 12.10.2016 09:33, jajcus wrote:
> commit 18043c1a1aa393cedbabd2bcdda35ed5db35ebf8
> Author: Jacek Konieczny <j.konieczny at eggsoft.pl>
> Date:   Wed Oct 12 08:29:26 2016 +0200
>
>      force build with MMX and SSE
>      
>      It won't build without it on i686. It is not a library, but end-user
>      application, so it won't break anything else.  It seems safe to assume
>      that no one with older CPU would use it.
>
>   no_proc_build.patch | 4 +++-
>   1 file changed, 3 insertions(+), 1 deletion(-)
> ---
> diff --git a/no_proc_build.patch b/no_proc_build.patch
> index 9fa7da2..ecdbe9e 100644
> --- a/no_proc_build.patch
> +++ b/no_proc_build.patch
> @@ -1,11 +1,13 @@
>   diff -dur Ardour-5.4.0.orig/wscript Ardour-5.4.0/wscript
>   --- Ardour-5.4.0.orig/wscript	2016-10-11 21:55:23.000000000 +0200
>   +++ Ardour-5.4.0/wscript	2016-10-11 21:56:20.000000000 +0200
> -@@ -439,7 +439,7 @@
> +@@ -439,7 +439,9 @@
>    
>            compiler_flags.append ("-DARCH_X86")
>    
>   -        if platform == 'linux' :
> ++        build_host_supports_sse = True
> ++        compiler_flags.append ("-mmmx")
>   +        if False :
>    


-- 
glen



More information about the pld-devel-en mailing list