Re: [GRASS-user] Unable to install add-ons on fedora23

2018-01-16 Thread Markus Neteler
On Mon, Jan 15, 2018 at 11:35 PM, Markus Neteler  wrote:
> On Mon, Jan 15, 2018 at 9:28 PM, Markus Metz
...
>> @MarkusN: can you test the new spec file (trunk/rpm/grass.spec) with your
>> copr system? Thanks!
>
> Sure:
> https://copr.fedorainfracloud.org/coprs/neteler/grass74/
> Please test!

To test it myself, I made a test run in docker using the latest Fedora
(i.e., F27).
Here posted, in case anyone would like to try as well.

# Test GRASS GIS on latest Fedora using docker
sudo docker run -it --rm --name myfedora fedora /bin/bash
dnf install 'dnf-command(copr)' -y
dnf copr enable neteler/grass74 -y
dnf update -y

# see which RPMs are offered:
dnf search grass | sort

# install GRASS GIS 7.4.0RC2
dnf install grass grass-libs grass-gui liblas -y

# install prerequisites for g.extension
dnf install grass-devel gcc redhat-rpm-config -y

# test run
grass74 /usr/lib64/grass-7.4.0RC2/demolocation/PERMANENT/
g.extension r.area

# [more tests...]

Seems to work fine. I'm very happy that g.extension finally works in
Fedora (time to push the new SPEC file to the core system).

best, markusN

-- 
Markus Neteler, PhD
http://www.mundialis.de - free data with free software
http://grass.osgeo.org
http://courses.neteler.org/blog
___
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user

Re: [GRASS-user] Unable to install add-ons on fedora23

2018-01-15 Thread Markus Neteler
On Mon, Jan 15, 2018 at 9:28 PM, Markus Metz
 wrote:
...
> I have added a working grass.spec file to trunk r72082. It works fine with
> Fedora 28 and GRASS 7.4.0 (yes, none of the two is already released).
> Installing addons with g.extension as standard user works now, granted that
> grass-devel is installed.
>
> The main change is that GRASS is installed into one single folder, the same
> as before, but now all required components are actually in this single
> folder and not moved away to different locations. Man pages and docs are in
> the system's standard locations and available without starting GRASS.
>
> Further on, the demolocation is now included in the standard installation,
> and the gui is a separate package.

Nice!

> @MarkusN: can you test the new spec file (trunk/rpm/grass.spec) with your
> copr system? Thanks!

Sure:
https://copr.fedorainfracloud.org/coprs/neteler/grass74/
Please test!

markusN


PS: I had to fix this:

@@ -158,7 +158,7 @@
 --with-netcdf=%{_bindir}/nc-config \
 %endif
 --with-mysql-includes=%{_includedir}/mysql \
---with-mysql-libs=%{_libdir} \
+--with-mysql-libs=%{_libdir}/mysql \
 %if (0%{?rhel} > 6 || 0%{?fedora})
 --with-postgres-includes=%{_includedir}/pgsql \
 %else

otherwise it would not find mysql...
___
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user

Re: [GRASS-user] Unable to install add-ons on fedora23

2018-01-15 Thread Markus Metz
On Fri, Dec 15, 2017 at 2:37 PM, Markus Neteler  wrote:
>
> On Fri, Dec 15, 2017 at 10:04 AM, Laura Poggio 
wrote:
> > Dear all,
> > I am having the same problem also with the F27 package from
> > coprs/neteler/grass72/. But I am not sure it is the same problem or I am
> > doing something wrong.
> > I removed grass from fedora repository, enabled the copr repository and
then
> > installed grass again from the new repository.
>
> There is still a bug in the SPEC file defining how the RPM package is
> generated. It is missing to add the include/ directory into the
> grass-devel package.  See also
> https://bugzilla.redhat.com/show_bug.cgi?id=1489158
>
> I would need some support to get the SPEC file right.
> Anyone?

I have added a working grass.spec file to trunk r72082. It works fine with
Fedora 28 and GRASS 7.4.0 (yes, none of the two is already released).
Installing addons with g.extension as standard user works now, granted that
grass-devel is installed.

The main change is that GRASS is installed into one single folder, the same
as before, but now all required components are actually in this single
folder and not moved away to different locations. Man pages and docs are in
the system's standard locations and available without starting GRASS.

Further on, the demolocation is now included in the standard installation,
and the gui is a separate package.

@MarkusN: can you test the new spec file (trunk/rpm/grass.spec) with your
copr system? Thanks!

Markus M
___
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user

Re: [GRASS-user] Unable to install add-ons on fedora23

2017-12-15 Thread Markus Neteler
On Fri, Dec 15, 2017 at 10:04 AM, Laura Poggio  wrote:
> Dear all,
> I am having the same problem also with the F27 package from
> coprs/neteler/grass72/. But I am not sure it is the same problem or I am
> doing something wrong.
> I removed grass from fedora repository, enabled the copr repository and then
> installed grass again from the new repository.

There is still a bug in the SPEC file defining how the RPM package is
generated. It is missing to add the include/ directory into the
grass-devel package.  See also
https://bugzilla.redhat.com/show_bug.cgi?id=1489158

I would need some support to get the SPEC file right.
Anyone?

thanks
Markus
___
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user

Re: [GRASS-user] Unable to install add-ons on fedora23

2017-12-15 Thread Laura Poggio
Dear all,
I am having the same problem also with the F27 package from
coprs/neteler/grass72/.
But I am not sure it is the same problem or I am doing something wrong.
I removed grass from fedora repository, enabled the copr repository and
then installed grass again from the new repository.

Thanks
Laura

On 29 November 2017 at 20:31, Markus Neteler  wrote:

> On Wed, Nov 29, 2017 at 8:19 PM, Laurent C.  wrote:
> > Hello all,
> >
> > I have a similar problem with Fedora 27:
> >
> > $ grass72 --config path
> > ERROR: Please install the GRASS GIS development package
> > Exiting...
> > $ dnf list installed *grass-devel*
> > Installed Packages
> > grass-devel.x86_64 7.2.1-2.fc27
> @fedora
> >
> > I believe it is a packaging error,
>
> Yes.
>
> > but I don't know what is missing.
> >
> > Any thought?
>
> Missing from the grass-devel RPM is the "include/" directory. This
> contains the information needed by g.extension.
>
> See
> https://bugzilla.redhat.com/show_bug.cgi?id=1489158
>
> I would need some support to get the SPEC file right.
> Anyone?
>
> thanks
> Markus
> ___
> grass-user mailing list
> grass-user@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/grass-user
___
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user

Re: [GRASS-user] Unable to install add-ons on fedora23

2017-11-29 Thread Markus Neteler
On Wed, Nov 29, 2017 at 8:19 PM, Laurent C.  wrote:
> Hello all,
>
> I have a similar problem with Fedora 27:
>
> $ grass72 --config path
> ERROR: Please install the GRASS GIS development package
> Exiting...
> $ dnf list installed *grass-devel*
> Installed Packages
> grass-devel.x86_64 7.2.1-2.fc27  
> @fedora
>
> I believe it is a packaging error,

Yes.

> but I don't know what is missing.
>
> Any thought?

Missing from the grass-devel RPM is the "include/" directory. This
contains the information needed by g.extension.

See
https://bugzilla.redhat.com/show_bug.cgi?id=1489158

I would need some support to get the SPEC file right.
Anyone?

thanks
Markus
___
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user

Re: [GRASS-user] Unable to install add-ons on fedora23

2017-11-29 Thread Laurent C.
Hello all,

I have a similar problem with Fedora 27:

$ grass72 --config path
ERROR: Please install the GRASS GIS development package
Exiting...
$ dnf list installed *grass-devel*
Installed Packages
grass-devel.x86_64 7.2.1-2.fc27  @fedora

I believe it is a packaging error, but I don't know what is missing.

Any thought?

Regards,
Laurent

2016-04-29 5:39 GMT-05:00 Markus Neteler :
> On Fri, Apr 29, 2016 at 11:50 AM, Salim Razzaz  wrote:
> ...
>> So yeah. Make went missing like Markus said. It exists in the __src.rpm 
>> though. and
>> it shows in BUILD after packaging. So I guess it's the spec file. I'm a 
>> newbie, but a
>> curious one.
>
> Great :-)
> Here is the officia Fedora SPEC file:
>
> GRASS SPEC file spec: http://pkgs.fedoraproject.org/cgit/rpms/grass.git/
>   --> http://pkgs.fedoraproject.org/cgit/rpms/grass.git/tree/grass.spec
>
>> So I'll try to find the culprit piece and report back if anything shows up
>> (doubt it though, considering my skills).
>
> ... I will be happy to generate a RPM from your updated SPEC file then.
>
> Markus
> ___
> grass-user mailing list
> grass-user@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-user
___
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user

Re: [GRASS-user] Unable to install add-ons on fedora23

2016-04-29 Thread Markus Neteler
On Fri, Apr 29, 2016 at 11:50 AM, Salim Razzaz  wrote:
...
> So yeah. Make went missing like Markus said. It exists in the __src.rpm 
> though. and
> it shows in BUILD after packaging. So I guess it's the spec file. I'm a 
> newbie, but a
> curious one.

Great :-)
Here is the officia Fedora SPEC file:

GRASS SPEC file spec: http://pkgs.fedoraproject.org/cgit/rpms/grass.git/
  --> http://pkgs.fedoraproject.org/cgit/rpms/grass.git/tree/grass.spec

> So I'll try to find the culprit piece and report back if anything shows up
> (doubt it though, considering my skills).

... I will be happy to generate a RPM from your updated SPEC file then.

Markus
___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

Re: [GRASS-user] Unable to install add-ons on fedora23

2016-04-29 Thread Salim Razzaz
On Thu, Apr 28, 2016 at 01:52:31PM +0200, Martin Landa wrote:

 
> 2016-04-28 12:03 GMT+02:00 Salim Razzaz :
> > There isn't any directory called 'include' in /usr/lib64/grass-7.0.3/ when 
> > I checked. And grass-devel is installed (I ran 'dnf list installed 
> > grass-devel' and it is there)
> 
> it sounds like broken packaging on Fedora. What is content of
> grass-devel package?
 

usr/include/grass/defs/
usr/include/grass/dgl/
usr/include/grass/iostream/
usr/include/grass/vect/
usr/include/grass/ #headers

usr/lib64/pkgconfig/
usr/lib64/ #libgrass_  .so (51)

usr/share/doc/grass-devel/doc/
usr/share/doc/grass-devel/SUBMITTING
usr/share/doc/grass-devel/TODO

So yeah. Make went missing like Markus said. It exists in the __src.rpm though. 
and it shows in BUILD after packaging. So I guess it's the spec file. I'm a 
newbie, but a curious one. So I'll try to find the culprit piece and report 
back if anything shows up (doubt it though, considering my skills). 

Thank you all

S






___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

Re: [GRASS-user] Unable to install add-ons on fedora23

2016-04-28 Thread Markus Neteler
On Thu, Apr 28, 2016 at 2:15 PM, Markus Neteler  wrote:
...
> But the needed /usr/include/grass/Make/ is missing anyway. I'll open a
> ticket with Fedora.

Done:
https://bugzilla.redhat.com/show_bug.cgi?id=1331386

Markus



-- 
Markus Neteler
http://www.mundialis.de - free data with free software
http://grass.osgeo.org
http://courses.neteler.org/blog
___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

Re: [GRASS-user] Unable to install add-ons on fedora23

2016-04-28 Thread Markus Neteler
On Thu, Apr 28, 2016 at 1:52 PM, Martin Landa  wrote:
> Hi,
>
> 2016-04-28 12:03 GMT+02:00 Salim Razzaz :
>> There isn't any directory called 'include' in /usr/lib64/grass-7.0.3/ when I 
>> checked. And grass-devel is installed (I ran 'dnf list installed 
>> grass-devel' and it is there)
>
> it sounds like broken packaging on Fedora.

Yes, confirmed. I'm on Fedora, too.

> What is content of grass-devel package?

rpm -qf /usr/include/grass/vector.h
grass-devel-7.0.3-2.fc23.x86_64

So, it is
/usr/include/grass/ ...

But the needed /usr/include/grass/Make/ is missing anyway. I'll open a
ticket with Fedora.

Markus
___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

Re: [GRASS-user] Unable to install add-ons on fedora23

2016-04-28 Thread Martin Landa
Hi,

2016-04-28 12:03 GMT+02:00 Salim Razzaz :
> There isn't any directory called 'include' in /usr/lib64/grass-7.0.3/ when I 
> checked. And grass-devel is installed (I ran 'dnf list installed grass-devel' 
> and it is there)

it sounds like broken packaging on Fedora. What is content of
grass-devel package?

Na

-- 
Martin Landa
http://geo.fsv.cvut.cz/gwiki/Landa
http://gismentors.cz/mentors/landa
___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

Re: [GRASS-user] Unable to install add-ons on fedora23

2016-04-28 Thread Salim Razzaz
On Wed, Apr 27, 2016 at 07:21:07PM -0400, Vaclav Petras wrote:
> On Wed, Apr 27, 2016 at 2:35 PM, Salim Razzaz 
> wrote:
> 
> > the compiled one and installed the rpm instead with grass-devel, liblas,
> > and liblas-devel. Now I'm trying to install an add-on but this is happening:
> >
> > g.extension extension=r.vol.dem --verbose
> > Fetching  from GRASS-Addons SVN repository (be patient)...
> > ...
> >
> Compiling...
> > ERROR: Please install GRASS development package
> >
> 
> If you have the GRASS development package installed, you can try to debug
> the issue by using -d flag (Download source code and exit). This will give
> you directory with the source code and a command to compile. Try also other
> addons.

Thank you for your answer. I did what you suggested and downloaded the addon (I 
even tried with a different add-on 'd.vect.thematic2'), but when running the 
command to compile the source code I got:

Makefile:5: /usr/lib64/grass-7.0.3/include/Make/Script.make: No such file or 
directory
make: *** No rule to make target 
'/usr/lib64/grass-7.0.3/include/Make/Script.make'.  Stop.

There isn't any directory called 'include' in /usr/lib64/grass-7.0.3/ when I 
checked. And grass-devel is installed (I ran 'dnf list installed grass-devel' 
and it is there) 
I guess I'll revert back to a compiled GRASS
___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

Re: [GRASS-user] Unable to install add-ons on fedora23

2016-04-27 Thread Vaclav Petras
On Wed, Apr 27, 2016 at 2:35 PM, Salim Razzaz 
wrote:

> the compiled one and installed the rpm instead with grass-devel, liblas,
> and liblas-devel. Now I'm trying to install an add-on but this is happening:
>
> g.extension extension=r.vol.dem --verbose
> Fetching  from GRASS-Addons SVN repository (be patient)...
> ...
>
Compiling...
> ERROR: Please install GRASS development package
>

If you have the GRASS development package installed, you can try to debug
the issue by using -d flag (Download source code and exit). This will give
you directory with the source code and a command to compile. Try also other
addons.
___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

[GRASS-user] Unable to install add-ons on fedora23

2016-04-27 Thread Salim Razzaz
Dear GRASS users, I have previously had GRASS 70 compiled from sourcecode and 
was able to install add-ons with g.extension. Few days ago I discovered the rpm 
of GRASS 7.0.3 so I removed the compiled one and installed the rpm instead with 
grass-devel, liblas, and liblas-devel. Now I'm trying to install an add-on but 
this is happening:

g.extension extension=r.vol.dem --verbose
Fetching  from GRASS-Addons SVN repository (be patient)...
Ar.vol.dem/main.c
Ar.vol.dem/r_vol_dem_layerup.jpg
Ar.vol.dem/r.vol.dem.html
Ar.vol.dem/chull.c
Ar.vol.dem/globals.h
Ar.vol.dem/r_vol_dem_layerdown.jpg
Ar.vol.dem/macros.h
Ar.vol.dem/Makefile
Ar.vol.dem/chull.h
 U   r.vol.dem
Checked out revision 68319.
Compiling...
ERROR: Please install GRASS development package

As I'm pretty new in both grass and fedora I'm not really sure what do here. 
grass-devel is surely installed but somehow it is not recognized when running 
the command. 
Any help is appreciated.
Thanks

Salim Razzaz
___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user