fwupd: 2.0.15 -> 2.0.16 (Fix regression in 2.0.15 preventing any updates) (#442316)

authored by Ramses and committed by GitHub 0e03b566 2a9ea241

+101 -96
+72 -70
pkgs/by-name/fw/fwupd/add-option-for-installation-sysconfdir.patch
··· 1 - commit 448e265ad3fef9a5ef0ff57593dd5a9164118852 1 + commit 56507892ff7a03ed283d7fd2d7ff2000fc9c17d7 2 2 Author: r-vdp <ramses@well-founded.dev> 3 3 Date: Tue Oct 15 11:46:38 2024 +0200 4 4 5 5 Add option for installation sysconfdir 6 6 7 7 diff --git a/data/bios-settings.d/meson.build b/data/bios-settings.d/meson.build 8 - index 3f1cb3574..acbdccb61 100644 8 + index 2a2a07016..99df55afb 100644 9 9 --- a/data/bios-settings.d/meson.build 10 10 +++ b/data/bios-settings.d/meson.build 11 - @@ -1,6 +1,6 @@ 12 - if build_standalone and host_machine.system() == 'linux' 13 - install_data('README.md', 14 - install_tag: 'doc', 15 - - install_dir: join_paths(sysconfdir, 'fwupd', 'bios-settings.d') 16 - + install_dir: join_paths(datadir, 'fwupd', 'bios-settings.d') 17 - ) 11 + @@ -2,6 +2,6 @@ if build_standalone and host_machine.system() == 'linux' 12 + install_data( 13 + 'README.md', 14 + install_tag: 'doc', 15 + - install_dir: join_paths(sysconfdir, 'fwupd', 'bios-settings.d'), 16 + + install_dir: join_paths(datadir, 'fwupd', 'bios-settings.d'), 17 + ) 18 18 endif 19 19 diff --git a/data/meson.build b/data/meson.build 20 - index 78f54bd83..aae01ed56 100644 20 + index 5716669f0..78e754f40 100644 21 21 --- a/data/meson.build 22 22 +++ b/data/meson.build 23 - @@ -28,7 +28,7 @@ endif 24 - if build_standalone 25 - install_data(['fwupd.conf'], 23 + @@ -29,7 +29,7 @@ if build_standalone 24 + install_data( 25 + ['fwupd.conf'], 26 26 install_tag: 'runtime', 27 27 - install_dir: join_paths(sysconfdir, 'fwupd'), 28 28 + install_dir: join_paths(sysconfdir_install, 'fwupd'), 29 29 install_mode: 'rw-r-----', 30 30 ) 31 - plugin_quirks += files([ 31 + plugin_quirks += files('cfi.quirk', 'ds20.quirk', 'power.quirk', 'vendors.quirk') 32 32 diff --git a/data/pki/meson.build b/data/pki/meson.build 33 - index 9b1e6b372..5c80ba564 100644 33 + index 5b962adf1..b6575f7e4 100644 34 34 --- a/data/pki/meson.build 35 35 +++ b/data/pki/meson.build 36 - @@ -8,14 +8,14 @@ install_data([ 37 - 'GPG-KEY-Linux-Vendor-Firmware-Service', 38 - ], 39 - install_tag: 'runtime', 40 - - install_dir: join_paths(sysconfdir, 'pki', 'fwupd') 41 - + install_dir: join_paths(sysconfdir_install, 'pki', 'fwupd') 42 - ) 43 - install_data([ 44 - 'GPG-KEY-Linux-Foundation-Metadata', 45 - 'GPG-KEY-Linux-Vendor-Firmware-Service', 46 - ], 47 - install_tag: 'runtime', 48 - - install_dir: join_paths(sysconfdir, 'pki', 'fwupd-metadata') 49 - + install_dir: join_paths(sysconfdir_install, 'pki', 'fwupd-metadata') 50 - ) 36 + @@ -12,12 +12,12 @@ if supported_gpg 37 + install_data( 38 + ['GPG-KEY-Linux-Foundation-Firmware', 'GPG-KEY-Linux-Vendor-Firmware-Service'], 39 + install_tag: 'runtime', 40 + - install_dir: join_paths(sysconfdir, 'pki', 'fwupd'), 41 + + install_dir: join_paths(sysconfdir_install, 'pki', 'fwupd'), 42 + ) 43 + install_data( 44 + ['GPG-KEY-Linux-Foundation-Metadata', 'GPG-KEY-Linux-Vendor-Firmware-Service'], 45 + install_tag: 'runtime', 46 + - install_dir: join_paths(sysconfdir, 'pki', 'fwupd-metadata'), 47 + + install_dir: join_paths(sysconfdir_install, 'pki', 'fwupd-metadata'), 48 + ) 51 49 endif 52 50 53 - @@ -24,12 +24,12 @@ install_data([ 54 - 'LVFS-CA.pem', 55 - ], 56 - install_tag: 'runtime', 57 - - install_dir: join_paths(sysconfdir, 'pki', 'fwupd') 58 - + install_dir: join_paths(sysconfdir_install, 'pki', 'fwupd') 59 - ) 60 - install_data([ 61 - 'LVFS-CA.pem', 62 - ], 63 - install_tag: 'runtime', 64 - - install_dir: join_paths(sysconfdir, 'pki', 'fwupd-metadata') 65 - + install_dir: join_paths(sysconfdir_install, 'pki', 'fwupd-metadata') 66 - ) 51 + @@ -25,11 +25,11 @@ if supported_pkcs7 52 + install_data( 53 + ['LVFS-CA.pem'], 54 + install_tag: 'runtime', 55 + - install_dir: join_paths(sysconfdir, 'pki', 'fwupd'), 56 + + install_dir: join_paths(sysconfdir_install, 'pki', 'fwupd'), 57 + ) 58 + install_data( 59 + ['LVFS-CA.pem'], 60 + install_tag: 'runtime', 61 + - install_dir: join_paths(sysconfdir, 'pki', 'fwupd-metadata'), 62 + + install_dir: join_paths(sysconfdir_install, 'pki', 'fwupd-metadata'), 63 + ) 67 64 endif 68 65 diff --git a/data/remotes.d/meson.build b/data/remotes.d/meson.build 69 - index 77285cafa..7d2cb8f58 100644 66 + index b8d24c267..0dd4ad32a 100644 70 67 --- a/data/remotes.d/meson.build 71 68 +++ b/data/remotes.d/meson.build 72 69 @@ -12,7 +12,7 @@ if build_standalone and get_option('lvfs') != 'false' ··· 87 84 ) 88 85 i18n.merge_file( 89 86 input: 'lvfs.metainfo.xml', 90 - @@ -58,7 +58,7 @@ configure_file( 87 + @@ -59,7 +59,7 @@ configure_file( 91 88 configuration: con2, 92 89 install: get_option('vendor_metadata'), 93 90 install_tag: 'runtime', ··· 96 93 ) 97 94 configure_file( 98 95 input: 'vendor-directory.conf', 99 - @@ -66,5 +66,5 @@ configure_file( 96 + @@ -67,5 +67,5 @@ configure_file( 100 97 configuration: con2, 101 98 install: true, 102 99 install_tag: 'runtime', ··· 104 101 + install_dir: join_paths(sysconfdir_install, 'fwupd', 'remotes.d'), 105 102 ) 106 103 diff --git a/docs/meson.build b/docs/meson.build 107 - index c1e483f4f..684ec3fbe 100644 104 + index 787b4387c..b3144757f 100644 108 105 --- a/docs/meson.build 109 106 +++ b/docs/meson.build 110 - @@ -127,7 +127,7 @@ if build_docs 107 + @@ -196,7 +196,7 @@ if build_docs 111 108 build_by_default: true, 112 109 install: true, 113 110 install_tag: 'doc', ··· 116 113 ) 117 114 118 115 subdir('hsi-tests.d') 119 - @@ -186,7 +186,7 @@ if build_docs 116 + @@ -247,7 +247,7 @@ if build_docs 120 117 build_by_default: true, 121 118 install: true, 122 119 install_tag: 'doc', ··· 124 121 + install_dir: join_paths(sysconfdir_install, 'doc'), 125 122 ) 126 123 man_cmd = [] 127 - foreach man: man_md 128 - @@ -201,31 +201,31 @@ if build_docs 129 - ], 124 + foreach man : man_md 125 + @@ -260,36 +260,36 @@ if build_docs 126 + command: [generate_index, '@INPUT@', '-o', '@OUTPUT@', man_cmd], 130 127 install: true, 131 128 install_tag: 'doc', 132 - - install_dir: join_paths(datadir, 'doc', 'fwupd') 133 - + install_dir: join_paths(sysconfdir_install, 'doc', 'fwupd') 129 + - install_dir: join_paths(datadir, 'doc', 'fwupd'), 130 + + install_dir: join_paths(sysconfdir_install, 'doc', 'fwupd'), 134 131 ) 135 132 if hsi 136 - install_data(['hsi.html'], 133 + install_data( 134 + ['hsi.html'], 137 135 install_tag: 'doc', 138 - - install_dir : join_paths(datadir, 'doc', 'fwupd') 139 - + install_dir : join_paths(sysconfdir_install, 'doc', 'fwupd') 136 + - install_dir: join_paths(datadir, 'doc', 'fwupd'), 137 + + install_dir: join_paths(sysconfdir_install, 'doc', 'fwupd'), 140 138 ) 141 139 endif 142 - install_data(['urlmap_fwupd.js'], 140 + install_data( 141 + ['urlmap_fwupd.js'], 143 142 install_tag: 'doc', 144 - - install_dir: join_paths(datadir, 'doc', 'libfwupd') 145 - + install_dir: join_paths(sysconfdir_install, 'doc', 'libfwupd') 143 + - install_dir: join_paths(datadir, 'doc', 'libfwupd'), 144 + + install_dir: join_paths(sysconfdir_install, 'doc', 'libfwupd'), 146 145 ) 147 - install_data(['urlmap_fwupdplugin.js'], 146 + install_data( 147 + ['urlmap_fwupdplugin.js'], 148 148 install_tag: 'doc', 149 - - install_dir: join_paths(datadir, 'doc', 'libfwupdplugin') 150 - + install_dir: join_paths(sysconfdir_install, 'doc', 'libfwupdplugin') 149 + - install_dir: join_paths(datadir, 'doc', 'libfwupdplugin'), 150 + + install_dir: join_paths(sysconfdir_install, 'doc', 'libfwupdplugin'), 151 151 ) 152 152 #make devhelp work 153 - install_symlink('libfwupd', 153 + install_symlink( 154 + 'libfwupd', 154 155 install_tag: 'doc', 155 156 - install_dir: join_paths(datadir, 'doc', 'fwupd'), 156 157 + install_dir: join_paths(sysconfdir_install, 'doc', 'fwupd'), 157 158 pointing_to: join_paths('..', 'libfwupd'), 158 159 ) 159 - install_symlink('libfwupdplugin', 160 + install_symlink( 161 + 'libfwupdplugin', 160 162 install_tag: 'doc', 161 163 - install_dir: join_paths(datadir, 'doc', 'fwupd'), 162 164 + install_dir: join_paths(sysconfdir_install, 'doc', 'fwupd'), ··· 164 166 ) 165 167 endif 166 168 diff --git a/meson.build b/meson.build 167 - index 4faedcc0b..980f9bb0c 100644 169 + index ca431980b..d9bab5264 100644 168 170 --- a/meson.build 169 171 +++ b/meson.build 170 - @@ -212,6 +212,12 @@ endif 172 + @@ -246,6 +246,12 @@ endif 171 173 mandir = join_paths(prefix, get_option('mandir')) 172 174 localedir = join_paths(prefix, get_option('localedir')) 173 175 ··· 178 180 +endif 179 181 + 180 182 diffcmd = find_program('diff') 181 - gio = dependency('gio-2.0', version: '>= 2.68.0') # limited by RHEL-9, which has v2.68.4 182 - giounix = dependency('gio-unix-2.0', version: '>= 2.68.0', required: false) 183 + gio = dependency( 184 + 'gio-2.0', 183 185 diff --git a/meson_options.txt b/meson_options.txt 184 186 index 63c8d288d..04f6651e6 100644 185 187 --- a/meson_options.txt
+5 -5
pkgs/by-name/fw/fwupd/efi-app-path.patch
··· 1 - commit 1770b1871a567dfa78ae1e32094b6007bb7639e9 1 + commit f60f2bf6dd4961bdda742f590bf2d7871db6cdab 2 2 Author: r-vdp <ramses@well-founded.dev> 3 3 Date: Mon Oct 28 12:08:49 2024 +0100 4 4 5 5 Get the efi app from fwupd-efi 6 6 7 7 diff --git a/meson.build b/meson.build 8 - index e4e764b97..8acaa3d2d 100644 8 + index d9bab5264..ee91d34b0 100644 9 9 --- a/meson.build 10 10 +++ b/meson.build 11 - @@ -482,7 +482,7 @@ endif 11 + @@ -650,7 +650,7 @@ endif 12 12 13 13 # EFI 14 14 if build_standalone 15 15 - efi_app_location = join_paths(libexecdir, 'fwupd', 'efi') 16 16 + efi_app_location = join_paths(dependency('fwupd-efi').get_variable(pkgconfig: 'prefix'), 'libexec', 'fwupd', 'efi') 17 17 conf.set_quoted('EFI_APP_LOCATION', efi_app_location) 18 - if host_cpu == 'x86' 19 - EFI_MACHINE_TYPE_NAME = 'ia32' 18 + endif 19 +
+10 -10
pkgs/by-name/fw/fwupd/install-fwupdplugin-to-out.patch
··· 1 - commit 1b7f8b3ad7df9a5911fbc45608d9b40e0787baca 1 + commit 3ffe2d7842b62986e2267e6542068e6356b06fdf 2 2 Author: r-vdp <ramses@well-founded.dev> 3 3 Date: Mon Oct 28 12:07:51 2024 +0100 4 4 5 5 Install fwupdplugin to out 6 6 7 7 diff --git a/meson.build b/meson.build 8 - index 747d1b385..312513d75 100644 8 + index 3a163331e..cb66be0cc 100644 9 9 --- a/meson.build 10 10 +++ b/meson.build 11 - @@ -548,7 +548,7 @@ if build_standalone 12 - if host_machine.system() == 'windows' 13 - libdir_pkg = bindir 14 - else 15 - - libdir_pkg = join_paths(libdir, 'fwupd-@0@'.format(fwupd_version)) 16 - + libdir_pkg = join_paths(prefix, 'lib', 'fwupd-@0@'.format(fwupd_version)) 17 - endif 18 - conf.set_quoted('FWUPD_LIBDIR_PKG', libdir_pkg) 11 + @@ -733,7 +733,7 @@ if build_standalone 12 + if host_machine.system() == 'windows' 13 + libdir_pkg = bindir 14 + else 15 + - libdir_pkg = join_paths(libdir, 'fwupd-@0@'.format(fwupd_version)) 16 + + libdir_pkg = join_paths(prefix, 'lib', 'fwupd-@0@'.format(fwupd_version)) 17 + endif 18 + conf.set_quoted('FWUPD_LIBDIR_PKG', libdir_pkg) 19 19 endif
+8 -8
pkgs/by-name/fw/fwupd/installed-tests-path.patch
··· 1 - commit abaf36af96c7dfc966110c5342d5a8814c0df492 1 + commit 954e41500e1b409a24fca43ae3bdc1c6a890db48 2 2 Author: r-vdp <ramses@well-founded.dev> 3 3 Date: Tue Oct 15 14:49:53 2024 +0200 4 4 5 5 Add output for installed tests 6 6 7 7 diff --git a/data/tests/meson.build b/data/tests/meson.build 8 - index da9524677..505d7a80e 100644 8 + index 3eba65eea..cf3931bb7 100644 9 9 --- a/data/tests/meson.build 10 10 +++ b/data/tests/meson.build 11 - @@ -131,7 +131,7 @@ configure_file( 11 + @@ -122,7 +122,7 @@ configure_file( 12 12 configuration: con2, 13 13 install: true, 14 14 install_tag: 'tests', ··· 18 18 19 19 if umockdev_integration_tests.allowed() 20 20 diff --git a/meson.build b/meson.build 21 - index 312513d75..4faedcc0b 100644 21 + index cb66be0cc..ca431980b 100644 22 22 --- a/meson.build 23 23 +++ b/meson.build 24 - @@ -205,8 +205,8 @@ else 24 + @@ -239,8 +239,8 @@ else 25 25 datadir = join_paths(prefix, get_option('datadir')) 26 26 sysconfdir = join_paths(prefix, get_option('sysconfdir')) 27 27 localstatedir = join_paths(prefix, get_option('localstatedir')) ··· 32 32 daemon_dir = join_paths(libexecdir, 'fwupd') 33 33 endif 34 34 mandir = join_paths(prefix, get_option('mandir')) 35 - @@ -536,6 +536,7 @@ gnome = import('gnome') 35 + @@ -721,6 +721,7 @@ gnome = import('gnome') 36 36 i18n = import('i18n') 37 37 38 38 conf.set_quoted('FWUPD_PREFIX', prefix) ··· 56 56 type: 'boolean', 57 57 value: true, 58 58 diff --git a/src/tests/host-emulate/meson.build b/src/tests/host-emulate/meson.build 59 - index 0a67d70e8..7e07c0a49 100644 59 + index c36da65cd..f0b70d4d6 100644 60 60 --- a/src/tests/host-emulate/meson.build 61 61 +++ b/src/tests/host-emulate/meson.build 62 - @@ -10,7 +10,7 @@ if build_standalone 62 + @@ -9,7 +9,7 @@ if build_standalone 63 63 command: [gzip, '-k', '--stdout', '@INPUT@'], 64 64 install: true, 65 65 install_tag: 'tests',
+6 -3
pkgs/by-name/fw/fwupd/package.nix
··· 134 134 in 135 135 stdenv.mkDerivation (finalAttrs: { 136 136 pname = "fwupd"; 137 - version = "2.0.15"; 137 + version = "2.0.16"; 138 138 139 139 # libfwupd goes to lib 140 140 # daemon, plug-ins and libfwupdplugin go to out ··· 152 152 owner = "fwupd"; 153 153 repo = "fwupd"; 154 154 tag = finalAttrs.version; 155 - hash = "sha256-p0ZpbthjUaEKAn1UwzoW2gxqiBTsC4GMoXTmV3zKN2o="; 155 + hash = "sha256-fsjW3Idaqg4pNGaRP0bm2R94FcW2MVfPQwPFWrN+Qy8="; 156 156 }; 157 157 158 158 patches = [ ··· 400 400 meta = { 401 401 homepage = "https://fwupd.org/"; 402 402 changelog = "https://github.com/fwupd/fwupd/releases/tag/${finalAttrs.version}"; 403 - maintainers = with lib.maintainers; [ rvdp ]; 403 + maintainers = with lib.maintainers; [ 404 + rvdp 405 + johnazoidberg 406 + ]; 404 407 license = lib.licenses.lgpl21Plus; 405 408 platforms = lib.platforms.linux; 406 409 };