Re: [Fink-users] G5, OSX 10.4, and 64bit-cpu

2007-07-19 Thread Dominique Dhumieres
  works on my system.

 Yes, but it wouldn't work on intels.

Yes indeed! this was precisely why I wrote works on my system.
The simple addition of the pipe yields hundreds of warning about
uninitialized stuff. I have tried unsuccessfully to get rid of
them to finally settle to something specific to my config.

Dominique

-
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
Fink-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-users


Re: [Fink-users] G5, OSX 10.4, and 64bit-cpu

2007-07-19 Thread Benjamin Reed
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Martin Costabel wrote:

 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.

Heh, yeah, that's what I get for testing it with fink-virtual-pkgs
- --debug | less -- I didn't see the pages of warnings that were spit out
to STDERR.  ;)

I've fixed it in trunk and the branch.


- --
Benjamin Reed a.k.a. Ranger Rick
Fink, KDE, and Mac OS X development
http://www.racoonfink.com/

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGn2rlUu+jZtP2Zf4RAk1cAJ4jteD7zcLBmWtEBuCBLgGl6ZKkEwCeI/eQ
ZnisSo5dTufHO25ZI0WIRTw=
=k8w6
-END PGP SIGNATURE-

-
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
Fink-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-users


Re: [Fink-users] G5, OSX 10.4, and 64bit-cpu

2007-07-19 Thread Dominique Dhumieres
Applying the latest changes, i.e.:


# different sysctl variables for intel and ppc
my $is64bit = 0;
if (open(SYSCTL, 'sysctl -a 2/dev/null |')) {
my ($key, $value);
while (SYSCTL) { 
($key, $value) = $_ =~ /^(\S+)\s*\:\s*(.*?)\s*$/;
next unless (defined $key and defined $value);
if ($key =~ 
/^(hw.optional.x86_64|hw.optional.64bitops|hw.cpu64bit_capable)$/ and $value eq 
1) {
$is64bit = 1;
last;
}
}
close(SYSCTL);
} 

works for me.

Thanks.

Dominique

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Fink-users mailing list
Fink-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-users


Re: [Fink-users] G5, OSX 10.4, and 64bit-cpu

2007-07-19 Thread David R. Morrison
Fixed in fink-0.27.6.  Thanks for all the help.

   -- Dave


On Jul 19, 2007, at 8:14 AM, Dominique Dhumieres wrote:

 Applying the latest changes, i.e.:


 # different sysctl variables for intel and ppc
 my $is64bit = 0;
 if (open(SYSCTL, 'sysctl -a 2/dev/null |')) {
 my ($key, $value);
 while (SYSCTL) {
 ($key, $value) = $_ =~ /^(\S+)\s*\:\s*(.*?)\s*$/;
 next unless (defined $key and defined $value);
 if ($key =~ /^(hw.optional.x86_64|hw.optional.64bitops| 
 hw.cpu64bit_capable)$/ and $value eq 1) {
 $is64bit = 1;
 last;
 }
 }
 close(SYSCTL);
 }

 works for me.

 Thanks.

 Dominique


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Fink-users mailing list
Fink-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-users


[Fink-users] G5, OSX 10.4, and 64bit-cpu

2007-07-18 Thread Dominique Dhumieres
I have finally decided to install 10.4 on my G5.
Apparently the 64 bit capability of the G5 is note detected:

 64bit-cpu0-1   [virtual package 
representing the 64bit capability of the CPU]

What is wrong: my understanding of the G5 capabilities
or my installation?

TIA

Dominique

-
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
Fink-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-users


Re: [Fink-users] G5, OSX 10.4, and 64bit-cpu

2007-07-18 Thread David R. Morrison

On Jul 18, 2007, at 4:41 AM, Dominique Dhumieres wrote:

 I have finally decided to install 10.4 on my G5.
 Apparently the 64 bit capability of the G5 is note detected:

  64bit-cpu0-1   [virtual  
 package representing the 64bit capability of the CPU]

 What is wrong: my understanding of the G5 capabilities
 or my installation?


What do you get from

   sysctl -a | grep 64


-
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
Fink-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-users


Re: [Fink-users] G5, OSX 10.4, and 64bit-cpu

2007-07-18 Thread Dominique Dhumieres
 What do you get from

sysctl -a | grep 64

hw.l2settings = 2147483648
net.inet.ip.ttl: 64
net.inet.ip.dummynet.hash_size: 64
net.inet.tcp.rfc1644: 0
net.inet6.ip6.hlim: 64
net.inet6.ip6.temppltime: 86400
hw.optional.64bitops: 1

sysctl -a | grep cpu gives:

hw.ncpu = 1
hw.cpufrequency = 18
hw.availcpu = 1
hw.ncpu: 1
hw.activecpu: 1
hw.physicalcpu: 1
hw.physicalcpu_max: 1
hw.logicalcpu: 1
hw.logicalcpu_max: 1
hw.cputype: 18
hw.cpusubtype: 100
hw.cpufrequency: 18
hw.cpufrequency_min: 18
hw.cpufrequency_max: 18

Dominique

-
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
Fink-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-users


Re: [Fink-users] G5, OSX 10.4, and 64bit-cpu

2007-07-18 Thread Martin Costabel
David R. Morrison wrote:
 On Jul 18, 2007, at 4:41 AM, Dominique Dhumieres wrote:
 
 I have finally decided to install 10.4 on my G5.
 Apparently the 64 bit capability of the G5 is note detected:

  64bit-cpu0-1   [virtual  
 package representing the 64bit capability of the CPU]

 What is wrong: my understanding of the G5 capabilities
 or my installation?

 
 What do you get from
 
sysctl -a | grep 64

Looks like a typo in perlmod/Fink/VirtPackage.pm in the line

if (open(SYSCTL, 'sysctl -a')) {

Shouldn't there be a pipe '|' after the command? Of course, I don't 
speak perl as well as RR who wrote this, but my man perlopentut says 
so :-)

-- 
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
Fink-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-users


Re: [Fink-users] G5, OSX 10.4, and 64bit-cpu

2007-07-18 Thread Mark J. Reed
On 7/18/07, Martin Costabel [EMAIL PROTECTED] wrote:
 Looks like a typo in perlmod/Fink/VirtPackage.pm in the line

 if (open(SYSCTL, 'sysctl -a')) {

 Shouldn't there be a pipe '|' after the command? Of course, I don't
 speak perl as well as RR who wrote this, but my man perlopentut says
 so :-)

Yup.  Without the pipe it looks for a file named sysctl -a.  Not
finding it, the open fails and the body of the if doesn't run.  Is
there an else block?

-- 
Mark J. Reed [EMAIL PROTECTED]

-
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
Fink-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-users


Re: [Fink-users] G5, OSX 10.4, and 64bit-cpu

2007-07-18 Thread Martin Costabel
Mark J. Reed wrote:
 On 7/18/07, Martin Costabel [EMAIL PROTECTED] wrote:
 Looks like a typo in perlmod/Fink/VirtPackage.pm in the line

 if (open(SYSCTL, 'sysctl -a')) {

 Shouldn't there be a pipe '|' after the command? Of course, I don't
 speak perl as well as RR who wrote this, but my man perlopentut says
 so :-)
 
 Yup.  Without the pipe it looks for a file named sysctl -a.  Not
 finding it, the open fails and the body of the if doesn't run.  Is
 there an else block?

No, but when the if block is actually executed, it is not a pretty sight 
either...

Our perl gurus will sort this out quickly, I'm sure.

-- 
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
Fink-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-users


Re: [Fink-users] G5, OSX 10.4, and 64bit-cpu

2007-07-18 Thread Dominique Dhumieres
Changing 'if (open(SYSCTL, 'sysctl -a')) {' to

if (open(SYSCTL, 'sysctl -a | grep hw.optional.64bitops |')) {

works on my system.

Dominique

-
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
Fink-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-users