maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   How to make a .deb package .. (https://talk.maemo.org/showthread.php?t=43575)

Cpasjuste 2010-02-07 18:28

Re: How to make a .deb package ..
 
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 :)

Cpasjuste 2010-02-09 08:35

Re: How to make a .deb package ..
 
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 ..

TNiga 2010-02-09 08:56

Re: How to make a .deb package ..
 
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.

Cpasjuste 2010-02-09 10:08

Re: How to make a .deb package ..
 
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)


TNiga 2010-02-09 10:40

Re: How to make a .deb package ..
 
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.

Cpasjuste 2010-02-09 10:52

Re: How to make a .deb package ..
 
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 ..

TNiga 2010-02-09 11:40

Re: How to make a .deb package ..
 
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.

chealyte 2010-02-09 14:57

Re: How to make a .deb package ..
 
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

mikkov 2010-02-09 16:01

Re: How to make a .deb package ..
 
for the original poster: please take the packaging from debian or from earlier wesnoth for maemo port.

torpedo48 2010-02-09 17:03

Re: How to make a .deb package ..
 
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?


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

vBulletin® Version 3.8.8