From 32afdafb4eacc7a01cedc911858ce456d16db6a7 Mon Sep 17 00:00:00 2001 From: Kate Hsuan Date: Tue, 14 Feb 2023 17:58:21 +0800 Subject: [PATCH] Skip unix domain socket test Skip unix domain socket test to prevent from the "permission deny" error of koji build. --- .gitignore | 1 + ...st-unix-skip-unix-domain-socket-test.patch | 31 +++++++++++++++++++ bolt.spec | 8 +++-- sources | 2 +- 4 files changed, 39 insertions(+), 3 deletions(-) create mode 100644 0001-test-test-unix-skip-unix-domain-socket-test.patch diff --git a/.gitignore b/.gitignore index 5ebeec0..ec253d4 100644 --- a/.gitignore +++ b/.gitignore @@ -21,3 +21,4 @@ tests/source/ /bolt-0.9.1.tar.gz /bolt-0.9.2.tar.gz /bolt-0.9.3.tar.gz +/bolt-0.9.5.tar.gz diff --git a/0001-test-test-unix-skip-unix-domain-socket-test.patch b/0001-test-test-unix-skip-unix-domain-socket-test.patch new file mode 100644 index 0000000..d0b1f94 --- /dev/null +++ b/0001-test-test-unix-skip-unix-domain-socket-test.patch @@ -0,0 +1,31 @@ +From 74eace0d89b63be92615364568ba36ad7d748477 Mon Sep 17 00:00:00 2001 +From: Kate Hsuan +Date: Tue, 14 Feb 2023 16:25:04 +0800 +Subject: [PATCH] test: test-unix: skip unix domain socket test + +Skip the test since we can't test unix domain socket in mock. +--- + tests/test-unix.c | 7 ------- + 1 file changed, 7 deletions(-) + +diff --git a/tests/test-unix.c b/tests/test-unix.c +index 98de3db..366488f 100644 +--- a/tests/test-unix.c ++++ b/tests/test-unix.c +@@ -198,13 +198,6 @@ main (int argc, char **argv) + test_pid_is_alive, + NULL); + +- g_test_add ("/common/unix/bolt_sd_notify", +- TestNotify, +- NULL, +- test_notify_setup, +- test_sd_notify, +- test_notify_teardown); +- + g_test_add ("/common/unix/sd_watchdog_enabled", + TestDummy, + NULL, +-- +2.39.1 + diff --git a/bolt.spec b/bolt.spec index af0ad30..a8ba82c 100644 --- a/bolt.spec +++ b/bolt.spec @@ -1,10 +1,11 @@ Name: bolt -Version: 0.9.3 -Release: 2%{?dist} +Version: 0.9.5 +Release: 1%{?dist} Summary: Thunderbolt device manager License: LGPLv2+ URL: https://gitlab.freedesktop.org/bolt/bolt Source0: %{url}/-/archive/%{version}/%{name}-%{version}.tar.gz +Patch0: 0001-test-test-unix-skip-unix-domain-socket-test.patch BuildRequires: gcc BuildRequires: asciidoc @@ -76,6 +77,9 @@ mentioned tasks. %ghost %dir %{_localstatedir}/lib/boltd %changelog +* Tue Feb 14 2023 Kate hsuan - 0.9.5-1 +- Updated to upstream version + * Wed Jan 18 2023 Fedora Release Engineering - 0.9.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild diff --git a/sources b/sources index 63f149f..d4e2266 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (bolt-0.9.3.tar.gz) = 2160831011090e75cf54408525f53ead6c0e7797de8a4afdd07ef5a035f8e1aa58f34efb9bd52e6e7cd93ac17751e72ff27e99f2b372a5720b2cbadd6abb3c26 +SHA512 (bolt-0.9.5.tar.gz) = cf8625f45d15f5685d99a49c5993a9196b355158be660c63fb22f86c2d9806d41cc13702d2e8d1b8e6f37e4acf3485e2b2c0eb19f907732bdf670680cbc073ae