Bug#966885: spring: FTBFS: SHA512.cpp:25:3: error: ‘snprintf’ was not declared in this scope

Steve Langasek steve.langasek at canonical.com
Tue Aug 4 21:49:01 BST 2020


Package: spring
Version: 104.0+dfsg-6
Followup-For: Bug #966885
User: ubuntu-devel at lists.ubuntu.com
Usertags: origin-ubuntu groovy ubuntu-patch

Hi Markus,

Attached is a patch for this issue which I have uploaded to Ubuntu, to
unblock the icu67 transition.

Thanks,
-- 
Steve Langasek                   Give me a lever long enough and a Free OS
Debian Developer                   to set it on, and I can move the world.
Ubuntu Developer                                   https://www.debian.org/
slangasek at ubuntu.com                                     vorlon at debian.org
-------------- next part --------------
diff -Nru spring-104.0+dfsg/debian/patches/gcc10-ftbfs.patch spring-104.0+dfsg/debian/patches/gcc10-ftbfs.patch
--- spring-104.0+dfsg/debian/patches/gcc10-ftbfs.patch	1969-12-31 16:00:00.000000000 -0800
+++ spring-104.0+dfsg/debian/patches/gcc10-ftbfs.patch	2020-08-04 13:16:12.000000000 -0700
@@ -0,0 +1,17 @@
+Description: Fix build failure with gcc 10 due to missing include.
+Author: Steve Langasek <steve.langasek at ubuntu.com>
+Last-Update: 2020-08-04
+Bug-Debian: https://bugs.debian.org/966885
+
+Index: spring-104.0+dfsg-6ubuntu1/rts/System/Sync/SHA512.cpp
+===================================================================
+--- spring-104.0+dfsg-6ubuntu1.orig/rts/System/Sync/SHA512.cpp
++++ spring-104.0+dfsg-6ubuntu1/rts/System/Sync/SHA512.cpp
+@@ -2,6 +2,7 @@
+ 
+ #include <cassert>
+ #include <cstring>
++#include <cstdio>
+ 
+ #include "SHA512.hpp"
+ 
diff -Nru spring-104.0+dfsg/debian/patches/series spring-104.0+dfsg/debian/patches/series
--- spring-104.0+dfsg/debian/patches/series	2020-04-05 14:27:28.000000000 -0700
+++ spring-104.0+dfsg/debian/patches/series	2020-08-04 13:16:12.000000000 -0700
@@ -6,3 +6,4 @@
 glstub.patch
 use-sdl2-config.cmake.patch
 bug-954722.patch
+gcc10-ftbfs.patch


More information about the Pkg-games-devel mailing list