[arch-commits] Commit in supertux/trunk (2 files)
Evangelos Foutras
foutrelis at archlinux.org
Tue Jun 8 19:47:55 UTC 2021
Date: Tuesday, June 8, 2021 @ 19:47:55
Author: foutrelis
Revision: 959879
Fix build with GCC 11 (patch from Alpine)
Added:
supertux/trunk/missing-include-for-FLT_EPSILON.patch
Modified:
supertux/trunk/PKGBUILD
---------------------------------------+
PKGBUILD | 11 +++++++++--
missing-include-for-FLT_EPSILON.patch | 13 +++++++++++++
2 files changed, 22 insertions(+), 2 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2021-06-08 19:47:17 UTC (rev 959878)
+++ PKGBUILD 2021-06-08 19:47:55 UTC (rev 959879)
@@ -13,9 +13,16 @@
license=('GPL')
depends=('sdl2_image' 'curl' 'openal' 'libvorbis' 'glew' 'physfs' 'freetype2' 'boost-libs' 'hicolor-icon-theme')
makedepends=('cmake' 'boost' 'mesa' 'optipng')
-source=("https://github.com/SuperTux/supertux/releases/download/v${pkgver}/SuperTux-v${pkgver}-Source.tar.gz")
-sha512sums=('5baa783ee589b42a9bbce3740659dbb7b617ebfcc00c0a038c03d31b56700e3923c8548700ccebe42b325ca03bd85186bc5edef9f6580d93dc48d8aca88cbf74')
+source=("https://github.com/SuperTux/supertux/releases/download/v${pkgver}/SuperTux-v${pkgver}-Source.tar.gz"
+ missing-include-for-FLT_EPSILON.patch)
+sha512sums=('5baa783ee589b42a9bbce3740659dbb7b617ebfcc00c0a038c03d31b56700e3923c8548700ccebe42b325ca03bd85186bc5edef9f6580d93dc48d8aca88cbf74'
+ '4e4116cb0dc7f996cdb96484eac99bd7f5a16829f6b082cc2e4c17b22e6e2f34501b8e3e4caf3c956369c5cd6caa12179b8a4cb1f93c2c8c8b014e3829272cb3')
+prepare() {
+ cd "SuperTux-v${pkgver}-Source"
+ patch -Np1 -i ../missing-include-for-FLT_EPSILON.patch
+}
+
build() {
cd "SuperTux-v${pkgver}-Source"
Added: missing-include-for-FLT_EPSILON.patch
===================================================================
--- missing-include-for-FLT_EPSILON.patch (rev 0)
+++ missing-include-for-FLT_EPSILON.patch 2021-06-08 19:47:55 UTC (rev 959879)
@@ -0,0 +1,13 @@
+diff --git a/src/supertux/game_session.cpp b/src/supertux/game_session.cpp
+index 41de52e..a8ebfc9 100644
+--- a/src/supertux/game_session.cpp
++++ b/src/supertux/game_session.cpp
+@@ -14,6 +14,8 @@
+ // You should have received a copy of the GNU General Public License
+ // along with this program. If not, see <http://www.gnu.org/licenses/>.
+
++#include <cfloat>
++
+ #include "supertux/game_session.hpp"
+
+ #include "audio/sound_manager.hpp"
More information about the arch-commits
mailing list