You are not logged in.

#1 2010-04-09 10:07:36

franzrogar
Member
From: Spain
Registered: 2010-03-26
Posts: 40

[SOLVED] renpy x86_64 PKGBUILD support - need help

Hello,

I've just finished a new package and I need some testing.

General information about package

Ren'py doesn't run nativelly on x86_64 so, building from sources, I've added such support and added also the possibility to distribute visual novels for pure 64bits too.

There were two approaches when building it: 'direct' and 'hybrid'.

'Direct' approach is build evrything within a makepkg. It's useless because:

- If you try to build it inside of makeflags as normal user, fakeroot will fail because of LD*.
- If you try to build it inside of makeflags as root user, some libraries will not be compiled properly (but build doesn't fail by unknown reason).

'Hybrid' approach is the one used here. It runs just the same commands as the 'direct' approach but in two steps:

- 1st) makepkg will create a "dummy" package that if you install it, it says you to uninstall it and go to /tmp/renpy64 to build the "real" package.
- 2nd) In /tmp/renpy64, Renpy-build.sh will compile and call makepkg to create the "real" package.

This 'hybrid' approach also let me to assign proper architectures to the packages:

- 1st step renpy "have" to be compile in a x86_64 system 'cause that's the arch support we're adding. So, package will only be available for such arch.
- 2nd step creates a package arch-independent as Ren'py only depends in java-runtime and zenity.


Need help

After so much boring info, here's where I need help if you want to help me:

- Try to build it in x86_64 to see if all build dependencies are met.
- Try to run it (exec "renpy64") in x86_64 to see if it opens.
- Try to run it in i686 to see if it opens.


Compilation x86_64

- Run "makepkg -s" in the renpy64 package sources downloaded. Ignore "dummy" package created.
- Go to /tmp/renpy64 and run "Renpy64-build.sh", after finishing, it will create the "real" package.


Download files

renpy64 source tar.gz for "x86_64"
renpy64 binaries tar.bz2 for "any"

Last edited by franzrogar (2010-04-09 11:31:07)


Franz Rogar
MOTM : "Quis custodiet ipsos custodes?"

Offline

#2 2010-04-09 11:15:56

snakebite
Member
From: Norway
Registered: 2009-05-13
Posts: 42

Re: [SOLVED] renpy x86_64 PKGBUILD support - need help

I'm not too familiar with renpy but decided to give this a go.

franzrogar wrote:

- Try to build it in x86_64 to see if all build dependencies are met.
- Try to run it (exec "renpy64") in x86_64 to see if it opens.

Compiles and runs just fine under x86_64.

franzrogar wrote:

- Try to run it in i686 to see if it opens.

I'm assuming you mean to try the same compiled package under i686?
I get the following message

/usr/share/renpy64/lib/python: line 23: /usr/share/renpy64/lib/linux-x86_64/python.real: cannot execute binary file

but I do get the renpy window and the menu options does seem to work (clicked "Tutorial" and got a new window).

Offline

#3 2010-04-09 11:30:46

franzrogar
Member
From: Spain
Registered: 2010-03-26
Posts: 40

Re: [SOLVED] renpy x86_64 PKGBUILD support - need help

snakebite wrote:

I'm not too familiar with renpy but decided to give this a go.

Thank you very much for helping me smile

It's a nice tool. You write your visual novel once and distribute for Windows, Linux x86 (and now x86_64 wink ) and MacOS X. And you don't need to take care of which OS is running underground at all.

snakebite wrote:

Compiles and runs just fine under x86_64.

Great smile

snakebite wrote:
franzrogar wrote:

- Try to run it in i686 to see if it opens.

I'm assuming you mean to try the same compiled package under i686?
I get the following message

/usr/share/renpy64/lib/python: line 23: /usr/share/renpy64/lib/linux-x86_64/python.real: cannot execute binary file

but I do get the renpy window and the menu options does seem to work (clicked "Tutorial" and got a new window).

Yes, the renpy package is arch independent: it works in windows, linux (x86 & pure x86_64 now) and macosx. So I wanted to keep that instead of the AUR one which removes Windows and MacOS X support.

That's fine. The output says that in i686, python built for x86_64 can't be executed and, therefore, it runs the x86 build one.

Thanks you very, package works as intended. I'll commit it soon to AUR.

Again, thank you very muc smile


Franz Rogar
MOTM : "Quis custodiet ipsos custodes?"

Offline

Board footer

Powered by FluxBB