[Pkg-octave-devel] Infrastructure for octave-forge packages
Ólafur Jens Sigurðsson
ojsbug at gmail.com
Mon Feb 25 19:08:01 UTC 2008
On Mon, Feb 25, 2008 at 06:24:46PM +0100, Rafael Laboissiere wrote:
> * Rafael Laboissiere <rafael at debian.org> [2008-02-25 10:54]:
>
> > Thanks to the work started by Ólafur, I implemented a proof-of-concept
> > package which is a helper for building octave-forge packages using pkg.m. I
> > committed a preliminary version of the package to SVN and it is called, for
> > now, octave-pkg-dev (suggestions for a better name are welcome).
>
> Okay, I did some changes in both octave-pkg-dev and octave-combinatorics for
> a full proof-of-concept (sorry for interfering with your work Ólafur, but I
> think this must be done before you go too further with your initial scheme).
>
> Here is a full cookbook for building/installing/running an octave-forge
> package completely from scratch using only the DOG SVN repository:
>
> rm -rf octave-pkg-dev octave-combinatorics
> svn co svn+ssh://svn.debian.org/svn/pkg-octave/octave-pkg-dev/trunk octave-pkg-dev
> cd octave-pkg-dev/
> debuild -us -uc -i
> sudo debi
> cd ..
> svn co svn+ssh://svn.debian.org/svn/pkg-octave/octave-forge-pkgs/octave-combinatorics/trunk octave-combinatorics
> cd octave-combinatorics/
> ./debian/rules get-orig-source
> tarball=$(ls *.tar.gz | sed 's/tar.gz/orig.tar.gz/;s/-/_/')
> (cd .. ; tar cfz $tarball octave-combinatorics --exclude=debian --exclude=.svn)
> debuild -us -uc -i
> sudo debi
> echo "combs([1,2,3],2)" | octave3.0 -q
> ans =
>
> 1 2
> 1 3
> 2 3
>
> If you look at the checked out debian/ directory for the
> octave-combinatorics package, you will see that the files are minimal:
>
> * debian/rules has just an "include"
> * debian/control has just "Build-Depends: octave-pkg-dev" and "Depends:
> ${shlibs:Depends}, ${octave:Depends}"
> * There is no postinst and prerm scripts, since they are automatically
> generated by octave-pkg-dev! (BTW, Ólafur, it should be a prerm
> instead of postrm, otherwise it is impossible to remove the package.
> Have you noticed that
>
> Please, try the cookbook above and report any problems. I think we are
> getting very close to having the octave-forge pkgs as real Debian packages.
Wow, thanks for this Rafael, I will have to have a much closer look
now to fully understand what is to be done to get the package published :-)
My first work was done so that I could run dpkg-buildpackage -us -uc
and get the packages to be lintian/linda clean, but using debuild I
see a lot more problems showing up ... I did not know about this so
now I have to dig further and learn more :-)
But it is excellent to see a working receipt like that, now I have to
get my system to accept it, could be that I do not have my building
system correctly set up.
Cheers
Oli
More information about the Pkg-octave-devel
mailing list