summary refs log tree commit diff
path: root/gnu/packages/patches/ao-cad-aarch64-support.patch
diff options
context:
space:
mode:
authorEric Bavier <bavier@cray.com>2017-12-14 17:03:58 -0600
committerEric Bavier <bavier@member.fsf.org>2018-01-04 15:34:52 -0600
commit007c75f56fc48b031c1383c98b6bbb3c1e3c30ad (patch)
treee104a1af6ba8d780314c267b91c1d74131607edf /gnu/packages/patches/ao-cad-aarch64-support.patch
parent17e1e21603e7cba622cf4ec41c0e1467972fd449 (diff)
downloadguix-007c75f56fc48b031c1383c98b6bbb3c1e3c30ad.tar.gz
gnu: ao-cad: Update and fix for aarch64.
* gnu/packages/patches/ao-cad-aarch64-support.patch: New patch.
* gnu/local.mk (dist_patch_DATA): Add it.
* gnu/packages/engineering.scm (ao-cad)[source]: Use it.  Update snapshot to
fb288c9.  Use VCS helpers for version and file-name.
[arguments]: Add 'remove-native-compilation' phase.
Diffstat (limited to 'gnu/packages/patches/ao-cad-aarch64-support.patch')
-rw-r--r--gnu/packages/patches/ao-cad-aarch64-support.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/gnu/packages/patches/ao-cad-aarch64-support.patch b/gnu/packages/patches/ao-cad-aarch64-support.patch
new file mode 100644
index 0000000000..291369cd9b
--- /dev/null
+++ b/gnu/packages/patches/ao-cad-aarch64-support.patch
@@ -0,0 +1,18 @@
+Support in ao-cad for aarch64.
+
+Submitted upstream at https://github.com/mkeeter/ao/issues/69
+
+--- ao/ui/vendor/efsw/src/efsw/inotify-nosys.h.orig	2017-12-14 16:27:16.125871099 -0600
++++ ao/ui/vendor/efsw/src/efsw/inotify-nosys.h	2017-12-14 16:26:39.786022981 -0600
+@@ -69,6 +69,11 @@
+ # define __NR_inotify_add_watch (__NR_SYSCALL_BASE+317)
+ # define __NR_inotify_rm_watch (__NR_SYSCALL_BASE+318)
+ 
++#elif defined (__aarch64__)
++# define __NR_inotify_init 1043
++# define __NR_inotify_add_watch 27
++# define __NR_inotify_rm_watch 28
++
+ #elif defined (__frv__)
+ # define __NR_inotify_init 291
+ # define __NR_inotify_add_watch 292