<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">Sure! Basically, you need the diff file in the folder with the Portfile, and then you run “patch”. Details to follow:</div><div class=""><br class=""></div><div class="">1. clean out any current leftovers from previous attempts</div><div class=""><br class=""></div><div class="">“sudo port clean qt4-mac”</div><div class=""><br class=""></div><div class="">2. find the existing port file for qt4-mac</div><div class=""><br class=""></div><div class=""><div style="margin: 0px; font-size: 10px; line-height: normal; font-family: Monaco;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">$ port file qt4-mac</span></div><div style="margin: 0px; font-size: 10px; line-height: normal; font-family: Monaco;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">/opt/local/var/macports/sources/<a href="http://rsync.macports.org/release/tarballs/ports/aqua/qt4-mac/Portfile" class="">rsync.macports.org/release/tarballs/ports/aqua/qt4-mac/Portfile</a></span></div></div><div style="margin: 0px; font-size: 10px; line-height: normal; font-family: Monaco;" class=""><br class=""></div><div class=""><div class="">3. go into the the portfile’s directory</div></div><div class=""><br class=""></div><div class=""><div style="margin: 0px; font-size: 10px; line-height: normal; font-family: Monaco;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">$ cd /opt/local/var/macports/sources/<a href="http://rsync.macports.org/release/tarballs/ports/aqua/qt4-mac/" class="">rsync.macports.org/release/tarballs/ports/aqua/qt4-mac/</a></span></div></div><div class=""><br class=""></div><div class=""><div class="">4. take a moment to look and make sure all is well in there</div></div><div class=""><br class=""></div><div class=""><div style="margin: 0px; font-size: 10px; line-height: normal; font-family: Monaco;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">$ pwd</span></div><div style="margin: 0px; font-size: 10px; line-height: normal; font-family: Monaco;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">/opt/local/var/macports/sources/<a href="http://rsync.macports.org/release/tarballs/ports/aqua/qt4-mac" class="">rsync.macports.org/release/tarballs/ports/aqua/qt4-mac</a></span></div><div style="margin: 0px; font-size: 10px; line-height: normal; font-family: Monaco;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">$ ls -la</span></div><div style="margin: 0px; font-size: 10px; line-height: normal; font-family: Monaco;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">total 80</span></div><div style="margin: 0px; font-size: 10px; line-height: normal; font-family: Monaco;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">drwxr-xr-x&nbsp; &nbsp; 4 root&nbsp; wheel&nbsp; &nbsp; 136&nbsp; 4 Mar&nbsp; 2016 .</span></div><div style="margin: 0px; font-size: 10px; line-height: normal; font-family: Monaco;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">drwxr-xr-x&nbsp; 113 root&nbsp; wheel &nbsp; 3842&nbsp; 4 Sep 17:00 ..</span></div><div style="margin: 0px; font-size: 10px; line-height: normal; font-family: Monaco;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">-rw-r--r--&nbsp; &nbsp; 1 root&nbsp; wheel&nbsp; 39430&nbsp; 4 Mar&nbsp; 2016 Portfile</span></div><div style="margin: 0px; font-size: 10px; line-height: normal; font-family: Monaco;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">drwxr-xr-x &nbsp; 51 root&nbsp; wheel &nbsp; 1734 14 Oct&nbsp; 2015 files</span></div></div><div class=""><br class=""></div><div class=""><div class="">5. download the patch from the website link. You can download this using a browser to your home folder (easiest to understand, but slowest) and ‘sudo mv’ it to where you are</div><div class=""><br class=""></div><div class="">a) download the patch using Safari, for example, to your home folder from the website</div><div class="">you want this one:&nbsp;<a href="https://trac.macports.org/attachment/ticket/51844/qt4-SL-Libcxx-fix-revised.diff" class="">https://trac.macports.org/attachment/ticket/51844/qt4-SL-Libcxx-fix-revised.diff</a></div><div class="">right click on the little drawer with the down arrow above it to the right of&nbsp;<span style="font-family: Monaco; font-size: 10px;" class="">qt4-SL-Libcxx-fix-revised.diff</span>&nbsp;in the attached files to ‘download linked file as’ and then save it in your home folder</div><div class=""><br class=""></div><div class="">b) make sure it’s there if you want to…</div><div class=""><div style="margin: 0px; font-size: 10px; line-height: normal; font-family: Monaco;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class=""></span></div><div style="margin: 0px; font-size: 10px; line-height: normal; font-family: Monaco;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">$ls ~</span></div></div><div class=""><br class=""></div><div class="">your should see</div><div class=""><div style="margin: 0px; font-size: 10px; line-height: normal; font-family: Monaco;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">qt4-SL-Libcxx-fix-revised.diff</span></div></div><div style="margin: 0px; font-size: 10px; line-height: normal; font-family: Monaco;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class=""></span></div><div style="margin: 0px; font-size: 10px; line-height: normal; font-family: Monaco;" class=""><div style="font-family: Helvetica; font-size: 12px;" class="">if you see</div><div style="font-family: Helvetica; font-size: 12px;" class=""><div style="margin: 0px; font-size: 10px; line-height: normal; font-family: Monaco;" class=""><span style="font-variant-ligatures: no-common-ligatures;" class="">qt4-SL-Libcxx-fix-revised.diff.hml</span></div><div style="margin: 0px; font-size: 10px; line-height: normal; font-family: Monaco;" class=""><span style="font-variant-ligatures: no-common-ligatures;" class=""><br class=""></span></div><div style="margin: 0px; font-size: 10px; line-height: normal; font-family: Monaco;" class=""><span style="font-variant-ligatures: no-common-ligatures;" class=""><div style="font-family: Helvetica; font-size: 12px;" class="">then you clicked on the name instead of the badge, and try again until you see it with just the .diff ending</div><div style="font-family: Helvetica; font-size: 12px;" class=""></div></span></div><div class=""><span style="font-variant-ligatures: no-common-ligatures;" class=""><br class=""></span></div></div></div><div class="">c) then move it into your current folder (the port’s folder)</div><div class=""><div style="margin: 0px; font-size: 10px; line-height: normal; font-family: Monaco;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">$ sudo mv ~/qt4-SL-Libcxx-fix-revised.diff ./</span></div></div><div class=""><br class=""></div><div class=""><div style="margin: 0px; font-size: 10px; line-height: normal; font-family: Monaco;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><div style="font-family: Helvetica; font-size: 12px;" class="">d) and just for good measure, check that all is well. The portfile and the .diff file need to be in the same directory</div><div style="font-family: Helvetica; font-size: 12px;" class=""></div></span></div><div style="margin: 0px; font-size: 10px; line-height: normal; font-family: Monaco;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">$ ls</span></div><div style="margin: 0px; font-size: 10px; line-height: normal; font-family: Monaco;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">Portfile<span class="Apple-tab-span" style="white-space:pre">                        </span>files<span class="Apple-tab-span" style="white-space:pre">                                </span>qt4-SL-Libcxx-fix-revised.diff</span></div></div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">&nbsp;(or as a shortcut, once you understand what you’re doing you can just do all of step 5 by using&nbsp;</div><div class=""><br class=""></div><div class=""><div style="margin: 0px; font-size: 10px; line-height: normal; font-family: Monaco;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">$ sudo wget <a href="https://trac.macports.org/attachment/ticket/51844/qt4-SL-Libcxx-fix-revised.diff" class="">https://trac.macports.org/attachment/ticket/51844/qt4-SL-Libcxx-fix-revised.diff</a></span></div></div><div class=""><br class=""></div><div class="">&nbsp;from the port's folder once you have found and copied the proper link with Safari</div><div class=""><br class=""></div></div><div class="">6. You’re almost done. Patch the portfile using the .diff file</div><div class=""><br class=""></div><div class=""><div style="margin: 0px; font-size: 10px; line-height: normal; font-family: Monaco;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">sudo patch &lt;qt4-SL-Libcxx-fix-revised.diff</span></div><div style="margin: 0px; font-size: 10px; line-height: normal; font-family: Monaco;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">patching file Portfile</span></div></div><div style="margin: 0px; font-size: 10px; line-height: normal; font-family: Monaco;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class=""></span></div><div style="margin: 0px; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures;" class=""><div style="margin: 0px; line-height: normal;" class=""><div class="">7. That’s it. You can check the new Portfile if you want to, and you should see this new block about 1/2 way down the Portfile. Or if you’re trusting, you can just go ahead and install it (I’m not too trusting, so I always check the diff and new Portfile, myself).</div><div class=""><br class=""></div></div><div style="margin: 0px; line-height: normal;" class=""><font face="Monaco" size="1" class=""><br class=""></font></div><div style="margin: 0px; line-height: normal;" class=""><font face="Monaco" size="1" class=""><br class=""></font></div><div style="margin: 0px; line-height: normal;" class=""><font face="Monaco" size="1" class="">&nbsp; &nbsp; # on Leopard and Snow Leopard with libc++ForOlderSystems installed, SDK must be unset as we can only use system libraries</font></div><div style="margin: 0px; line-height: normal;" class=""><font face="Monaco" size="1" class="">&nbsp; &nbsp; # also, a missing library link must be replaced for build to succeed</font></div><div style="margin: 0px; line-height: normal;" class=""><font face="Monaco" size="1" class="">&nbsp; &nbsp; # &lt;<a href="https://trac.macports.org/ticket/51844" class="">https://trac.macports.org/ticket/51844</a>&gt;</font></div><div style="margin: 0px; line-height: normal;" class=""><font face="Monaco" size="1" class="">&nbsp; &nbsp; platform darwin {</font></div><div style="margin: 0px; line-height: normal;" class=""><font face="Monaco" size="1" class="">&nbsp; &nbsp; &nbsp; &nbsp; if {${os.major} == 9 || ${os.major} == 10} {</font></div><div style="margin: 0px; line-height: normal;" class=""><font face="Monaco" size="1" class="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if {${configure.cxx_stdlib} eq "libc++"} {</font></div><div style="margin: 0px; line-height: normal;" class=""><font face="Monaco" size="1" class="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; set SDK ""</font></div><div style="margin: 0px; line-height: normal;" class=""><font face="Monaco" size="1" class="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; configure.ldflags-append "-lobjc"</font></div><div style="margin: 0px; line-height: normal;" class=""><font face="Monaco" size="1" class="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</font></div><div style="margin: 0px; line-height: normal;" class=""><font face="Monaco" size="1" class="">&nbsp; &nbsp; &nbsp; &nbsp; }</font></div><div style="margin: 0px; line-height: normal;" class=""><font face="Monaco" size="1" class="">&nbsp; &nbsp; }</font></div><div style="font-family: Monaco; font-size: 10px;" class=""><br class=""></div></span></div><div class=""><br class=""></div><div class=""><div class="">8. when you’re happy, go for it:</div><div class=""><br class=""></div><div class=""><div style="margin: 0px; font-size: 10px; line-height: normal; font-family: Monaco;" class=""><span style="font-variant-ligatures: no-common-ligatures;" class="">sudo port -v install qt4-mac</span></div><div style="margin: 0px; font-size: 10px; line-height: normal; font-family: Monaco;" class=""><br class=""></div></div></div><div style="margin: 0px; font-size: 10px; line-height: normal; font-family: Monaco;" class=""><br class=""></div><div style="margin: 0px; font-size: 10px; line-height: normal; font-family: Monaco;" class=""><div style="font-family: Helvetica; font-size: 12px;" class="">The above works for me. There are lots of options in the manpages for patch, but for this simple application, doesn’t seem you need any. You can back up portfiles before patching them if you want, etc, etc — but in this case, if you mess things up, you can just “sudo port selfupdate” and macports will set everything back to the beginning for you automagically.</div><div style="font-family: Helvetica; font-size: 12px;" class=""><br class=""></div><div style="font-family: Helvetica; font-size: 12px;" class="">Best,</div><div style="font-family: Helvetica; font-size: 12px;" class=""><br class=""></div><div style="font-family: Helvetica; font-size: 12px;" class="">Ken</div><div style="font-family: Helvetica; font-size: 12px;" class=""><br class=""></div><div style="font-family: Helvetica; font-size: 12px;" class=""><br class=""></div></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><br class=""><div><blockquote type="cite" class=""><div class="">On Sep 21, 2016, at 8:48 AM, [ftp83plus] &lt;<a href="mailto:gestos@ftp83plus.net" class="">gestos@ftp83plus.net</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; " class="">That may sound silly, but the instructions on how to patch a port are not clear when attempting to apply a patch to a port that hasn't been successfully installed.<div class=""><br class=""></div><div class="">Would you point me to a clear explanation please?&nbsp;</div><div class=""><div class=""><br class=""><div class=""><div class="">El 2016-09-17, a las 21:08, Ken Cunningham escribió:</div><br class="Apple-interchange-newline"><blockquote type="cite" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; " class="">Hi Pat,<div class=""><br class=""></div><div class="">just rebuilt it to make sure it's all still good with the current port mix -- indeed, it built without trouble, with the patch I referenced. It took about two and a half hours, though.</div><div class=""><br class=""></div><div class="">If you get stuck and it won't build for you, let me know and I'll send you a link to a binary.</div><div class=""><br class=""></div><div class="">ken</div><div class=""><br class=""><div class=""><div class="">On 2016-09-16, at 4:08 PM, [ftp83plus] wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; " class="">Hello all,&nbsp;<div class=""><br class=""></div><div class="">I want to install cutecom on Mac OS X 10.6.</div><div class=""><br class=""></div><div class="">As a dependency, qt4 needs to be installed as well, but fails:</div><div class=""><a href="http://pastebin.com/YMLLEvZ1" class="">http://pastebin.com/YMLLEvZ1</a>&nbsp;(cut because exceeded 512kb)</div><div class=""><br class=""></div><div class="">Why?</div><div class="">Pat</div></div>_______________________________________________<br class="">macports-users mailing list<br class=""><a href="mailto:macports-users@lists.macosforge.org" class="">macports-users@lists.macosforge.org</a><br class=""><a href="https://lists.macosforge.org/mailman/listinfo/macports-users" class="">https://lists.macosforge.org/mailman/listinfo/macports-users</a><br class=""></blockquote></div><br class=""></div></div></blockquote></div><br class=""></div></div></div></div></blockquote></div><br class=""></body></html>