Github messages for voidlinux
 help / color / mirror / Atom feed
From: NeelChotai <NeelChotai@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] New package: OpenRGB-0.3
Date: Tue, 06 Oct 2020 20:03:22 +0200	[thread overview]
Message-ID: <20201006180322.wfglG2jDHNcqEGedAWsY8R733L5Hm_y-VMoYWe1C03w@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-22588@inbox.vuxu.org>

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

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

https://github.com/NeelChotai/void-packages OpenRGB
https://github.com/void-linux/void-packages/pull/22588

New package: OpenRGB-0.3


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

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

From ee56bebd52423e8794a17ac008616414096f02d6 Mon Sep 17 00:00:00 2001
From: Neel Chotai <neel@chot.ai>
Date: Thu, 4 Jun 2020 17:59:15 +0100
Subject: [PATCH] New package: OpenRGB-0.4

---
 srcpkgs/OpenRGB/INSTALL.msg                   |  6 ++
 srcpkgs/OpenRGB/files/OpenRGB.conf            |  1 +
 srcpkgs/OpenRGB/files/OpenRGB/log/run         |  2 +
 srcpkgs/OpenRGB/files/OpenRGB/run             |  2 +
 ...001-Fix-build-on-powerpc-and-related.patch | 56 +++++++++++++++++++
 srcpkgs/OpenRGB/template                      | 21 +++++++
 6 files changed, 88 insertions(+)
 create mode 100644 srcpkgs/OpenRGB/INSTALL.msg
 create mode 100644 srcpkgs/OpenRGB/files/OpenRGB.conf
 create mode 100644 srcpkgs/OpenRGB/files/OpenRGB/log/run
 create mode 100644 srcpkgs/OpenRGB/files/OpenRGB/run
 create mode 100644 srcpkgs/OpenRGB/patches/0001-Fix-build-on-powerpc-and-related.patch
 create mode 100644 srcpkgs/OpenRGB/template

diff --git a/srcpkgs/OpenRGB/INSTALL.msg b/srcpkgs/OpenRGB/INSTALL.msg
new file mode 100644
index 00000000000..07892a7e9be
--- /dev/null
+++ b/srcpkgs/OpenRGB/INSTALL.msg
@@ -0,0 +1,6 @@
+Further configuration is required to control RGB RAM and certain
+motherboard LEDs. 
+
+Refer to the README for more information.
+
+https://gitlab.com/CalcProgrammer1/OpenRGB/-/blob/master/README.md
diff --git a/srcpkgs/OpenRGB/files/OpenRGB.conf b/srcpkgs/OpenRGB/files/OpenRGB.conf
new file mode 100644
index 00000000000..0cdf71fd3e4
--- /dev/null
+++ b/srcpkgs/OpenRGB/files/OpenRGB.conf
@@ -0,0 +1 @@
+i2c-dev
diff --git a/srcpkgs/OpenRGB/files/OpenRGB/log/run b/srcpkgs/OpenRGB/files/OpenRGB/log/run
new file mode 100644
index 00000000000..75264440d1a
--- /dev/null
+++ b/srcpkgs/OpenRGB/files/OpenRGB/log/run
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec logger -t OpenRGB -p daemon.info
diff --git a/srcpkgs/OpenRGB/files/OpenRGB/run b/srcpkgs/OpenRGB/files/OpenRGB/run
new file mode 100644
index 00000000000..51d84dab606
--- /dev/null
+++ b/srcpkgs/OpenRGB/files/OpenRGB/run
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec OpenRGB --server 2>&1
diff --git a/srcpkgs/OpenRGB/patches/0001-Fix-build-on-powerpc-and-related.patch b/srcpkgs/OpenRGB/patches/0001-Fix-build-on-powerpc-and-related.patch
new file mode 100644
index 00000000000..7f2ed534849
--- /dev/null
+++ b/srcpkgs/OpenRGB/patches/0001-Fix-build-on-powerpc-and-related.patch
@@ -0,0 +1,56 @@
+From be395d1f0e88435b7a1ba38d0f959a8faf60de31 Mon Sep 17 00:00:00 2001
+From: q66 <daniel@octaforge.org>
+Date: Fri, 24 Jul 2020 02:02:30 +0200
+Subject: [PATCH] Fix build on powerpc and related
+
+Use asm/ioctls.h instead of the asm-generic version as the ioctl
+numbers may not always match between platforms, and some ioctls
+may not even exist on some platforms
+
+Also, some more types need to be undefined for inclusion of the
+asm/termios.h at least on powerpc and related, should not hurt
+elsewhere either so leave it without a guard
+
+Finally, termios2 does not exist on ppc since the fields that are
+used from termios2 here are included in actual struct termios
+---
+ serial_port/serial_port.h | 15 ++++++++++++---
+ 1 file changed, 12 insertions(+), 3 deletions(-)
+
+diff --git serial_port/serial_port.h serial_port/serial_port.h
+index 4986ea5..2e3cb9d 100644
+--- serial_port/serial_port.h
++++ serial_port/serial_port.h
+@@ -23,17 +23,26 @@
+ #include <termios.h>
+ #include <sys/ioctl.h>
+ 
+-//winsize, termio, and termios structs are redefined in
+-//asm/termios.h, to prevent compiler errors from multply
++//these types are redefined in asm/termios.h
++//to prevent compiler errors from multply
+ //defining them, use a #define to rename them -
+ //essentially to undef them before they are redefined
+ #define winsize undefine_winsize
+ #define termio undefine_termio
+ #define termios undefine_termios
++#define sgttyb undefine_sgttyb
++#define tchars undefine_tchars
++#define ltchars undefine_ltchars
+ 
+ #include <asm/termios.h>
+-#include <asm-generic/ioctls.h>
++#include <asm/ioctls.h>
+ 
++//ppc has c_ispeed/c_ospeed in termios and termios2 doesn't exist
++#if defined(__powerpc__)
++#define termios2 termios
++#define TCGETS2 TCGETS
++#define TCSETS2 TCSETS
++#endif
+ 
+ #endif
+ 
+-- 
+2.27.0
+
diff --git a/srcpkgs/OpenRGB/template b/srcpkgs/OpenRGB/template
new file mode 100644
index 00000000000..6803d145823
--- /dev/null
+++ b/srcpkgs/OpenRGB/template
@@ -0,0 +1,21 @@
+# Template file for 'OpenRGB'
+pkgname=OpenRGB
+version=0.4
+revision=1
+wrksrc=OpenRGB-release_${version}
+build_style=qmake
+hostmakedepends="qt5-qmake qt5-host-tools git pkg-config"
+makedepends="qt5-devel libusb-devel hidapi-devel"
+short_desc="Open source RGB lighting control"
+maintainer="Neel Chotai <neel@chot.ai>"
+license="GPL-2.0-only"
+homepage="https://gitlab.com/CalcProgrammer1/OpenRGB"
+distfiles="https://gitlab.com/CalcProgrammer1/OpenRGB/-/archive/release_${version}/OpenRGB-release_${version}.tar.gz"
+checksum=a5743d6b0589e136b236cbfd815d7b7cb5c7331c1ca63cbd38e7b93d52c930fe
+
+post_install() {
+	vdoc README.md
+	vinstall 60-openrgb.rules 644 usr/lib/udev/rules.d
+    vinstall ${FILESDIR}/OpenRGB.conf 644 usr/lib/modules-load.d
+    vsv OpenRGB
+}

  parent reply	other threads:[~2020-10-06 18:03 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-22588@inbox.vuxu.org>
2020-07-09 20:53 ` New package: OpenRGB-0.2 NeelChotai
2020-07-09 23:39 ` [PR PATCH] [Updated] " NeelChotai
2020-07-10  0:29 ` NeelChotai
2020-07-23 20:08 ` [PR PATCH] [Updated] " NeelChotai
2020-07-23 20:42 ` NeelChotai
2020-07-23 21:46 ` NeelChotai
2020-07-24  0:12 ` [PR PATCH] [Updated] " NeelChotai
2020-07-24  0:16 ` NeelChotai
2020-10-06 18:03 ` NeelChotai [this message]
2020-10-06 18:03 ` New package: OpenRGB-0.3 NeelChotai
2020-10-06 18:05 ` [PR PATCH] [Updated] " NeelChotai
2020-10-15 10:28 ` New package: OpenRGB-0.4 Piraty
2020-10-15 10:29 ` Piraty
2020-12-14 17:03 ` [PR PATCH] [Updated] " NeelChotai
2020-12-14 18:11 ` [PR PATCH] [Updated] New package: OpenRGB-0.5 NeelChotai
2020-12-14 18:12 ` NeelChotai
2020-12-14 18:19 ` NeelChotai
2020-12-17 22:52 ` [PR REVIEW] New package: openrgb-0.5 Piraty
2020-12-17 22:53 ` [PR PATCH] [Closed]: " Piraty
2020-08-09  5:42 [PR PATCH] New package: openrgb-0.3 cpixl
2020-08-09  6:09 ` [PR PATCH] [Updated] " cpixl
2020-08-09  6:22 ` cpixl
2020-08-09  6:48 ` cpixl

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=20201006180322.wfglG2jDHNcqEGedAWsY8R733L5Hm_y-VMoYWe1C03w@z \
    --to=neelchotai@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).