maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   PyPackager (https://talk.maemo.org/showthread.php?t=9617)

Khertan 2008-07-29 10:13

Re: PyPackager
 
Hi,

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

PyPackager will be in repository in few days.

qole 2008-10-06 23:45

Re: PyPackager
 
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.

twaelti 2008-10-07 15:59

Re: PyPackager
 
Quote:

Originally Posted by qole (Post 231157)
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 2008-10-07 18:01

Re: PyPackager
 
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...

Quote:

Originally Posted by twaelti (Post 231347)
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.

twaelti 2008-10-07 20:04

Re: PyPackager
 
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

gowen 2008-10-29 13:49

Re: PyPackager
 
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.

TheTall1 2010-02-20 16:01

Re: PyPackager
 
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.


All times are GMT. The time now is 02:46.

vBulletin® Version 3.8.8