Dominique Dhumieres wrote:
> Changing 'if (open(SYSCTL, 'sysctl -a')) {' to
> 
> if (open(SYSCTL, 'sysctl -a | grep hw.optional.64bitops |')) {
> 
> works on my system.

Yes, but it wouldn't work on intels. Also it kind of defeats the whole 
paragraph of code. There was a one-liner there before, but it was 
replaced by a supposedly more generally working (but untested) code.

What is working on the machines I have tested is something like

     if (open(SYSCTL, 'sysctl -a 2>&1 | egrep "^[^[:space:]]+: " |')) {

This would be a reasoned fix; a simpler fix that works more by chance 
would be

     if (open(SYSCTL, 'sysctl -a 2>&1 | grep hw.optional |')) {

The '2>&1' is needed on intels where 'sysctl -a' spits out - among many 
lines of ordinary output - also an error message

  kern.exec: unknown type returned

-- 
Martin


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Fink-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to