Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] supertuxkart: update to 1.3.
@ 2021-10-01  8:41 ericonr
  2021-10-01  8:41 ` [PR PATCH] [Merged]: " ericonr
  0 siblings, 1 reply; 2+ messages in thread
From: ericonr @ 2021-10-01  8:41 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1586 bytes --]

There is a new pull request by ericonr against master on the void-packages repository

https://github.com/ericonr/void-packages stk
https://github.com/void-linux/void-packages/pull/33207

supertuxkart: update to 1.3.
<!-- Mark items with [x] where applicable -->

#### General
- [ ] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)

#### Have the results of the proposed changes been tested?
- [ ] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR

<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->
<!-- 
#### Does it build and run successfully? 
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [ ] I built this PR locally for my native architecture, (ARCH-LIBC)
- [ ] I built this PR locally for these architectures (if supported. mark crossbuilds):
  - [ ] aarch64-musl
  - [ ] armv7l
  - [ ] armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/33207.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-stk-33207.patch --]
[-- Type: text/x-diff, Size: 8447 bytes --]

From 743c37630b2bf0b7b7ca293b662f8def5bc0285f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C3=89rico=20Nogueira?= <erico.erc@gmail.com>
Date: Fri, 1 Oct 2021 05:41:22 -0300
Subject: [PATCH] supertuxkart: update to 1.3.

---
 ...3c9c26da5520f2eaa02f2458971ba07f2aad.patch | 106 ------------------
 .../supertuxkart/patches/ns_name_ntop.patch   |  17 ---
 srcpkgs/supertuxkart/template                 |   6 +-
 3 files changed, 3 insertions(+), 126 deletions(-)
 delete mode 100644 srcpkgs/supertuxkart/patches/61833c9c26da5520f2eaa02f2458971ba07f2aad.patch
 delete mode 100644 srcpkgs/supertuxkart/patches/ns_name_ntop.patch

diff --git a/srcpkgs/supertuxkart/patches/61833c9c26da5520f2eaa02f2458971ba07f2aad.patch b/srcpkgs/supertuxkart/patches/61833c9c26da5520f2eaa02f2458971ba07f2aad.patch
deleted file mode 100644
index 18dd7a6ef9c5..000000000000
--- a/srcpkgs/supertuxkart/patches/61833c9c26da5520f2eaa02f2458971ba07f2aad.patch
+++ /dev/null
@@ -1,106 +0,0 @@
-From 61833c9c26da5520f2eaa02f2458971ba07f2aad Mon Sep 17 00:00:00 2001
-From: Benau <Benau@users.noreply.github.com>
-Date: Sun, 29 Nov 2020 12:42:11 +0800
-Subject: [PATCH] Fix compilation with latest SDL
-
----
- src/input/gamepad_config.cpp | 55 ++++++++++++++++++------------------
- 1 file changed, 27 insertions(+), 28 deletions(-)
-
-diff --git src/input/gamepad_config.cpp src/input/gamepad_config.cpp
-index 7c6f632099..c060e7a5a7 100644
---- a/src/input/gamepad_config.cpp
-+++ b/src/input/gamepad_config.cpp
-@@ -32,8 +32,7 @@
- #include "input/sdl_controller.hpp"
- #include <array>
- 
--static_assert(SDL_CONTROLLER_BUTTON_MAX - 1 == SDL_CONTROLLER_BUTTON_DPAD_RIGHT, "non continous name");
--enum AxisWithDirection
-+enum AxisWithDirection : unsigned
- {
-     SDL_CONTROLLER_AXIS_LEFTX_RIGHT = SDL_CONTROLLER_BUTTON_MAX,
-     SDL_CONTROLLER_AXIS_LEFTX_LEFT,
-@@ -140,56 +139,56 @@ void GamepadConfig::setDefaultBinds ()
- core::stringw GamepadConfig::getBindingAsString(const PlayerAction action) const
- {
- #ifndef SERVER_ONLY
--    std::array<core::stringw, SDL_CONTROLLER_AXIS_WITH_DIRECTION_AND_BUTTON_MAX> readable =
-+    std::map<unsigned, core::stringw> readable =
-     {{
--        "A", // SDL_CONTROLLER_BUTTON_A
--        "B", // SDL_CONTROLLER_BUTTON_B
--        "X", // SDL_CONTROLLER_BUTTON_X
--        "Y", // SDL_CONTROLLER_BUTTON_Y
-+        { SDL_CONTROLLER_BUTTON_A, "A" },
-+        { SDL_CONTROLLER_BUTTON_B, "B" },
-+        { SDL_CONTROLLER_BUTTON_X, "X" },
-+        { SDL_CONTROLLER_BUTTON_Y, "Y" },
-         // I18N: name of buttons on gamepads
--        _("Back"), // SDL_CONTROLLER_BUTTON_BACK
-+        { SDL_CONTROLLER_BUTTON_BACK, _("Back") },
-         // I18N: name of buttons on gamepads
--        _("Guide"), // SDL_CONTROLLER_BUTTON_GUIDE
-+        { SDL_CONTROLLER_BUTTON_GUIDE, _("Guide") },
-         // I18N: name of buttons on gamepads
--        _("Start"), // SDL_CONTROLLER_BUTTON_START
-+        { SDL_CONTROLLER_BUTTON_START, _("Start") },
-         // I18N: name of buttons on gamepads
--        _("Left thumbstick press"), // SDL_CONTROLLER_BUTTON_LEFTSTICK
-+        { SDL_CONTROLLER_BUTTON_LEFTSTICK, _("Left thumbstick press") },
-         // I18N: name of buttons on gamepads
--        _("Right thumbstick press"), // SDL_CONTROLLER_BUTTON_RIGHTSTICK
-+        { SDL_CONTROLLER_BUTTON_RIGHTSTICK, _("Right thumbstick press") },
-         // I18N: name of buttons on gamepads
--        _("Left shoulder"), // SDL_CONTROLLER_BUTTON_LEFTSHOULDER
-+        { SDL_CONTROLLER_BUTTON_LEFTSHOULDER, _("Left shoulder") },
-         // I18N: name of buttons on gamepads
--        _("Right shoulder"), // SDL_CONTROLLER_BUTTON_RIGHTSHOULDER
-+        { SDL_CONTROLLER_BUTTON_RIGHTSHOULDER, _("Right shoulder") },
-         // I18N: name of buttons on gamepads
--        _("DPad up"), // SDL_CONTROLLER_BUTTON_DPAD_UP
-+        { SDL_CONTROLLER_BUTTON_DPAD_UP, _("DPad up") },
-         // I18N: name of buttons on gamepads
--        _("DPad down"), // SDL_CONTROLLER_BUTTON_DPAD_DOWN
-+        { SDL_CONTROLLER_BUTTON_DPAD_DOWN, _("DPad down") },
-         // I18N: name of buttons on gamepads
--        _("DPad left"), // SDL_CONTROLLER_BUTTON_DPAD_LEFT
-+        { SDL_CONTROLLER_BUTTON_DPAD_LEFT, _("DPad left") },
-         // I18N: name of buttons on gamepads
--        _("DPad right"), // SDL_CONTROLLER_BUTTON_DPAD_RIGHT
-+        { SDL_CONTROLLER_BUTTON_DPAD_RIGHT, _("DPad right") },
- 
-         // Below are extensions after SDL2 header SDL_CONTROLLER_BUTTON_MAX
-         // I18N: name of buttons on gamepads
--        _("Left thumbstick right"), // SDL_CONTROLLER_AXIS_LEFTX_RIGHT
-+        { SDL_CONTROLLER_AXIS_LEFTX_RIGHT, _("Left thumbstick right") },
-         // I18N: name of buttons on gamepads
--        _("Left thumbstick left"), // SDL_CONTROLLER_AXIS_LEFTX_LEFT
-+        { SDL_CONTROLLER_AXIS_LEFTX_LEFT, _("Left thumbstick left") },
-         // I18N: name of buttons on gamepads
--        _("Left thumbstick down"), // SDL_CONTROLLER_AXIS_LEFTY_DOWN
-+        { SDL_CONTROLLER_AXIS_LEFTY_DOWN, _("Left thumbstick down") },
-         // I18N: name of buttons on gamepads
--        _("Left thumbstick up"), // SDL_CONTROLLER_AXIS_LEFTY_UP
-+        { SDL_CONTROLLER_AXIS_LEFTY_UP, _("Left thumbstick up") },
-         // I18N: name of buttons on gamepads
--        _("Right thumbstick right"), // SDL_CONTROLLER_AXIS_RIGHTX_RIGHT
-+        { SDL_CONTROLLER_AXIS_RIGHTX_RIGHT, _("Right thumbstick right") },
-         // I18N: name of buttons on gamepads
--        _("Right thumbstick left"), // SDL_CONTROLLER_AXIS_RIGHTX_LEFT
-+        { SDL_CONTROLLER_AXIS_RIGHTX_LEFT, _("Right thumbstick left") },
-         // I18N: name of buttons on gamepads
--        _("Right thumbstick down"), // SDL_CONTROLLER_AXIS_RIGHTY_DOWN
-+        { SDL_CONTROLLER_AXIS_RIGHTY_DOWN, _("Right thumbstick down") },
-         // I18N: name of buttons on gamepads
--        _("Right thumbstick up"), // SDL_CONTROLLER_AXIS_RIGHTY_UP
-+        { SDL_CONTROLLER_AXIS_RIGHTY_UP, _("Right thumbstick up") },
-         // I18N: name of buttons on gamepads
--        _("Left trigger"), // SDL_CONTROLLER_AXIS_TRIGGERLEFT_UP
-+        { SDL_CONTROLLER_AXIS_TRIGGERLEFT_UP, _("Left trigger") },
-         // I18N: name of buttons on gamepads
--        _("Right trigger") // SDL_CONTROLLER_AXIS_TRIGGERRIGHT_UP
-+        { SDL_CONTROLLER_AXIS_TRIGGERRIGHT_UP, _("Right trigger") }
-     }};
- 
-     const Binding &b = getBinding(action);
diff --git a/srcpkgs/supertuxkart/patches/ns_name_ntop.patch b/srcpkgs/supertuxkart/patches/ns_name_ntop.patch
deleted file mode 100644
index d251deaa15a6..000000000000
--- a/srcpkgs/supertuxkart/patches/ns_name_ntop.patch
+++ /dev/null
@@ -1,17 +0,0 @@
-Patch from https://github.com/supertuxkart/stk-code/pull/4361
-
-Necessary because musl does not (yet?) implement ns_name_ntop.
-
-diff --git a/src/network/network_config.cpp b/src/network/network_config.cpp
-index 605254808..fd4fd5d24 100644
---- a/src/network/network_config.cpp
-+++ b/src/network/network_config.cpp
-@@ -587,7 +587,7 @@ void NetworkConfig::fillStunList(std::vector<std::pair<std::string, int> >* l,
-         for (unsigned i = 0; i < srv.size(); i++)
-         {
-             char server_name[512] = {};
--            if (ns_name_ntop(srv[i] + SRV_SERVER, server_name, 512) < 0)
-+            if (ns_name_uncompress(response, response + response_len, srv[i] + SRV_SERVER, server_name, 512) < 0)
-                 continue;
-             uint16_t port = ns_get16(srv[i] + SRV_PORT);
-             uint16_t weight = ns_get16(srv[i] + SRV_WEIGHT);
diff --git a/srcpkgs/supertuxkart/template b/srcpkgs/supertuxkart/template
index 519bc615782d..52cbec801334 100644
--- a/srcpkgs/supertuxkart/template
+++ b/srcpkgs/supertuxkart/template
@@ -1,7 +1,7 @@
 # Template file for 'supertuxkart'
 pkgname=supertuxkart
-version=1.2
-revision=3
+version=1.3
+revision=1
 wrksrc="SuperTuxKart-${version}-src"
 build_style=cmake
 hostmakedepends="pkg-config"
@@ -16,7 +16,7 @@ maintainer="Orphaned <orphan@voidlinux.org>"
 license="GPL-3.0-or-later"
 homepage="https://supertuxkart.net"
 distfiles="https://github.com/${pkgname}/stk-code/releases/download/${version}/SuperTuxKart-${version}-src.tar.xz"
-checksum=052edf0afdbeb99583fe8676fb0ab80ecb6103fb88b7540f858d1b5fa1297d37
+checksum=eeabeb0d9801688a218f6f0a76ea3546a46a322ccaca9a258148ecacfe083ffd
 
 if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
 	makedepends+=" libatomic-devel"

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PR PATCH] [Merged]: supertuxkart: update to 1.3.
  2021-10-01  8:41 [PR PATCH] supertuxkart: update to 1.3 ericonr
@ 2021-10-01  8:41 ` ericonr
  0 siblings, 0 replies; 2+ messages in thread
From: ericonr @ 2021-10-01  8:41 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1439 bytes --]

There's a merged pull request on the void-packages repository

supertuxkart: update to 1.3.
https://github.com/void-linux/void-packages/pull/33207

Description:
<!-- Mark items with [x] where applicable -->

#### General
- [ ] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)

#### Have the results of the proposed changes been tested?
- [ ] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR

<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->
<!-- 
#### Does it build and run successfully? 
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [ ] I built this PR locally for my native architecture, (ARCH-LIBC)
- [ ] I built this PR locally for these architectures (if supported. mark crossbuilds):
  - [ ] aarch64-musl
  - [ ] armv7l
  - [ ] armv6l-musl
-->


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-10-01  8:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-01  8:41 [PR PATCH] supertuxkart: update to 1.3 ericonr
2021-10-01  8:41 ` [PR PATCH] [Merged]: " ericonr

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).