Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fwupd: 2.0.1 -> 2.0.2 #359279

Merged
merged 1 commit into from
Nov 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 8 additions & 28 deletions pkgs/by-name/fw/fwupd/installed-tests-path.patch
Original file line number Diff line number Diff line change
@@ -1,33 +1,13 @@
commit 27ddb6910ec9027f8f502f5240fb33cddd9fd16b
commit 2fa1d39bb54d448ffe59bf6a8358c01f786a1cce
Author: r-vdp <[email protected]>
Date: Tue Oct 15 14:49:53 2024 +0200

Add output for installed tests

diff --git a/data/device-tests/meson.build b/data/device-tests/meson.build
index 4f3a5f2da..b0d21c8bd 100644
--- a/data/device-tests/meson.build
+++ b/data/device-tests/meson.build
@@ -67,5 +67,5 @@ install_data([
'wacom-intuos-bt-s.json',
'wistron-dock-40b7.json',
],
- install_dir: join_paths(datadir, 'fwupd', 'device-tests'),
+ install_dir: join_paths(get_option('installed_test_prefix'), 'etc', 'fwupd', 'device-tests'),
)
diff --git a/data/tests/meson.build b/data/tests/meson.build
index 3da184010..8606c9280 100644
index a22a989f3..cbd135cfa 100644
--- a/data/tests/meson.build
+++ b/data/tests/meson.build
@@ -2,7 +2,7 @@ con2 = configuration_data()
con2.set('installedtestsdir', installed_test_datadir)
con2.set('installedtestsbindir', installed_test_bindir)
con2.set('installedtestsdatadir', installed_test_datadir)
-con2.set('devicetestdir', join_paths(datadir, 'fwupd', 'device-tests'))
+con2.set('devicetestdir', join_paths(installed_test_datadir, 'fwupd', 'device-tests'))
con2.set('bindir', bindir)
con2.set('libexecdir', libexecdir)

@@ -105,7 +105,7 @@ configure_file(
output: 'fwupd-tests.conf',
configuration: con2,
Expand All @@ -38,7 +18,7 @@ index 3da184010..8606c9280 100644

if umockdev_integration_tests.allowed()
diff --git a/meson.build b/meson.build
index 62c127c35..2ceaf531c 100644
index 5a35cfda1..40ef142f0 100644
--- a/meson.build
+++ b/meson.build
@@ -194,8 +194,8 @@ else
Expand All @@ -52,7 +32,7 @@ index 62c127c35..2ceaf531c 100644
daemon_dir = join_paths(libexecdir, 'fwupd')
endif
mandir = join_paths(prefix, get_option('mandir'))
@@ -541,6 +541,7 @@ gnome = import('gnome')
@@ -545,6 +545,7 @@ gnome = import('gnome')
i18n = import('i18n')

conf.set_quoted('FWUPD_PREFIX', prefix)
Expand All @@ -61,12 +41,12 @@ index 62c127c35..2ceaf531c 100644
conf.set_quoted('FWUPD_LIBDIR', libdir)
conf.set_quoted('FWUPD_LIBEXECDIR', libexecdir)
diff --git a/meson_options.txt b/meson_options.txt
index 769a5b655..a4a211fbb 100644
index e04bb37c9..b1060ddb8 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -328,6 +328,10 @@ option('systemd_unit_user',
value: 'fwupd-refresh',
description: 'User account to use for fwupd-refresh.service (empty for DynamicUser)',
@@ -333,6 +333,10 @@ option('systemd_syscall_filter',
value: 'true',
description: 'Enable systemd syscall filter',
)
+option('installed_test_prefix',
+ type: 'string',
Expand Down
9 changes: 2 additions & 7 deletions pkgs/by-name/fw/fwupd/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ let
in
stdenv.mkDerivation (finalAttrs: {
pname = "fwupd";
version = "2.0.1";
version = "2.0.2";

# libfwupd goes to lib
# daemon, plug-ins and libfwupdplugin go to out
Expand All @@ -142,7 +142,7 @@ stdenv.mkDerivation (finalAttrs: {
owner = "fwupd";
repo = "fwupd";
rev = finalAttrs.version;
hash = "sha256-cIkbYoSqVZtEEIh0iTr+Ovu5BWGh6d2NfImTJoc69QU=";
hash = "sha256-rmMb109SJVWDGT4z5GOA4V9O0cDMptTpwx0TXdGWjvk=";
};

patches = [
Expand All @@ -163,11 +163,6 @@ stdenv.mkDerivation (finalAttrs: {

# EFI capsule is located in fwupd-efi now.
./efi-app-path.patch

(fetchpatch {
url = "https://github.com/fwupd/fwupd/pull/7994.diff?full_index=1";
hash = "sha256-fRM033aCoj11Q5u9Yfi3BSD/zpm2kIqf5qabs60nEoM=";
})
];

nativeBuildInputs = [
Expand Down