Temporary fixing a file in /opt/local/share… generated by another port

Joshua Root jmr at macports.org
Fri Sep 27 01:22:50 PDT 2013


On 2013-9-27 05:20 , Lawrence Velázquez wrote:
> On Sep 26, 2013, at 11:47 AM, Vincent Habchi <vince at macports.org> wrote:
> 
>> The newest version of QGis does not compile because of bug in SIP 4.15.x. Specifically, the file qsyntaxhighlighter.sip located in ${prefix}/share/pyXX-sip/PyQt4/QtGui is buggy, and causes an error. I own a fixed copy which allow a correct build.
>>
>> Question: can I "patch" the qsyntaxhighlighter.sip file during the time of the build, returning it to its normal buggy version at the end, or shall I proceed an other way?
> 
> Theoretically you can run the patch phase as superuser with "patch.asroot yes", but mucking around in ${prefix} is really unorthodox. If py-sip is actually installing a buggy file, wouldn't it be easier (and more correct) to fix py-sip and revbump?

Sandboxing will rightly prevent this. So yeah, fix py-sip.

- Josh


More information about the macports-dev mailing list