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];
|