Can't install qt4?

Ken Cunningham ken.cunningham.webuse at gmail.com
Wed Sep 21 23:29:39 PDT 2016


When something like that happens, it's best if you take a look and see.
What's it telling you -- hmm-- what could be ending in the middle of the line?
maybe your patch download file is incomplete for some reason?


$cat qt4-SL-Libcxx-fix-revised.diff 

should look like this (as you can also see from web page).

-----------------------------


--- Portfile.orig	2016-09-18 21:43:07.000000000 -0700
+++ Portfile	2016-09-18 21:45:27.000000000 -0700
@@ -585,6 +585,18 @@
 
     }
 
+    # on Leopard and Snow Leopard with libc++ForOlderSystems installed, SDK must be unset as we can only use system libraries
+    # also, a missing library link must be replaced for build to succeed
+    # <https://trac.macports.org/ticket/51844>
+    platform darwin {
+        if {${os.major} == 9 || ${os.major} == 10} {
+            if {${configure.cxx_stdlib} eq "libc++"} {
+                set SDK ""
+                configure.ldflags-append "-lobjc"
+            }
+        }
+    }
+
     # set the SDK, if it was found and exists
 
     if {[file exists ${SDK}]} {


--------------------------

if not, I guess you should download it again. Or copy/paste the part above, as it's very short :>

Best,

K


On 2016-09-21, at 6:38 PM, [ftp83plus] wrote:

> Hmmm, I get:
> 
> sudo patch <qt4-SL-Libcxx-fix-revised.diff 
> patch unexpectedly ends in middle of line
> patch: **** Only garbage was found in the patch input.
> 
> 
> El 2016-09-21, a las 13:40, Ken Cunningham escribió:
> 
>> https://trac.macports.org/attachment/ticket/51844/qt4-SL-Libcxx-fix-revised.diff
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-users/attachments/20160921/04ee5246/attachment.html>


More information about the macports-users mailing list