[GRASS5] problem building debian package from GRASS CVS source

Hello,

I am trying to build debian package out of the GRASS CVS source by entering

fakeroot buildpackage in the grass6 directory. I get the following error:

[...]
sed
's#'/home/mlennert/CVS/GRASS/grass6/dist.i386-pc-linux-gnu'#'/home/mlennert/CVS/GRASS/grass6/debian/tmp/usr/grass-6.1.cvs'#g'
/home/mlennert/CVS/GRASS/grass6/dist.i386-pc-linux-gnu/etc/monitorcap >
/home/mlennert/CVS/GRASS/grass6/debian/tmp/usr/grass-6.1.cvs/etc/monitorcap
chmod -R a+rX /home/mlennert/CVS/GRASS/grass6/debian/tmp/usr/grass-6.1.cvs
2>/dev/null
make[2]: Leaving directory `/home/mlennert/CVS/GRASS/grass6'
make[1]: Leaving directory `/home/mlennert/CVS/GRASS/grass6'
dh_testdir
dh_testroot
dh_installchangelogs CHANGES
dh_installdocs
dh_installexamples
dh_install
cp: ne peut évaluer `./usr/bin/grass61': Aucun fichier ou répertoire de ce type
dh_install: command returned error code 256
make: *** [binary-arch] Erreur 1

i.e.
cp: cannot evaluate `./usr/bin/grass61': No file or directory of this type.

1) Am I doing something wrong ?
2) Have the deb package config files from the DebianGIS effort flown back into
the GRASS CVS ? If not, is there a reason why they can't/shouldn't ?
3) What do I have to do to make deb-package out of the current CVS-tree ?

Moritz

Hi,

On Sat, 2005-08-06 at 21:22 +0200, Moritz Lennert wrote:

Hello,

I am trying to build debian package out of the GRASS CVS source by entering

fakeroot buildpackage in the grass6 directory. I get the following error:

[...]
sed
's#'/home/mlennert/CVS/GRASS/grass6/dist.i386-pc-linux-gnu'#'/home/mlennert/CVS/GRASS/grass6/debian/tmp/usr/grass-6.1.cvs'#g'
/home/mlennert/CVS/GRASS/grass6/dist.i386-pc-linux-gnu/etc/monitorcap >
/home/mlennert/CVS/GRASS/grass6/debian/tmp/usr/grass-6.1.cvs/etc/monitorcap
chmod -R a+rX /home/mlennert/CVS/GRASS/grass6/debian/tmp/usr/grass-6.1.cvs
2>/dev/null
make[2]: Leaving directory `/home/mlennert/CVS/GRASS/grass6'
make[1]: Leaving directory `/home/mlennert/CVS/GRASS/grass6'
dh_testdir
dh_testroot
dh_installchangelogs CHANGES
dh_installdocs
dh_installexamples
dh_install
cp: ne peut évaluer `./usr/bin/grass61': Aucun fichier ou répertoire de ce type
dh_install: command returned error code 256
make: *** [binary-arch] Erreur 1

i.e.
cp: cannot evaluate `./usr/bin/grass61': No file or directory of this type.

1) Am I doing something wrong ?
2) Have the deb package config files from the DebianGIS effort flown back into
the GRASS CVS ?

Yes. But I'm packaging releases for debian, the most recent of which is
6.0.1RC1. I haven't personally done anything to update for 6.1/cvs.

There is a duplicate set of targets in the debian/rules file. Deleting
everything after the second #!/usr/bin/make -f is a start. But it looks
like there are other problems when it gets to debian/fixscripts.sh
because nviz is gone or moved.

Steve

If not, is there a reason why they can't/shouldn't ?
3) What do I have to do to make deb-package out of the current CVS-tree ?

Moritz

_______________________________________________
Pkg-grass-general mailing list
Pkg-grass-general@lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/pkg-grass-general

On Sat, Aug 06, 2005 at 09:22:12PM +0200, Moritz Lennert wrote:

Hello,

I am trying to build debian package out of the GRASS CVS source by entering

fakeroot buildpackage in the grass6 directory. I get the following error:

[...]
sed
's#'/home/mlennert/CVS/GRASS/grass6/dist.i386-pc-linux-gnu'#'/home/mlennert/CVS/GRASS/grass6/debian/tmp/usr/grass-6.1.cvs'#g'
/home/mlennert/CVS/GRASS/grass6/dist.i386-pc-linux-gnu/etc/monitorcap >
/home/mlennert/CVS/GRASS/grass6/debian/tmp/usr/grass-6.1.cvs/etc/monitorcap
chmod -R a+rX /home/mlennert/CVS/GRASS/grass6/debian/tmp/usr/grass-6.1.cvs
2>/dev/null
make[2]: Leaving directory `/home/mlennert/CVS/GRASS/grass6'
make[1]: Leaving directory `/home/mlennert/CVS/GRASS/grass6'
dh_testdir
dh_testroot
dh_installchangelogs CHANGES
dh_installdocs
dh_installexamples
dh_install
cp: ne peut évaluer `./usr/bin/grass61': Aucun fichier ou répertoire de ce type
dh_install: command returned error code 256
make: *** [binary-arch] Erreur 1

i.e.
cp: cannot evaluate `./usr/bin/grass61': No file or directory of this type.

1) Am I doing something wrong ?
2) Have the deb package config files from the DebianGIS effort flown back into
the GRASS CVS ? If not, is there a reason why they can't/shouldn't ?

I have updated GRASS 6.1-CVS a couple of days ago and apparently
overseen a patch problem in debian/rules (thanks for finding, Steve!).
Fixed in 6.1-CVS.

If you are generally interested to understand what happened in
a CVS directory, get

cvs2cl.pl
(e.g., from http://www.red-bean.com/cvs2cl/

and launch it in the directory of interest. This will generate the
(local) ChangeLog file which probably answers the question if
DebianGIS effort have flown back into the GRASS CVS:

2005-08-08 09:41 markus

        * rules: fixed patch mess

2005-07-29 15:45 markus

        * NEWS, changelog, compat, copyright, docs, fixpaths.sh,
          fixscripts.sh, grass-doc.install, grass-doc.links, grass.install,
          grass.links, grass61.1, libgrass-dev.install, libgrass.dirs,
          libgrass.install, libgrass.lintian-overrides, libgrass.postinst,
          libgrass.postrm, rules: updated from 6.0.0-1/Debian

2005-07-29 15:44 markus

        * patches/: 00list, epsg-codes-loc.dpatch, htmlgen-fakeroot.dpatch:
          added

2005-07-29 15:08 markus

        * control: updated from 6.0.0-1/Debian

Note that the debian/ subdirectory is not packaged into the source
code release packages.

3) What do I have to do to make deb-package out of the current CVS-tree ?

Moritz

Please update from GRASS 6.1-CVS and try again (and report).

Thanks & sorry for the confusion.

Markus

On Sun, Aug 07, 2005 at 09:57:59PM -0400, Steve Halasz wrote:

On Sat, 2005-08-06 at 21:22 +0200, Moritz Lennert wrote:

...

> 2) Have the deb package config files from the DebianGIS effort flown back into
> the GRASS CVS ?

...

Yes. But I'm packaging releases for debian, the most recent of which is
6.0.1RC1. I haven't personally done anything to update for 6.1/cvs.

There is a duplicate set of targets in the debian/rules file. Deleting
everything after the second #!/usr/bin/make -f is a start.

Fixed.

But it looks
like there are other problems when it gets to debian/fixscripts.sh
because nviz is gone or moved.

Please post the error (or send it to me).
In general I cannot help/test too much as I don't have Debian here.

However, I want to enable Debian users like Moritz to compile
6.1-CVS without extra efforts, that's why I updated debian/ from
the work done for 6.0.0.

Without bothering the lists too much, Moritz[/Steve] and me can
solve that offlist.

Markus

On Mon, Aug 08, 2005 at 01:36:55PM -0400, Steve Halasz wrote:

On Mon, 2005-08-08 at 16:26 +0200, Markus Neteler wrote:
> On Mon, Aug 08, 2005 at 04:17:21PM +0200, Moritz Lennert wrote:
8<------------snip-----------------
> > One small point: In the config options defined in debian/rules one
> > can find a --with-cxx on line 39 and a --without-cxx on line 51. Is
> > there any good reason for this ? If not, any objections to removing
> > the latter ?
>
> I have removed --without-cxx in 6.1-CVS (I think that it should be
> fixed in 6.0-debian as well).
> The current 6.1-CVS contains a GCC4 patch for r.terraflow, the only C++
> module.

--without-cxx was originally added due to http://bugs.debian.org/287651,
which had to do with insecure tempfile creation. Has that issue been
resolved in r.terraflow?

Steve

I don't know - does anyone in the list?

Markus

On Mon, 2005-08-08 at 20:08 +0200, Markus Neteler wrote:

On Mon, Aug 08, 2005 at 01:36:55PM -0400, Steve Halasz wrote:
> On Mon, 2005-08-08 at 16:26 +0200, Markus Neteler wrote:
> > On Mon, Aug 08, 2005 at 04:17:21PM +0200, Moritz Lennert wrote:
> 8<------------snip-----------------
> > > One small point: In the config options defined in debian/rules one
> > > can find a --with-cxx on line 39 and a --without-cxx on line 51. Is
> > > there any good reason for this ? If not, any objections to removing
> > > the latter ?
> >
> > I have removed --without-cxx in 6.1-CVS (I think that it should be
> > fixed in 6.0-debian as well).
> > The current 6.1-CVS contains a GCC4 patch for r.terraflow, the only C++
> > module.
>
> --without-cxx was originally added due to http://bugs.debian.org/287651,
> which had to do with insecure tempfile creation. Has that issue been
> resolved in r.terraflow?
>
> Steve

I don't know - does anyone in the list?

It uses a hardcoded temp dir of /var/tmp/flowStream. So no, it has not
been fixed.

I'm still working on the tempfile creation issues. It's a large amount
of code to work through and it bores me so work is sporadic. :wink: Maybe I
should apply code as I go instead of generating a massive patch (where
appropriate)?

--
Brad Douglas <rez@touchofmadness.com>