diff --git a/pulseaudio-11.1-glibc_memfd.patch b/pulseaudio-11.1-glibc_memfd.patch new file mode 100644 index 0000000..085b7c9 --- /dev/null +++ b/pulseaudio-11.1-glibc_memfd.patch @@ -0,0 +1,15 @@ +diff -up pulseaudio-11.1/src/pulsecore/memfd-wrappers.h.glibc_memfd pulseaudio-11.1/src/pulsecore/memfd-wrappers.h +--- pulseaudio-11.1/src/pulsecore/memfd-wrappers.h.glibc_memfd 2016-08-23 07:50:11.000000000 -0500 ++++ pulseaudio-11.1/src/pulsecore/memfd-wrappers.h 2018-01-22 12:30:23.322574380 -0600 +@@ -33,9 +33,9 @@ + * a whole conflicts with the original glibc header . + */ + +-static inline int memfd_create(const char *name, unsigned int flags) { ++/* static inline int memfd_create(const char *name, unsigned int flags) { + return syscall(SYS_memfd_create, name, flags); +-} ++} */ + + /* memfd_create(2) flags */ + diff --git a/pulseaudio.spec b/pulseaudio.spec index 50f4a12..b53875a 100644 --- a/pulseaudio.spec +++ b/pulseaudio.spec @@ -62,6 +62,10 @@ Patch203: pulseaudio-8.99.2-getaffinity.patch # to mitigate http://bugzilla.redhat.com/1510301 Patch204: pulseaudio-11.1-exit_idle_time.patch +# workaround rawhide build failures, avoid dup'd memfd_create declaration +# https://bugs.freedesktop.org/show_bug.cgi?id=104733 +Patch205: pulseaudio-11.1-glibc_memfd.patch + ## upstream patches Patch4: 0004-alsa-mixer-Add-support-for-usb-audio-in-the-Dell-doc.patch Patch9: 0009-alsa-mixer-set-PCM-Capture-Source-for-iec958-input.patch @@ -291,6 +295,9 @@ This package contains GDM integration hooks for the PulseAudio sound server. %patch202 -p1 -b .disable_flat_volumes %patch203 -p1 -b .affinity %patch204 -p1 -b .exit_idle_time +%if 0%{?fedora} > 27 +%patch205 -p1 -b .glibc_memfd +%endif sed -i.no_consolekit -e \ 's/^load-module module-console-kit/#load-module module-console-kit/' \