On 4/4/20 7:31 PM, Stefan Seyfried wrote:
Am 04.04.20 um 10:48 schrieb Axel Braun:
Hi,
How can I apply a --fuzz=2 to a %patch0 -p1 command in a specfile? (adding the parameter does obviously not work....)
you could redefine %_default_patch_fuzz before and after the %patch0 line.
But why don't you just rebase the patch so it applies without fuzz?
Easy way to do that. 1. Install quilt 2. cd to a local checkout from obs 3. quilt setup -v packagename.spec 4. cd into <packagename>-<versionnumber> 5. Loop for each patch a. quilt push b. if the output mentions fuzz i. quilt refresh If you have a patch that no longer applies cleanly causing a build fail you can skip straight to it with "quilt push -a", you can then force it with "quilt push -f" and you'll get a nice file for each file where the patch didn't cleanly apply telling you what you need to fix you can also use "quilt new" followed by "quilt add" followed by "quilt refresh" to create a new patch reasonably easily. * Disclaimer I've done all this enough times to write the above from memory there is a chance I got something slightly wrong in doing so. https://savannah.nongnu.org/projects/quilt -- Simon Lees (Simotek) http://simotek.net Emergency Update Team keybase.io/simotek SUSE Linux Adelaide Australia, UTC+10:30 GPG Fingerprint: 5B87 DB9D 88DC F606 E489 CEC5 0922 C246 02F0 014B