Date: Friday, April 7, 2023 @ 16:08:46
  Author: felixonmars
Revision: 473166

archrelease: copy trunk to staging-x86_64

Added:
  lirc/repos/staging-x86_64/
  lirc/repos/staging-x86_64/PKGBUILD
    (from rev 473163, lirc/trunk/PKGBUILD)
  lirc/repos/staging-x86_64/lirc-0.10-build-fix.patch
    (from rev 473164, lirc/trunk/lirc-0.10-build-fix.patch)
  lirc/repos/staging-x86_64/lirc.logrotate
    (from rev 473164, lirc/trunk/lirc.logrotate)
  lirc/repos/staging-x86_64/lirc.tmpfiles
    (from rev 473164, lirc/trunk/lirc.tmpfiles)
  lirc/repos/staging-x86_64/python-yaml-6.patch
    (from rev 473164, lirc/trunk/python-yaml-6.patch)

---------------------------+
 PKGBUILD                  |   53 +++++++++++++++++++++++++++++
 lirc-0.10-build-fix.patch |   30 ++++++++++++++++
 lirc.logrotate            |    5 ++
 lirc.tmpfiles             |    1 
 python-yaml-6.patch       |   78 ++++++++++++++++++++++++++++++++++++++++++++
 5 files changed, 167 insertions(+)

Copied: lirc/repos/staging-x86_64/PKGBUILD (from rev 473163, 
lirc/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD                             (rev 0)
+++ staging-x86_64/PKGBUILD     2023-04-07 16:08:46 UTC (rev 473166)
@@ -0,0 +1,53 @@
+# Maintainer: Lukas Fleischer <[email protected]>
+# Contributor: Paul Mattal <[email protected]>
+
+pkgname=lirc
+_pkgver=0.10.2
+[[ $_pkgver =~ [a-z]$ ]] && pkgver="${_pkgver:0:-1}.${_pkgver: -1}" || 
pkgver="$_pkgver"
+pkgrel=3
+epoch=1
+pkgdesc="Linux Infrared Remote Control utilities"
+arch=('x86_64')
+url="https://www.lirc.org/";
+license=('GPL')
+depends=('alsa-lib' 'libx11' 'libftdi' 'libusb-compat')
+makedepends=('help2man' 'alsa-lib' 'libx11' 'libxslt' 'python' 
'python-setuptools'
+             'python-yaml' 'systemd')
+optdepends=('python: for lirc-setup, irdb-get and pronto2lirc'
+            'python-gobject: for lirc-setup and irdb-get'
+            'python-yaml: for lirc-setup and irdb-get')
+provides=('lirc-utils')
+conflicts=('lirc-utils')
+replaces=('lirc-utils')
+backup=('etc/lirc/lirc_options.conf' 'etc/lirc/lircd.conf' 
'etc/lirc/lircmd.conf')
+source=("https://prdownloads.sourceforge.net/${pkgname}/${pkgname}-${_pkgver}.tar.bz2";
+        lirc.logrotate
+        lirc.tmpfiles)
+sha256sums=('3d44ec8274881cf262f160805641f0827ffcc20ade0d85e7e6f3b90e0d3d222a'
+            'bd13ca00e30d85ff9166c03b8f7a20195ef89794e66d7e54f04ba1d014a73e7d'
+            'b8eb6ff2a542a9a3b20fe259fe36aece941db8d309598d2eeb1815b779e2f838')
+
+build() {
+  cd lirc-${_pkgver}
+
+  ./configure \
+    --prefix=/usr \
+    --sbindir=/usr/bin \
+    --sysconfdir=/etc \
+    --localstatedir=/var \
+    --enable-devinput \
+    --enable-uinput
+  sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
+  make
+}
+
+package() {
+  cd lirc-${_pkgver}
+
+  make DESTDIR="${pkgdir}" install
+
+  install -Dm644 "${srcdir}"/lirc.tmpfiles 
"${pkgdir}"/usr/lib/tmpfiles.d/lirc.conf
+  install -Dm644 "${srcdir}"/lirc.logrotate "${pkgdir}"/etc/logrotate.d/lirc
+
+  rmdir "${pkgdir}"/var/{run/lirc/,run/}
+}

Copied: lirc/repos/staging-x86_64/lirc-0.10-build-fix.patch (from rev 473164, 
lirc/trunk/lirc-0.10-build-fix.patch)
===================================================================
--- staging-x86_64/lirc-0.10-build-fix.patch                            (rev 0)
+++ staging-x86_64/lirc-0.10-build-fix.patch    2023-04-07 16:08:46 UTC (rev 
473166)
@@ -0,0 +1,30 @@
+diff --git a/configure.ac b/configure.ac
+index 58347d8..8c7fca2 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -77,15 +77,10 @@ AC_TYPE_UINT64_T
+ 
+ dnl AC_TYPE_GETGROUPS seems broken on recent MacOS, so:
+ AC_MSG_CHECKING([Figure out if getgrouplist() needs gid_t or int])
+-oldcflags="$CFLAGS"
+-export CFLAGS=-Werror
+ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
+ #include <unistd.h>
+-#include <grp.h>
+-  ]], [[
+-gid_t groups[32]; int ngroups; const char* user = "root";
+-getgrouplist(user, 1, groups, &ngroups);
+-  ]])],[
++int getgroups(int gidsetsize, gid_t grouplist[]);
++  ]], [[  ]])],[
+     AC_MSG_RESULT(gid_t)
+     AC_DEFINE(GETGROUPS_T,[gid_t])
+   ],[
+@@ -93,7 +88,6 @@ getgrouplist(user, 1, groups, &ngroups);
+     AC_DEFINE(GETGROUPS_T,[int])
+   ]
+ )
+-export CFLAGS="$oldcflags"
+ 
+ dnl Checks for library functions.
+ AC_CHECK_FUNCS(gethostname gettimeofday mkfifo select socket strdup \

Copied: lirc/repos/staging-x86_64/lirc.logrotate (from rev 473164, 
lirc/trunk/lirc.logrotate)
===================================================================
--- staging-x86_64/lirc.logrotate                               (rev 0)
+++ staging-x86_64/lirc.logrotate       2023-04-07 16:08:46 UTC (rev 473166)
@@ -0,0 +1,5 @@
+/var/log/lircd {
+   missingok
+   notifempty
+   delaycompress
+}

Copied: lirc/repos/staging-x86_64/lirc.tmpfiles (from rev 473164, 
lirc/trunk/lirc.tmpfiles)
===================================================================
--- staging-x86_64/lirc.tmpfiles                                (rev 0)
+++ staging-x86_64/lirc.tmpfiles        2023-04-07 16:08:46 UTC (rev 473166)
@@ -0,0 +1 @@
+d /run/lirc 0755 root root -

Copied: lirc/repos/staging-x86_64/python-yaml-6.patch (from rev 473164, 
lirc/trunk/python-yaml-6.patch)
===================================================================
--- staging-x86_64/python-yaml-6.patch                          (rev 0)
+++ staging-x86_64/python-yaml-6.patch  2023-04-07 16:08:46 UTC (rev 473166)
@@ -0,0 +1,78 @@
+From bb6a390633f32942ac10f9b7b7fc01dfbd395a48 Mon Sep 17 00:00:00 2001
+From: Alec Leamas <[email protected]>
+Date: Fri, 21 Jan 2022 14:00:54 +0100
+Subject: [PATCH] database.py: Handle new PyYAML interface.
+
+---
+ python-pkg/lirc/database.py | 12 ++++++++----
+ tools/check_configs.py      |  4 ++++
+ 2 files changed, 12 insertions(+), 4 deletions(-)
+
+diff --git a/python-pkg/lirc/database.py b/python-pkg/lirc/database.py
+index d464c2ab..d1f42c64 100644
+--- a/python-pkg/lirc/database.py
++++ b/python-pkg/lirc/database.py
+@@ -44,6 +44,10 @@ import sys
+ 
+ try:
+     import yaml
++    try:
++        from yaml import CLoader as Loader, CDumper as Dumper
++    except ImportError:
++        from yaml import Loader, Dumper
+ except ImportError:
+     _YAML_MSG = '''
+ "Cannot import the yaml library. Please install the python3
+@@ -66,7 +70,7 @@ def _load_kerneldrivers(configdir):
+     '''
+ 
+     with open(os.path.join(configdir, "kernel-drivers.yaml")) as f:
+-        cf = yaml.load(f.read())
++        cf = yaml.load(f.read(), Loader = Loader)
+     drivers = cf['drivers'].copy()
+     for driver in cf['drivers']:
+         if driver == 'default':
+@@ -132,14 +136,14 @@ class Database(object):
+             yamlpath = configdir
+         db = {}
+         with open(os.path.join(yamlpath, "confs_by_driver.yaml")) as f:
+-            cf = yaml.load(f.read())
++            cf = yaml.load(f.read(), Loader = Loader)
+         db['lircd_by_driver'] = cf['lircd_by_driver'].copy()
+         db['lircmd_by_driver'] = cf['lircmd_by_driver'].copy()
+ 
+         db['kernel-drivers'] = _load_kerneldrivers(configdir)
+         db['drivers'] = db['kernel-drivers'].copy()
+         with open(os.path.join(yamlpath, "drivers.yaml")) as f:
+-            cf = yaml.load(f.read())
++            cf = yaml.load(f.read(), Loader = Loader)
+         db['drivers'].update(cf['drivers'].copy())
+         for key, d in db['drivers'].items():
+             d['id'] = key
+@@ -158,7 +162,7 @@ class Database(object):
+         configs = {}
+         for path in glob.glob(configdir + '/*.conf'):
+             with open(path) as f:
+-                cf = yaml.load(f.read())
++                cf = yaml.load(f.read(), Loader = Loader)
+             configs[cf['config']['id']] = cf['config']
+         db['configs'] = configs
+         self.db = db
+diff --git a/tools/check_configs.py b/tools/check_configs.py
+index 1e0d831b..5e458de7 100755
+--- a/tools/check_configs.py
++++ b/tools/check_configs.py
+@@ -4,6 +4,10 @@
+ 
+ import glob
+ import yaml
++try:
++    from yaml import CLoader as Loader, CDumper as Dumper
++except ImportError:
++    from yaml import Loader, Dumper
+ 
+ def main():
+     configs = {}
+-- 
+2.34.1
+

Reply via email to