workaround rawhide FTBFS
avoid dup memfd_create declaration
This commit is contained in:
parent
95d5f4a3f1
commit
fb2e1c2e67
15
pulseaudio-11.1-glibc_memfd.patch
Normal file
15
pulseaudio-11.1-glibc_memfd.patch
Normal file
@ -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 <fnctl.h>.
|
||||
*/
|
||||
|
||||
-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 */
|
||||
|
||||
@ -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/' \
|
||||
|
||||
Loading…
Reference in New Issue
Block a user