[maemo-developers] need help uploading to Extras

From: Benoît HERVIER khertan at khertan.net
Date: Tue Aug 5 11:38:05 EEST 2008
2008/8/4 Owen Williams <owen-maemo at ywwg.com>:
> On Sat, 2008-08-02 at 13:50 +0400, Andrew Zabolotny wrote:
>> From Fri, 01 Aug 2008 08:10:35 -0400
>> Owen Williams <owen-maemo at ywwg.com> wrote:
>> Have you used some tool to build the debian/ directory? If you're
>> building the .deb file manually, that won't work for the builder, as it
>> needs automatic instructions for building your package.
>
> I am building the deb manually.  I don't know how to make a debian/
> directory.  Again, the instructions are always C-specific.  The idea
> below of looking at apt-get source sonata is a great idea to help with
> this.
>
>>
>> > The first is a hildonized version of the Sonata MPD client
>> > (http://sonata.berlios.de/).  I've uploaded my patched tarball and
>> > built deb here: http://ywwg.com/maemo/  Version 1.5.2 is the latest
>> > version.
>> I can help you with packaging, as I'm interested too in Sonata. Do you
>> have a project on garage for this?
>
> No, I just have a diff file against current Sonata SVN.  (The Sonata
> maintainer has said that the diff is too large to merge into trunk).
> I'll set up a garage page, but I'll need some help setting up a repo
> that can pull in changes from Sonata's primary SVN from time to time.
>
>>
>> Also you may try to get/adapt the packaging scripts from the Ubuntu or
>> Debian version of Sonata. Just run "apt-get source sonata" in some
>> directory from Ubuntu/Debian.
>
> that's a good idea
>
>
>> That's easy, really. You just have to read a little docs (for example,
>> here: http://www.debian.org/doc/maint-guide/
>
> I think I'll focus on getting sonata to work, then start wrestling with
> this problem.
>
>
>> I believe that's because you don't provide larger icons (app menu
>> uses 64x64 icons as far as I understand), or don't run
>> gtk-update-icon-cache. You should put them in
>> /usr/share/icons/hicolor/64x64/apps/ and run
>>
>> gtk-update-icon-cache -f /usr/share/icons/hicolor
>>
>> from your postinst hooks of the .deb package.
>
>
> I thought "scalable" would be enough :).
>
> thanks for all the info, I'll see if I can beat on this a little more.
>
> owen
>
> _______________________________________________
> maemo-developers mailing list
> maemo-developers at maemo.org
> https://lists.maemo.org/mailman/listinfo/maemo-developers
>

Hi !

If i understand Sonata MDP is a Python GTK application, if nothing
need to be compiled, you can use py2deb to build a debian source
package that can be used by the autobuilder. I use it to build
mCalendar, Home* applet ...

It s available in the extras-devel repository.

And you can use it on a nit :)

You need to set your gpg key and ssh rsa key on the nit and the maemo
repository.

To use it :

    import py2deb
    __version__ = "0.5.8"
    __build__ = "1" # Result is "0.5.8-1"
    p=Py2deb("myuberpackage")
    p.description="Best Package !"
    p.author="Benoît HERVIER"
    p.mail="khertan at khertan.net"
    p.depends = "python2.5-runtime"
    p.section="user/programming"
    p.arch="any"
    p.urgency="low"
    p.distribution="diablo"
    p.repository="extras-devel"
   #Here installation of files :
    p["/usr/lib/python2.5/site-packages"] =
["py2deb.py","py2tar.py","py2dsc.py","py2changes.py","md5hash.py"]
    p["/usr/bin"] = ["py2deb.launch"]

    print p
    print p.generate(__version__,__build_,tar=True,dsc=True,changes=True,build=False,src=True)

This will open a xterm, and follow the instructions (there is many
debug displayed thing) ... but to resume it ll ask two time to enter
your gpg password to sign .dsc and .changes file ... and press some
time enter key.

Once xterm windows close, you can use extras assistant to upload your package.

-- 
Benoît HERVIER - http://khertan.net/
More information about the maemo-developers mailing list