Subject: pkg/17769: solaris gpatch doesn't use ".orig" suffix for simple backups by default as some package Makefiles expect
To: None <gnats-bugs@gnats.netbsd.org>
From: None <uwe@ptc.spbu.ru>
List: netbsd-bugs
Date: 07/30/2002 10:31:21
>Number:         17769
>Category:       pkg
>Synopsis:       solaris gpatch doesn't use ".orig" suffix for simple backups by default as some package Makefiles expect
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jul 30 10:32:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Valeriy E. Ushakov
>Release:        
>Organization:
>Environment:
SunOS swallow 5.8 Generic_108528-07 sun4u sparc SUNW,Ultra-1
>Description:
pkgsrc/mk/defs.SunOS.mk sets PATCH to "/usr/bin/gpatch -b" if gpatch
shipped with recent versions of is available.  However gpatch manpage seems to be lying about its default suffix for simple backups - the man page claims it uses ".orig", but in fact it uses "~".  My environment seems to be clean (no vars that would affect gpatch) and running strings on the binary shows that there's no ".orig" string in it.

This causes problem e.g. for textproc/jade that tries to remove some ".orig" files using "find ... | xargs rm" and rm fails b/c it gets no arguments as all backups created by gpatch use "~" for the suffix.

>How-To-Repeat:

>Fix:
Force expected suffix by specifying "-z .orig".

begin 644 defs.SunOS.mk-diff
M26YD97@Z(&1E9G,N4W5N3U,N;6L*/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]
M/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/0I2
M0U,@9FEL93H@+V-V<W)O;W0O<&MG<W)C+VUK+V1E9G,N4W5N3U,N;6LL=@IR
M971R:65V:6YG(')E=FES:6]N(#$N,C8*9&EF9B M=2 M<C$N,C8@9&5F<RY3
M=6Y/4RYM:PHM+2T@9&5F<RY3=6Y/4RYM:PDR,# R+S W+S$U(#$V.C(T.C Q
M"3$N,C8**RLK(&1E9G,N4W5N3U,N;6L),C P,B\P-R\S," Q-SHR,SHR- I
M0" M-#(L-R K-#(L-R! 0 H@3512144_/0D))'M:3U5,05))4T)!4T5]+V)I
M;B]M=')E90H@358_/0D)+W5S<B]B:6XO;78*("YI9B!E>&ES=',H+W5S<B]B
M:6XO9W!A=&-H*0HM4$%40T@_/0D)+W5S<B]B:6XO9W!A=&-H("UB"BM0051#
M2#\]"0DO=7-R+V)I;B]G<&%T8V@@+6(@+7H@+F]R:6<*("YE;'-E"B!0051#
G2#\]"0DD>TQ/0T%,0D%317TO8FEN+W!A=&-H("UB"B N96YD:68*

end

>Release-Note:
>Audit-Trail:
>Unformatted: