You are not logged in.
Hello !
I'm maintaining the following packages dwm-keycodes and st-alpha which are famous suckless programms patched for my own needs.
I would like to go further and create packages where anybody can just set the desired patches (directly in the PKGBUILD ?) and just create their custom package, and the PKGBUILD takes care of everything. One problem I have is that some patches are in conflict with each other, which blocks the automation of the process.
Do you guys know any tool / method to avoid this ? For example, a tool that "understands" what patch 1 does, and automaticaly regenerates patch 2 so that the patches can be chained ?
Example :
----
File.txt :
foo
bar
----
patch1.diff :
foo
bar
+foobar
----
patch2.diff :
foo
bar
+barfoo
Here if I apply patch1 then patch2, I will get a conflict, whereas it just need patch or whatever tool to be aware of what previous patches did, to get for example :
----
patch-combined.diff :
foo
bar
+foobar
+barfoo
(Or an updated version of patch2)
Hope my problem is clear, I have thought of applying patches separately in different folders than
merge
all the files of these folders, but I hope there's a better solution
Thanks for reading !
-- f1she3
-- fishe3 - Fool me once --
Offline
Hi, thanks for your answer and sorry for the delay, I'll have a look as soon as I got a bit of time, thanks for the ressource
-- fishe3 - Fool me once --
Offline