You are not logged in.
Hi
Is there a way to make a PKGBUILD build() proceed when it encounters a failed patch and just ignore/skip that patch? Preferrably using "git am" as patching tool.
the reason I ask is that I am trying to package LLVMlinux and it contains a ton of patches but right now it blocks at the first one not applying cleanly.
By automatically skipping and printing out an error message, one could go back and adress those patches if needed.
My AUR packages
Any package of mine is up for grabs. If you think you could mantain it better - just contact me!
Offline
patch <params> || echo "Patch xy failed"
But I think it is not really good idea...
Offline
BUILD() FUNCTION
In addition to the above directives, the optional build() function usually comprises the remainder of the PKGBUILD. This is directly sourced and executed by makepkg, so anything that bash or the system has available is available for use here. The function is run in bash -e mode, meaning any command that exits with a non-zero status will cause the function to exit.
Offline
Thankst for the tips! This helped with getting the build to run. I still need to provide some fixed patches to overwrite those that currently do not apply.
the older LLL linux kernel built nicely but there it was a fixed version which made patching less of a moving target.
My AUR packages
Any package of mine is up for grabs. If you think you could mantain it better - just contact me!
Offline