tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkg/44713, brokennes of GNU patch



On 12/13/11 3:05 AM, Aleksey Cheusov wrote:
> On Tue, Dec 13, 2011 at 1:22 AM, Julio Merino <jmmv%netbsd.org@localhost> 
> wrote:
>> On 12/9/11 9:36 AM, Aleksey Cheusov wrote:
>>> Hello. GNU patch fails to apply pkgsrc patches correctly (see
>>> http://gnats.netbsd.org/44713).  Another problem is that latest versions
>>> of GNU patch exit with error if files to be modified are read-only. This
>>> happens very often with pkgsrc distfiles.
>>
>> I've found the read-only issue constantly and have been running with
>> this local patch to tools.Darwin.mk for a long time already:
>>
>> -TOOLS_PLATFORM.patch?=         /usr/bin/patch
>> +TOOLS_PLATFORM.patch?=         /usr/bin/patch -g0
>>
>> Not sure if it's OK to submit it.  Other than that, I have not
>> experienced other issues myself.
> 
> How about setting PATCH_GET environment variable to zero
> unconditionally from inside pkgsrc?

Sounds good to me too.  (I was unaware of this variable.)

-- 
Julio Merino / @jmmv


Home | Main Index | Thread Index | Old Index