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

Re: (un)patching patched files



On Thu, 10 May 2012 11:22:46 +0200, Olе Streicher wrote:

> ------------------------8<-------------------------------------
> override_dh_autoreconf:
> 	sed s/libast/libstarlink_ast/g -i Makefile.am
> 	AUTOMAKE="automake --foreign" dh_autoreconf
> 
> override_dh_clean:
> 	sed s/libstarlink_ast/libast/g -i Makefile.am
> 	dh_clean
> ------------------------8<-------------------------------------
> 
> The problem is now, that debuild finally calls "dpkg-source
> --after-build", which undoes debian/patches before (or without) calling
> dh_clean. Since debian/patches works with the original names (libast),
> undoing the patches fails.

Maybe try to move the second sed call from _clean to _autoreconf
directly after the dh_autoreconf invocation?

(Disclaimer: haven't tried and haven't thought about side effects.)
 
Cheers,
gregor
 
-- 
 .''`.  Homepage: http://info.comodo.priv.at/ - OpenPGP key 0xBB3A68018649AA06
 : :' : Debian GNU/Linux user, admin, and developer  -  http://www.debian.org/
 `. `'  Member of VIBE!AT & SPI, fellow of the Free Software Foundation Europe
   `-   You're dead, Jim.  -- McCoy, "Amok Time", stardate 3372.7 


Reply to: