Skip to content

Commit 9e346f6

Browse files
committed
fwupd: 1.9.25 -> 2.0.1
1 parent 2c60d1d commit 9e346f6

File tree

5 files changed

+206
-80
lines changed

5 files changed

+206
-80
lines changed

pkgs/by-name/fw/fwupd/add-option-for-installation-sysconfdir.patch

Lines changed: 97 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,26 @@
1+
commit e798ff19cd36daaed68b86edc7ebdb9dcfe1c057
2+
Author: r-vdp <[email protected]>
3+
Date: Tue Oct 15 11:46:38 2024 +0200
4+
5+
Add option for installation sysconfdir
6+
17
diff --git a/data/bios-settings.d/meson.build b/data/bios-settings.d/meson.build
2-
index b0ff5b106..13ac380d0 100644
8+
index b0ff5b106..29b60a3be 100644
39
--- a/data/bios-settings.d/meson.build
410
+++ b/data/bios-settings.d/meson.build
511
@@ -1,5 +1,5 @@
612
if build_standalone and host_machine.system() == 'linux'
713
install_data('README.md',
814
- install_dir: join_paths(sysconfdir, 'fwupd', 'bios-settings.d')
9-
+ install_dir: join_paths(sysconfdir_install, 'fwupd', 'bios-settings.d')
15+
+ install_dir: join_paths(datadir, 'fwupd', 'bios-settings.d')
1016
)
1117
endif
1218
diff --git a/data/meson.build b/data/meson.build
13-
index e13da4adf..6858c240f 100644
19+
index 9db5cd756..cf3181c8b 100644
1420
--- a/data/meson.build
1521
+++ b/data/meson.build
16-
@@ -26,7 +26,7 @@ endif
17-
22+
@@ -27,7 +27,7 @@ endif
23+
1824
if build_standalone
1925
install_data(['fwupd.conf'],
2026
- install_dir: join_paths(sysconfdir, 'fwupd'),
@@ -23,10 +29,10 @@ index e13da4adf..6858c240f 100644
2329
)
2430
plugin_quirks += files([
2531
diff --git a/data/pki/meson.build b/data/pki/meson.build
26-
index 3649fecea..c3462744b 100644
32+
index 686064195..72ae401bd 100644
2733
--- a/data/pki/meson.build
2834
+++ b/data/pki/meson.build
29-
@@ -12,13 +12,13 @@ install_data([
35+
@@ -7,13 +7,13 @@ install_data([
3036
'GPG-KEY-Linux-Foundation-Firmware',
3137
'GPG-KEY-Linux-Vendor-Firmware-Service',
3238
],
@@ -41,8 +47,8 @@ index 3649fecea..c3462744b 100644
4147
+ install_dir: join_paths(sysconfdir_install, 'pki', 'fwupd-metadata')
4248
)
4349
endif
44-
45-
@@ -26,11 +26,11 @@ if supported_pkcs7
50+
51+
@@ -21,11 +21,11 @@ if supported_pkcs7
4652
install_data([
4753
'LVFS-CA.pem',
4854
],
@@ -57,10 +63,10 @@ index 3649fecea..c3462744b 100644
5763
)
5864
endif
5965
diff --git a/data/remotes.d/meson.build b/data/remotes.d/meson.build
60-
index c20a1a05e..5354bac7f 100644
66+
index 10201bc9a..fba712491 100644
6167
--- a/data/remotes.d/meson.build
6268
+++ b/data/remotes.d/meson.build
63-
@@ -15,14 +15,14 @@ if build_standalone and get_option('lvfs') != 'false'
69+
@@ -11,14 +11,14 @@ if build_standalone and get_option('lvfs') != 'false'
6470
output: 'lvfs.conf',
6571
configuration: con3,
6672
install: true,
@@ -77,7 +83,7 @@ index c20a1a05e..5354bac7f 100644
7783
)
7884
i18n.merge_file(
7985
input: 'lvfs.metainfo.xml',
80-
@@ -56,12 +56,12 @@ configure_file(
86+
@@ -52,12 +52,12 @@ configure_file(
8187
output: 'vendor.conf',
8288
configuration: con2,
8389
install: get_option('vendor_metadata'),
@@ -92,29 +98,85 @@ index c20a1a05e..5354bac7f 100644
9298
- install_dir: join_paths(sysconfdir, 'fwupd', 'remotes.d'),
9399
+ install_dir: join_paths(sysconfdir_install, 'fwupd', 'remotes.d'),
94100
)
101+
diff --git a/docs/meson.build b/docs/meson.build
102+
index 5693edcc8..181c359a4 100644
103+
--- a/docs/meson.build
104+
+++ b/docs/meson.build
105+
@@ -124,7 +124,7 @@ if build_docs
106+
],
107+
build_by_default: true,
108+
install: true,
109+
- install_dir: join_paths(datadir, 'doc'),
110+
+ install_dir: join_paths(sysconfdir_install, 'doc'),
111+
)
112+
113+
subdir('hsi-tests.d')
114+
@@ -182,7 +182,7 @@ if build_docs
115+
],
116+
build_by_default: true,
117+
install: true,
118+
- install_dir: join_paths(datadir, 'doc'),
119+
+ install_dir: join_paths(sysconfdir_install, 'doc'),
120+
)
121+
man_cmd = []
122+
foreach man: man_md
123+
@@ -196,7 +196,7 @@ if build_docs
124+
man_cmd,
125+
],
126+
install: true,
127+
- install_dir: join_paths(datadir, 'doc', 'fwupd')
128+
+ install_dir: join_paths(sysconfdir_install, 'doc', 'fwupd')
129+
)
130+
if hsi
131+
install_data(['hsi.html'],
132+
@@ -204,18 +204,18 @@ if build_docs
133+
)
134+
endif
135+
install_data(['urlmap_fwupd.js'],
136+
- install_dir: join_paths(datadir, 'doc', 'libfwupd')
137+
+ install_dir: join_paths(sysconfdir_install, 'doc', 'libfwupd')
138+
)
139+
install_data(['urlmap_fwupdplugin.js'],
140+
- install_dir: join_paths(datadir, 'doc', 'libfwupdplugin')
141+
+ install_dir: join_paths(sysconfdir_install, 'doc', 'libfwupdplugin')
142+
)
143+
#make devhelp work
144+
install_symlink('libfwupd',
145+
- install_dir: join_paths(datadir, 'doc', 'fwupd'),
146+
+ install_dir: join_paths(sysconfdir_install, 'doc', 'fwupd'),
147+
pointing_to: join_paths('..', 'libfwupd'),
148+
)
149+
install_symlink('libfwupdplugin',
150+
- install_dir: join_paths(datadir, 'doc', 'fwupd'),
151+
+ install_dir: join_paths(sysconfdir_install, 'doc', 'fwupd'),
152+
pointing_to: join_paths('..', 'libfwupdplugin'),
153+
)
154+
endif
95155
diff --git a/meson.build b/meson.build
96-
index ca6ccdf92..0a3097d90 100644
156+
index 2ceaf531c..e4e764b97 100644
97157
--- a/meson.build
98158
+++ b/meson.build
99-
@@ -195,6 +195,12 @@ endif
159+
@@ -201,6 +201,12 @@ endif
100160
mandir = join_paths(prefix, get_option('mandir'))
101161
localedir = join_paths(prefix, get_option('localedir'))
102-
162+
103163
+if get_option('sysconfdir_install') != ''
104164
+ sysconfdir_install = join_paths(prefix, get_option('sysconfdir_install'))
105165
+else
106166
+ sysconfdir_install = sysconfdir
107167
+endif
108168
+
109169
diffcmd = find_program('diff')
110-
gio = dependency('gio-2.0', version: '>= 2.68.0')
111-
giounix = dependency('gio-unix-2.0', version: '>= 2.68.0', required: false)
112-
170+
gio = dependency('gio-2.0', version: '>= 2.72.0')
171+
giounix = dependency('gio-unix-2.0', version: '>= 2.72.0', required: false)
113172
diff --git a/meson_options.txt b/meson_options.txt
114-
index 877891126..986d0ee31 100644
173+
index a4a211fbb..6197fe502 100644
115174
--- a/meson_options.txt
116175
+++ b/meson_options.txt
117-
@@ -1,3 +1,8 @@
176+
@@ -7,6 +7,11 @@ option('bluez',
177+
type: 'feature',
178+
description: 'BlueZ support',
179+
)
118180
+option('sysconfdir_install',
119181
+ type: 'string',
120182
+ value: '',
@@ -124,7 +186,7 @@ index 877891126..986d0ee31 100644
124186
type: 'combo',
125187
choices: [
126188
diff --git a/plugins/uefi-capsule/meson.build b/plugins/uefi-capsule/meson.build
127-
index eb196c21e..c9a29f680 100644
189+
index 2dfc4d2f0..e5ac73edd 100644
128190
--- a/plugins/uefi-capsule/meson.build
129191
+++ b/plugins/uefi-capsule/meson.build
130192
@@ -20,7 +20,7 @@ if host_machine.system() == 'linux'
@@ -136,3 +198,17 @@ index eb196c21e..c9a29f680 100644
136198
)
137199
elif host_machine.system() == 'freebsd'
138200
backend_srcs += 'fu-uefi-backend-freebsd.c'
201+
@@ -93,7 +93,7 @@ if get_option('plugin_uefi_capsule_splash')
202+
'--out', '@OUTPUT@',
203+
],
204+
install: true,
205+
- install_dir: join_paths(datadir, 'fwupd'),
206+
+ install_dir: join_paths(sysconfdir_install, 'fwupd'),
207+
)
208+
endif
209+
210+
@@ -146,4 +146,3 @@ summary({
211+
'capsule splash': get_option('plugin_uefi_capsule_splash'),
212+
}, section:'uefi capsule options')
213+
endif
214+
-

pkgs/by-name/fw/fwupd/efi-app-path.patch

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
1+
commit 1770b1871a567dfa78ae1e32094b6007bb7639e9
2+
Author: r-vdp <[email protected]>
3+
Date: Mon Oct 28 12:08:49 2024 +0100
4+
5+
Get the efi app from fwupd-efi
6+
17
diff --git a/meson.build b/meson.build
2-
index b18108c74..7e674b4d2 100644
8+
index e4e764b97..8acaa3d2d 100644
39
--- a/meson.build
410
+++ b/meson.build
5-
@@ -404,7 +404,7 @@ endif
6-
11+
@@ -482,7 +482,7 @@ endif
12+
713
# EFI
814
if build_standalone
915
- efi_app_location = join_paths(libexecdir, 'fwupd', 'efi')

pkgs/by-name/fw/fwupd/install-fwupdplugin-to-out.patch

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,19 @@
1+
commit 50827b154728a97e5dfcb7d41e5c7155752919c3
2+
Author: r-vdp <[email protected]>
3+
Date: Mon Oct 28 12:07:51 2024 +0100
4+
5+
Install fwupdplugin to out
6+
17
diff --git a/meson.build b/meson.build
2-
index 9ae278b66..7cddf1a0d 100644
8+
index 250b76107..62c127c35 100644
39
--- a/meson.build
410
+++ b/meson.build
5-
@@ -507,7 +507,7 @@ if build_standalone
11+
@@ -553,7 +553,7 @@ if build_standalone
612
if host_machine.system() == 'windows'
7-
libdir_pkg = 'fwupd-@0@'.format(fwupd_version)
13+
libdir_pkg = bindir
814
else
915
- libdir_pkg = join_paths(libdir, 'fwupd-@0@'.format(fwupd_version))
1016
+ libdir_pkg = join_paths(prefix, 'lib', 'fwupd-@0@'.format(fwupd_version))
1117
endif
1218
conf.set_quoted('FWUPD_LIBDIR_PKG', libdir_pkg)
1319
endif
14-
Lines changed: 53 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,47 @@
1-
diff --git a/data/installed-tests/meson.build b/data/installed-tests/meson.build
2-
index dfce86b1c..5e34c4fa6 100644
3-
--- a/data/installed-tests/meson.build
4-
+++ b/data/installed-tests/meson.build
5-
@@ -86,5 +86,5 @@ configure_file(
1+
commit 27ddb6910ec9027f8f502f5240fb33cddd9fd16b
2+
Author: r-vdp <[email protected]>
3+
Date: Tue Oct 15 14:49:53 2024 +0200
4+
5+
Add output for installed tests
6+
7+
diff --git a/data/device-tests/meson.build b/data/device-tests/meson.build
8+
index 4f3a5f2da..b0d21c8bd 100644
9+
--- a/data/device-tests/meson.build
10+
+++ b/data/device-tests/meson.build
11+
@@ -67,5 +67,5 @@ install_data([
12+
'wacom-intuos-bt-s.json',
13+
'wistron-dock-40b7.json',
14+
],
15+
- install_dir: join_paths(datadir, 'fwupd', 'device-tests'),
16+
+ install_dir: join_paths(get_option('installed_test_prefix'), 'etc', 'fwupd', 'device-tests'),
17+
)
18+
diff --git a/data/tests/meson.build b/data/tests/meson.build
19+
index 3da184010..8606c9280 100644
20+
--- a/data/tests/meson.build
21+
+++ b/data/tests/meson.build
22+
@@ -2,7 +2,7 @@ con2 = configuration_data()
23+
con2.set('installedtestsdir', installed_test_datadir)
24+
con2.set('installedtestsbindir', installed_test_bindir)
25+
con2.set('installedtestsdatadir', installed_test_datadir)
26+
-con2.set('devicetestdir', join_paths(datadir, 'fwupd', 'device-tests'))
27+
+con2.set('devicetestdir', join_paths(installed_test_datadir, 'fwupd', 'device-tests'))
28+
con2.set('bindir', bindir)
29+
con2.set('libexecdir', libexecdir)
30+
31+
@@ -105,7 +105,7 @@ configure_file(
632
output: 'fwupd-tests.conf',
733
configuration: con2,
834
install: true,
935
- install_dir: join_paths(datadir, 'fwupd', 'remotes.d'),
1036
+ install_dir: join_paths(get_option('installed_test_prefix'), 'etc', 'fwupd', 'remotes.d'),
1137
)
38+
39+
if umockdev_integration_tests.allowed()
1240
diff --git a/meson.build b/meson.build
13-
index ca6ccdf92..36b1b47b0 100644
41+
index 62c127c35..2ceaf531c 100644
1442
--- a/meson.build
1543
+++ b/meson.build
16-
@@ -188,8 +188,8 @@ else
44+
@@ -194,8 +194,8 @@ else
1745
datadir = join_paths(prefix, get_option('datadir'))
1846
sysconfdir = join_paths(prefix, get_option('sysconfdir'))
1947
localstatedir = join_paths(prefix, get_option('localstatedir'))
@@ -24,7 +52,7 @@ index ca6ccdf92..36b1b47b0 100644
2452
daemon_dir = join_paths(libexecdir, 'fwupd')
2553
endif
2654
mandir = join_paths(prefix, get_option('mandir'))
27-
@@ -497,6 +497,7 @@ gnome = import('gnome')
55+
@@ -541,6 +541,7 @@ gnome = import('gnome')
2856
i18n = import('i18n')
2957

3058
conf.set_quoted('FWUPD_PREFIX', prefix)
@@ -33,12 +61,12 @@ index ca6ccdf92..36b1b47b0 100644
3361
conf.set_quoted('FWUPD_LIBDIR', libdir)
3462
conf.set_quoted('FWUPD_LIBEXECDIR', libexecdir)
3563
diff --git a/meson_options.txt b/meson_options.txt
36-
index 877891126..bfc5d1afd 100644
64+
index 769a5b655..a4a211fbb 100644
3765
--- a/meson_options.txt
3866
+++ b/meson_options.txt
39-
@@ -452,6 +452,10 @@ option('elogind',
40-
'false': 'disabled',
41-
},
67+
@@ -328,6 +328,10 @@ option('systemd_unit_user',
68+
value: 'fwupd-refresh',
69+
description: 'User account to use for fwupd-refresh.service (empty for DynamicUser)',
4270
)
4371
+option('installed_test_prefix',
4472
+ type: 'string',
@@ -47,3 +75,16 @@ index 877891126..bfc5d1afd 100644
4775
option('tests',
4876
type: 'boolean',
4977
value: true,
78+
diff --git a/src/tests/host-emulate/meson.build b/src/tests/host-emulate/meson.build
79+
index 4bc02e46e..17bc2270d 100644
80+
--- a/src/tests/host-emulate/meson.build
81+
+++ b/src/tests/host-emulate/meson.build
82+
@@ -9,7 +9,7 @@ if build_standalone
83+
capture: true,
84+
command: [gzip, '-k', '--stdout', '@INPUT@'],
85+
install: true,
86+
- install_dir: join_paths(datadir, 'fwupd', 'host-emulate.d'),
87+
+ install_dir: join_paths(get_option('installed_test_prefix'), 'etc', 'fwupd', 'host-emulate.d'),
88+
)
89+
endforeach
90+
endif

0 commit comments

Comments
 (0)