maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   packaging libs for Maemo (https://talk.maemo.org/showthread.php?t=27712)

tobiasj 2009-03-20 18:34

packaging libs for Maemo
 
OK so I am working on another port and while I am doing well enough at it, it requires a newer version of libguichan then Arnim has packaged for us. (0.6.1)

I have downloaded LibGuiChan 0.8 (the req) and I can compile it in scratchbox, but I have NO idea how to take a lib and make it a deb package so I (or anyone else) can install it on the tablets.

Does anyone have any advice or hints or thoughts on how to accomplish this?

Thanks!
-John

TrueJournals 2009-03-20 18:45

Re: packaging libs for Maemo
 
Either talk to the new debmaster, or grab the source from debian, which already has the required packaging information.

mikkov 2009-03-20 18:49

Re: packaging libs for Maemo
 
Just uploaded libguichan-0.8.1 to autobuilder

tobiasj 2009-03-20 18:57

Re: packaging libs for Maemo
 
Quote:

Originally Posted by mikkov (Post 273287)
Just uploaded libguichan-0.8.1 to autobuilder

What is this autobuilder of which you speak? ;)

-John

GeneralAntilles 2009-03-20 19:03

Re: packaging libs for Maemo
 
Quote:

Originally Posted by tobiasj (Post 273293)
What is this autobuilder of which you speak? ;)

The builder that builds source packages for Extras.

mikkov 2009-03-20 19:08

Re: packaging libs for Maemo
 
now it's built for diablo and should appear in extras-devel soonish

tobiasj 2009-03-20 19:19

Re: packaging libs for Maemo
 
Quote:

Originally Posted by mikkov (Post 273299)
now it's built for diablo and should appear in extras-devel soonish

Great news, but for my own knowledge, how did this actually work? I mean go from a source code folder to the autobuilder and up.. I have been reading the how-to's but they assume a level of familiarity that I do not have...


-John

mikkov 2009-03-20 19:27

Re: packaging libs for Maemo
 
Quote:

Originally Posted by tobiasj (Post 273302)
Great news, but for my own knowledge, how did this actually work? I mean go from a source code folder to the autobuilder and up.. I have been reading the how-to's but they assume a level of familiarity that I do not have...


-John

For this particular package:
1. I downloaded debian sources for guichan (apt-get source guichan)
2. I made a test build (dpkg-buildpackage -rfakeroot)
3. removed allegro and opengl depencies (from debian/control and debian/rules)
4. changed changelog (debian/changelog)
5. made uploadable source packages (dpkg-buildpackage -rfakeroot -sa -S)
6. uploaded to autobuilder (dput diablo-extras-builder guichan_0.8.1-4maemo1_source.changes)

For general information about debian packages see http://www.debian.org/doc/debian-policy/ and http://www.debian.org/doc/maint-guide/ and https://maemo.org/forrest-images/pdf/maemo-policy.pdf

tobiasj 2009-03-20 19:32

Re: packaging libs for Maemo
 
oh, and it is already available in extras-devel... Thanks again...



-John

tobiasj 2009-03-20 21:19

Re: packaging libs for Maemo
 
Guess I spoke too soon, I can not actually install it from extras. It is in the pool but if i try to find it in app manager it is no go and apt-get doesn't see it either. perhaps it needs more time to make it in the list.


-John

edit: if iI try to install it directly from the repro (with the browser) I get an incompatible application package...

mikkov 2009-03-20 21:30

Re: packaging libs for Maemo
 
I can install it fine with apt-get install libguichan-0.8.1-1
It's in extras-devel, not in extras

mikkov 2009-03-20 21:35

Re: packaging libs for Maemo
 
Quote:

Originally Posted by tobiasj (Post 273351)
if iI try to install it directly from the repro (with the browser) I get an incompatible application package...

package is not in user/ section (because it's a library), so it's not directly installable with application manager

tobiasj 2009-03-21 14:32

Re: packaging libs for Maemo
 
Thanks, I was not completing the version number when I tried to install it wil apt-get

So with that lib and I (thanks to your info) made and installed libSDL_ttf and it is happy with that. But now with the latest (and I think last) lib it needs, I am havng a problem..

' error while loading shared libraries: libphysfs-1.0.so.0: cannot open shared object file: No such file or directory'

10 seconds earlier I had done this on the N810:

Nokia-N810-43-7:/media/mmc1# dpkg -i libphysfs-1.0-0_1.0.0-5_armel.deb
Selecting previously deselected package libphysfs-1.0-0.
(Reading database ... 16856 files and directories currently installed.)
Unpacking libphysfs-1.0-0 (from libphysfs-1.0-0_1.0.0-5_armel.deb) ...
Setting up libphysfs-1.0-0 (1.0.0-5) ...

I have this version installed on the dev machine in scratchbox and I reconfigured and recompiled the game. still it complains this lib isn't there.

The only thing I see in the error is that it is looking for libphysfs-1.0.so.0 and I dont know what the .so. means. I have installed libphysfs-1.0-0 that should meet the dep, but I have something wrong.

When it needed libsdl_ttf it was also looking for .so.0 of sdl_ttf and I installed libsdl-ttf2.0-0 and it was happy and moved on... So I am not sure what the problem is..

Help, anyone....???..

-John

p.s. when my request to upload is approved I will upload these libs to extras-devel as well....

mikkov 2009-03-21 15:12

Re: packaging libs for Maemo
 
all of those libraries are already in extras so no need to upload them.

Otherwise can't really say what's wrong without trying it myself

tobiasj 2009-03-21 15:19

Re: packaging libs for Maemo
 
Quote:

Originally Posted by mikkov (Post 273527)
all of those libraries are already in extras so no need to upload them.

Otherwise can't really say what's wrong without trying it myself

Well, I gave up on building my own libs (really just wanted to see how to do it..) and just installed them from Extras-Dev and it works. So There was certainly something wrong with my package of libphysfs. when I get done with this port I will go back and try to figure out why is all went wrong. Thanks again for all your help..


-John


All times are GMT. The time now is 18:16.

vBulletin® Version 3.8.8