[arch-commits] Commit in iio-sensor-proxy/repos/community-x86_64 (4 files)
Filipe Laíns
ffy00 at gemini.archlinux.org
Sat Sep 3 16:03:27 UTC 2022
Date: Saturday, September 3, 2022 @ 16:03:27
Author: ffy00
Revision: 1292602
archrelease: copy trunk to community-x86_64
Added:
iio-sensor-proxy/repos/community-x86_64/PKGBUILD
(from rev 1292601, iio-sensor-proxy/trunk/PKGBUILD)
iio-sensor-proxy/repos/community-x86_64/fix-tests.patch
(from rev 1292601, iio-sensor-proxy/trunk/fix-tests.patch)
Deleted:
iio-sensor-proxy/repos/community-x86_64/PKGBUILD
iio-sensor-proxy/repos/community-x86_64/fix-tests.patch
-----------------+
PKGBUILD | 94 ++++++++++++++++++++++++------------------------------
fix-tests.patch | 82 +++++++++++++++++++++++------------------------
2 files changed, 84 insertions(+), 92 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2022-09-03 16:03:22 UTC (rev 1292601)
+++ PKGBUILD 2022-09-03 16:03:27 UTC (rev 1292602)
@@ -1,51 +0,0 @@
-# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
-# Contributor: Eric Lehmann <katyl at katyl.info>
-# Contributor: Thomas Fanninger <thomas at fanninger.at>
-# Contributor: ultraviolet <ultravioletnanokitty at gmail.com>
-# Contributor: Pablo Lezeta <prflr88 at gmail.com>
-
-pkgname=iio-sensor-proxy
-pkgver=3.3
-pkgrel=1
-pkgdesc='IIO accelerometer sensor to input device proxy'
-arch=('x86_64')
-url='https://gitlab.freedesktop.org/hadess/iio-sensor-proxy/'
-license=('GPL2')
-depends=('systemd' 'libgudev' 'gtk3')
-makedepends=('meson')
-checkdepends=('python-gobject' 'python-dbusmock' 'python-psutil' 'umockdev')
-source=("$url/-/archive/$pkgver/$pkgname-$pkgver.tar.gz"
- fix-tests.patch)
-sha512sums=('f5c5e60e888be54ace4f0f2bb941fccce21b122c0755050f91aebe8dfa9e2c126e6de57dd80873ea7148fc2dfc087b23823f29d73a223c68d531502d06438ee3'
- 'b53673ad43b10eddfe484d894fa2e0e36e8ea45b34e1fc3dc8f85c92fa7c075fcbf28552f31d8976a32c8ce07b9f5ae9746dce7daffabc4130231f3719a3663d')
-
-prepare() {
- cd $pkgname-$pkgver
-# Make tests work with C locale
- patch -p1 -i ../fix-tests.patch
-}
-
-build() {
- mkdir $pkgname-$pkgver/build
- cd $pkgname-$pkgver/build
-
- arch-meson .. \
- -Dsystemdsystemunitdir=/usr/lib/systemd/system \
- -Dudevrulesdir=/usr/lib/udev/rules.d \
- -Dsysconfdir=/usr/share
-
- ninja
-}
-
-check() {
- cd $pkgname-$pkgver/build
-
- ninja test
-}
-
-package() {
- cd $pkgname-$pkgver/build
-
- DESTDIR="$pkgdir" ninja install
-}
-
Copied: iio-sensor-proxy/repos/community-x86_64/PKGBUILD (from rev 1292601, iio-sensor-proxy/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2022-09-03 16:03:27 UTC (rev 1292602)
@@ -0,0 +1,43 @@
+# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
+# Contributor: Eric Lehmann <katyl at katyl.info>
+# Contributor: Thomas Fanninger <thomas at fanninger.at>
+# Contributor: ultraviolet <ultravioletnanokitty at gmail.com>
+# Contributor: Pablo Lezeta <prflr88 at gmail.com>
+
+pkgname=iio-sensor-proxy
+pkgver=3.4
+pkgrel=1
+pkgdesc='IIO accelerometer sensor to input device proxy'
+arch=('x86_64')
+url='https://gitlab.freedesktop.org/hadess/iio-sensor-proxy/'
+license=('GPL2')
+depends=('systemd' 'libgudev' 'gtk3' 'polkit')
+makedepends=('meson')
+checkdepends=('python-gobject' 'python-dbusmock' 'python-psutil' 'umockdev')
+source=("$url/-/archive/$pkgver/$pkgname-$pkgver.tar.gz")
+sha512sums=('2067c89ca47b4be57f68b5c15b5accdfe50e4f266a3fa11d4690745db8dd1e8e647ffde4306524cdb5faaef215a6bd529a646f1703d9e9ba529688d2b32de14d')
+
+build() {
+ mkdir $pkgname-$pkgver/build
+ cd $pkgname-$pkgver/build
+
+ arch-meson .. \
+ -Dsystemdsystemunitdir=/usr/lib/systemd/system \
+ -Dudevrulesdir=/usr/lib/udev/rules.d \
+ -Dsysconfdir=/usr/share
+
+ ninja
+}
+
+check() {
+ cd $pkgname-$pkgver/build
+
+ ninja test
+}
+
+package() {
+ cd $pkgname-$pkgver/build
+
+ DESTDIR="$pkgdir" ninja install
+}
+
Deleted: fix-tests.patch
===================================================================
--- fix-tests.patch 2022-09-03 16:03:22 UTC (rev 1292601)
+++ fix-tests.patch 2022-09-03 16:03:27 UTC (rev 1292602)
@@ -1,41 +0,0 @@
-diff --git a/tests/integration-test.py b/tests/integration-test.py
-index b03e6b9..a3905d2 100755
---- a/tests/integration-test
-+++ b/tests/integration-test
-@@ -592,7 +592,6 @@ class Tests(dbusmock.DBusTestCase):
- []
- )
- env = os.environ.copy()
-- env['LC_NUMERIC'] = 'fr_FR.UTF-8'
- self.start_daemon(env=env)
-
- self.assertEqual(self.get_dbus_property('HasAccelerometer'), True)
-@@ -601,9 +600,8 @@ class Tests(dbusmock.DBusTestCase):
- mock_file.write(data)
- self.proxy.ClaimAccelerometer()
- self.assertEventually(lambda: self.have_text_in_log('Accel sent by driver'))
-- # If the 2nd test fails, it's likely that fr_FR.UTF-8 locale isn't supported
-- self.assertEqual(self.have_text_in_log('scale: 0,000000,0,000000,0,000000'), False)
-- self.assertEqual(self.have_text_in_log('scale: 0,000010,0,000010,0,000010'), True)
-+ self.assertEqual(self.have_text_in_log('scale: 0.000000,0.000000,0.000000'), False)
-+ self.assertEqual(self.have_text_in_log('scale: 0.000010,0.000010,0.000010'), True)
-
- self.stop_daemon()
-
-@@ -659,14 +657,12 @@ class Tests(dbusmock.DBusTestCase):
- 'IIO_SENSOR_PROXY_TYPE', 'iio-poll-accel']
- )
- env = os.environ.copy()
-- env['LC_NUMERIC'] = 'fr_FR.UTF-8'
- self.start_daemon(env=env)
-
- self.proxy.ClaimAccelerometer()
- self.assertEventually(lambda: self.have_text_in_log('Accel read from IIO on'))
-- # If the 2nd test fails, it's likely that fr_FR.UTF-8 locale isn't supported
-- self.assertEqual(self.have_text_in_log('scale 1,000000,1,000000,1,000000'), False)
-- self.assertEqual(self.have_text_in_log('scale 0,000001,0,000001,0,000001'), True)
-+ self.assertEqual(self.have_text_in_log('scale 1.000000,1.000000,1.000000'), False)
-+ self.assertEqual(self.have_text_in_log('scale 0.000001,0.000001,0.000001'), True)
-
- self.assertEventually(lambda: self.get_dbus_property('AccelerometerOrientation') == 'normal')
-
Copied: iio-sensor-proxy/repos/community-x86_64/fix-tests.patch (from rev 1292601, iio-sensor-proxy/trunk/fix-tests.patch)
===================================================================
--- fix-tests.patch (rev 0)
+++ fix-tests.patch 2022-09-03 16:03:27 UTC (rev 1292602)
@@ -0,0 +1,41 @@
+diff --git a/tests/integration-test.py b/tests/integration-test.py
+index b03e6b9..a3905d2 100755
+--- a/tests/integration-test
++++ b/tests/integration-test
+@@ -592,7 +592,6 @@ class Tests(dbusmock.DBusTestCase):
+ []
+ )
+ env = os.environ.copy()
+- env['LC_NUMERIC'] = 'fr_FR.UTF-8'
+ self.start_daemon(env=env)
+
+ self.assertEqual(self.get_dbus_property('HasAccelerometer'), True)
+@@ -601,9 +600,8 @@ class Tests(dbusmock.DBusTestCase):
+ mock_file.write(data)
+ self.proxy.ClaimAccelerometer()
+ self.assertEventually(lambda: self.have_text_in_log('Accel sent by driver'))
+- # If the 2nd test fails, it's likely that fr_FR.UTF-8 locale isn't supported
+- self.assertEqual(self.have_text_in_log('scale: 0,000000,0,000000,0,000000'), False)
+- self.assertEqual(self.have_text_in_log('scale: 0,000010,0,000010,0,000010'), True)
++ self.assertEqual(self.have_text_in_log('scale: 0.000000,0.000000,0.000000'), False)
++ self.assertEqual(self.have_text_in_log('scale: 0.000010,0.000010,0.000010'), True)
+
+ self.stop_daemon()
+
+@@ -659,14 +657,12 @@ class Tests(dbusmock.DBusTestCase):
+ 'IIO_SENSOR_PROXY_TYPE', 'iio-poll-accel']
+ )
+ env = os.environ.copy()
+- env['LC_NUMERIC'] = 'fr_FR.UTF-8'
+ self.start_daemon(env=env)
+
+ self.proxy.ClaimAccelerometer()
+ self.assertEventually(lambda: self.have_text_in_log('Accel read from IIO on'))
+- # If the 2nd test fails, it's likely that fr_FR.UTF-8 locale isn't supported
+- self.assertEqual(self.have_text_in_log('scale 1,000000,1,000000,1,000000'), False)
+- self.assertEqual(self.have_text_in_log('scale 0,000001,0,000001,0,000001'), True)
++ self.assertEqual(self.have_text_in_log('scale 1.000000,1.000000,1.000000'), False)
++ self.assertEqual(self.have_text_in_log('scale 0.000001,0.000001,0.000001'), True)
+
+ self.assertEventually(lambda: self.get_dbus_property('AccelerometerOrientation') == 'normal')
+
More information about the arch-commits
mailing list