maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   Packaging Help for a Newbie Required... (https://talk.maemo.org/showthread.php?t=27521)

jeremiah 2009-03-17 00:17

Re: Packaging Help for a Newbie Required...
 
My first concern about the link you posted is what it says at the top;

"Warning: This article is out of date and should not be used for creating new packages."

It then goes on to point to the Debian New Maintainer's guide, which is the canonical, in fact the only reliable, guide to packaging debs. Do begin here since Maemo relies on debs being built first, then modifying the deb slightly to fit maemo.

If you are still getting errors, you can mail me at jeremiah@maemo.org and I'll see if I can help. One of my goals is to create a python packaging howto so maybe we can work on that. :^)

Regards,

Jeremiah

fatalsaint 2009-03-17 00:34

Re: Packaging Help for a Newbie Required...
 
Only thing I don't like about the New Maintainers Guide, from what I've read, is it pretty much assumes you're dealing with a source package (.tar.gz) to be used with automake...

In this case of Python/perl things.. there is no source package. The source IS the binaries. All you need to do is make your structure, create a control/copywrite/changelog file, and make the package.

Seems it would be a bit easier than the dh_make method of doing things..

BrentDC 2009-03-17 01:57

Re: Packaging Help for a Newbie Required...
 
Hello Jeremiah, welcome to the community :-)

Quote:

Originally Posted by jeremiah (Post 272192)
My first concern about the link you posted is what it says at the top;

"Warning: This article is out of date and should not be used for creating new packages."

It then goes on to point to the Debian New Maintainer's guide, which is the canonical, in fact the only reliable, guide to packaging debs. Do begin here since Maemo relies on debs being built first, then modifying the deb slightly to fit maemo.

I just got that website via a google of the error I received; I wasn't using it as a guide or anything, frankly I haven't been using any guide.

The main reason I picked the Python language to use for my program is that it's easy to use. And so far packaging via Pypackager was easy, too. But now that I want to get this thing uploaded to Extras, it has become a major hassle.

Quote:

If you are still getting errors, you can mail me at jeremiah@maemo.org and I'll see if I can help. One of my goals is to create a python packaging howto so maybe we can work on that. :^)
I think creating a python packaging howto would be great, especially considering a lot of newbie programmers (like myself) use this language. Those that use C, probably are already familiar with the make, build, and configure steps, so packaging probably seems a lot more logical; while to a python programmer like myself, it's basically like greek.

BrentDC 2009-03-17 16:03

Re: Packaging Help for a Newbie Required...
 
Quote:

Originally Posted by fatalsaint (Post 272149)
Not sure about your error.. but you can clean that up a little and rm -f *.ex *.EX in that debian folder. Those are example files made by the helper package in case you wanted to include something similar.. but are not required and are just bloat.

Have you tried just running:



from the directory above your quickclick directory? (and make the debian directory DEBIAN).

Just a thought, from here.

ETA:

I think part of the problem here is you are trying to follow the steps to building a debian package, from a source based package. Those steps automagically build the directory structure and everything for you, then compiled the binaries, then build the package, then lintian it.

You have done half of that yourself.. so you're starting from the middle but running the commands meant for the beginning. All you have to do is package the directory and control files you already made (with the command above, or using "fakeroot dpkg-deb --build ...") and then running lintian against it manually will tell you if anything is missing or broken.

I'm no expert at packaging.. this is all what I learned when I was messing with my own repo for Deblet.

Yesterday I missed the best part -- the ETA! So today I just skipped the dpkg-buildpackage step and ran your command and it built the deb fine. Thanks! The only thing that is broken now is the icon, it doesn't show in the AM...

fatalsaint 2009-03-17 16:37

Re: Packaging Help for a Newbie Required...
 
For icons there might be a command you need to run to update the icon cache...

gtk-update-icon-cache I think???

If that works.. what you'll want to do is include a postinst script in your debian package that runs that command. The postinst will execute, as it's name implies, after the installation of the package automatically.

Or.. might be something as simple as making sure your path is the correct path to the system icon files?

BrentDC 2009-03-17 17:20

Re: Packaging Help for a Newbie Required...
 
Quote:

Originally Posted by fatalsaint (Post 272333)
For icons there might be a command you need to run to update the icon cache...

gtk-update-icon-cache I think???

If that works.. what you'll want to do is include a postinst script in your debian package that runs that command. The postinst will execute, as it's name implies, after the installation of the package automatically.

Or.. might be something as simple as making sure your path is the correct path to the system icon files?

Actually, I was referring to the 26x26 icon that appears in the application manager; I took a png and converted it to base 64 via:

Code:

openssl base64 -in quick_clip.png -out quick_clip.txt
I copied that text into my control file, into the XB-Maemo-Icon-26: field (making sure that I put a space in front of each newline), but it doesn't show up. I think I did everything correctly...(I used openssl instead of uuencode because uuencode wasn't installed in either Ubuntu or Scratchbox).

fatalsaint 2009-03-17 17:37

Re: Packaging Help for a Newbie Required...
 
Ah.. well that's a little beyond me. I have no idea :). Never done icons for App Manager.

qole 2009-03-17 18:09

Re: Packaging Help for a Newbie Required...
 
I know that Khertan's PyPackager does the icon conversion; perhaps you can peek into his code to see how he does it?

Oh, and while you're there, are you interested in updating it? I've got a few feature requests...

GeneralAntilles 2009-03-17 18:15

Re: Packaging Help for a Newbie Required...
 
Quote:

Originally Posted by BrentDC (Post 272347)
I copied that text into my control file, into the XB-Maemo-Icon-26: field (making sure that I put a space in front of each newline), but it doesn't show up. I think I did everything correctly...(I used openssl instead of uuencode because uuencode wasn't installed in either Ubuntu or Scratchbox).

base64 <image> also works.

mikkov 2009-03-17 18:30

Re: Packaging Help for a Newbie Required...
 
Quote:

Originally Posted by BrentDC (Post 272347)
I copied that text into my control file, into the XB-Maemo-Icon-26: field (making sure that I put a space in front of each newline), but it doesn't show up. I think I did everything correctly...(I used openssl instead of uuencode because uuencode wasn't installed in either Ubuntu or Scratchbox).

You should post your problematic control file here. Otherwise this is just guesswork.


All times are GMT. The time now is 15:53.

vBulletin® Version 3.8.8