From 30738256068415512bcb2843cc068329403ca747 Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Thu, 14 Nov 2024 02:18:45 +0200 Subject: [PATCH] freeciv-3.2: Add Signed-off-by: Marko Lindqvist --- .../freeciv/freeciv/allow-root-S3_2.patch | 27 +++++++++++++++++++ recipes-games/freeciv/freeciv_3.2.0-alpha4.bb | 16 +++++++++++ 2 files changed, 43 insertions(+) create mode 100644 recipes-games/freeciv/freeciv/allow-root-S3_2.patch create mode 100644 recipes-games/freeciv/freeciv_3.2.0-alpha4.bb diff --git a/recipes-games/freeciv/freeciv/allow-root-S3_2.patch b/recipes-games/freeciv/freeciv/allow-root-S3_2.patch new file mode 100644 index 0000000..eadf6df --- /dev/null +++ b/recipes-games/freeciv/freeciv/allow-root-S3_2.patch @@ -0,0 +1,27 @@ +Upstream-Status: Inappropriate + +diff --git a/configure.ac b/configure.ac +index 657a3689e2..0f3e87a6a1 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -756,6 +756,8 @@ dnl Defaults to override with host specific values + HOST_PATH_SEPARATOR=":" + HOST_DIR_SEPARATOR="/" + ++AC_DEFINE([ALWAYS_ROOT], [1], [Can execute program as root - OpenEmbedded]) ++ + dnl Settings specific to host OS + case "$host_os" in + +diff --git a/meson.build b/meson.build +index 0fa23a94c7..6471de9f3f 100644 +--- a/meson.build ++++ b/meson.build +@@ -312,6 +312,7 @@ else + priv_conf_data.set('ALWAYS_ROOT', 1) + else + pub_conf_data.set('FREECIV_HAVE_PTHREAD', 1) ++ priv_conf_data.set('ALWAYS_ROOT', 1) + net_dep = [] + endif + endif diff --git a/recipes-games/freeciv/freeciv_3.2.0-alpha4.bb b/recipes-games/freeciv/freeciv_3.2.0-alpha4.bb new file mode 100644 index 0000000..6d4b9ba --- /dev/null +++ b/recipes-games/freeciv/freeciv_3.2.0-alpha4.bb @@ -0,0 +1,16 @@ + +require freeciv-qt6.inc + +DEFAULT_PREFERENCE = "-2" + +DEPENDS += "tolua-native lua" + +SRC_URI += "\ +git://github.com/freeciv/freeciv.git;protocol=https;branch=S3_2 \ +file://allow-root-S3_2.patch \ +" + +SRCREV="cf06c4b0eea932e6ee9919f13b84b6bea8713aa7" +PN = "freeciv" +PV = "3.2.0-alpha4" +S = "${WORKDIR}/git"