Reply
Thread Tools
Posts: 42 | Thanked: 132 times | Joined on Feb 2010
#11
Woot it worked, i had to remove "X-Osso-Service" line from the .desktop file !
Thanks

Edit : Thanks qwerty12, didn't see your comment before posting but you where right
 
Posts: 42 | Thanked: 132 times | Joined on Feb 2010
#12
I'm sorry to be so stupid, but i did follow this "howto" : http://wiki.maemo.org/Documentation/...d_Distributing .

The problem is i do not want to package the sources ( all is really messy, with makefile edited by hand etc .. ) i just want to package the actual release. But this howto assume we are making a packages with sources :

Code:
[sbox-FREMANTLE_ARMEL: ~/wesnoth-1.6.5/wesnoth-1.6.5-1] > dh_make -e cpasjuste@gmail.com

Type of package: single binary, multiple binary, library, kernel module or cdbs?
 [s/m/l/k/b] s

Maintainer name : unknown
Email-Address   : cpasjuste@gmail.com 
Date            : Tue,  9 Feb 2010 09:33:27 +0100
Package Name    : wesnoth-1.6.5
Version         : 1
License         : blank
Type of Package : Single
Hit <enter> to confirm: 
Could not find wesnoth-1.6.5_1.orig.tar.gz
Either specify an alternate file to use with -f,
or add --createorig to create one.
[sbox-FREMANTLE_ARMEL: ~/wesnoth-1.6.5/wesnoth-1.6.5-1] >
Code:
[sbox-FREMANTLE_ARMEL: ~/wesnoth-1.6.5/wesnoth-1.6.5-1] > dh_make -e cpasjuste@gmail.com --createorig

Type of package: single binary, multiple binary, library, kernel module or cdbs?
 [s/m/l/k/b] s

Maintainer name : unknown
Email-Address   : cpasjuste@gmail.com 
Date            : Tue,  9 Feb 2010 09:36:10 +0100
Package Name    : wesnoth-1.6.5
Version         : 1
License         : blank
Type of Package : Single
Hit <enter> to confirm: 
Currently there is no top level Makefile. This may require additional tuning.
Done. Please edit the files in the debian/ subdirectory now. You should also
check that the wesnoth-1.6.5 Makefiles install into $DESTDIR and not in / .
[sbox-FREMANTLE_ARMEL: ~/wesnoth-1.6.5/wesnoth-1.6.5-1] >
I'm a little lazy about that stuff Some help to make a simple .deb for a release would be great since i can't find something like that in the docs ..
 
Posts: 353 | Thanked: 263 times | Joined on Dec 2009 @ Finland
#13
I wrote here some time ago a quick guide to make .deb http://talk.maemo.org/showpost.php?p=460952&postcount=2

But if you want to upload your project to extras you have to do the source packaging thing.
 
Posts: 42 | Thanked: 132 times | Joined on Feb 2010
#14
This means that we can't release closed sources applications on the n900 ?!

I sucessfully created a deb TNiga, but i have a little problem when trying to uninstall it, i don't understand why it try to remove the "/home/user" directory ( i did put data files in the MyDoc folder since it's around 300mb ) :

Code:
[sbox-FREMANTLE_ARMEL: ~/wesnoth-1.6.5] > apt-get remove wesnoth
Reading package lists... Done
Building dependency tree... Done
The following packages will be REMOVED:
  wesnoth
0 upgraded, 0 newly installed, 1 to remove and 2 not upgraded.
Need to get 0B of archives.
After unpacking 0B of additional disk space will be used.
Do you want to continue [Y/n]? y
(Reading database ... 45379 files and directories currently installed.)
Removing wesnoth ...
dpkg - warning: cannot remove `/home/user'
dpkg - warning: while removing wesnoth, directory `/home/user/MyDocs' not empty so not removed.
dpkg: error processing wesnoth (--remove):
 cannot remove `/home/user': Permission denied
Errors were encountered while processing:
 wesnoth
E: Sub-process /scratchbox/devkits/debian-etch/bin/dpkg returned an error code (1)

Last edited by Cpasjuste; 2010-02-09 at 10:23.
 
Posts: 353 | Thanked: 263 times | Joined on Dec 2009 @ Finland
#15
I suppose you could put the files in /opt first and then in postinst script move them to MyDocs and in prerm script move them back to /opt, then it shouldn't try to remove /home/user.
 
Posts: 42 | Thanked: 132 times | Joined on Feb 2010
#16
Ok, tricky but it's what i was thinking

Else if i understand correctly to release something on the application manager ( extra devel ) :

We need a full sources layout, build the package with db_make, and upload it to autobuilder. This one will compile it again for arm then make a deb out of it ?

There is really no other way to go on extra-devel ? I do use a few libary that are statically linked, but are not available on the normal distro (neither in repo) so the build will fail ?

This is a totally crap process to me ..
 
Posts: 353 | Thanked: 263 times | Joined on Dec 2009 @ Finland
#17
If you use libraries which are not in repos then you have to first upload them to extras-devel (or ask nicely if the library maintainer could do it for you) for your app to build succesfully with autobuilder.
 
Posts: 19 | Thanked: 0 times | Joined on Jan 2010 @ USA
#18
Hi, i am really new to this linux, i only have some basic programing language.

my question is how do i build .deb package that just to install a .ttf font ? Do i need to do it from my N900 or PC ( windows or Linux ) ? .. sorry i am totally clueless on this
 
Posts: 1,208 | Thanked: 1,028 times | Joined on Oct 2007
#19
for the original poster: please take the packaging from debian or from earlier wesnoth for maemo port.

Last edited by mikkov; 2010-02-09 at 17:09.
 
Posts: 489 | Thanked: 404 times | Joined on Dec 2009
#20
Hi everyone.
I've some problems in creating a .deb using TNIGa's nice guide.

First of all, X-Term gave me some errors regarding bad permissions, but I've solved it manually changing permissions to some files.
Now it's giving me another error.
It says:

tar: unrecognized option "--format=gnu"

and then, after explaining the correct usage of tar, it says

dpkg-deb: subprocess tar -cf returned error exit status 1

What can I do?
 
Reply


 
Forum Jump


All times are GMT. The time now is 01:49.