[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Aborting installation on unsupported systems



On Tue, Sep 16, 2014 at 04:37:00PM -0300, Henrique de Moraes Holschuh wrote:
> Well, depends on how strict you want that parsing to be:
> 
> grep -q '^flags.*\<sse2\>' /proc/cpuinfo && echo "SSE2 possible"
> 
> This is good enough on i686 and x86-64, as the architecture itself does not
> tolerate any difference in the flags set between processors.  Maybe enhance
> it a little so that it won't trigger on "^flags_new" or somesuch.

A program which essentially needs SSE2 should check the availability
of those extensions on startup and fail with an error message instead
of an illegal instruction violation.

So checking in an postinst script would be overkill wouldnt it?

Flo
-- 
Florian Lohoff                                                 f@zz.de

Attachment: signature.asc
Description: Digital signature


Reply to: