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

Re: Aborting installation on unsupported systems



On Tue, 16 Sep 2014, Andrey Rahmatullin wrote:
> On Tue, Sep 16, 2014 at 12:02:24PM +0200, Matthias Urlichs wrote:
> > You might want to pop up a preinst debconf notice which tells the admin
> > that the package will not run here (with an option to fail the install
> > if it's an honest mistake).
> This may require reimplementing some part of the program in shell (in my
> case it's parsing of /proc/cpuinfo, so it's at least possible, but still).

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.

-- 
  "One disk to rule them all, One disk to find them. One disk to bring
  them all and in the darkness grind them. In the Land of Redmond
  where the shadows lie." -- The Silicon Valley Tarot
  Henrique Holschuh


Reply to: