I’m working on packaging 7.0.1 (well, writing a new ebuild) for Gentoo Linux. When testing a totally stripped down configuration (ie, everything disabled that could be), I ran into a couple of compile errors. Here are things that need to be fixed:
#1: ./lib/raster/open.c needs to include <errno.h> explicitly. Otherwise errno is undefined at line 595.
#2: ./general/g.proj/main.c declares the variable “inepsg” only if HAVE_OGR is defined, but then uses this symbol outside “#ifdef HAVE_OGR” in lines 302 and 322. I’m not exactly sure how to fix this.
#1: ./lib/raster/open.c needs to include <errno.h> explicitly. Otherwise
errno is undefined at line 595.
#2: ./general/g.proj/main.c declares the variable "inepsg" only if HAVE_OGR
is defined, but then uses this symbol outside "#ifdef HAVE_OGR" in lines 302
and 322. I'm not exactly sure how to fix this.
first of all, thanks for reporting the issue. The both issues should
be fixed in r66397 in trunk. Please could you test it?
Hello,
some of GRASS compilation "options" are not optional at all -
resulting outcome even if will work, will be useless for endusers.
Don't try to push everything into use flags.
I haven't been trying to install GRASS from ebuilds since 6.0.0 days,
still I could test on ~AMD64. Feel free to contact me offlist.
Māris.
I'm working on packaging 7.0.1 (well, writing a new ebuild) for Gentoo
Linux. When testing a totally stripped down configuration (ie, everything
disabled that could be), I ran into a couple of compile errors. Here are
things that need to be fixed:
#1: ./lib/raster/open.c needs to include <errno.h> explicitly. Otherwise
errno is undefined at line 595.
#2: ./general/g.proj/main.c declares the variable "inepsg" only if HAVE_OGR
is defined, but then uses this symbol outside "#ifdef HAVE_OGR" in lines 302
and 322. I'm not exactly sure how to fix this.
On Sat, Oct 3, 2015 at 9:46 AM, Maris Nartiss <maris.gis@gmail.com> wrote:
Hello,
some of GRASS compilation "options" are not optional at all -
resulting outcome even if will work, will be useless for endusers.
Don't try to push everything into use flags.
I haven't been trying to install GRASS from ebuilds since 6.0.0 days,
still I could test on ~AMD64. Feel free to contact me offlist.
Māris.
Please add a summary here as well, like for the other distros:
On Sat, Oct 3, 2015 at 3:46 AM, Maris Nartiss <maris.gis@gmail.com> wrote:
Hello,
some of GRASS compilation "options" are not optional at all -
resulting outcome even if will work, will be useless for endusers.
Don't try to push everything into use flags.
That's not really my responsibility, or any developer's responsibility
for that matter. If GRASS exposes compile-time options through the
configure script, then the Gentoo way is to expose those through USE
flags in the ebuild. If the user's install is missing features
because they didn't have their flags set properly, that's on them.