Explicitly comment out the patch specific to GCC8+

%apply_patches does not take %if constructs into account, still tries
to apply the patch even if the condition is not met, and fails.
The following warning is printed:

  /bin/cat: %PATCH105: No such file or directory

Commented out the patch so that it would remain visible but ignored.

Fixes: d7f0f244 "Use the patch specific for GCC8+ only for ROSA 2019.0
or newer"
This commit is contained in:
Evgenii Shatokhin 2020-03-24 15:15:07 +03:00
parent 37fc86adf3
commit b4c584e752

View file

@ -178,10 +178,10 @@ Patch101: perf-xmlto-skip-validation.patch
# http://bugs.rosalinux.ru/show_bug.cgi?id=6459 # http://bugs.rosalinux.ru/show_bug.cgi?id=6459
Patch102: audit-make-it-less-verbose.patch Patch102: audit-make-it-less-verbose.patch
%if %{mdvver} >= 201900 #if #{mdvver} >= 201900
# May help when building with GCC 8+. # May help when building with GCC 8+.
Patch105: perf-silence-format-warnings-gcc8.patch #Patch105: perf-silence-format-warnings-gcc8.patch
%endif #endif
# AUFS from http://aufs.sourceforge.net/ # AUFS from http://aufs.sourceforge.net/
Patch109: fs-aufs.patch Patch109: fs-aufs.patch