Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 800218 - mail-filter/libspf2-1.2.10 fails to apply patch
Summary: mail-filter/libspf2-1.2.10 fails to apply patch
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-07-03 21:42 UTC by doj
Modified: 2021-07-04 01:25 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description doj 2021-07-03 21:42:31 UTC
mail-filter/libspf2-1.2.10 fails to build. The patch file doesn't apply cleanly:

coated ~ # cat /var/tmp/portage/mail-filter/libspf2-1.2.10/temp/build.log
 * Package:    mail-filter/libspf2-1.2.10
 * Repository: gentoo
 * USE:        abi_x86_64 amd64 elibc_glibc kernel_linux userland_GNU
 * FEATURES:   network-sandbox nostrip preserve-libs sandbox userpriv usersandbox
>>> Unpacking source...
>>> Unpacking libspf2-1.2.10.tar.gz to /var/tmp/portage/mail-filter/libspf2-1.2.10/work
>>> Source unpacked in /var/tmp/portage/mail-filter/libspf2-1.2.10/work
>>> Preparing source in /var/tmp/portage/mail-filter/libspf2-1.2.10/work/libspf2-1.2.10 ...
 * Applying libspf2-1.2.10-gcc5.patch ...  
 * Applying libspf2-1.2.10-mga-varargs.patch ...
patching file src/include/spf_log.h
Hunk #1 FAILED at 60.
1 out of 1 hunk FAILED -- saving rejects to file src/include/spf_log.h.rej
 * ERROR: mail-filter/libspf2-1.2.10::gentoo failed (prepare phase):
 *   patch -p1  failed with /etc/portage/patches/mail-filter/libspf2/libspf2-1.2.10-mga-varargs.patch


strangely in my portage tree I only find the libspf2-1.2.10-gcc5.patch file,
and I don't know where this build log finds the libspf2-1.2.10-mga-varargs.patch file.
In any way I've simply removed applying the libspf2-1.2.10-gcc5.patch from my local ebuild file,
and my gcc 10.3.0 compiled the source code without any patches just fine.

Reproducible: Always
Comment 1 Ionen Wolkens gentoo-dev 2021-07-04 01:25:52 UTC
(In reply to doj from comment #0)
> strangely in my portage tree I only find the libspf2-1.2.10-gcc5.patch file,
> and I don't know where this build log finds the
> libspf2-1.2.10-mga-varargs.patch file.
well, it's showing the patch in the error:

> /etc/portage/patches/mail-filter/libspf2/libspf2-1.2.10-mga-varargs.patch
This appears to be your own patch, maybe you added it for one reason or another long ago and forgot about it. Just remove it.

A recent'ish change is that this ebuild was ported to EAPI-7 and so it started actually applying user patches like the rest.