![]() |
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:
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 Any help would be greatly appreciated, even if is just a link to some documentation. Thanks. |
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 :) |
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) |
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/ / Code:
[sbox-DIABLO_X86: ~/quickclip-0.12.0] > dpkg-buildpackage -rfakeroot |
Re: Packaging Help for a Newbie Required...
Run dh_make from scratchbox, not Ubuntu.
|
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..
|
Re: Packaging Help for a Newbie Required...
Quote:
|
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 This website seems to think it has something to do with the clean process. Any ideas? Thanks :o :o |
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:
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. |
Re: Packaging Help for a Newbie Required...
Quote:
|
All times are GMT. The time now is 20:39. |
vBulletin® Version 3.8.8