Stuff that has not yet gone into the official build.
Post a reply

trying to package yad

Sat Jun 01, 2013 10:20 pm

First draft is here (very quick):
https://gitorious.org/temporary-debian- ... -repos/yad

git surprises me all the time. The following might be wrong:
1) install git-buildpackge #that's still right :-)
2) get the repo with
Code:
gbp-clone --pristine-tar git@gitorious.org:temporary-debian-diaspora-repos/yad.git

If that fails:
Code:
gbp-clone --pristine-tar git://gitorious.org/temporary-debian-diaspora-repos/yad.git

And if that fails too:
Code:
git clone git://gitorious.org/temporary-debian-diaspora-repos/yad.git

Earlier i had problems to clone repos where i have no write access. I couldn't figure it out yet.
The webinterface should give the general idea too, but one will not be able to build and test.

It can be build with:
Code:
git-buildpackage

After that a "fakeroot debian/rules clean" is needed to clean up the mess (git status will give lots of added files/folders, fakeroot will clean it up).
In debian/TODO are a few things i didn't do or simply don't know how to do. There are more than i have mentioned.

Once it seems ok:
Code:
sudo pbuilder build *dsc

For that an entry in /etc/sudoers is needed:
Code:
username ALL=(root) SETENV: NOPASSWD: /usr/sbin/pbuilder

and an intial "sudo pbuilder create"

~/.devscripst should contain the gpg-key:
Code:
DEBSIGN_KEYID="1234567"
DEBUILD_DPKG_BUILDPACKAGE_OPTS="-i -I"


Code:
lintian *dsc and
lintian *changes

alias in bashrc might be handy:
Code:
alias lintian='lintian -iIEcv --pedantic --color auto'

(pedantic really means pedantic, i think a few of those can be ignored).


------------
------------
If git or gbp clone don't work, here is what i did:
download the source
unxz *tar.xz #unpack the xz compression
tar -czf yad_0.21.0.origtar.gz yad-0.21.0 #pack it to gz compression
mkdir yad-0.21.0
cd
git init
git-import-orig ../*tar.gz #curse a lot as my naming schemes are never right, hence redo, check SoulSinging how-to
dh_make
edit the debian/* files #mainly copyright, control and changelog, remove all *ex (should have kept them as templates, say for upstream changelog, example is debian/docs).

If you want to push, say to gitorious, you will need to
Code:
git push --all
git push --tags

(and don't forget --pristine-tar above. git branch should tell it is there).

Templates for ITP and RFS are to be found at wiki.debian.org/Diaspora/Packaging (i hope).
Also a how-to dput the dsc to mentors. In the RFS mention that it's lintian clean and that it builds in pbuilder.

-----------
---- -----
At least around the lines of that.
I hope it made sense. Wee bit of clusterfuck.
German proverb: Devil is living in the tiny details ...

Re: trying to package yad

Sat Jun 01, 2013 10:27 pm

Before doing all the work it might be an idea to ask in #debian-mentors if anything is standing in the way (licenses and such).

Better safe than sorry: All as far i can tell.
Post a reply