Temporary fixing a file in /opt/local/share… generated by another port
Rainer Müller
raimue at macports.org
Fri Sep 27 00:50:38 PDT 2013
On 2013-09-26 21: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?
You should patch py-sip. Is it fixed upstream already? Then just
backport their fix.
When patching py-sip directly, other programs using this feature will
benefit from the patched version as well.
Rainer
More information about the macports-dev
mailing list