Github messages for voidlinux
 help / color / mirror / Atom feed
From: toluschr <toluschr@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] New package: gamemode-1.5.1
Date: Tue, 21 Apr 2020 20:14:13 +0200	[thread overview]
Message-ID: <20200421181413.y368pSV8cwqwMJPAk89bwyphX5c2jHE5N6w0px1HXu0@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-20653@inbox.vuxu.org>

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

There is an updated pull request by toluschr against master on the void-packages repository

https://github.com/toluschr/void-packages add-gamemode
https://github.com/void-linux/void-packages/pull/20653

New package: gamemode-1.5.1
I had nothing else to do, so I fetched Hyper-KVM's PR (#20424), added the lutris patch and made the changes requested by @Duncaen and @Chocimier

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

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

From 3f1f4f4ef123b7ef0426b4279041e0f95fa23acd Mon Sep 17 00:00:00 2001
From: toluschr <toluschr@protonmail.com>
Date: Sat, 4 Apr 2020 18:53:24 +0200
Subject: [PATCH 1/3] New package: inih-r48

---
 common/shlibs         |  2 ++
 srcpkgs/inih-devel    |  1 +
 srcpkgs/inih/template | 27 +++++++++++++++++++++++++++
 3 files changed, 30 insertions(+)
 create mode 120000 srcpkgs/inih-devel
 create mode 100644 srcpkgs/inih/template

diff --git a/common/shlibs b/common/shlibs
index 14e6c812fe2..46d97f0701e 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -2322,6 +2322,8 @@ libct.so.4 freetds-0.95.19_1
 libsybdb.so.5 freetds-0.95.19_1
 libqqwing.so.2 qqwing-1.3.4_1
 libiniparser.so.1 iniparser-4.1_1
+libinih.so.0 inih-r48_1
+libINIReader.so.0 inih-r48_1
 libzita-resampler.so.1 zita-resampler-1.3.0_1
 libmlt.so.6 mlt-6.4.1_1
 libmlt++.so.3 mlt-6.4.1_1
diff --git a/srcpkgs/inih-devel b/srcpkgs/inih-devel
new file mode 120000
index 00000000000..e7c667bc405
--- /dev/null
+++ b/srcpkgs/inih-devel
@@ -0,0 +1 @@
+inih
\ No newline at end of file
diff --git a/srcpkgs/inih/template b/srcpkgs/inih/template
new file mode 100644
index 00000000000..6ad3298b6f2
--- /dev/null
+++ b/srcpkgs/inih/template
@@ -0,0 +1,27 @@
+# Template file for 'inih'
+pkgname=inih
+version=r48
+revision=1
+build_style=meson
+hostmakedepends="ninja"
+short_desc="Simple .INI file parser written in C"
+maintainer="Hyper-KVM <hyperkvmx86@gmail.com>"
+license="BSD-3-Clause"
+homepage="https://github.com/benhoyt/inih"
+distfiles="https://github.com/benhoyt/inih/archive/${version}.tar.gz"
+checksum=e4596c6bdae4df80765aa40eed2fa7df0eb7fef03cedd8da67e8e8061db3fbd8
+
+post_install() {
+	vlicense LICENSE.txt
+}
+
+inih-devel_package() {
+	short_desc+=" - development files"
+	depends="${sourcepkg}>=${version}_${revision}"
+	pkg_install() {
+		vmove usr/include
+		vmove "usr/lib/*.a"
+		vmove "/usr/lib/*.so"
+		vmove usr/lib/pkgconfig
+	}
+}

From a3bcac3d464afcd401f053bb6a66423c70da4c10 Mon Sep 17 00:00:00 2001
From: toluschr <toluschr@protonmail.com>
Date: Sat, 4 Apr 2020 19:00:23 +0200
Subject: [PATCH 2/3] New package: gamemode-1.5.1

---
 common/shlibs                               |  2 ++
 srcpkgs/gamemode/patches/001-fix-musl.patch | 10 ++++++
 srcpkgs/gamemode/template                   | 37 +++++++++++++++++++++
 srcpkgs/libgamemode                         |  1 +
 srcpkgs/libgamemode-devel                   |  1 +
 5 files changed, 51 insertions(+)
 create mode 100644 srcpkgs/gamemode/patches/001-fix-musl.patch
 create mode 100644 srcpkgs/gamemode/template
 create mode 120000 srcpkgs/libgamemode
 create mode 120000 srcpkgs/libgamemode-devel

diff --git a/common/shlibs b/common/shlibs
index 46d97f0701e..f8d75616275 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -493,6 +493,8 @@ libxenvchan.so.4.10 xen-libs-4.10.0_1
 libfsimage.so.1.0 xen-libs-4.10.0_1
 libxenstat.so.0 xen-libs-4.10.0_1
 libfam.so.0 gamin-0.1.10_1
+libgamemode.so.0 libgamemode-1.5.1_1
+libgamemodeauto.so.0 libgamemode-1.5.1_1
 libgamin-1.so.0 gamin-0.1.10_1
 libKF5SyntaxHighlighting.so.5 syntax-highlighting-5.29.0_1
 libKF5Libkleo.so.5 libkleo-17.12.3_1
diff --git a/srcpkgs/gamemode/patches/001-fix-musl.patch b/srcpkgs/gamemode/patches/001-fix-musl.patch
new file mode 100644
index 00000000000..eb1fafb11a6
--- /dev/null
+++ b/srcpkgs/gamemode/patches/001-fix-musl.patch
@@ -0,0 +1,10 @@
+--- daemon/gamemode-context.c
++++ daemon/gamemode-context.c
+@@ -50,6 +50,7 @@ POSSIBILITY OF SUCH DAMAGE.
+ #include <sys/time.h>
+ #include <systemd/sd-daemon.h> /* TODO: Move usage to gamemode-dbus.c */
+ #include <unistd.h>
++#include <signal.h>
+ 
+ /**
+  * The GameModeClient encapsulates the remote connection, providing a list
diff --git a/srcpkgs/gamemode/template b/srcpkgs/gamemode/template
new file mode 100644
index 00000000000..553d2c22a97
--- /dev/null
+++ b/srcpkgs/gamemode/template
@@ -0,0 +1,37 @@
+# Template file for 'gamemode'
+pkgname=gamemode
+version=1.5.1
+revision=1
+build_style=meson
+configure_args="-Dwith-examples=false -Dwith-systemd=false -Dwith-dbus-service-dir=/usr/share/dbus-1/services --prefix=/usr --buildtype debugoptimized"
+hostmakedepends="git cmake meson ninja pkg-config"
+makedepends="inih-devel dbus-devel elogind-devel"
+depends="lib${pkgname}>=${version}_${revision} polkit"
+short_desc="Optimise Linux system performance on demand"
+maintainer="Hyper-KVM <hyperkvmx86@gmail.com>"
+license="BSD-3-Clause"
+homepage="https://github.com/FeralInteractive/gamemode"
+distfiles="https://github.com/FeralInteractive/gamemode/archive/${version}.tar.gz"
+checksum=c510fd1391263c6fa05570de840865b1f0c8d573a7acbf488027327ae5a3bbde
+
+libgamemode_package() {
+	short_desc+=" - shared libraries"
+	pkg_install() {
+		vmove "usr/lib/*.so*"
+	}
+}
+
+libgamemode-devel_package() {
+	short_desc+=" - development files"
+	depends="lib${sourcepkg}>=${version}_${revision}"
+	pkg_install() {
+		vmove "usr/lib/*.so"
+		vmove usr/lib/pkgconfig
+		vmove usr/include
+	}
+}
+
+post_install() {
+	vsconf example/gamemode.ini
+	vlicense LICENSE.txt
+}
diff --git a/srcpkgs/libgamemode b/srcpkgs/libgamemode
new file mode 120000
index 00000000000..d1810c733eb
--- /dev/null
+++ b/srcpkgs/libgamemode
@@ -0,0 +1 @@
+gamemode
\ No newline at end of file
diff --git a/srcpkgs/libgamemode-devel b/srcpkgs/libgamemode-devel
new file mode 120000
index 00000000000..d1810c733eb
--- /dev/null
+++ b/srcpkgs/libgamemode-devel
@@ -0,0 +1 @@
+gamemode
\ No newline at end of file

From bc575fe27a256933d3f6b65ecdadbdd1f71070aa Mon Sep 17 00:00:00 2001
From: toluschr <toluschr@protonmail.com>
Date: Sat, 4 Apr 2020 18:57:35 +0200
Subject: [PATCH 3/3] lutris: Preload correct gamemode shlib

---
 srcpkgs/lutris/patches/001-fix-gamemode.patch | 22 +++++++++++++++++++
 srcpkgs/lutris/template                       |  2 +-
 2 files changed, 23 insertions(+), 1 deletion(-)
 create mode 100644 srcpkgs/lutris/patches/001-fix-gamemode.patch

diff --git a/srcpkgs/lutris/patches/001-fix-gamemode.patch b/srcpkgs/lutris/patches/001-fix-gamemode.patch
new file mode 100644
index 00000000000..d768b0f6abd
--- /dev/null
+++ b/srcpkgs/lutris/patches/001-fix-gamemode.patch
@@ -0,0 +1,22 @@
+--- lutris/game.py
++++ lutris/game.py
+@@ -513,7 +513,7 @@ class Game(GObject.Object):
+             env["LD_PRELOAD"] = ":".join(
+                 [
+                     path
+-                    for path in [env.get("LD_PRELOAD"), "libgamemodeauto.so", ]
++                    for path in [env.get("LD_PRELOAD"), "libgamemodeauto.so.0", ]
+                     if path
+                 ]
+             )
+
+--- lutris/util/linux.py
++++ lutris/util/linux.py
+@@ -78,7 +78,7 @@ SYSTEM_COMPONENTS = {
+         "VULKAN": ["libvulkan.so.1"],
+         "WINE": ["libsqlite3.so.0"],
+         "RADEON": ["libvulkan_radeon.so"],
+-        "GAMEMODE": ["libgamemodeauto.so"],
++        "GAMEMODE": ["libgamemodeauto.so.0"],
+     },
+ }
diff --git a/srcpkgs/lutris/template b/srcpkgs/lutris/template
index 7f7373a8be3..fe6544ba5c7 100644
--- a/srcpkgs/lutris/template
+++ b/srcpkgs/lutris/template
@@ -1,7 +1,7 @@
 # Template file for 'lutris'
 pkgname=lutris
 version=0.5.5
-revision=1
+revision=2
 archs=noarch
 build_style=python3-module
 build_helper="gir"

  parent reply	other threads:[~2020-04-21 18:14 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-04 18:08 [PR PATCH] " toluschr
2020-04-19  9:59 ` [PR PATCH] [Updated] " toluschr
2020-04-19 10:15 ` toluschr
2020-04-21 18:13 ` [PR PATCH] [Updated] " toluschr
2020-04-21 18:14 ` toluschr [this message]
2020-05-25 13:53 ` toluschr
2020-05-25 17:31 ` [PR PATCH] [Closed]: " toluschr
  -- strict thread matches above, loose matches on Subject: below --
2020-05-25 17:59 [PR PATCH] " toluschr
2020-05-25 18:10 ` [PR PATCH] [Updated] " toluschr
2020-09-13 17:46 ` toluschr
2020-09-13 17:50 ` toluschr
2020-09-13 17:55 ` toluschr
     [not found] <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-20424@inbox.vuxu.org>
2020-04-02 21:49 ` Hyper-KVM
2020-04-03  2:15 ` Hyper-KVM
2020-04-03  2:33 ` Hyper-KVM
2020-04-04 15:35 ` Hyper-KVM

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200421181413.y368pSV8cwqwMJPAk89bwyphX5c2jHE5N6w0px1HXu0@z \
    --to=toluschr@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).