Add patch to properly #include<string.h> where needed

This commit is contained in:
Björn Esser 2025-01-19 21:48:02 +01:00
commit 8ac93b3ebf
No known key found for this signature in database
GPG key ID: F52E98007594C21D
2 changed files with 17 additions and 2 deletions

View file

@ -0,0 +1,10 @@
Index: 2048-cli-0.9.1/src/gfx_sdl.c
===================================================================
--- 2048-cli-0.9.1.orig/src/gfx_sdl.c
+++ 2048-cli-0.9.1/src/gfx_sdl.c
@@ -1,4 +1,5 @@
#include <stdlib.h>
+#include <string.h>
#include <SDL.h>
#include <SDL_ttf.h>
#include "merge.h"

View file

@ -25,7 +25,7 @@
Name: 2048-cli
Version: 0.9.1
Release: 22%{?gitrel}%{?dist}
Release: 23%{?gitrel}%{?dist}
Summary: The game 2048 for your Linux terminal
License: MIT
@ -38,6 +38,8 @@ Source0: %{url}/archive/v%{version}.tar.gz#/%{gittar}
Source0: %{url}/archive/%{commit}.tar.gz#/%{gittar}
%endif # 0%%{?rel_build}
Patch0000: %{name}-%{version}-include-string-h.patch
BuildRequires: gcc
BuildRequires: ncurses-devel
@ -68,7 +70,7 @@ A SDL version of the game 2048 for your Linux terminal.
%prep
%setup -q%{!?rel_build:n %{name}-%{commit}}
%autosetup -p 1 %{!?rel_build:-n %{name}-%{commit}}
%build
@ -124,6 +126,9 @@ export TTF_FONT_PATH="%{_datadir}/fonts/liberation/LiberationMono-Regular.ttf"
%changelog
* Sun Jan 19 2025 Björn Esser <besser82@fedoraproject.org> - 0.9.1-23
- Add patch to properly #include<string.h> where needed
* Thu Jan 16 2025 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.1-22
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild