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