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)

BrentDC 2009-03-15 19:45

Packaging Help for a Newbie Required...
 
I've been trying to get an application of mine (Quick Clip, simple Python application) packaged up using my Linux desktop, and I need a bit of help.

WARNING: I'm a complete packaging newbie.

From the information I gathered from the Maemo Diablo Reference Manual, I created a folder named quickclip-0.12.0. In it is this:

Code:


debian/
  changelog                                                                                             
  compat                                                                                               
  control                                                                                               
  control~                                                                                             
  copyright
  cron.d.ex
  dirs
  docs
  emacsen-install.ex
  emacsen-remove.ex
  emacsen-startup.ex
  init.d.ex
  init.d.lsb.ex
  manpage.1.ex
  manpage.sgml.ex
  manpage.xml.ex
  menu.ex
  postinst.ex
  postrm.ex
  preinst.ex
  prerm.ex
  quickclip.default.ex
  quickclip.doc-base.EX
  rules
  watch.ex
etc/
home/
usr/

All the stuff in debian/ was created with dh_make (just from the normal Ubuntu shell prompt, not scratchbox...). The other folders are the proper directory tree of what I want installed. Don't know if this is the correct way to do this...

When I run dpkg-buildpackage -rfakeroot from the scratchbox x86 prompt inside my quickclip-0.12.0 directory, I get this:

Code:

dpkg-buildpackage: source package is quickclip                                 
dpkg-buildpackage: source version is 0.12.0-1                                 
dpkg-buildpackage: source changed by brent User <bchiodo@gmail.com>           
dpkg-buildpackage: host architecture i386                                     
dpkg-buildpackage: source version without epoch 0.12.0-1                       
: Using Scratchbox tools to satisfy builddeps                                 
 fakeroot debian/rules clean                                                   
dh_testdir                                                                     
dh_testroot                                                                   
rm -f build-stamp configure-stamp                                             
# Add here commands to clean up after the build process.                       
/scratchbox/tools/bin/make clean                                               
make[1]: Entering directory `/home/brent/quickclip-0.12.0'                     
make[1]: *** No rule to make target `clean'.  Stop.                           
make[1]: Leaving directory `/home/brent/quickclip-0.12.0'                     
make: *** [clean] Error 2

I didn't do anything to debian/rules; I wouldn't know what needed to be changed...

Any help would be greatly appreciated, even if is just a link to some documentation. Thanks.

qwerty12 2009-03-15 20:04

Re: Packaging Help for a Newbie Required...
 
dh_make assumes you're using a Makefile but as this is a raw python app, I presume you aren't. An easy way to get started is to comment the make lines, and make an file called 'install' in debian/

This file works like this:
file destination
entire_contents_of_ folder destination

So, if you want to install the file "gobbled" which is in the same folder as where the debian folder is to /usr/bin, you'd write in your install file:
gobbled /usr/bin

If you want to install the files in the folder "gobbled_res" (which is in the same location as debian/ is) to /usr/share/gobbled, you'd write:
gobbled_res/ /usr/share/gobbled

Then uncomment dh_install from your rules.
dh_install handles creating dirs automatically.

That is just one way, have fun in finding more! :)

Good luck :)

michaelnt 2009-03-16 09:25

Re: Packaging Help for a Newbie Required...
 
If you have a setup.py file you can add a Makefile with the following in it.

all:
python2.5 setup.py build
clean:
python2.5 setup.py clean --all
install:
python2.5 setup.py install --root $(DESTDIR)

BrentDC 2009-03-16 16:04

Re: Packaging Help for a Newbie Required...
 
Thanks for the help qwerty & michaelnt. I do not have a setup.py file, so I'm trying qwerty's method, but I've run into a problem:

I commented out all of the $(MAKE) lines out of rules; I assume that is the correct thing to comment out. Then I created a install file with this:

Code:

etc/ /
home/ /
usr/ /

Please tell me if this is the wrong format. I then uncommented dh_install from rules, but when I run dpkg-buildpackage -rfakeroot, I get this error:

Code:

[sbox-DIABLO_X86: ~/quickclip-0.12.0] > dpkg-buildpackage -rfakeroot
dpkg-buildpackage: source package is quickclip
dpkg-buildpackage: source version is 0.12.0-1
dpkg-buildpackage: source changed by brent User <bchiodo@gmail.com>
dpkg-buildpackage: host architecture i386
dpkg-buildpackage: source version without epoch 0.12.0-1
: Using Scratchbox tools to satisfy builddeps
 fakeroot debian/rules clean
dh_testdir
dh_testroot
rm -f build-stamp configure-stamp
# Add here commands to clean up after the build process.
#/scratchbox/tools/bin/make clean
dh_clean
dh_clean: Sorry, but 5 is the highest compatibility level supported by this debhelper.
make: *** [clean] Error 1
[sbox-DIABLO_X86: ~/quickclip-0.12.0] >

Any more help is greatly appreciated :o

qwerty12 2009-03-16 16:12

Re: Packaging Help for a Newbie Required...
 
Run dh_make from scratchbox, not Ubuntu.

BrentDC 2009-03-16 16:13

Re: Packaging Help for a Newbie Required...
 
Forget that last post; I changed debian/compat from 7 to 5, and I got past that error (but on to another one). I'm working it..

BrentDC 2009-03-16 16:14

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

Originally Posted by qwerty12 (Post 272032)
Run dh_make from scratchbox, not Ubuntu.

Yeah, I was running it from scratchbox, but my compat file was too high (apparently?).

BrentDC 2009-03-16 20:44

Re: Packaging Help for a Newbie Required...
 
Ok, one last problem, when running dpkg-buildpackage -rfakeroot, I get this at the end:

Code:

dpkg-source: unrepresentable changes to source
I get a *.tar.gz file, but no *.deb :(

This website seems to think it has something to do with the clean process. Any ideas?

Thanks :o :o

fatalsaint 2009-03-16 20:53

Re: Packaging Help for a Newbie Required...
 
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:

Quote:

dpkg-deb --build quickclip-0.12.0
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.

qwerty12 2009-03-16 21:07

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

Originally Posted by BrentDC (Post 272144)
Ok, one last problem, when running dpkg-buildpackage -rfakeroot, I get this at the end:

Code:

dpkg-source: unrepresentable changes to source
I get a *.tar.gz file, but no *.deb :(

This website seems to think it has something to do with the clean process. Any ideas?

Thanks :o :o

Rename the .orig folder/tarball to whatever you wish for the quick way. But your problem is that a binary file/ non text based file was made (an pyc or pyo?) and -source can't diff that binary file. You can add "rm -f <unnecessary binary file>" to your clean target.

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.

qwerty12 2009-03-17 18:32

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

Originally Posted by BrentDC (Post 272347)
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).

Install "shareutils" for uuencode ;)

The problem may just be in the way you're adding the base64 into the control file.

I do this:
Quote:

XB-Maemo-Icon-26:
yyyyyyyyyyyy
yyyyyyyyyyyy
(Which, although the quote doesn't do well to show it, translates to "XB-Maemo-Icon-26:<space>
<space>base64 contents")

BrentDC 2009-03-17 18:37

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

Originally Posted by mikkov (Post 272370)
You should post your problematic control file here. Otherwise this just guesswork.

Yes, sir. Here it is:

Code:

Source: quickclip
Section: user/tools
Priority: optional
Maintainer: Brent Chiodo <bchiodo@gmail.com>
Build-Depends: debhelper (>= 4.0.0)
Standards-Version: 3.6.0
Package: quickclip
Architecture: armel
Depends: python2.5, python2.5-hildon, python2.5-gtk2, python2.5-hildondesktop, hildon-desktop-python-loader
Version: 0.3.0
Description: A Status bar plugin to copy and save information.
 Quick Clip is a statusbar plugin that allows you to easily save
 information into a file for later reference. Whether that information
 is the current text-selection, or something you just want to jot down,
 Quick Clip automates the whole process.
XB-Maemo-Icon-26:
 iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAYAAACpSkzOAAAABHNCSVQICAgIfAhk
 iAAABQlJREFUSIndll9oHNcVh79z586sZrX/pPGuZTuqrcVOiikB11EeQl5KG2pK
 +lwoDYE+tI+lEEgCoSHQl9JAm1JoiCmE5CmFPtQPaV03Le5DX9KiQqmj5o+RUimK
 LMuSd2dmd3Zn7unDrlTJElb62stcBi6H891zf+ece+H/bchhiz96+YeB8UyAAgoq
 AA6cw+0YqYITBzp47tkX8/8Z9Ktfv1mdfWDuaRHvPKCCoiPP7P0BiJhhp3t38d+r
 K1fzvFj6zre/q/f62xn23oUi1wunTs6+MB1Nt1QV1IlTJcsyup0ujak6qg5VVRDy
 YZFH0fQ/b968+dIrP3n5yve+/4w7DGQOgIrCF8EYIwyHAzqdDqqO4XDIxsYGw3yI
 qqpTR14MGeSZnX3gcw+fe/DcK6dOn/rm5V/+IvhMIKeKKqgq3W6XxcX3WV9fJ8+H
 xHHC9tY2SZpImiTSzzIKV5CkiZw53Z49PXfmx42pqa+9evnnByQ5GJErUBRVJ6oq
 5XLIx8srxEkCAnc2t+ilPdJenyROpN/rSZqm9Pt9msdax2eOz/ygVq099OprP7s/
 SJ2CKk4d1rdExyJUlbgTUw5D0rSPtT6BHxD4AZ549Hp9WVx8j6WlZUrhxPnJSuUb
 paBs7wtybufoAJQg8Gm2jrG2to6q0ul0GA5zjDEYY/CspVqdpHW8RavVpFGrB9F0
 9C1r7fRevweybpxRKIqIICI0GnWSKOX27TsMsowkSSmXw3vdiB8ElMNQ424yV7hi
 4v4g5xhVKWTZgEE2QESoT1XZ3t6m1+uzcWuDSqWM53l7NqggojI5iSri3P4sPwBy
 OipQUaUUBFjPA4RyGDI4OSSOY/q9Pr71mQj3bFrB+lY8Y0ZY3Q86RKORgXgezjny
 vCAvcvIipzHV4PjMDJ1Ol83NLVzhKHJHkRcURYGqYoyHqsMdDRodmydmV3ArHp7n
 EVifZjMiz4esrqyyvd1BncOzPsZYjPEwYkZt0O3vRocmA6qIMXjGop6CCMIoMer1
 BpOTFVZWP0FXP6H14QdE848QPngOU6lQGA9V5WiNxgYGIQgCrB2bjDNQgOZUg3h1
 hbPtNhtXrrB87Q94rRblzz9EY36etBnBcH9DP7RgdRxRlmWkaUqv16Ofjme/Tyvr
 c+q3v8NXmHvpRSqPPUa+tUXz0iWiixfZ/tN1zLt/O0KjPSJaawmCYDRL4xmUqEXH
 qEyUuPv224T1Bmeff47Gpa+icYznHN7WFmbt0yNAzu0W60izUY3oziWoimQD6vOP
 4lcqJAsL1GZOMPuVJ7h19fes/OYK5txZske+eJRGuuNQy+UyI6bsJgQimFoNvXCB
 chTx8VtvcfrJrzPz+OPU2m215ZDehx+QL/z1qIgKFERVsdbil3z8wKcU+JRKPqUg
 YKLZpNjcZLLdxq9WWbt2DS8IqLbnCGdaiPUoXLHvqrg3IrNxa0OTJE6TJKmNuorA
 6Bsfp6DVSYJWU27/fcHUn/iyW37jTa/86Hxh6zUVEQaDQXfp5pI3DsQdAImI/vn6
 X/7Vas38tFGvnx1dgsoIo7sdHRFst2tKNxZnvTA8ESwszN64/NrV4uSJjojo5p3b
 N95554932fPC2BfexMQERVHIFx4+b6NoyuR5Lk7/W+G7ICCsVPRLix+12mKe1DQJ
 /2G916+fmU1Lga+frq279268n7s97eHQ59ZnHe9evMhyHAe9OOap1dXB/Wz/A/bi
 ilzUOf87AAAAAElFTkSuQmCC
Installed-size: 127


BrentDC 2009-03-17 18:45

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

Originally Posted by qole (Post 272362)
I know that Khertan's PyPackager does the icon conversion; perhaps you can peek into his code to see how he does it?

I'll take a look at the code and try to see what's going on; also, I'll try extracting the control file from a pypackager-built package.

Quote:

Oh, and while you're there, are you interested in updating it? I've got a few feature requests...
Depends on the feature request and the pypackager code; I'm still very much a python newbie, and if Khertan's code is too advanced I won't be able to do much with it. Although, it shouldn't be too hard to add a gtk.ScrolledWindow() to the change log tab...

BrentDC 2009-03-17 18:50

Re: Packaging Help for a Newbie Required...
 
Ah, ha! The pypackager built deb has a "Maemo-Icon-26" field not a "XB-Maemo-Icon-26" field...hmm. I guess I'll try that...

BrentDC 2009-03-17 19:04

Re: Packaging Help for a Newbie Required...
 
Yes, the "Maemo-Icon-26" worked. The icon now appears fine. I just wonder why XB- didn't? Strange.

qwerty12 2009-03-17 19:12

Re: Packaging Help for a Newbie Required...
 
If you have to use Maemo-Icon-26 w/out the XB-, you're not making a package that the autobuilder will accept.

BrentDC 2009-03-17 19:33

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

Originally Posted by qwerty12 (Post 272387)
If you have to use Maemo-Icon-26 w/out the XB-, you're not making a package that the autobuilder will accept.

Then icons must not be possible with local debs? Because XB- certainly doesn't work.

mikkov 2009-03-17 19:47

Re: Packaging Help for a Newbie Required...
 
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"

BrentDC 2009-03-17 20:20

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"

I'm using dpkg-deb --build <source directory name> to build the package. When I tried using dpkg-buildpackage I was getting all kinds of errors, most notably a "dpkg-source: unrepresentable changes to source" error; even with that error, a *.tar.gz, *.dsc and some other files were created, but no *.deb. Is dpkg-buildpackage supposed to create a .deb? The Diablo Maemo Reference seemed to indicate it should. Thanks.

mikkov 2009-03-17 20:32

Re: Packaging Help for a Newbie Required...
 
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 :)

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 15:53.

vBulletin® Version 3.8.8