nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge pull request #79309 from jtojnar/hugsie-pkgs

fwupd: 1.3.3 → 1.3.7

authored by

Jan Tojnar and committed by
GitHub
f4f39fc8 67312c60

+36 -78
+2 -2
pkgs/development/libraries/gusb/default.nix
··· 4 4 }: 5 5 stdenv.mkDerivation rec { 6 6 pname = "gusb"; 7 - version = "0.3.0"; 7 + version = "0.3.3"; 8 8 9 9 outputs = [ "bin" "out" "dev" "devdoc" ]; 10 10 11 11 src = fetchurl { 12 12 url = "https://people.freedesktop.org/~hughsient/releases/libgusb-${version}.tar.xz"; 13 - sha256 = "1p4f6jdjw6zl986f93gzdjg2hdcn5dlz6rcckcz4rbmnk47rbryq"; 13 + sha256 = "14pbd0812151ga7jrpzi88fcrwkckx6m07ay84l7dzkxbdc44fgr"; 14 14 }; 15 15 16 16 nativeBuildInputs = [
+2 -4
pkgs/development/libraries/libxmlb/default.nix
··· 5 5 , glib 6 6 , gobject-introspection 7 7 , gtk-doc 8 - , libuuid 9 8 , meson 10 9 , ninja 11 10 , pkgconfig ··· 15 16 16 17 stdenv.mkDerivation rec { 17 18 pname = "libxmlb"; 18 - version = "0.1.13"; 19 + version = "0.1.14"; 19 20 20 21 outputs = [ "out" "lib" "dev" "devdoc" "installedTests" ]; 21 22 ··· 23 24 owner = "hughsie"; 24 25 repo = "libxmlb"; 25 26 rev = version; 26 - sha256 = "14bk7bk08mjbildak1l7jq7idcyask7384vigpq9zmwai1gax4s7"; 27 + sha256 = "05snbv1dvqa96k7xlwi2sj161315kps3baansr9xdpwim5ckmwc6"; 27 28 }; 28 29 29 30 patches = [ ··· 44 45 45 46 buildInputs = [ 46 47 glib 47 - libuuid 48 48 ]; 49 49 50 50 mesonFlags = [
+10 -10
pkgs/development/libraries/libxmlb/installed-tests-path.patch
··· 1 1 diff --git a/meson.build b/meson.build 2 - index b064cb8..1a470cf 100644 2 + index 38486c9..c567613 100644 3 3 --- a/meson.build 4 4 +++ b/meson.build 5 - @@ -103,8 +103,8 @@ 6 - 7 - libexecdir = join_paths(prefix, get_option('libexecdir')) 8 - datadir = join_paths(prefix, get_option('datadir')) 9 - -installed_test_bindir = join_paths(libexecdir, 'installed-tests', meson.project_name()) 10 - -installed_test_datadir = join_paths(datadir, 'installed-tests', meson.project_name()) 11 - +installed_test_bindir = join_paths(get_option('installed_test_prefix'), 'libexec', 'installed-tests', meson.project_name()) 12 - +installed_test_datadir = join_paths(get_option('installed_test_prefix'), 'share', 'installed-tests', meson.project_name()) 5 + @@ -110,8 +110,8 @@ 6 + prefix = get_option('prefix') 7 + datadir = join_paths(prefix, get_option('datadir')) 8 + libexecdir = join_paths(prefix, get_option('libexecdir')) 9 + - installed_test_bindir = join_paths(libexecdir, 'installed-tests', meson.project_name()) 10 + - installed_test_datadir = join_paths(datadir, 'installed-tests', meson.project_name()) 11 + + installed_test_bindir = join_paths(get_option('installed_test_prefix'), 'libexec', 'installed-tests', meson.project_name()) 12 + + installed_test_datadir = join_paths(get_option('installed_test_prefix'), 'share', 'installed-tests', meson.project_name()) 13 + endif 13 14 14 15 gio = dependency('gio-2.0', version : '>= 2.45.8') 15 - uuid = dependency('uuid') 16 16 diff --git a/meson_options.txt b/meson_options.txt 17 17 index 27e8cb6..74548ae 100644 18 18 --- a/meson_options.txt
+17 -17
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 25db9509..f394eb25 100644 2 + index d59bdc88..4a4cfc35 100644 3 3 --- a/data/meson.build 4 4 +++ b/data/meson.build 5 - @@ -13,7 +13,7 @@ 6 - if build_daemon 7 - subdir('installed-tests') 5 + @@ -16,7 +16,7 @@ 6 + 7 + if build_standalone 8 8 install_data(['daemon.conf'], 9 9 - install_dir : join_paths(sysconfdir, 'fwupd') 10 10 + install_dir : join_paths(sysconfdir_install, 'fwupd') ··· 76 76 + install_dir: join_paths(sysconfdir_install, 'fwupd', 'remotes.d'), 77 77 ) 78 78 diff --git a/meson.build b/meson.build 79 - index 8e1de887..a5bb1fe6 100644 79 + index b1a523d2..aacb8e0a 100644 80 80 --- a/meson.build 81 81 +++ b/meson.build 82 - @@ -158,6 +158,12 @@ 82 + @@ -169,6 +169,12 @@ 83 83 mandir = join_paths(prefix, get_option('mandir')) 84 84 localedir = join_paths(prefix, get_option('localedir')) 85 85 ··· 89 89 + sysconfdir_install = sysconfdir 90 90 +endif 91 91 + 92 + diffcmd = find_program('diff') 92 93 gio = dependency('gio-2.0', version : '>= 2.45.8') 93 - giounix = dependency('gio-unix-2.0', version : '>= 2.45.8') 94 - if gio.version().version_compare ('>= 2.55.0') 94 + giounix = dependency('gio-unix-2.0', version : '>= 2.45.8', required: false) 95 95 diff --git a/meson_options.txt b/meson_options.txt 96 - index 71b50c6a..561c2031 100644 96 + index be0adfef..73983333 100644 97 97 --- a/meson_options.txt 98 98 +++ b/meson_options.txt 99 - @@ -24,6 +24,7 @@ 99 + @@ -26,6 +26,7 @@ 100 100 option('systemd', type : 'boolean', value : true, description : 'enable systemd support') 101 101 option('systemdunitdir', type: 'string', value: '', description: 'Directory for systemd units') 102 102 option('elogind', type : 'boolean', value : false, description : 'enable elogind support') ··· 105 105 option('udevdir', type: 'string', value: '', description: 'Directory for udev rules') 106 106 option('efi-cc', type : 'string', value : 'gcc', description : 'the compiler to use for EFI modules') 107 107 diff --git a/plugins/dell-esrt/meson.build b/plugins/dell-esrt/meson.build 108 - index cb9f4555..b972d7fb 100644 108 + index ed4eee70..76dbdb1d 100644 109 109 --- a/plugins/dell-esrt/meson.build 110 110 +++ b/plugins/dell-esrt/meson.build 111 - @@ -36,5 +36,5 @@ 111 + @@ -37,5 +37,5 @@ 112 112 output : 'dell-esrt.conf', 113 113 configuration : con2, 114 114 install: true, ··· 116 116 + install_dir: join_paths(sysconfdir_install, 'fwupd', 'remotes.d'), 117 117 ) 118 118 diff --git a/plugins/redfish/meson.build b/plugins/redfish/meson.build 119 - index 5c88504e..7706da71 100644 119 + index 25fc5c7d..77eb9a83 100644 120 120 --- a/plugins/redfish/meson.build 121 121 +++ b/plugins/redfish/meson.build 122 - @@ -26,7 +26,7 @@ 122 + @@ -27,7 +27,7 @@ 123 123 ) 124 124 125 125 install_data(['redfish.conf'], ··· 129 129 130 130 if get_option('tests') 131 131 diff --git a/plugins/thunderbolt/meson.build b/plugins/thunderbolt/meson.build 132 - index 42718abf..bc815491 100644 132 + index 06ab34ee..297a9182 100644 133 133 --- a/plugins/thunderbolt/meson.build 134 134 +++ b/plugins/thunderbolt/meson.build 135 135 @@ -46,7 +46,7 @@ ··· 142 142 # we use functions from 2.52 in the tests 143 143 if get_option('tests') and umockdev.found() and gio.version().version_compare('>= 2.52') 144 144 diff --git a/plugins/uefi/meson.build b/plugins/uefi/meson.build 145 - index 45b18d7d..ef8e0b04 100644 145 + index 39b5f566..0f904a22 100644 146 146 --- a/plugins/uefi/meson.build 147 147 +++ b/plugins/uefi/meson.build 148 - @@ -85,7 +85,7 @@ 148 + @@ -87,7 +87,7 @@ 149 149 ) 150 150 151 151 install_data(['uefi.conf'],
+5 -14
pkgs/os-specific/linux/firmware/fwupd/default.nix
··· 87 87 88 88 stdenv.mkDerivation rec { 89 89 pname = "fwupd"; 90 - version = "1.3.3"; 90 + version = "1.3.7"; 91 91 92 92 src = fetchurl { 93 93 url = "https://people.freedesktop.org/~hughsient/releases/fwupd-${version}.tar.xz"; 94 - sha256 = "0nqzqvx8nzflhb4kzvkdcv7kixb50vh6h21kpkd7pjxp942ndzql"; 94 + sha256 = "02mzn3whk5mba4nxyrkypawr1gzjx79n4nrkhrp8vja6mxxgsf10"; 95 95 }; 96 96 97 - outputs = [ "out" "lib" "dev" "devdoc" "man" "installedTests" ]; 97 + outputs = [ "out" "dev" "devdoc" "man" "installedTests" ]; 98 98 99 99 nativeBuildInputs = [ 100 100 meson ··· 148 148 ./fix-paths.patch 149 149 ./add-option-for-installation-sysconfdir.patch 150 150 151 - # do not require which 152 - # https://github.com/fwupd/fwupd/pull/1568 153 - ./no-which.patch 154 - 155 151 # installed tests are installed to different output 156 152 # we also cannot have fwupd-tests.conf in $out/etc since it would form a cycle 157 153 (substituteAll { ··· 159 163 160 164 postPatch = '' 161 165 patchShebangs \ 162 - libfwupd/generate-version-script.py \ 166 + contrib/get-version.py \ 167 + contrib/generate-version-script.py \ 163 168 meson_post_install.sh \ 164 169 po/make-images \ 165 170 po/make-images.sh \ ··· 169 172 # we cannot use placeholder in substituteAll 170 173 # https://github.com/NixOS/nix/issues/1846 171 174 substituteInPlace data/installed-tests/meson.build --subst-var installedTests 172 - 173 - # install plug-ins to out, they are not really part of the library 174 - substituteInPlace meson.build \ 175 - --replace "plugin_dir = join_paths(libdir, 'fwupd-plugins-3')" \ 176 - "plugin_dir = join_paths('${placeholder "out"}', 'fwupd_plugins-3')" 177 175 178 176 substituteInPlace data/meson.build --replace \ 179 177 "install_dir: systemd.get_pkgconfig_variable('systemdshutdowndir')" \ ··· 203 211 "--localstatedir=/var" 204 212 "--sysconfdir=/etc" 205 213 "-Dsysconfdir_install=${placeholder "out"}/etc" 206 - "--libexecdir=${placeholder "out"}/libexec" 207 214 ] ++ stdenv.lib.optionals (!haveDell) [ 208 215 "-Dplugin_dell=false" 209 216 "-Dplugin_synaptics=false"
-31
pkgs/os-specific/linux/firmware/fwupd/no-which.patch
··· 1 - --- a/plugins/uefi/efi/generate_binary.sh 2 - +++ b/plugins/uefi/efi/generate_binary.sh 3 - @@ -1,9 +1,9 @@ 4 - #!/bin/sh 5 - output=$2 6 - -objcopy_cmd=$(which objcopy) 7 - -genpeimg_cmd=$(which genpeimg) 8 - +objcopy_cmd=$(command -v objcopy) 9 - +genpeimg_cmd=$(command -v genpeimg) 10 - 11 - -$objcopy_cmd -j .text \ 12 - +"$objcopy_cmd" -j .text \ 13 - -j .sdata \ 14 - -j .data \ 15 - -j .dynamic \ 16 - @@ -11,7 +11,7 @@ 17 - -j .rel \ 18 - -j .rela \ 19 - -j .reloc \ 20 - - $* 21 - + "$@" 22 - 23 - if [ -n "${genpeimg_cmd}" ]; then 24 - $genpeimg_cmd -d \ 25 - @@ -20,5 +20,5 @@ 26 - +n \ 27 - -d \ 28 - +s \ 29 - - $output 30 - + "$output" 31 - fi