Re: [Pkg-octave-devel] Infrastructure for octave-forge packages
* Rafael Laboissiere <rafael@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.
Again, I would like to thank Ólafur for his inspiring initial work.
-- 
Rafael
Reply to: