Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 217873 - sci-geosciences/grass-6.2.3: version bump
Summary: sci-geosciences/grass-6.2.3: version bump
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Steve Arnold
URL: http://grass.itc.it/announces/announc...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-15 21:51 UTC by Martin von Gagern
Modified: 2008-05-01 08:06 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
grass-6.2.3-html-nonviz.patch (grass-6.2.3-html-nonviz.patch,505 bytes, patch)
2008-04-16 01:21 UTC, Martin von Gagern
Details | Diff
grass-6.2.3-html-nviz-fix.patch (grass-6.2.3-html-nviz-fix.patch,287 bytes, patch)
2008-04-16 01:22 UTC, Martin von Gagern
Details | Diff
6.2.3 ebuild take 1 (grass-6.2.3.ebuild,6.91 KB, text/plain)
2008-04-16 01:39 UTC, Martin von Gagern
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin von Gagern 2008-04-15 21:51:31 UTC
There are several new versions of GRASS, the latest stable release being 6.2.3, but also several release candidates for 6.3.0. I'd like to see an ebuild at least for the first, preferably for the latter as well.

I tried to build the current grass 6.2.1-r1 from portage, but couldn't because the ebuild complains about tcl/tk built with USE=threads, which I'm not willing to sacrifice. So I investigated the matter. Seems like that part of the ebuild originated in the grass-6.1.0.ebuild from October 2006 by nerdboy and was carried along ever since. I'm not sure how this relates to the following message from the upstream ChangeLog:

2006-03-16 23:41  cedric

        * visualization/nviz/src/: draw.c, exag.c, lights.c, map_obj.c,
          position.c, togl_flythrough.c, volume.c:
          NVIZ runs with TCL 8.4 Threaded: Memory allocated with Tcl_Alloc,
          such as the result of Tcl_Merge should be freed using
          TCL_DYNAMIC.

To me that sounds like threaded tcl should be supported.
The corresponding changes http://trac.osgeo.org/grass/changeset/19285 were already included in the 6.1.0 release. Any suggestions where the information about this incompatibility came from and whether it is still a problem?

I'll try adapting the grass-6.2.1.ebuild to 6.2.3 and see if I can get it to run. But as I have never before worked with GRASS, I might be ill suited to evaluate whether the result works as expected.
Comment 1 Martin von Gagern 2008-04-16 01:21:13 UTC
Created attachment 149880 [details, diff]
grass-6.2.3-html-nonviz.patch

Derived from grass-6.2.1-html-nonviz.patch, this patch applies more easily, as it contains no context around the lines to be removed. An alternative would be to grep for all lines not containing nviz. An updated patch requires less modifications to the ebuild, though.
Comment 2 Martin von Gagern 2008-04-16 01:22:37 UTC
Created attachment 149882 [details, diff]
grass-6.2.3-html-nviz-fix.patch

Derived from grass-6.2.1-html-nviz-fix.patch, this patch applies more easily, as the context should stay unchanged for longer than that of the previous patch did. Also the patch is simpler and less in style with the rest of that script.
Comment 3 Martin von Gagern 2008-04-16 01:39:47 UTC
Created attachment 149885 [details]
6.2.3 ebuild take 1

Changes so far:
 * moved checks from src_unpack to pkg_setup
 * disabled checks for non-threaded tcl/tk
 * disables some patches and sed scripts that seem unneccessary
 * disabled elibtoolize as it seems to work without
 * moved patch application from src_compile to src_unpack
 * using shipped start script instead of ebuild-generated one

So far for today, I'll continue when I find time again, in the meantime this should be a good starting point, as it does compile and install here. After installation I hit http://intevation.de/rt/webrt?serial_num=5328 and decided I'll have to learn some GRASS first.

Things yet to do in the ebuild:
 * remove commented out portions from older ebuild
 * try to get rid of env file, to avoid clobbering the environment
   Can anybody provide reasons for the different environment settings therein?
 * consider installing to /opt instead of /usr, but read FHS first
Comment 4 Steve Arnold archtester gentoo-dev 2008-05-01 08:06:13 UTC
Added to the tree, modified somewhat...