Khertan's Avatar
Posts: 1,012 | Thanked: 817 times | Joined on Jul 2007 @ France
#51
Hi,

Yes i know my website is ... pffff no word ...
I'm currently redesign it.

PyPackager will be in repository in few days.
 
qole's Avatar
Moderator | Posts: 7,109 | Thanked: 8,820 times | Joined on Oct 2007 @ Vancouver, BC, Canada
#52
Does PyPackager 0.7 work with the current Diablo Extras-Devel? I've got my invitation, I've got my GPG key, and I'm going to try an upload; but I've heard that things have changed and you can't just upload a binary package anymore, you have to upload a source package?

Also: a feature request! I would love to have a field in PyPackager that corresponds to the "provides" field in the Debian package system.
__________________
qole.org --- twitter --- Easy Debian wiki page
Please don't send me a private message, post to the appropriate thread.
Thank you all for your donations!
 
Posts: 883 | Thanked: 980 times | Joined on Jul 2007 @ Bern, Switzerland
#53
Originally Posted by qole View Post
Does PyPackager 0.7 work with the current Diablo Extras-Devel? I've got my invitation, I've got my GPG key, and I'm going to try an upload; but I've heard that things have changed and you can't just upload a binary package anymore, you have to upload a source package?
You can't use PyPackager for that, you need to work with the new Py2Deb from Khertan. Which is actually a bit of a pain right now, as I experienced before and during the Summit :-) I'll try to put together a documentation tonight on what I did to get a package up and running on extras-devel.
Also, I have quite some improvement suggestions for py2deb, might be easier once that stuff is in place.
In addition py2deb currently doesn't support pre-/postinstall scripts, something that is sorely needed for some apps.
 
qole's Avatar
Moderator | Posts: 7,109 | Thanked: 8,820 times | Joined on Oct 2007 @ Vancouver, BC, Canada
#54
Yes, I tried an upload, and PyPackager connects to extras-devel and everything, but it is trying to put the files in a directory that doesn't exist on the server... so things have changed...

Originally Posted by twaelti View Post
In addition py2deb currently doesn't support pre-/postinstall scripts, something that is sorely needed for some apps.
I pretty much have to have the post install scripts.
__________________
qole.org --- twitter --- Easy Debian wiki page
Please don't send me a private message, post to the appropriate thread.
Thank you all for your donations!
 
Posts: 883 | Thanked: 980 times | Joined on Jul 2007 @ Bern, Switzerland
#55
Here is the promised article on py2deb in the maemo wiki.
Hope it helps someone. Problems I had when first getting into py2deb:
- No flat sourcefile structure
- launching the buildmyapp.py without using the full path name
 
Posts: 223 | Thanked: 67 times | Joined on Jun 2006
#56
I'm trying to use pypackager to build a deb for squeak. I want to install some files to /media/mmc2, however, when I run the installer it baulks with the message:

error setting ownership of 'media/mmc2/squeak': Operation not permitted.

I suppose this is due to the FAT32 file system. Is there any way around this without installing the file to say /var/tmp and then moving it with a post processing script.
 
Posts: 12 | Thanked: 1 time | Joined on Sep 2009
#57
Hi there. Really nice work Khertan. Thank you very much, but it doesn't completely work for me. I got a debian package at the end but the application isn't really installed successfully.

PyPackager config:
Code:
(S'myapp'
S'0.1'
S'user/other'
S'all'
S'Optional'
S'Mister Me <me@mister.de>'
S'python2.5, python2.5-hildon, python2.5-dbus, python2.5-gobject'
S'myapp'
S'/home/user/MyDocs/pypack/myapp/src/usr/lib/myapp'
S'/home/user/MyDocs/pypack/myapp/myapp_small.png'
S'#!/bin/sh\nmkdir /var/log/myapp/\ntouch /var/log/myapp/info.log\ntouch /var/'
S'#!/bin/sh\nrm -r /var/log/myapp/\n'
S''
S''
S''
S'extras'
S'Diablo'
S'low'
S'email@email.com'
S''
S''
S''
S'7'
tp1
myapp.desktop:
Code:
[Desktop Entry]
Version=1.0.0
Encoding=UTF-8
Name=STEAMS
Comment=Fancy content
Exec=/usr/bin/myapp
Icon=myapp_small
X-Icon-path=/usr/share/icons
X-Window-Icon=myapp_small
Type=Application
X-Osso-Service=com.nokia.myapp
X-Osso-Type=application/x-executable
/src/usr/bin/myapp: (755)
Code:
#!/usr/bin/sh
python2.5 '/usr/lib/myapp/myapp_main.py'
/src/usr/share/application/dbus-1/services/com.nokia.myapp.service:
Code:
[D-BUS Service]
Name=com.nokia.myapp
Exec=/usr/bin/myapp

lintian myapp.deb output:
Code:
W: myapp: file-in-unusual-dir globals.py
W: myapp: file-in-unusual-dir macaddress.py
W: myapp: file-in-unusual-dir mylogging.py
W: myapp: file-in-unusual-dir protocol.py
W: myapp: file-in-unusual-dir btcomm.py
W: myapp: file-in-unusual-dir daemon.py
W: myapp: file-in-unusual-dir db.py
W: myapp: file-in-unusual-dir dbusinterface.py
W: myapp: file-in-unusual-dir ervice.py
E: myapp: python-script-but-no-python-dep ./daemon.py
W: myapp: maintainer-script-ignores-errors postinst
W: myapp: maintainer-script-ignores-errors postrm
E: myapp: no-copyright-file
E: myapp: control-file-has-bad-permissions postinst 0666 != 0755
E: myapp: control-file-has-bad-owner postinst user/group != root/root
E: myapp: control-file-has-bad-permissions postrm 0666 != 0755
E: myapp: control-file-has-bad-owner postrm user/group != root/root
W: myapp: unknown-section user/other
W: myapp: unknown-section user/other
E: myapp: unknown-priority Optional
So the problem seems to be the python dependency. But it is mentioned in the config file so I don't know what might be the problem. I don't think the log-files are a problem. They are handled in a running postinstall and after-remove script.

The unusual path confuses me a little.

Do you have any ideas what I'm doing wrong?
Thank you very much.
 
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 10:52.