Merge pull request #183686 from jtojnar/fwupd

fwupd: 1.8.1 → 1.8.3

authored by Jan Tojnar and committed by GitHub 41ed7e2f 7d4ed41a

+79 -70
+50 -50
pkgs/os-specific/linux/firmware/fwupd/add-option-for-installation-sysconfdir.patch
··· 1 1 diff --git a/data/meson.build b/data/meson.build 2 - index 9176aa34..1a0298a9 100644 2 + index d8494020d..7c896fa0d 100644 3 3 --- a/data/meson.build 4 4 +++ b/data/meson.build 5 5 @@ -26,7 +26,7 @@ endif 6 6 7 7 if build_standalone 8 8 install_data(['daemon.conf'], 9 - - install_dir : join_paths(sysconfdir, 'fwupd') 10 - + install_dir : join_paths(sysconfdir_install, 'fwupd') 9 + - install_dir: join_paths(sysconfdir, 'fwupd') 10 + + install_dir: join_paths(sysconfdir_install, 'fwupd') 11 11 ) 12 - install_data(['power.quirk', 'cfi.quirk'], 13 - install_dir: join_paths(datadir, 'fwupd', 'quirks.d')) 12 + plugin_quirks += join_paths(meson.current_source_dir(), 'power.quirk') 13 + plugin_quirks += join_paths(meson.current_source_dir(), 'cfi.quirk') 14 14 diff --git a/data/pki/meson.build b/data/pki/meson.build 15 - index 499b7201..1be13607 100644 15 + index 3649fecea..c3462744b 100644 16 16 --- a/data/pki/meson.build 17 17 +++ b/data/pki/meson.build 18 18 @@ -12,13 +12,13 @@ install_data([ 19 19 'GPG-KEY-Linux-Foundation-Firmware', 20 20 'GPG-KEY-Linux-Vendor-Firmware-Service', 21 21 ], 22 - - install_dir : join_paths(sysconfdir, 'pki', 'fwupd') 23 - + install_dir : join_paths(sysconfdir_install, 'pki', 'fwupd') 22 + - install_dir: join_paths(sysconfdir, 'pki', 'fwupd') 23 + + install_dir: join_paths(sysconfdir_install, 'pki', 'fwupd') 24 24 ) 25 25 install_data([ 26 26 'GPG-KEY-Linux-Foundation-Metadata', 27 27 'GPG-KEY-Linux-Vendor-Firmware-Service', 28 28 ], 29 - - install_dir : join_paths(sysconfdir, 'pki', 'fwupd-metadata') 30 - + install_dir : join_paths(sysconfdir_install, 'pki', 'fwupd-metadata') 29 + - install_dir: join_paths(sysconfdir, 'pki', 'fwupd-metadata') 30 + + install_dir: join_paths(sysconfdir_install, 'pki', 'fwupd-metadata') 31 31 ) 32 32 endif 33 33 ··· 35 35 install_data([ 36 36 'LVFS-CA.pem', 37 37 ], 38 - - install_dir : join_paths(sysconfdir, 'pki', 'fwupd') 39 - + install_dir : join_paths(sysconfdir_install, 'pki', 'fwupd') 38 + - install_dir: join_paths(sysconfdir, 'pki', 'fwupd') 39 + + install_dir: join_paths(sysconfdir_install, 'pki', 'fwupd') 40 40 ) 41 41 install_data([ 42 42 'LVFS-CA.pem', 43 43 ], 44 - - install_dir : join_paths(sysconfdir, 'pki', 'fwupd-metadata') 45 - + install_dir : join_paths(sysconfdir_install, 'pki', 'fwupd-metadata') 44 + - install_dir: join_paths(sysconfdir, 'pki', 'fwupd-metadata') 45 + + install_dir: join_paths(sysconfdir_install, 'pki', 'fwupd-metadata') 46 46 ) 47 47 endif 48 48 diff --git a/data/remotes.d/meson.build b/data/remotes.d/meson.build 49 - index 87e794b1..ebeeeca7 100644 49 + index 1d1698a7e..5469d00a6 100644 50 50 --- a/data/remotes.d/meson.build 51 51 +++ b/data/remotes.d/meson.build 52 52 @@ -2,7 +2,7 @@ if build_standalone and get_option('lvfs') != 'false' 53 53 install_data([ 54 54 'lvfs-testing.conf', 55 55 ], 56 - - install_dir : join_paths(sysconfdir, 'fwupd', 'remotes.d') 57 - + install_dir : join_paths(sysconfdir_install, 'fwupd', 'remotes.d') 56 + - install_dir: join_paths(sysconfdir, 'fwupd', 'remotes.d') 57 + + install_dir: join_paths(sysconfdir_install, 'fwupd', 'remotes.d') 58 58 ) 59 59 con3 = configuration_data() 60 60 if get_option('lvfs') == 'disabled' 61 61 @@ -15,7 +15,7 @@ if build_standalone and get_option('lvfs') != 'false' 62 - output : 'lvfs.conf', 63 - configuration : con3, 62 + output: 'lvfs.conf', 63 + configuration: con3, 64 64 install: true, 65 65 - install_dir: join_paths(sysconfdir, 'fwupd', 'remotes.d'), 66 66 + install_dir: join_paths(sysconfdir_install, 'fwupd', 'remotes.d'), ··· 68 68 i18n.merge_file( 69 69 input: 'lvfs.metainfo.xml', 70 70 @@ -49,12 +49,12 @@ configure_file( 71 - output : 'vendor.conf', 72 - configuration : con2, 71 + output: 'vendor.conf', 72 + configuration: con2, 73 73 install: true, 74 74 - install_dir: join_paths(sysconfdir, 'fwupd', 'remotes.d'), 75 75 + install_dir: join_paths(sysconfdir_install, 'fwupd', 'remotes.d'), 76 76 ) 77 77 configure_file( 78 - input : 'vendor-directory.conf', 79 - output : 'vendor-directory.conf', 80 - configuration : con2, 78 + input: 'vendor-directory.conf', 79 + output: 'vendor-directory.conf', 80 + configuration: con2, 81 81 install: true, 82 82 - install_dir: join_paths(sysconfdir, 'fwupd', 'remotes.d'), 83 83 + install_dir: join_paths(sysconfdir_install, 'fwupd', 'remotes.d'), 84 84 ) 85 85 diff --git a/meson.build b/meson.build 86 - index b91dd037..a8de7810 100644 86 + index e6b717078..f8a7a7455 100644 87 87 --- a/meson.build 88 88 +++ b/meson.build 89 89 @@ -195,6 +195,12 @@ endif ··· 97 97 +endif 98 98 + 99 99 diffcmd = find_program('diff') 100 - gio = dependency('gio-2.0', version : '>= 2.45.8') 101 - giounix = dependency('gio-unix-2.0', version : '>= 2.45.8', required: false) 100 + gio = dependency('gio-2.0', version: '>= 2.45.8') 101 + giounix = dependency('gio-unix-2.0', version: '>= 2.45.8', required: false) 102 102 diff --git a/meson_options.txt b/meson_options.txt 103 - index d00038db..c84652ca 100644 103 + index 06d242371..d9e517fc0 100644 104 104 --- a/meson_options.txt 105 105 +++ b/meson_options.txt 106 106 @@ -1,3 +1,4 @@ ··· 109 109 option('consolekit', type : 'feature', description : 'ConsoleKit support', deprecated: {'true': 'enabled', 'false': 'disabled'}) 110 110 option('static_analysis', type : 'boolean', value : false, description : 'enable GCC static analysis support') 111 111 diff --git a/plugins/dell-esrt/meson.build b/plugins/dell-esrt/meson.build 112 - index 00b7ecda..789f34ca 100644 112 + index 67bd3b9d9..ad04a91b6 100644 113 113 --- a/plugins/dell-esrt/meson.build 114 114 +++ b/plugins/dell-esrt/meson.build 115 115 @@ -38,6 +38,6 @@ configure_file( 116 - output : 'dell-esrt.conf', 117 - configuration : con2, 116 + output: 'dell-esrt.conf', 117 + configuration: con2, 118 118 install: true, 119 119 - install_dir: join_paths(sysconfdir, 'fwupd', 'remotes.d'), 120 120 + install_dir: join_paths(sysconfdir_install, 'fwupd', 'remotes.d'), 121 121 ) 122 122 endif 123 123 diff --git a/plugins/msr/meson.build b/plugins/msr/meson.build 124 - index 1a278375..f57ae530 100644 124 + index 13f03ccd4..9235ebe33 100644 125 125 --- a/plugins/msr/meson.build 126 126 +++ b/plugins/msr/meson.build 127 - @@ -12,7 +12,7 @@ install_data(['fwupd-msr.conf'], 127 + @@ -10,7 +10,7 @@ install_data(['fwupd-msr.conf'], 128 128 endif 129 129 130 130 install_data(['msr.conf'], 131 - - install_dir: join_paths(sysconfdir, 'fwupd') 132 - + install_dir: join_paths(sysconfdir_install, 'fwupd') 131 + - install_dir: join_paths(sysconfdir, 'fwupd') 132 + + install_dir: join_paths(sysconfdir_install, 'fwupd') 133 133 ) 134 134 shared_module('fu_plugin_msr', 135 135 fu_hash, 136 136 diff --git a/plugins/redfish/meson.build b/plugins/redfish/meson.build 137 - index 8717d50f..9a703723 100644 137 + index 95606e478..e5355e520 100644 138 138 --- a/plugins/redfish/meson.build 139 139 +++ b/plugins/redfish/meson.build 140 - @@ -51,7 +51,7 @@ shared_module('fu_plugin_redfish', 140 + @@ -43,7 +43,7 @@ shared_module('fu_plugin_redfish', 141 141 ) 142 142 143 143 install_data(['redfish.conf'], 144 - - install_dir: join_paths(sysconfdir, 'fwupd'), 145 - + install_dir: join_paths(sysconfdir_install, 'fwupd'), 144 + - install_dir: join_paths(sysconfdir, 'fwupd'), 145 + + install_dir: join_paths(sysconfdir_install, 'fwupd'), 146 146 ) 147 147 148 148 if get_option('tests') 149 149 diff --git a/plugins/thunderbolt/meson.build b/plugins/thunderbolt/meson.build 150 - index aa6c8ce1..61734c4d 100644 150 + index 5f8ffbf90..9ba323e75 100644 151 151 --- a/plugins/thunderbolt/meson.build 152 152 +++ b/plugins/thunderbolt/meson.build 153 - @@ -35,7 +35,7 @@ fu_plugin_thunderbolt = shared_module('fu_plugin_thunderbolt', 153 + @@ -32,7 +32,7 @@ fu_plugin_thunderbolt = shared_module('fu_plugin_thunderbolt', 154 154 ) 155 155 156 156 install_data(['thunderbolt.conf'], 157 - - install_dir: join_paths(sysconfdir, 'fwupd') 158 - + install_dir: join_paths(sysconfdir_install, 'fwupd') 157 + - install_dir: join_paths(sysconfdir, 'fwupd') 158 + + install_dir: join_paths(sysconfdir_install, 'fwupd') 159 159 ) 160 160 # we use functions from 2.52 in the tests 161 161 if get_option('tests') and run_sanitize_unsafe_tests and umockdev.found() and gio.version().version_compare('>= 2.52') 162 162 diff --git a/plugins/uefi-capsule/meson.build b/plugins/uefi-capsule/meson.build 163 - index 2d9ba819..0feb5f6b 100644 163 + index ef38dc03e..78ff65e1d 100644 164 164 --- a/plugins/uefi-capsule/meson.build 165 165 +++ b/plugins/uefi-capsule/meson.build 166 - @@ -21,7 +21,7 @@ if host_machine.system() == 'linux' 167 - output : '35_fwupd', 168 - configuration : con2, 166 + @@ -20,7 +20,7 @@ if host_machine.system() == 'linux' 167 + output: '35_fwupd', 168 + configuration: con2, 169 169 install: true, 170 170 - install_dir: join_paths(sysconfdir, 'grub.d') 171 171 + install_dir: join_paths(sysconfdir_install, 'grub.d') 172 172 ) 173 173 elif host_machine.system() == 'freebsd' 174 174 backend_srcs += 'fu-uefi-backend-freebsd.c' 175 - @@ -112,7 +112,7 @@ if get_option('compat_cli') and get_option('man') 175 + @@ -110,7 +110,7 @@ if get_option('compat_cli') and get_option('man') 176 176 endif 177 177 178 178 install_data(['uefi_capsule.conf'], 179 - - install_dir: join_paths(sysconfdir, 'fwupd') 180 - + install_dir: join_paths(sysconfdir_install, 'fwupd') 179 + - install_dir: join_paths(sysconfdir, 'fwupd') 180 + + install_dir: join_paths(sysconfdir_install, 'fwupd') 181 181 ) 182 182 183 183 # add all the .po files as inputs to watch
+21 -12
pkgs/os-specific/linux/firmware/fwupd/default.nix
··· 4 4 , lib 5 5 , fetchurl 6 6 , fetchFromGitHub 7 - , gtk-doc 7 + , gi-docgen 8 8 , pkg-config 9 9 , gobject-introspection 10 10 , gettext ··· 17 17 , libarchive 18 18 , curl 19 19 , libjcat 20 - , libxslt 21 20 , elfutils 22 21 , libsmbios 23 22 , efivar ··· 25 24 , meson 26 25 , libuuid 27 26 , colord 28 - , docbook_xml_dtd_43 29 - , docbook-xsl-nons 30 27 , ninja 31 28 , gcab 32 29 , gnutls ··· 117 114 118 115 self = stdenv.mkDerivation rec { 119 116 pname = "fwupd"; 120 - version = "1.8.1"; 117 + version = "1.8.3"; 121 118 122 119 # libfwupd goes to lib 123 120 # daemon, plug-ins and libfwupdplugin go to out ··· 126 123 127 124 src = fetchurl { 128 125 url = "https://people.freedesktop.org/~hughsient/releases/fwupd-${version}.tar.xz"; 129 - sha256 = "sha256-V1ZGZELrkTT7QM3IpG+eAQAyR8jqyC+l2LFvZCA3W3k="; 126 + sha256 = "sha256-ciIpd86KhmJRH/o8CIFWb2xFjsjWHSUNlGYRfWEiOOw="; 130 127 }; 131 128 132 129 patches = [ ··· 152 149 nativeBuildInputs = [ 153 150 meson 154 151 ninja 155 - gtk-doc 152 + gi-docgen 156 153 pkg-config 157 154 gobject-introspection 158 155 gettext ··· 160 157 valgrind 161 158 gcab 162 159 gnutls 163 - docbook_xml_dtd_43 164 - docbook-xsl-nons 165 - libxslt 166 160 protobufc # for protoc 167 161 python 168 162 wrapGAppsHook ··· 201 195 ]; 202 196 203 197 mesonFlags = [ 204 - "-Ddocs=gtkdoc" 198 + "-Ddocs=enabled" 205 199 "-Dplugin_dummy=true" 206 200 # We are building the official releases. 207 201 "-Dsupported_build=enabled" ··· 216 210 "-Dsysconfdir_install=${placeholder "out"}/etc" 217 211 "-Defi_os_dir=nixos" 218 212 "-Dplugin_modem_manager=enabled" 213 + # Requires Meson 0.63 214 + "-Dgresource_quirks=disabled" 219 215 220 216 # We do not want to place the daemon into lib (cyclic reference) 221 217 "--libexecdir=${placeholder "out"}/libexec" ··· 261 257 meson_post_install.sh \ 262 258 po/test-deps 263 259 260 + # This checks a version of a dependency of gi-docgen but gi-docgen is self-contained in Nixpkgs. 261 + echo "Clearing docs/test-deps.py" 262 + test -f docs/test-deps.py 263 + echo > docs/test-deps.py 264 + 264 265 substituteInPlace data/installed-tests/fwupdmgr-p2p.sh \ 265 266 --replace "gdbus" ${glib.bin}/bin/gdbus 266 267 ''; 267 268 269 + preBuild = '' 270 + # jcat-tool at buildtime requires a home directory 271 + export HOME="$(mktemp -d)" 272 + ''; 273 + 268 274 preCheck = '' 269 275 addToSearchPath XDG_DATA_DIRS "${shared-mime-info}/share" 270 276 ''; ··· 298 304 ) 299 305 ''; 300 306 301 - # Since we had to disable wrapGAppsHook, we need to wrap the executables manually. 302 307 postFixup = '' 308 + # Since we had to disable wrapGAppsHook, we need to wrap the executables manually. 303 309 find -L "$out/bin" "$out/libexec" -type f -executable -print0 \ 304 310 | while IFS= read -r -d ''' file; do 305 311 if [[ "$file" != *.efi ]]; then ··· 307 313 wrapGApp "$file" 308 314 fi 309 315 done 316 + 317 + # Cannot be in postInstall, otherwise _multioutDocs hook in preFixup will move right back. 318 + moveToOutput "share/doc" "$devdoc" 310 319 ''; 311 320 312 321 separateDebugInfo = true;
+8 -8
pkgs/os-specific/linux/firmware/fwupd/install-fwupdplugin-to-out.patch
··· 4 4 +++ b/libfwupdplugin/meson.build 5 5 @@ -220,7 +220,8 @@ fwupdplugin = library( 6 6 ], 7 - link_args : cc.get_supported_link_arguments([vflag]), 8 - link_depends : fwupdplugin_mapfile, 9 - - install : true 10 - + install : true, 11 - + install_dir : bindir / '..' / 'lib', 7 + link_args: cc.get_supported_link_arguments([vflag]), 8 + link_depends: fwupdplugin_mapfile, 9 + - install: true 10 + + install: true, 11 + + install_dir: bindir / '..' / 'lib', 12 12 ) 13 13 14 14 fwupdplugin_pkgg = import('pkgconfig') ··· 16 16 girtargets, 17 17 fwupd_gir[0], 18 18 ], 19 - - install : true 20 - + install : true, 21 - + install_dir_typelib : bindir / '..' / 'lib' / 'girepository-1.0', 19 + - install: true 20 + + install: true, 21 + + install_dir_typelib: bindir / '..' / 'lib' / 'girepository-1.0', 22 22 ) 23 23 24 24 # Verify the map file is correct -- note we can't actually use the generated