Reply
Thread Tools
darethehair's Avatar
Posts: 273 | Thanked: 104 times | Joined on Mar 2007 @ Manitoba, Canada
#1
Sorry if the answer to my query has been addressed elsewhere, but 'search' has not revealed the answer to me...

OK, so I have my own humble Python apps (Mephemeris, etc.) and some ports that I have done (Gphoto2, etc.) and today I decided to make *serious* efforts to make them more easily available by getting them (somehow) into the 'extras' repository. Thus far, it has been a 'hair pulling' experience for me

I tried my dependable approach first: using 'pypackager', but this doesn't work (as others have pointed out). Oh how I wish that it did!

Next, I have seen the page that describes the correct processes:

http://wiki.maemo.org/Uploading_to_E...source_package

1. Using Debian tooling directly

The 'dpkg-buildpackage' instructions do *not* work for my in my scratchbox (Ubuntu) enviroment. They for sure do not function in my primary 'Fedora' one.

2. Using mud-builder to help repackage existing upstream sources.

Sorry, but this one looks like greek to me. Should I pursue this?

3. Using py2deb for Python applications.

This was my first try, but I cannot install it on my N800, nor in Fedora (RPM-based!), nor on scratchbox (cannot find all dependencies).

So, the bottom line is that I *am* trying to 'do the right thing', but there are just so many obstacles in the way that it just isn't falling into place. I have what I *think* are completely legitimate 'deb' packages -- ready to upload to 'extras' -- and I am stepping awkwardly backwards with my head spinning.

I don't mean this to be a criticism of proper procedures -- only that, as a Fedora user, there doesn't seem to be any easy, working way for me to do this. Can somehow point me in the right direction?

Thanks!
__________________
There is nothing more dangerous than a bored cat.
 
BrentDC's Avatar
Posts: 903 | Thanked: 632 times | Joined on Apr 2008
#2
Maybe Jeremiah Foster a.k.a. the debmaster can help?
__________________
-Brent

Author of TouchSearch -- web searching software for Maemo 5.

Mobile Device lineage: Palm Z22 -> Palm TX -> Nokia N800 -> Nokia N900
 
Posts: 1,224 | Thanked: 1,763 times | Joined on Jul 2007
#3
I use Fedora.

dpkg-buildpackage does work in scratchbox, so you might want to look into that. Maybe download a simple package source from extras-devel, compare the output from dpkg-buildpackage to the logs of the autobuilder, or post the output here, on maemo-developers mailing list, if you can't find the error.

I use dput from the system itself to upload to extras-devel (the autobuilder), using a dput srpm that I found here:

http://download.opensuse.org/reposit...SUSE_11.0/src/
 
benny1967's Avatar
Posts: 3,790 | Thanked: 5,718 times | Joined on Mar 2006 @ Vienna, Austria
#4
Originally Posted by darethehair View Post
The 'dpkg-buildpackage' instructions do *not* work for my in my scratchbox (Ubuntu) enviroment. They for sure do not function in my primary 'Fedora' one.
They should - in principle. At least, they work on my gentoo-box (with no relation to Debian whatsoever), so I take this as a proof that scratchbox is really completely self-contained.

If there's something that doesn't work for you in two setups (Ubuntu+Fedora), chances are that it's the packaging, not scratchbox/Fedora/Ubuntu.

Any errors when you run
Code:
dpkg-buildpackage -rfakeroot
?
 
Posts: 1,208 | Thanked: 1,028 times | Joined on Oct 2007
#5
I think that the problem is that the instructions darethehair is referring doesn't tell what to do before dpkg-buildpackage can be used. In other words the instructions don't actually say anything about how to create debian packages.

Debian new maintainers' guide is a good starting point http://www.debian.org/doc/maint-guide/
 
darethehair's Avatar
Posts: 273 | Thanked: 104 times | Joined on Mar 2007 @ Manitoba, Canada
#6
Originally Posted by benny1967 View Post

Any errors when you run
Code:
dpkg-buildpackage -rfakeroot
?
Thanks for trying to help, guys! My Fedora desktop is what I used to develop my Python apps. My Ubuntu PC is a completely separate laptop that I used to compile gphoto2, pyephem, and graphviz, and that is where I tried 'dkpg-buildpackage':

Code:
sbox-CHINOOK_ARMEL: ~/tricordersrc > dpkg-buildpackage -rfakeroot
dpkg-parsechangelog: error: cannot open debian/changelog to find format: No such file or directory
dpkg-buildpackage: unable to determine source package is
This is greek to me
__________________
There is nothing more dangerous than a bored cat.
 
qwerty12's Avatar
Posts: 4,274 | Thanked: 5,358 times | Joined on Sep 2007 @ Looking at y'all and sighing
#7
It's what mikkov said. You don't have anything (debian/ folder) for dpkg-buildpackage to actually make a package from. Follow the link mikkov gave. And maemo diablo reference manual touches on packaging a bit too.
 
benny1967's Avatar
Posts: 3,790 | Thanked: 5,718 times | Joined on Mar 2006 @ Vienna, Austria
#8
just to make sure:

your package (or the thing that you want to turn into a package) does have a directory named debian with files like control, changelog, rules... in it?

if not, you're probably trying to build from the original sources. it's better to start from the debian package (available from http://packages.debian.org/source/etch/gphoto2 for example for gphoto2) and change only the lines you need to change for the tablets.

https://maemo.org/forrest-images/pdf/maemo-policy.pdf
and
http://maemo.org/maemo_release_docum....x/node14.html
helped me a lot.

Last edited by benny1967; 2009-02-25 at 13:25. Reason: Changed Debian-link from lenny to etch for compatibility reasons
 
darethehair's Avatar
Posts: 273 | Thanked: 104 times | Joined on Mar 2007 @ Manitoba, Canada
#9
Thanks a bunch, guys, for your attempts to help me -- I have spent the remainder of yesterday, and up till now today, in trying to do this stuff.

Bottom line so far: the 'dpkg-buildpackage' method *does* have hopes of working, but there are just too many non-standard things that need to be done for 'Python' apps that (for now) it is just not worth it. What do I mean? Makefiles, setup.py files, etc..

What seems to be working for me? Well, finding the 'modified' version of 'py2deb' (not the 'official' one that confused me). Even then, there are a lot of unanswered questions -- but at least I have (so far) managed to get something into the 'extras-devel' repository that way. Yes, it was a pain-in-the-you-know-what to put all the files into a 'flat' file structure -- so I have hopes that the next version will allow me just to supply my existing working nested source directory (the same ones as I used when doing it via 'pypackager').

The million $$$ next question is this: sure this technique works for *Python* apps, but what about my 'ports' of gphoto2 and graphviz? Since *I* have compiled all the necessary files, can I 'cheat' and use 'py2deb' as if it is just all a bunch of 'scripts', rather than a bunch of libraries and executables? I would hate to have to figure out the 'dpkg-buildpackage' way of doing those -- even though it might be easier since they are not Python. I think it was the 'rules' file that gave me the most trouble...

It might sound very 'lazy' of me, but I don't want to spend my time learning how to 'package' applications, but rather 'writing' them. That being said, I *have* spent quite a few hours already barking up and down a bunch of trees reading and trying different things
__________________
There is nothing more dangerous than a bored cat.
 
Posts: 1,208 | Thanked: 1,028 times | Joined on Oct 2007
#10
Originally Posted by darethehair View Post
The million $$$ next question is this: sure this technique works for *Python* apps, but what about my 'ports' of gphoto2 and graphviz? Since *I* have compiled all the necessary files, can I 'cheat' and use 'py2deb' as if it is just all a bunch of 'scripts', rather than a bunch of libraries and executables?
Unfortunately you can do it (and you have done it, I've noticed), but is certainly doesn't mean that you should do it.

Most of the packages are already in Debian and you should take packaging from there and tweak it a little to make it work with maemo. Here is graphviz for example http://packages.debian.org/lenny/graphviz
 

The Following 3 Users Say Thank You to mikkov For This Useful Post:
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 22:03.