Subject: Re: Can't run opera on amd64
To: Loic Hoguin <essen@dev-extend.eu>
From: Loic Hoguin <essen@dev-extend.eu>
List: port-amd64
Date: 03/28/2007 23:06:10
------------Na73qqM1H362cH16XlJnEj
Content-Type: text/plain; format=flowed; delsp=yes; charset=iso-8859-1
Content-Transfer-Encoding: 8bit

On Wed, 28 Mar 2007 21:25:13 +0200, Loic Hoguin <essen@dev-extend.eu>  
wrote:

>>> >Unfortunately, pkgsrc miss 32bit compat linux packages for now :-(
>>> >I'd love to have them already, but i lack time to do more than small
>>> >experiments.
>>>
>>> I may find the time to try and do that (after submitting some PR I  
>>> have).
>>> But as I lack experience in pkgsrc/netbsd development (just did some  
>>> small
>>> projects at school), could you give me a few hints?
>>
>> The main idea was to create suse100-32 compat packages by using most
>> of the current suse100 infrastructure. I thought that simply including
>> the suse100 Makefile would do most of the trick, but we need to
>> redefine some variables such as SUSE_ARCH, MACHINE_ARCH, EMULSUBDIR,
>> etc...
>>
>> I'll try to set up a message about this to tech-pkg@ later today.
>
> Okie. I'm going to test a few things now. I'll report my results.

Here's the results of my experiments.

I managed to install the two packages needed by opera (I guess it is
more or less the same changes for other packages) in linux32 and
patched the opera Makefile to install there too.

Patches are attached. I know I may not have done it The Right Way, but
I'm currently only experimenting with it. (and the dependencies are
not fixed yet, sorry, I'll do that later).

Also, suse100_base32 and suse100_x1132 are just copies of the packages
 from pkgsrc, where I apply the two patches.

Now I'm facing another problem. I can run opera, but it freezes.
Sometimes before the window is visible, sometimes after...

The kdump shows that when the freeze occur there are only select calls.
Lots of them. Just before, it calls a fcntl64 function. Before it also
uses *stat64 and getdents64 functions.

I don't think it should call these *64 functions instead of the *32 ones.

Am I missing something?

-- 
Loc Hoguin
Dev:Extend
------------Na73qqM1H362cH16XlJnEj
Content-Disposition: attachment; filename=suse100_base32
Content-Type: application/octet-stream; name=suse100_base32
Content-Transfer-Encoding: Base64

Myw0YzMsNAo8IERJU1ROQU1FPQkJc3VzZV9iYXNlMzItJHtTVVNFX1ZFUlNJT059
CjwgUEtHUkVWSVNJT049CQkxCi0tLQo+IERJU1ROQU1FPQkJc3VzZV9iYXNlLSR7
U1VTRV9WRVJTSU9OfQo+IFBLR1JFVklTSU9OPQkJMwoxNSwxOGQxNAo8IEVNVUxT
VUJESVI9CQllbXVsL2xpbnV4MzIKPCBNQUNISU5FX0FSQ0g9CWkzODYKPCBTVVNF
X0FSQ0g9CQlpNTg2CjwgCg==

------------Na73qqM1H362cH16XlJnEj
Content-Disposition: attachment; filename=suse100_linux
Content-Type: application/octet-stream; name=suse100_linux
Content-Transfer-Encoding: Base64

SW5kZXg6IHN1c2UxMDBfbGludXgvTWFrZWZpbGUuY29tbW9uCj09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT0KUkNTIGZpbGU6IC9jdnNyb290L3BrZ3NyYy9lbXVsYXRvcnMvc3Vz
ZTEwMF9saW51eC9NYWtlZmlsZS5jb21tb24sdgpyZXRyaWV2aW5nIHJldmlzaW9u
IDEuMTIKZGlmZiAtcjEuMTIgTWFrZWZpbGUuY29tbW9uCjM1YzM1CjwgRU1VTFNV
QkRJUj0JCWVtdWwvbGludXgKLS0tCj4gRU1VTFNVQkRJUj89CWVtdWwvbGludXgK

------------Na73qqM1H362cH16XlJnEj
Content-Disposition: attachment; filename=suse100_x1132
Content-Type: application/octet-stream; name=suse100_x1132
Content-Transfer-Encoding: Base64

Myw0YzMsNAo8IERJU1ROQU1FPQkJc3VzZV94MTEzMi0ke1NVU0VfVkVSU0lPTn0K
PCBQS0dSRVZJU0lPTj0JCTEKLS0tCj4gRElTVE5BTUU9CQlzdXNlX3gxMS0ke1NV
U0VfVkVSU0lPTn0KPiBQS0dSRVZJU0lPTj0JCTIKMTMsMTdjMTMKPCBERVBFTkRT
Kz0JCXN1c2VfYmFzZTMyLSR7U1VTRV9WRVJTSU9OfXssbmIqfTouLi8uLi9lbXVs
YXRvcnMvc3VzZTEwMF9iYXNlMzIKPCAKPCBFTVVMU1VCRElSPQkJZW11bC9saW51
eDMyCjwgTUFDSElORV9BUkNIPQlpMzg2CjwgU1VTRV9BUkNIPQkJaTU4NgotLS0K
PiBERVBFTkRTKz0JCXN1c2VfYmFzZS0ke1NVU0VfVkVSU0lPTn17LG5iKn06Li4v
Li4vZW11bGF0b3JzL3N1c2UxMDBfYmFzZQo=

------------Na73qqM1H362cH16XlJnEj
Content-Disposition: attachment; filename=opera
Content-Type: application/octet-stream; name=opera
Content-Transfer-Encoding: Base64

SW5kZXg6IE1ha2VmaWxlCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KUkNTIGZpbGU6IC9j
dnNyb290L3BrZ3NyYy93d3cvb3BlcmEvTWFrZWZpbGUsdgpyZXRyaWV2aW5nIHJl
dmlzaW9uIDEuNjQKZGlmZiAtcjEuNjQgTWFrZWZpbGUKNDZjNDYKPCBPUEVSQV9E
SVI9CQlsaW51eC8ke09QRVJBX1BLR19WRVJTSU9OX0RJUn0vZmluYWwvJHtPUEVS
QV9MQU5HfS8ke09QRVJBX0FSQ0g6Uy8uLy99L3N0YXRpYwotLS0KPiBPUEVSQV9E
SVI9CQlsaW51eDMyLyR7T1BFUkFfUEtHX1ZFUlNJT05fRElSfS9maW5hbC8ke09Q
RVJBX0xBTkd9LyR7T1BFUkFfQVJDSDpTLy4vL30vc3RhdGljCjQ3YTQ4Cj4gRU1V
TFNVQkRJUj0JCWVtdWwvbGludXgzMgo=

------------Na73qqM1H362cH16XlJnEj--