GNU bug report logs - #38178
[WIP v2] gnu: Add grass.

Previous Next

Package: guix-patches;

Reported by: Wiktor Żelazny <wz <at> freeshell.de>

Date: Tue, 12 Nov 2019 15:06:01 UTC

Severity: normal

Merged with 38150

Done: Guillaume Le Vaillant <glv <at> posteo.net>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 38178 in the body.
You can then email your comments to 38178 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#38178; Package guix-patches. (Tue, 12 Nov 2019 15:06:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Wiktor Żelazny <wz <at> freeshell.de>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Tue, 12 Nov 2019 15:06:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Wiktor Żelazny <wz <at> freeshell.de>
To: guix-patches <at> gnu.org
Subject: [WIP v2] gnu: Add grass.
Date: Tue, 12 Nov 2019 16:04:17 +0100
From: Wiktor Żelazny <wzelazny <at> vurv.cz>

* gnu/packages/geo.scm (grass): New variable.
No GUI due to wxpython not found on runtime.
---
Hi there!
Thank you for your suggestion with regard to python-wxpython. I tried to
implement it, along with your remaining comments. I temporarily removed
python-six. I don’t remember anymore what led me to putting it there.
Unfortunately, I cannot test the result, as I’m now getting this kind of
errors:
   Status: Preprocessing /tmp/guix-build-grass-7.8.0.drv-0/tmp70mq13s0.h
   Status: gcc -E       -I/tmp/guix-build-grass-7.8.0.drv-0/grass-7.8.0/dist.x86_64-pc-linux-gnu/include -I/tmp/guix-build-grass-7.8.0.drv-0/grass-7.8.0/dist.x86_64-pc-linux-gnu/include -D__GLIBC_HAVE_LONG_LONG -U __GNUC__ -dD "-Dinline=" "-
   D__inline__=" "-D__extension__=" "-D_Bool=uint8_t" "-D__const=const" "-D__asm__(x)=" "-D__asm(x)=" "-DCTYPESGEN=1" "/tmp/guix-build-grass-7.8.0.drv-0/tmp70mq13s0.h"
   Status: Parsing /tmp/guix-build-grass-7.8.0.drv-0/tmp70mq13s0.h
   Error: /gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-glibc-2.29/include/sys/select.h:101: Syntax error at '__readfds'
   Error: /gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-glibc-2.29/include/sys/select.h:102: Syntax error at '__writefds'
   Error: /gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-glibc-2.29/include/sys/select.h:103: Syntax error at '__exceptfds'
   Error: /gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-glibc-2.29/include/sys/select.h:104: Syntax error at '__timeout'
   Error: /gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-glibc-2.29/include/sys/select.h:113: Syntax error at '__readfds'
   Error: /gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-glibc-2.29/include/sys/select.h:114: Syntax error at '__writefds'
   Error: /gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-glibc-2.29/include/sys/select.h:115: Syntax error at '__exceptfds'
   Error: /gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-glibc-2.29/include/sys/select.h:116: Syntax error at '__timeout'
   Error: /gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-glibc-2.29/include/sys/select.h:117: Syntax error at '__sigmask'
   Error: /gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-glibc-2.29/include/inttypes.h:297: Syntax error at '__nptr'
   Error: /gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-glibc-2.29/include/inttypes.h:298: Syntax error at '__endptr'
   Error: /gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-glibc-2.29/include/inttypes.h:301: Syntax error at '__nptr'
   Error: /gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-glibc-2.29/include/inttypes.h:302: Syntax error at '__endptr'
   Error: /gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-glibc-2.29/include/inttypes.h:305: Syntax error at '__nptr'
   Error: /gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-glibc-2.29/include/inttypes.h:302: Syntax error at '__endptr'
   Error: /gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-glibc-2.29/include/inttypes.h:305: Syntax error at '__nptr'
   Error: /gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-glibc-2.29/include/inttypes.h:306: Syntax error at '__endptr'
   Error: /gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-glibc-2.29/include/inttypes.h:310: Syntax error at '__nptr'
   Error: /gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-glibc-2.29/include/inttypes.h:311: Syntax error at '__endptr'
   Error: /gnu/store/vf5lkc27z5rcbvaw6rkdmqisyg923m5r-mesa-19.1.4/include/GL/glext.h:9752: Syntax error at 'packed'
   Error: /gnu/store/vf5lkc27z5rcbvaw6rkdmqisyg923m5r-mesa-19.1.4/include/GL/glext.h:9752: Syntax error at ')'
   Error: /gnu/store/vf5lkc27z5rcbvaw6rkdmqisyg923m5r-mesa-19.1.4/include/GL/glext.h:9755: Syntax error at 'packed'
   Error: /gnu/store/vf5lkc27z5rcbvaw6rkdmqisyg923m5r-mesa-19.1.4/include/GL/glext.h:9755: Syntax error at ')'
   Error: /gnu/store/vf5lkc27z5rcbvaw6rkdmqisyg923m5r-mesa-19.1.4/include/GL/glext.h:9762: Syntax error at 'packed'
   Error: /gnu/store/vf5lkc27z5rcbvaw6rkdmqisyg923m5r-mesa-19.1.4/include/GL/glext.h:9762: Syntax error at ')'
   Error: /gnu/store/vf5lkc27z5rcbvaw6rkdmqisyg923m5r-mesa-19.1.4/include/GL/glext.h:9765: Syntax error at 'packed'
   Error: /gnu/store/vf5lkc27z5rcbvaw6rkdmqisyg923m5r-mesa-19.1.4/include/GL/glext.h:9765: Syntax error at ')'
   Error: /gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-glibc-2.29/include/stdio.h:246: Syntax error at '__filename'
   Error: /gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-glibc-2.29/include/stdio.h:247: Syntax error at '__modes'
   Error: /gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-glibc-2.29/include/stdio.h:252: Syntax error at '__filename'
   Error: /gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-glibc-2.29/include/stdio.h:253: Syntax error at '__modes'
   Error: /gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-glibc-2.29/include/stdio.h:254: Syntax error at '__stream'
   Error: /gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-glibc-2.29/include/stdio.h:304: Syntax error at '__stream'
   Error: /gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-glibc-2.29/include/stdio.h:304: Syntax error at '__buf'
   Error: /gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-glibc-2.29/include/stdio.h:308: Syntax error at '__stream'
   Error: /gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-glibc-2.29/include/stdio.h:308: Syntax error at '__buf'
   Error: /gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-glibc-2.29/include/stdio.h:309: Syntax error at 'size_t'
   Error: /gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-glibc-2.29/include/stdio.h:314: Syntax error at '__stream'
   Error: /gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-glibc-2.29/include/stdio.h:314: Syntax error at '__buf'
   Error: /gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-glibc-2.29/include/stdio.h:326: Syntax error at '__stream'
   Error: /gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-glibc-2.29/include/stdio.h:327: Syntax error at '__format'
   Error: /gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-glibc-2.29/include/stdio.h:332: Syntax error at '__format'
   Error: /gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-glibc-2.29/include/stdio.h:334: Syntax error at '__s'
   Error: /gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-glibc-2.29/include/stdio.h:335: Syntax error at '__format'
   Error: /gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-glibc-2.29/include/stdio.h:341: Syntax error at '__s'
   Error: /gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-glibc-2.29/include/stdio.h:341: Syntax error at '__format'
   Error: /gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-glibc-2.29/include/stdio.h:347: Syntax error at '__format'
   Error: /gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-glibc-2.29/include/stdio.h:349: Syntax error at '__s'
   Error: /gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-glibc-2.29/include/stdio.h:349: Syntax error at '__format'
   Error: /gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-glibc-2.29/include/stdio.h:354: Syntax error at '__s'
   Error: /gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-glibc-2.29/include/stdio.h:355: Syntax error at 'const'
   Error: /gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-glibc-2.29/include/stdio.h:355: Syntax error at '__format'
   Error: /gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-glibc-2.29/include/stdio.h:358: Syntax error at '__s'
   Error: /gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-glibc-2.29/include/stdio.h:359: Syntax error at 'const'
   Error: /gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-glibc-2.29/include/stdio.h:359: Syntax error at '__format'
   Error: /gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-glibc-2.29/include/stdio.h:379: Syntax error at '__fmt'
   Error: /gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-glibc-2.29/include/stdio.h:382: Syntax error at '__fmt'
   Error: /gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-glibc-2.29/include/stdio.h:391: Syntax error at '__stream'
   Error: /gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-glibc-2.29/include/stdio.h:392: Syntax error at '__format'
   Error: /gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-glibc-2.29/include/stdio.h:397: Syntax error at '__format'
   Error: /gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-glibc-2.29/include/stdio.h:399: Syntax error at '__s'
   Error: /gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-glibc-2.29/include/stdio.h:400: Syntax error at '__format'
   Error: /gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-glibc-2.29/include/stdio.h:416: Syntax error at '__stream'
   Error: /gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-glibc-2.29/include/stdio.h:417: Syntax error at '__format'
   Error: /gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-glibc-2.29/include/stdio.h:418: Syntax error at '__format'
   Error: /gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-glibc-2.29/include/stdio.h:419: Syntax error at '__s'
   Error: /gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-glibc-2.29/include/stdio.h:420: Syntax error at '__format'
   Error: /gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-glibc-2.29/include/stdio.h:432: Syntax error at '__s'
   Error: /gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-glibc-2.29/include/stdio.h:432: Syntax error at '__format'
   Error: /gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-glibc-2.29/include/stdio.h:440: Syntax error at '__format'
   Error: /gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-glibc-2.29/include/stdio.h:444: Syntax error at '__s'
   Error: /gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-glibc-2.29/include/stdio.h:445: Syntax error at '__format'
   Error: /gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-glibc-2.29/include/stdio.h:465: Syntax error at '__s'
   Error: /gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-glibc-2.29/include/stdio.h:466: Syntax error at '__format'
   Error: /gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-glibc-2.29/include/stdio.h:468: Syntax error at '__format'
   Error: /gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-glibc-2.29/include/stdio.h:470: Syntax error at '__s'
   Error: /gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-glibc-2.29/include/stdio.h:471: Syntax error at '__format'
   Error: /gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-glibc-2.29/include/stdio.h:564: Syntax error at '__s'
   Error: /gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-glibc-2.29/include/stdio.h:564: Syntax error at 'FILE'
   Error: /gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-glibc-2.29/include/stdio.h:603: Syntax error at '__lineptr'
   Error: /gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-glibc-2.29/include/stdio.h:604: Syntax error at '__n'
   Error: /gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-glibc-2.29/include/stdio.h:605: Syntax error at 'FILE'
   Error: /gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-glibc-2.29/include/stdio.h:606: Syntax error at '__lineptr'
   Error: /gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-glibc-2.29/include/stdio.h:607: Syntax error at '__n'
   Error: /gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-glibc-2.29/include/stdio.h:608: Syntax error at 'FILE'
   Error: /gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-glibc-2.29/include/stdio.h:616: Syntax error at '__lineptr'
   Error: /gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-glibc-2.29/include/stdio.h:617: Syntax error at '__n'
   Error: /gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-glibc-2.29/include/stdio.h:616: Syntax error at '__lineptr'
   Error: /gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-glibc-2.29/include/stdio.h:617: Syntax error at '__n'
   Error: /gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-glibc-2.29/include/stdio.h:618: Syntax error at '__stream'
   Error: /gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-glibc-2.29/include/stdio.h:626: Syntax error at '__s'
   Error: /gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-glibc-2.29/include/stdio.h:626: Syntax error at '__stream'
   Error: /gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-glibc-2.29/include/stdio.h:646: Syntax error at '__ptr'
   Error: /gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-glibc-2.29/include/stdio.h:647: Syntax error at 'size_t'
   Error: /gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-glibc-2.29/include/stdio.h:647: Syntax error at '__stream'
   Error: /gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-glibc-2.29/include/stdio.h:652: Syntax error at '__ptr'
   Error: /gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-glibc-2.29/include/stdio.h:653: Syntax error at 'size_t'
   Error: /gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-glibc-2.29/include/stdio.h:653: Syntax error at '__s'
   Error: /gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-glibc-2.29/include/stdio.h:673: Syntax error at '__ptr'
   Error: /gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-glibc-2.29/include/stdio.h:674: Syntax error at 'size_t'
   Error: /gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-glibc-2.29/include/stdio.h:674: Syntax error at '__stream'
   Error: /gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-glibc-2.29/include/stdio.h:675: Syntax error at '__ptr'
   Error: /gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-glibc-2.29/include/stdio.h:676: Syntax error at 'size_t'
   Error: /gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-glibc-2.29/include/stdio.h:676: Syntax error at '__stream'
   Error: /gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-glibc-2.29/include/stdio.h:731: Syntax error at '__stream'
   Error: /gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-glibc-2.29/include/stdio.h:731: Syntax error at '__pos'
   Error: /gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-glibc-2.29/include/sys/stat.h:205: Syntax error at '__file'
   Error: /gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-glibc-2.29/include/sys/stat.h:206: Syntax error at '__buf'
   Error: /gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-glibc-2.29/include/sys/stat.h:234: Syntax error at '__file'
   Error: /gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-glibc-2.29/include/sys/stat.h:235: Syntax error at '__buf'
   Error: /gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-glibc-2.29/include/sys/stat.h:259: Syntax error at '__file'
   Error: /gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-glibc-2.29/include/sys/stat.h:260: Syntax error at '__buf'
   Error: /gnu/store/vf5lkc27z5rcbvaw6rkdmqisyg923m5r-mesa-19.1.4/include/GL/gl.h:93: Syntax error at '\n'
   Error: /gnu/store/vf5lkc27z5rcbvaw6rkdmqisyg923m5r-mesa-19.1.4/include/GL/gl.h:97: Syntax error at '\n'
   Status: Processing description list.
   Status: Writing to OBJ.x86_64-pc-linux-gnu/nviz.py.
   Status: Wrapping complete.
I wish I could inspect those temporary files
(/tmp/guix-build-grass-7.8.0.drv-0/tmp70mq13s0.h in the example above), but
they dissapear too quickly. I suspected that my build environment had got
broken in the meantime, as the errors persist when I selectively rollback
various combinations of the changes. I cannot fully verify it, as I don’t know
the way to force the Guix daemon to rebuild (recompile) what’s already in the
store. I tried
   guix build --check
, then
   guix build -S --check
— to no avail. But I switched the OS state (GRUB menu on boot + user profile
generation) to the time of my first successful grass build, and building with
changes results in the same errors. Needless to say, I’m at loss now.
 gnu/packages/geo.scm | 85 +++++++++++++++++++++++++++++++++++++++++++-
 1 file changed, 84 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/geo.scm b/gnu/packages/geo.scm
index dfb00c7547..e050e25511 100644
--- a/gnu/packages/geo.scm
+++ b/gnu/packages/geo.scm
@@ -40,16 +40,20 @@
   #:use-module ((guix licenses) #:prefix license:)
   #:use-module (guix packages)
   #:use-module (guix utils)
+  #:use-module (gnu packages algebra)
   #:use-module (gnu packages astronomy)
   #:use-module (gnu packages autotools)
+  #:use-module (gnu packages bison)
   #:use-module (gnu packages boost)
   #:use-module (gnu packages check)
   #:use-module (gnu packages compression)
   #:use-module (gnu packages databases)
   #:use-module (gnu packages datastructures)
   #:use-module (gnu packages documentation)
+  #:use-module (gnu packages flex)
   #:use-module (gnu packages fonts)
   #:use-module (gnu packages fontutils)
+  #:use-module (gnu packages gl)
   #:use-module (gnu packages glib)
   #:use-module (gnu packages gnome)
   #:use-module (gnu packages gtk)
@@ -67,7 +71,9 @@
   #:use-module (gnu packages web)
   #:use-module (gnu packages webkit)
   #:use-module (gnu packages wxwidgets)
-  #:use-module (gnu packages xml))
+  #:use-module (gnu packages xml)
+  #:use-module (gnu packages xorg)
+  #:use-module (ice-9 match))
 
 (define-public geos
   (package
@@ -1037,3 +1043,80 @@ persisted.
 @end itemize
 ")
     (license license:expat)))
+
+(define-public grass
+  (package
+    (name "grass")
+    (version "7.8.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append
+             "https://grass.osgeo.org/" name
+             (match (string-split version #\.)
+               ((major minor _ ...)
+                (string-append major minor)))
+             "/source/" name "-" version ".tar.gz"))
+       (sha256
+        (base32
+         "1ynclznkpnm18vi0brmbfcplgi15yd7lwd424abgv7wm9qlr44ab"))))
+    (build-system gnu-build-system)
+    (arguments
+     '(#:phases
+       (modify-phases %standard-phases
+         ;; Replace configure phase as the ./configure script does not like
+         ;; CONFIG_SHELL and SHELL passed as parameters
+         (replace 'configure
+           (lambda* (#:key outputs build target #:allow-other-keys)
+             (let* ((out   (assoc-ref outputs "out"))
+                    (bash  (which "bash"))
+                    (flags (list
+                            (string-append "--prefix=" out)
+                            (string-append "--build=" build)
+                            (string-append
+                             "--with-freetype-includes="
+                             (assoc-ref %build-inputs "freetype")
+                             "/include/freetype2")
+                            (string-append
+                             "--with-proj-share="
+                             (assoc-ref %build-inputs "proj.4")
+                             "/share/proj")
+                            "--with-postgres")))
+               (setenv "CONFIG_SHELL" bash)
+               (apply invoke bash "./configure" flags))))
+         (add-after 'install 'wrap-python-scripts
+           (lambda* (#:key outputs #:allow-other-keys)
+             (let ((out (assoc-ref outputs "out")))
+               (wrap-program (string-append out "/bin/grass78")
+                 `("PYTHONPATH" ":"
+                   prefix (,(string-append wxpython "/lib/python"
+                                           (python-version python)
+                                           "/site-packages")))))
+             #t)))
+       #:tests? #f))  ;no check target
+    (native-inputs
+     `(("flex" ,flex)
+       ("bison" ,bison)
+       ("pkg-config" ,pkg-config)
+       ("python" ,python)))
+    (inputs
+     `(("proj.4" ,proj.4)
+       ("gdal" ,gdal)
+       ("zlib" ,zlib)
+       ("zstd:lib" ,zstd "lib")
+       ("libtiff" ,libtiff)
+       ("libpng" ,libpng)
+       ("sqlite" ,sqlite)
+       ("freeglut" ,freeglut)
+       ("fftw" ,fftw)
+       ("cairo" ,cairo)
+       ("freetype" ,freetype)
+       ("libxt" ,libxt)
+       ("python-wxpython" ,python-wxpython) ;for gui
+       ("postgresql" ,postgresql)))
+    (home-page "https://grass.osgeo.org/")
+    (synopsis "Geographic Resources Analysis Support System")
+    (description "GRASS is a @dfn{Geographic Information System} (GIS) software
+suite used for geospatial data management and analysis, image processing,
+graphics and maps production, spatial modeling, and visualization.")
+    (license license:gpl2+)))
-- 
2.24.0





Information forwarded to guix-patches <at> gnu.org:
bug#38178; Package guix-patches. (Thu, 14 Nov 2019 15:31:02 GMT) Full text and rfc822 format available.

Message #8 received at 38178 <at> debbugs.gnu.org (full text, mbox):

From: Wiktor Żelazny <wz <at> freeshell.de>
To: 38178 <at> debbugs.gnu.org
Subject: Re: [WIP v2] gnu: Add grass.
Date: Thu, 14 Nov 2019 16:30:36 +0100
[Message part 1 (text/plain, inline)]
A new version of GRASS GIS got released, which gave me an opportunity
to bump the version in the old definition and recompile. The errors are
there, but do not hinder the successful build. Apparently, they have
been there from the beginning; I just didn’t notice — both bad and
good news.

The real error (for now) is

   In unknown file:
            0 (%resolve-variable (7 . wxpython) #<directory (g…>)

   ERROR: In procedure %resolve-variable:
   Unbound variable: wxpython

I tried changing “wxpython” to “python-wxpython”, but this also
is not recognized. So there’s something wrong with the way I defined
the wrapping.

WŻ
[signature.asc (application/pgp-signature, inline)]

Merged 38150 38178. Request was from Ludovic Courtès <ludo <at> gnu.org> to control <at> debbugs.gnu.org. (Tue, 19 Nov 2019 09:37:02 GMT) Full text and rfc822 format available.

Information forwarded to guix-patches <at> gnu.org:
bug#38178; Package guix-patches. (Sat, 21 Mar 2020 20:22:02 GMT) Full text and rfc822 format available.

Message #13 received at 38178 <at> debbugs.gnu.org (full text, mbox):

From: Marius Bakke <mbakke <at> fastmail.com>
To: Wiktor Żelazny <wz <at> freeshell.de>, 38178 <at> debbugs.gnu.org
Subject: Re: [bug#38178] [WIP v2] gnu: Add grass.
Date: Sat, 21 Mar 2020 21:21:23 +0100
[Message part 1 (text/plain, inline)]
Wiktor Żelazny <wz <at> freeshell.de> writes:

> A new version of GRASS GIS got released, which gave me an opportunity
> to bump the version in the old definition and recompile. The errors are
> there, but do not hinder the successful build. Apparently, they have
> been there from the beginning; I just didn’t notice — both bad and
> good news.
>
> The real error (for now) is
>
>    In unknown file:
>             0 (%resolve-variable (7 . wxpython) #<directory (g…>)
>
>    ERROR: In procedure %resolve-variable:
>    Unbound variable: wxpython
>
> I tried changing “wxpython” to “python-wxpython”, but this also
> is not recognized. So there’s something wrong with the way I defined
> the wrapping.

Did you get anywhere with this patch?  Can you rebase it on the current
master branch for easier testing?  TIA!

By the way, sorry for the sloooooow responses...
[signature.asc (application/pgp-signature, inline)]

Information forwarded to guix-patches <at> gnu.org:
bug#38178; Package guix-patches. (Sun, 22 Mar 2020 08:58:01 GMT) Full text and rfc822 format available.

Message #16 received at 38178 <at> debbugs.gnu.org (full text, mbox):

From: Guillaume Le Vaillant <glv <at> posteo.net>
To: 38178 <at> debbugs.gnu.org
Subject: Re: [bug#38178] [WIP v2] gnu: Add grass.
Date: Sun, 22 Mar 2020 09:57:24 +0100
[Message part 1 (text/plain, inline)]
Marius Bakke <mbakke <at> fastmail.com> skribis:

> Wiktor Żelazny <wz <at> freeshell.de> writes:
>
>> A new version of GRASS GIS got released, which gave me an opportunity
>> to bump the version in the old definition and recompile. The errors are
>> there, but do not hinder the successful build. Apparently, they have
>> been there from the beginning; I just didn’t notice — both bad and
>> good news.
>>
>> The real error (for now) is
>>
>>    In unknown file:
>>             0 (%resolve-variable (7 . wxpython) #<directory (g…>)
>>
>>    ERROR: In procedure %resolve-variable:
>>    Unbound variable: wxpython
>>
>> I tried changing “wxpython” to “python-wxpython”, but this also
>> is not recognized. So there’s something wrong with the way I defined
>> the wrapping.
>
> Did you get anywhere with this patch?  Can you rebase it on the current
> master branch for easier testing?  TIA!
>
> By the way, sorry for the sloooooow responses...

I have a patch for grass (it compiles, but I have not tested all its
functionalities). If I had searched in the issues and found Wiktor's
patch, I wouldn't have had to write one from scratch, but well... here
it is:

[0001-gnu-Add-grass.patch (text/x-patch, inline)]
From 59894e2bd8cfd1086abd7630d998f29351c88565 Mon Sep 17 00:00:00 2001
From: Guillaume Le Vaillant <glv <at> posteo.net>
Date: Sun, 22 Mar 2020 00:03:41 +0100
Subject: [PATCH] gnu: Add grass.

* gnu/packages/geo.scm (grass): New variable.
---
 gnu/packages/geo.scm | 122 +++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 122 insertions(+)

diff --git a/gnu/packages/geo.scm b/gnu/packages/geo.scm
index bc870f9620..b244e49a92 100644
--- a/gnu/packages/geo.scm
+++ b/gnu/packages/geo.scm
@@ -46,10 +46,13 @@
   #:use-module (guix packages)
   #:use-module (guix utils)
   #:use-module (gnu packages)
+  #:use-module (gnu packages algebra)
   #:use-module (gnu packages astronomy)
   #:use-module (gnu packages audio)
   #:use-module (gnu packages autotools)
   #:use-module (gnu packages backup)
+  #:use-module (gnu packages bash)
+  #:use-module (gnu packages bison)
   #:use-module (gnu packages boost)
   #:use-module (gnu packages check)
   #:use-module (gnu packages compression)
@@ -58,6 +61,7 @@
   #:use-module (gnu packages datastructures)
   #:use-module (gnu packages documentation)
   #:use-module (gnu packages elf)
+  #:use-module (gnu packages flex)
   #:use-module (gnu packages fonts)
   #:use-module (gnu packages fontutils)
   #:use-module (gnu packages gettext)
@@ -80,8 +84,10 @@
   #:use-module (gnu packages python-web)
   #:use-module (gnu packages python-xyz)
   #:use-module (gnu packages qt)
+  #:use-module (gnu packages readline)
   #:use-module (gnu packages sqlite)
   #:use-module (gnu packages textutils)
+  #:use-module (gnu packages time)
   #:use-module (gnu packages web)
   #:use-module (gnu packages webkit)
   #:use-module (gnu packages wxwidgets)
@@ -1629,3 +1635,119 @@ track your position right from your laptop.")
                    license:lgpl3+
                    license:sgifreeb2.0
                    license:zlib))))
+
+(define-public grass
+  (let* ((version "7.8.2")
+         (majorminor (string-join (list-head (string-split version #\.) 2) ""))
+         (grassxx (string-append "grass" majorminor)))
+    (package
+      (name "grass")
+      (version version)
+      (source
+       (origin
+         (method url-fetch)
+         (uri (string-append "https://grass.osgeo.org/" grassxx
+                             "/source/grass-" version ".tar.gz"))
+         (sha256
+          (base32 "1fwsm99kz0bxvjk7442qq1h45ikrmhba8bqclafb61gqg1q6ymrk"))))
+      (build-system gnu-build-system)
+      (inputs
+       `(("bzip2", bzip2)
+         ("cairo" ,cairo)
+         ("fftw" ,fftw)
+         ("freetype" ,freetype)
+         ("gdal" ,gdal)
+         ("geos" ,geos)
+         ("glu" ,glu)
+         ("lapack" ,lapack)
+         ("libpng" ,libpng)
+         ("libtiff" ,libtiff)
+         ("mesa" ,mesa)
+         ("mariadb-dev" ,mariadb "dev")
+         ("mariadb-lib" ,mariadb "lib")
+         ("netcdf" ,netcdf)
+         ("openblas" ,openblas)
+         ("perl" ,perl)
+         ("postgresql" ,postgresql)
+         ("proj.4" ,proj.4)
+         ("python" ,python)
+         ("python-dateutil" ,python-dateutil)
+         ("python-numpy" ,python-numpy)
+         ("python-wxpython" ,python-wxpython)
+         ("readline" ,readline)
+         ("sqlite" ,sqlite)
+         ("wxwidgets" ,wxwidgets)
+         ("zlib" ,zlib)
+         ("zstd" ,zstd "lib")))
+      (native-inputs
+       `(("bash" ,bash-minimal)
+         ("bison" ,bison)
+         ("flex" ,flex)
+         ("pkg-config" ,pkg-config)))
+      (arguments
+       `(#:tests? #f ; No tests
+         #:modules ((guix build gnu-build-system)
+                    ((guix build python-build-system) #:prefix python:)
+                    (guix build utils))
+         #:imported-modules (,@%gnu-build-system-modules
+                             (guix build python-build-system))
+         #:phases
+         (modify-phases %standard-phases
+           (replace 'configure
+             (lambda* (#:key inputs outputs #:allow-other-keys)
+               (let ((shell (string-append (assoc-ref inputs "bash")
+                                           "/bin/bash")))
+                 (setenv "SHELL" shell)
+                 (setenv "CONFIG_SHELL" shell)
+                 (setenv "LDFLAGS" (string-append "-Wl,-rpath -Wl,"
+                                                  (assoc-ref outputs "out")
+                                                  "/" ,grassxx "/lib")))
+               (invoke "./configure"
+                       (string-append "--prefix="
+                                      (assoc-ref outputs "out"))
+                       "--with-blas"
+                       "--with-bzlib"
+                       (string-append "--with-freetype-includes="
+                                      (assoc-ref inputs "freetype")
+                                      "/include/freetype2")
+                       (string-append "--with-freetype-libs="
+                                      (assoc-ref inputs "freetype")
+                                      "/lib")
+                       "--with-geos"
+                       "--with-lapack"
+                       "--with-mysql"
+                       (string-append "--with-mysql-includes="
+                                      (assoc-ref inputs "mariadb-dev")
+                                      "/include/mysql")
+                       (string-append "--with-mysql-libs="
+                                      (assoc-ref inputs "mariadb-lib")
+                                      "/lib")
+                       "--with-netcdf"
+                       "--with-postgres"
+                       (string-append "--with-proj-share="
+                                      (assoc-ref inputs "proj.4")
+                                      "/share/proj")
+                       "--with-pthread"
+                       "--with-readline"
+                       "--with-sqlite"
+                       "--with-wxwidgets")))
+           (add-after 'install 'install-links
+             (lambda* (#:key outputs #:allow-other-keys)
+               ;; Put links for includes and libraries in the standard places.
+               (let* ((out (assoc-ref outputs "out"))
+                      (dir (string-append out "/" ,grassxx)))
+                 (symlink (string-append dir "/include")
+                          (string-append out "/include"))
+                 (symlink (string-append dir "/lib")
+                          (string-append out "/lib")))
+               #t))
+           (add-after 'install-links 'wrap-python
+             (assoc-ref python:%standard-phases 'wrap)))))
+      (synopsis "GRASS Geographic Information System")
+      (description
+       "GRASS (Geographic Resources Analysis Support System), is a Geographic
+Information System (GIS) software suite used for geospatial data management and
+analysis, image processing, graphics and maps production, spatial modeling, and
+visualization.")
+      (home-page "https://grass.osgeo.org/")
+      (license license:gpl2+))))
-- 
2.25.2

[signature.asc (application/pgp-signature, inline)]

Reply sent to Guillaume Le Vaillant <glv <at> posteo.net>:
You have taken responsibility. (Tue, 24 Mar 2020 10:59:02 GMT) Full text and rfc822 format available.

Notification sent to Wiktor Żelazny <wz <at> freeshell.de>:
bug acknowledged by developer. (Tue, 24 Mar 2020 10:59:02 GMT) Full text and rfc822 format available.

Message #21 received at 38178-done <at> debbugs.gnu.org (full text, mbox):

From: Guillaume Le Vaillant <glv <at> posteo.net>
To: 38178-done <at> debbugs.gnu.org
Subject: Re: [bug#38178] [WIP v2] gnu: Add grass.
Date: Tue, 24 Mar 2020 11:57:57 +0100
[Message part 1 (text/plain, inline)]
Patch adding GRASS pushed as 9fce5914794782b3a1826aea0978702883820bbf.
[signature.asc (application/pgp-signature, inline)]

Reply sent to Guillaume Le Vaillant <glv <at> posteo.net>:
You have taken responsibility. (Tue, 24 Mar 2020 10:59:02 GMT) Full text and rfc822 format available.

Notification sent to Wiktor Żelazny <wz <at> freeshell.de>:
bug acknowledged by developer. (Tue, 24 Mar 2020 10:59:02 GMT) Full text and rfc822 format available.

Information forwarded to guix-patches <at> gnu.org:
bug#38178; Package guix-patches. (Tue, 24 Mar 2020 21:18:02 GMT) Full text and rfc822 format available.

Message #29 received at 38178 <at> debbugs.gnu.org (full text, mbox):

From: Wiktor Żelazny <wz <at> freeshell.de>
To: 38178 <at> debbugs.gnu.org
Subject: Re: [bug#38178] [WIP v2] gnu: Add grass.
Date: Tue, 24 Mar 2020 22:16:26 +0100
[Message part 1 (text/plain, inline)]
On Sat, Mar 21, 2020 at 09:21:23PM +0100, Marius Bakke wrote:

> Did you get anywhere with this patch?  Can you rebase it on the
> current master branch for easier testing?  TIA!

I abandoned it as soon as Arun Isaac posted his package definition. And
now I see that qgis is officially in Guix. That’s nice.

> By the way, sorry for the sloooooow responses...

That’s fine. I’m also slow.

Bye,

WŻ
[signature.asc (application/pgp-signature, inline)]

Information forwarded to guix-patches <at> gnu.org:
bug#38178; Package guix-patches. (Tue, 24 Mar 2020 21:21:02 GMT) Full text and rfc822 format available.

Message #32 received at 38178 <at> debbugs.gnu.org (full text, mbox):

From: Wiktor Żelazny <wz <at> freeshell.de>
To: 38178 <at> debbugs.gnu.org
Subject: Re: [bug#38178] [WIP v2] gnu: Add grass.
Date: Tue, 24 Mar 2020 22:19:34 +0100
[Message part 1 (text/plain, inline)]
On Tue, Mar 24, 2020 at 10:16:31PM +0100, Wiktor Żelazny wrote:
> On Sat, Mar 21, 2020 at 09:21:23PM +0100, Marius Bakke wrote:
>
> > Did you get anywhere with this patch?  Can you rebase it on the
> > current master branch for easier testing?
>
> I abandoned it as soon as Arun Isaac posted his package definition.
> And now I see that qgis is officially in Guix. That’s nice.

Oops, sorry. I didn’t notice that you were asking about grass, not qgis.
No, I haven’t done any progress with it, either. But I can see that it’s
in gnu/packages now, as well. So I guess the issue is not relevant,
anymore.

WŻ
[signature.asc (application/pgp-signature, inline)]

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 22 Apr 2020 11:24:06 GMT) Full text and rfc822 format available.

This bug report was last modified 3 years and 341 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.