[MBT] new ticket for pkg squid "side effect of patching desttree"

bugs at pld-linux.org bugs at pld-linux.org
Tue Mar 2 00:52:10 CET 2004


Date: 2004-03-02 00:52:10+01	Author:  (glen) <glen at delfi.ee> 
Title:         side effect of patching desttree
Ticket ID:     #854
Ticket URL:    http://bugs.pld-linux.org/?bug=854
Package:       squid-7:2.5.STABLE4-6
Distribution:  PLD-2.0.main PLD-nest.test
Category:      other bug on spec
Current state: opened
Text:

i've got env 'VERSION_CONTROL=t', and patching in in BuildRoot causes squid.conf.~1~ appear there and if built with _unpackaged_files_terminate_build=1 %define, the whole build will fail.

this is quick fix patch (altho i think the file should be patched before install to $RPM_BUILD_ROOT

--- squid.spec    1 Mar 2004 23:10:00 -0000    1.1
+++ squid.spec    1 Mar 2004 23:49:10 -0000
@@ -559,7 +561,9 @@

 cd $RPM_BUILD_ROOT/etc/squid
 cp -f squid.conf{,.default}
+# this patching created (due env:VERSION_CONTROL=t) backup file. kill it
 patch -p0 < %{SOURCE5}
+rm *~
 cd -

 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/squid




More information about the pld-bugs mailing list