File: invalid-array-syntax.patch

package info (click to toggle)
cenon.app 4.0.6%2Bds1-5
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 35,392 kB
  • sloc: objc: 74,441; ansic: 1,270; sh: 124; makefile: 41
file content (33 lines) | stat: -rw-r--r-- 1,397 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
Description: Fix FTBFS due to invalid syntax that only works with Clang.
Author: Yavor Doganov <yavor@gnu.org>
Forwarded: mailto:info@cenon.com
Last-Update: 2018-03-12
---

--- cenon.app.orig/VHFShared/vhfCommonFunctions.m
+++ cenon.app/VHFShared/vhfCommonFunctions.m
@@ -67,7 +67,9 @@
     NSString        *output;
 
     [task setLaunchPath: @"/bin/sh"];
-    [task setArguments:@[@"-c", [NSString stringWithFormat:@"%@", cmd]]];
+    [task setArguments:
+            [NSArray arrayWithObjects:
+                       @"-c", [NSString stringWithFormat:@"%@", cmd], nil]];
     [task setStandardOutput:pipe];
     [task launch];
     output = [[NSString alloc] initWithData:[file readDataToEndOfFile] encoding:NSUTF8StringEncoding];
--- 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];