[opensuse-packaging] Applying a fuzz to a patch
Hi, How can I apply a --fuzz=2 to a %patch0 -p1 command in a specfile? (adding the parameter does obviously not work....) Thx Axel -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
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? -- Stefan Seyfried "For a successful technology, reality must take precedence over public relations, for nature cannot be fooled." -- Richard Feynman -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
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
Hello Stefan, Am Samstag, 4. April 2020, 11:01:48 CEST schrieb Stefan Seyfried:
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.
How is that supposed to work (no documentation found on wiki)?
But why don't you just rebase the patch so it applies without fuzz?
Yes, that could be an option as well Cheers Axel -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
On 4/5/20 6:34 AM, Axel Braun wrote:
Hello Stefan,
Am Samstag, 4. April 2020, 11:01:48 CEST schrieb Stefan Seyfried:
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.
How is that supposed to work (no documentation found on wiki)?
That is likely becaues generally people are encouraged to rebase there patches instead. -- 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
participants (3)
-
Axel Braun
-
Simon Lees
-
Stefan Seyfried