summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'gnustep-apps/cenon/files/cenon-4.0.6-invalid_array_syntax.patch')
-rw-r--r--gnustep-apps/cenon/files/cenon-4.0.6-invalid_array_syntax.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/gnustep-apps/cenon/files/cenon-4.0.6-invalid_array_syntax.patch b/gnustep-apps/cenon/files/cenon-4.0.6-invalid_array_syntax.patch
new file mode 100644
index 000000000000..696a5c8d1754
--- /dev/null
+++ b/gnustep-apps/cenon/files/cenon-4.0.6-invalid_array_syntax.patch
@@ -0,0 +1,20 @@
+Decsription: Fix FTBFS due to invalid syntax that only works with Clang.
+Author: Yavor Doganov <yavor@gnu.org>
+Forwarded: info@cenon.com
+Last-Update: 2018-03-12
+---
+
+--- cenon.app.orig/VHFImport/PSImport.m
++++ cenon.app/VHFImport/PSImport.m
+@@ -180,7 +180,10 @@
+ NSString *output;
+
+ [task setLaunchPath: @"/bin/sh"];
+- [task setArguments:@[@"-c", [NSString stringWithFormat:@"%@ -h | grep %@", gsPath, gsDev]] ];
++ [task setArguments:
++ [NSArray arrayWithObjects: @"-c",
++ [NSString stringWithFormat:@"%@ -h | grep %@",
++ gsPath, gsDev], nil]];
+ [task setStandardOutput:pipe];
+ [task launch];
+ output = [[NSString alloc] initWithData:[file readDataToEndOfFile] encoding:NSUTF8StringEncoding];