Re: Conditionally applying an architecture-dependent patch
On Mon, Nov 27, 2006, Shaun Jackman wrote:
> When using CDBS, what is the best way to conditionally apply an
> architecture-dependent patch. I'm using CDBS, but not yet using a
> patch system such as simple-patchsys, dpatch, or quilt, so
> recommendations of a patch system are welcome. Currently I have...
If you use simple-patchsys, you can prepend before any "include" line:
ifeq ($(DEB_HOST_ARCH),m68k)
DEB_PATCHDIRS = debian/patches debian/patches/$(DEB_HOST_ARCH)
endif
to add debian/patches/m68k to the list of directories with patches to
apply.
Obviously, this can be adapted for many use cases, and different patch
orders.
--
Loïc Minier <lool@dooz.org>
"You see, killbots have a preset kill limit. Knowing their weakness,
I sent wave after wave of my own men at them until they reached their
limit and shutdown." -- Zapp Brannigan
Reply to: