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)

fatalsaint 2009-03-17 20:45

Re: Packaging Help for a Newbie Required...
 
Thats just it.... dpkg-buildpackage is for source packages...

he's not building from a source .... No automake, no configure, no make. Just Binaries.

mikkov 2009-03-17 20:47

Re: Packaging Help for a Newbie Required...
 
It's still source package even if it contains only python files.

fatalsaint 2009-03-17 20:50

Re: Packaging Help for a Newbie Required...
 
Odd. Seems when I was trying it I had similar issues.. that buildpackage always wanted to run the makes and compile.. then whined when they weren't there.

ETA:

Also.. as long as the package passes Lintian checks.. why would it matter which way it was made a .deb? The format is the same..

mikkov 2009-03-17 20:53

Re: Packaging Help for a Newbie Required...
 
buildpackage does what debian/rules says is it to do + it generates diff.gz where BrentDC is caught (+ some other things)

fatalsaint 2009-03-17 20:59

Re: Packaging Help for a Newbie Required...
 
So essentially you need to modify the rules and remove all the dh_make, dh_* entries, and anything else in there that causes problems.

I see. Thanks.

BrentDC 2009-03-17 22:26

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

Originally Posted by mikkov (Post 272421)
yes, you should be using dpkg-buildpackage to build .debs, it might have something to do with missing icon.

I believe qwerty12 explained how to fix the problem with dpkg-buildpackage. If those instructions are not helping, I have to ask you to post the error message and maybe the whole source package here. Otherwise we are, again, just guessing :)

One last problem: when building with dpkg-buildpackage, I get this:

Code:

dh_install: quickclip missing files (), aborting
make: *** [binary-arch] Error 1

If I comment dh_install in rules the package builds fine but is just empty (and the icon shows up in AM ;)).

I think I'm really close.

Thanks.

jeremiah 2009-03-17 22:48

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

Originally Posted by fatalsaint (Post 272195)
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..

There is other documentation written regarding dynamic language support for packaging in debian.

For a source package, all you have to do is create a directory to hold your script, then you can use tar and gzip to create a tarball. Add a Makefile and you are ready to go!

jeremiah 2009-03-17 22:58

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

Originally Posted by mikkov (Post 272400)
Are you building the package with dpkg-buildpackage?

Non-related suggestions:

use "Architecture: all" since this is pure python application

with "XB-Maemo-Display-Name:" field you can get better formatted title, for example "XB-Maemo-Display-Name: Quickclip"

Don't get confused by Architecture: all and Architecture: any - those are really for debian packages. Maemo has just two architectures, x86 and armel. And if your package is a based on a scripting language that can run on any architecture, it is probably best to use Architecture: any. But we are starting to get pedantic here. :^)

jeremiah 2009-03-17 23:01

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

Originally Posted by fatalsaint (Post 272426)
Thats just it.... dpkg-buildpackage is for source packages...

he's not building from a source .... No automake, no configure, no make. Just Binaries.

A deb package is a binary. dpkg-buildpackage builds these binary packages which have as their suffix ".deb". You can use, and should in fact use, dpkg-buildpackage to create debs.

jeremiah 2009-03-17 23:02

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

Originally Posted by mikkov (Post 272427)
It's still source package even if it contains only python files.

Absolutely. Those files get chmoded to executables and installed. You need a debian/rules file for that and to create a debian/rules file you need a Makefile. All you need to add to your python script is the Makefile and you should be on your way.


All times are GMT. The time now is 20:56.

vBulletin® Version 3.8.8