Merge staging-next into staging

authored by github-actions[bot] and committed by GitHub d1621047 ff7b8d6e

+1049 -74
+86
nixos/modules/virtualisation/includes-to-excludes.py
··· 1 + 2 + # Convert a list of strings to a regex that matches everything but those strings 3 + # ... and it had to be a POSIX regex; no negative lookahead :( 4 + # This is a workaround for erofs supporting only exclude regex, not an include list 5 + 6 + import sys 7 + import re 8 + from collections import defaultdict 9 + 10 + # We can configure this script to match in different ways if we need to. 11 + # The regex got too long for the argument list, so we had to truncate the 12 + # hashes and use MATCH_STRING_PREFIX. That's less accurate, and might pick up some 13 + # garbage like .lock files, but only if the sandbox doesn't hide those. Even 14 + # then it should be harmless. 15 + 16 + # Produce the negation of ^a$ 17 + MATCH_EXACTLY = ".+" 18 + # Produce the negation of ^a 19 + MATCH_STRING_PREFIX = "//X" # //X should be epsilon regex instead. Not supported?? 20 + # Produce the negation of ^a/? 21 + MATCH_SUBPATHS = "[^/].*$" 22 + 23 + # match_end = MATCH_SUBPATHS 24 + match_end = MATCH_STRING_PREFIX 25 + # match_end = MATCH_EXACTLY 26 + 27 + def chars_to_inverted_class(letters): 28 + assert len(letters) > 0 29 + letters = list(letters) 30 + 31 + s = "[^" 32 + 33 + if "]" in letters: 34 + s += "]" 35 + letters.remove("]") 36 + 37 + final = "" 38 + if "-" in letters: 39 + final = "-" 40 + letters.remove("-") 41 + 42 + s += "".join(letters) 43 + 44 + s += final 45 + 46 + s += "]" 47 + 48 + return s 49 + 50 + # There's probably at least one bug in here, but it seems to works well enough 51 + # for filtering store paths. 52 + def strings_to_inverted_regex(strings): 53 + s = "(" 54 + 55 + # Match anything that starts with the wrong character 56 + 57 + chars = defaultdict(list) 58 + 59 + for item in strings: 60 + if item != "": 61 + chars[item[0]].append(item[1:]) 62 + 63 + if len(chars) == 0: 64 + s += match_end 65 + else: 66 + s += chars_to_inverted_class(chars) 67 + 68 + # Now match anything that starts with the right char, but then goes wrong 69 + 70 + for char, sub in chars.items(): 71 + s += "|(" + re.escape(char) + strings_to_inverted_regex(sub) + ")" 72 + 73 + s += ")" 74 + return s 75 + 76 + if __name__ == "__main__": 77 + stdin_lines = [] 78 + for line in sys.stdin: 79 + if line.strip() != "": 80 + stdin_lines.append(line.strip()) 81 + 82 + print("^" + strings_to_inverted_regex(stdin_lines)) 83 + 84 + # Test: 85 + # (echo foo; echo fo/; echo foo/; echo foo/ba/r; echo b; echo az; echo az/; echo az/a; echo ab; echo ab/a; echo ab/; echo abc; echo abcde; echo abb; echo ac; echo b) | grep -vE "$((echo ab; echo az; echo foo;) | python includes-to-excludes.py | tee /dev/stderr )" 86 + # should print ab, az, foo and their subpaths
+51 -5
nixos/modules/virtualisation/qemu-vm.nix
··· 17 17 18 18 cfg = config.virtualisation; 19 19 20 + opt = options.virtualisation; 21 + 20 22 qemu = cfg.qemu.package; 21 23 22 24 consoles = lib.concatMapStringsSep " " (c: "console=${c}") cfg.qemu.consoles; ··· 122 124 TMPDIR=$(mktemp -d nix-vm.XXXXXXXXXX --tmpdir) 123 125 fi 124 126 125 - ${lib.optionalString cfg.useNixStoreImage 126 - '' 127 - # Create a writable copy/snapshot of the store image. 128 - ${qemu}/bin/qemu-img create -f qcow2 -F qcow2 -b ${storeImage}/nixos.qcow2 "$TMPDIR"/store.img 129 - ''} 127 + ${lib.optionalString (cfg.useNixStoreImage) 128 + (if cfg.writableStore 129 + then '' 130 + # Create a writable copy/snapshot of the store image. 131 + ${qemu}/bin/qemu-img create -f qcow2 -F qcow2 -b ${storeImage}/nixos.qcow2 "$TMPDIR"/store.img 132 + '' 133 + else '' 134 + ( 135 + cd ${builtins.storeDir} 136 + ${pkgs.erofs-utils}/bin/mkfs.erofs \ 137 + --force-uid=0 \ 138 + --force-gid=0 \ 139 + -U eb176051-bd15-49b7-9e6b-462e0b467019 \ 140 + -T 0 \ 141 + --exclude-regex="$( 142 + <${pkgs.closureInfo { rootPaths = [ config.system.build.toplevel regInfo ]; }}/store-paths \ 143 + sed -e 's^.*/^^g' \ 144 + | cut -c -10 \ 145 + | ${pkgs.python3}/bin/python ${./includes-to-excludes.py} )" \ 146 + "$TMPDIR"/store.img \ 147 + . \ 148 + </dev/null >/dev/null 149 + ) 150 + '' 151 + ) 152 + } 130 153 131 154 # Create a directory for exchanging data with the VM. 132 155 mkdir -p "$TMPDIR/xchg" ··· 746 769 } 747 770 ])); 748 771 772 + warnings = 773 + optional ( 774 + cfg.writableStore && 775 + cfg.useNixStoreImage && 776 + opt.writableStore.highestPrio > lib.modules.defaultPriority) 777 + '' 778 + You have enabled ${opt.useNixStoreImage} = true, 779 + without setting ${opt.writableStore} = false. 780 + 781 + This causes a store image to be written to the store, which is 782 + costly, especially for the binary cache, and because of the need 783 + for more frequent garbage collection. 784 + 785 + If you really need this combination, you can set ${opt.writableStore} 786 + explicitly to true, incur the cost and make this warning go away. 787 + Otherwise, we recommend 788 + 789 + ${opt.writableStore} = false; 790 + ''; 791 + 749 792 # Note [Disk layout with `useBootLoader`] 750 793 # 751 794 # If `useBootLoader = true`, we configure 2 drives: ··· 768 811 else cfg.bootDevice 769 812 ); 770 813 boot.loader.grub.gfxmodeBios = with cfg.resolution; "${toString x}x${toString y}"; 814 + 815 + boot.initrd.kernelModules = optionals (cfg.useNixStoreImage && !cfg.writableStore) [ "erofs" ]; 771 816 772 817 boot.initrd.extraUtilsCommands = lib.mkIf (cfg.useDefaultFilesystems && !config.boot.initrd.systemd.enable) 773 818 '' ··· 905 950 name = "nix-store"; 906 951 file = ''"$TMPDIR"/store.img''; 907 952 deviceExtraOpts.bootindex = if cfg.useBootLoader then "3" else "2"; 953 + driveExtraOpts.format = if cfg.writableStore then "qcow2" else "raw"; 908 954 }]) 909 955 (mkIf cfg.useBootLoader [ 910 956 # The order of this list determines the device names, see
+1
nixos/tests/discourse.nix
··· 30 30 virtualisation.memorySize = 2048; 31 31 virtualisation.cores = 4; 32 32 virtualisation.useNixStoreImage = true; 33 + virtualisation.writableStore = false; 33 34 34 35 imports = [ common/user-account.nix ]; 35 36
+2
nixos/tests/gitlab.nix
··· 38 38 virtualisation.memorySize = if pkgs.stdenv.is64bit then 4096 else 2047; 39 39 virtualisation.cores = 4; 40 40 virtualisation.useNixStoreImage = true; 41 + virtualisation.writableStore = false; 42 + 41 43 systemd.services.gitlab.serviceConfig.Restart = mkForce "no"; 42 44 systemd.services.gitlab-workhorse.serviceConfig.Restart = mkForce "no"; 43 45 systemd.services.gitaly.serviceConfig.Restart = mkForce "no";
+3 -3
pkgs/applications/misc/tut/default.nix
··· 2 2 3 3 buildGoModule rec { 4 4 pname = "tut"; 5 - version = "1.0.16"; 5 + version = "1.0.17"; 6 6 7 7 src = fetchFromGitHub { 8 8 owner = "RasmusLindroth"; 9 9 repo = pname; 10 10 rev = version; 11 - sha256 = "sha256-sJX9qpWkNe/v9PSAJ5iY8RKEJXs84Gf0Imce4VIFp2Q="; 11 + sha256 = "sha256-XuN1qpcCUX8xAE7tj21g6U3ilhQIeGWlSqMVik5Qc5Q="; 12 12 }; 13 13 14 - vendorSha256 = "sha256-LAVvaZqZzMYCGtVWmeYXI7L4f2tStkaWG4QlLSrSjfk="; 14 + vendorSha256 = "sha256-WdhTdF8kdjAg6ztwSwx+smaA0rrLZjE76r4oVJqMtFU="; 15 15 16 16 meta = with lib; { 17 17 description = "A TUI for Mastodon with vim inspired keys";
+2 -2
pkgs/desktops/gnome/apps/gedit/default.nix
··· 25 25 26 26 stdenv.mkDerivation rec { 27 27 pname = "gedit"; 28 - version = "42.1"; 28 + version = "42.2"; 29 29 30 30 src = fetchurl { 31 31 url = "mirror://gnome/sources/gedit/${lib.versions.major version}/${pname}-${version}.tar.xz"; 32 - sha256 = "fx/UPfURDUw33mVBmT9B8PvD78eQkA6SBTR5ugaZIOk="; 32 + sha256 = "PGIpER8KwGauRJZJIHkdEmX1u7VrC9lJppt7EmH8j8o="; 33 33 }; 34 34 35 35 patches = [
+2 -2
pkgs/desktops/gnome/core/gnome-remote-desktop/default.nix
··· 28 28 29 29 stdenv.mkDerivation rec { 30 30 pname = "gnome-remote-desktop"; 31 - version = "42.3"; 31 + version = "42.4"; 32 32 33 33 src = fetchurl { 34 34 url = "mirror://gnome/sources/${pname}/${lib.versions.major version}/${pname}-${version}.tar.xz"; 35 - hash = "sha256-opatWPizvawOLg2H2xKpOV5ydwqWDnh/vMG+PwBotkI="; 35 + hash = "sha256-TU0jPvov+lRnMGo8w86Le6IyUtQtSxJy1crJ1d5Fy5o="; 36 36 }; 37 37 38 38 nativeBuildInputs = [
+2 -2
pkgs/desktops/gnome/core/gnome-shell/default.nix
··· 67 67 in 68 68 stdenv.mkDerivation rec { 69 69 pname = "gnome-shell"; 70 - version = "42.3.1"; 70 + version = "42.4"; 71 71 72 72 outputs = [ "out" "devdoc" ]; 73 73 74 74 src = fetchurl { 75 75 url = "mirror://gnome/sources/gnome-shell/${lib.versions.major version}/${pname}-${version}.tar.xz"; 76 - sha256 = "ffqzLfrDzWTUYSkYyph8+zMjjvoJJ5h1PIhF/xaTX30="; 76 + sha256 = "h1/ylw6p+3oFUG4yoNUNyRf0G0yjcTS0E3f5yChzxU4="; 77 77 }; 78 78 79 79 patches = [
+2 -2
pkgs/desktops/gnome/core/gnome-software/default.nix
··· 42 42 43 43 stdenv.mkDerivation rec { 44 44 pname = "gnome-software"; 45 - version = "42.3"; 45 + version = "42.4"; 46 46 47 47 src = fetchurl { 48 48 url = "mirror://gnome/sources/gnome-software/${lib.versions.major version}/${pname}-${version}.tar.xz"; 49 - sha256 = "OM9whWmj12TU0NLt7KqG9Og57CK5ZvQf2tVleKDdM8A="; 49 + sha256 = "cRgp7mf58qG2S/oXQTdzuY8NxdIZ649sohfNZXK7SnQ="; 50 50 }; 51 51 52 52 patches = [
+2 -2
pkgs/desktops/gnome/core/mutter/default.nix
··· 46 46 47 47 let self = stdenv.mkDerivation rec { 48 48 pname = "mutter"; 49 - version = "42.3"; 49 + version = "42.4"; 50 50 51 51 outputs = [ "out" "dev" "man" ]; 52 52 53 53 src = fetchurl { 54 54 url = "mirror://gnome/sources/mutter/${lib.versions.major version}/${pname}-${version}.tar.xz"; 55 - sha256 = "naOmP5AoK7WUZ+fT39xoTnD6BVNX9qLd7R25jNzOELo="; 55 + sha256 = "wix/o9GHBh2/KAw4UOEYt7UAkGXQHeMWFqzVAMSYKkA="; 56 56 }; 57 57 58 58 patches = [
+2 -2
pkgs/desktops/gnome/games/tali/default.nix
··· 20 20 21 21 stdenv.mkDerivation rec { 22 22 pname = "tali"; 23 - version = "40.7"; 23 + version = "40.8"; 24 24 25 25 src = fetchurl { 26 26 url = "mirror://gnome/sources/tali/${lib.versions.major version}/${pname}-${version}.tar.xz"; 27 - sha256 = "cXqJfV0H4X4K89ZpI/USNhPEEPZSOdqX0JKeScf7C2c="; 27 + sha256 = "bBeMFg/LtNEb49FWnVOODngUDVC721KnWDGI95XAF+4="; 28 28 }; 29 29 30 30 nativeBuildInputs = [
+49
pkgs/development/python-modules/adlfs/default.nix
··· 1 + { lib 2 + , aiohttp 3 + , azure-core 4 + , azure-datalake-store 5 + , azure-identity 6 + , azure-storage-blob 7 + , buildPythonPackage 8 + , fetchFromGitHub 9 + , fsspec 10 + , pythonOlder 11 + }: 12 + 13 + buildPythonPackage rec { 14 + pname = "adlfs"; 15 + version = "2022.7.0"; 16 + format = "setuptools"; 17 + 18 + disabled = pythonOlder "3.7"; 19 + 20 + src = fetchFromGitHub { 21 + owner = "fsspec"; 22 + repo = pname; 23 + rev = version; 24 + hash = "sha256-79HPJip+nocYo/r8LCb9vdYKVuEh0BBrz/eTJF0eGTA="; 25 + }; 26 + 27 + propagatedBuildInputs = [ 28 + aiohttp 29 + azure-core 30 + azure-datalake-store 31 + azure-identity 32 + azure-storage-blob 33 + fsspec 34 + ]; 35 + 36 + # Tests require a running Docker instance 37 + doCheck = false; 38 + 39 + pythonImportsCheck = [ 40 + "adlfs" 41 + ]; 42 + 43 + meta = with lib; { 44 + description = "Filesystem interface to Azure-Datalake Gen1 and Gen2 Storage"; 45 + homepage = "https://github.com/fsspec/adlfs"; 46 + license = licenses.bsd3; 47 + maintainers = with maintainers; [ fab ]; 48 + }; 49 + }
+37
pkgs/development/python-modules/aliyun-python-sdk-cdn/default.nix
··· 1 + { lib 2 + , aliyun-python-sdk-core 3 + , buildPythonPackage 4 + , fetchPypi 5 + , pythonOlder 6 + }: 7 + 8 + buildPythonPackage rec { 9 + pname = "aliyun-python-sdk-cdn"; 10 + version = "3.7.1"; 11 + format = "setuptools"; 12 + 13 + disabled = pythonOlder "3.7"; 14 + 15 + src = fetchPypi { 16 + inherit pname version; 17 + hash = "sha256-GAY4o9lr+1m8g1T7EhL5jLjEdfMWC/1vJ3UC4PQzvjI="; 18 + }; 19 + 20 + propagatedBuildInputs = [ 21 + aliyun-python-sdk-core 22 + ]; 23 + 24 + # All components are stored in a mono repo 25 + doCheck = false; 26 + 27 + pythonImportsCheck = [ 28 + "aliyunsdkcdn" 29 + ]; 30 + 31 + meta = with lib; { 32 + description = "CDN module of Aliyun Python SDK"; 33 + homepage = "https://github.com/aliyun/aliyun-openapi-python-sdk"; 34 + license = licenses.asl20; 35 + maintainers = with maintainers; [ fab ]; 36 + }; 37 + }
+37
pkgs/development/python-modules/aliyun-python-sdk-config/default.nix
··· 1 + { lib 2 + , aliyun-python-sdk-core 3 + , buildPythonPackage 4 + , fetchPypi 5 + , pythonOlder 6 + }: 7 + 8 + buildPythonPackage rec { 9 + pname = "aliyun-python-sdk-config"; 10 + version = "2.2.0"; 11 + format = "setuptools"; 12 + 13 + disabled = pythonOlder "3.7"; 14 + 15 + src = fetchPypi { 16 + inherit pname version; 17 + hash = "sha256-FQNj11G2d985KkpVycJyUqugul/EXu4PpuvD/YGPkBc="; 18 + }; 19 + 20 + propagatedBuildInputs = [ 21 + aliyun-python-sdk-core 22 + ]; 23 + 24 + # All components are stored in a mono repo 25 + doCheck = false; 26 + 27 + pythonImportsCheck = [ 28 + "aliyunsdkconfig" 29 + ]; 30 + 31 + meta = with lib; { 32 + description = "Configuration module of Aliyun Python SDK"; 33 + homepage = "https://github.com/aliyun/aliyun-openapi-python-sdk"; 34 + license = licenses.asl20; 35 + maintainers = with maintainers; [ fab ]; 36 + }; 37 + }
+46
pkgs/development/python-modules/aliyun-python-sdk-core/default.nix
··· 1 + { lib 2 + , buildPythonPackage 3 + , cryptography 4 + , fetchPypi 5 + , jmespath 6 + , pythonOlder 7 + , pythonRelaxDepsHook 8 + }: 9 + 10 + buildPythonPackage rec { 11 + pname = "aliyun-python-sdk-core"; 12 + version = "2.13.36"; 13 + format = "setuptools"; 14 + 15 + disabled = pythonOlder "3.7"; 16 + 17 + src = fetchPypi { 18 + inherit pname version; 19 + hash = "sha256-IL1UmE+jFtpwDH81WlGrC4FmkOKg/O+3te8BP+0NqSg="; 20 + }; 21 + 22 + nativeBuildInputs = [ 23 + pythonRelaxDepsHook 24 + ]; 25 + 26 + propagatedBuildInputs = [ 27 + cryptography 28 + jmespath 29 + ]; 30 + 31 + # All components are stored in a mono repo 32 + doCheck = false; 33 + 34 + pythonRelaxDeps = true; 35 + 36 + pythonImportsCheck = [ 37 + "aliyunsdkcore" 38 + ]; 39 + 40 + meta = with lib; { 41 + description = "Core module of Aliyun Python SDK"; 42 + homepage = "https://github.com/aliyun/aliyun-openapi-python-sdk"; 43 + license = licenses.asl20; 44 + maintainers = with maintainers; [ fab ]; 45 + }; 46 + }
+37
pkgs/development/python-modules/aliyun-python-sdk-dbfs/default.nix
··· 1 + { lib 2 + , aliyun-python-sdk-core 3 + , buildPythonPackage 4 + , fetchPypi 5 + , pythonOlder 6 + }: 7 + 8 + buildPythonPackage rec { 9 + pname = "aliyun-python-sdk-dbfs"; 10 + version = "2.0.0"; 11 + format = "setuptools"; 12 + 13 + disabled = pythonOlder "3.7"; 14 + 15 + src = fetchPypi { 16 + inherit pname version; 17 + hash = "sha256-NdhmJnuGLy96HsJCKoHWdBdqGa7bdWRVUJOPPSEs6FQ="; 18 + }; 19 + 20 + propagatedBuildInputs = [ 21 + aliyun-python-sdk-core 22 + ]; 23 + 24 + # All components are stored in a mono repo 25 + doCheck = false; 26 + 27 + pythonImportsCheck = [ 28 + "aliyunsdkdbfs" 29 + ]; 30 + 31 + meta = with lib; { 32 + description = "DBFS module of Aliyun Python SDK"; 33 + homepage = "https://github.com/aliyun/aliyun-openapi-python-sdk"; 34 + license = licenses.asl20; 35 + maintainers = with maintainers; [ fab ]; 36 + }; 37 + }
+37
pkgs/development/python-modules/aliyun-python-sdk-iot/default.nix
··· 1 + { lib 2 + , aliyun-python-sdk-core 3 + , buildPythonPackage 4 + , fetchPypi 5 + , pythonOlder 6 + }: 7 + 8 + buildPythonPackage rec { 9 + pname = "aliyun-python-sdk-iot"; 10 + version = "8.41.0"; 11 + format = "setuptools"; 12 + 13 + disabled = pythonOlder "3.7"; 14 + 15 + src = fetchPypi { 16 + inherit pname version; 17 + hash = "sha256-t/SIEW1JMTyeOhhxx6IhLsbQa0D3aqD2hqGk8+Ka0ns="; 18 + }; 19 + 20 + propagatedBuildInputs = [ 21 + aliyun-python-sdk-core 22 + ]; 23 + 24 + # All components are stored in a mono repo 25 + doCheck = false; 26 + 27 + pythonImportsCheck = [ 28 + "aliyunsdkiot" 29 + ]; 30 + 31 + meta = with lib; { 32 + description = "IoT module of Aliyun Python SDK"; 33 + homepage = "https://github.com/aliyun/aliyun-openapi-python-sdk"; 34 + license = licenses.asl20; 35 + maintainers = with maintainers; [ fab ]; 36 + }; 37 + }
+37
pkgs/development/python-modules/aliyun-python-sdk-kms/default.nix
··· 1 + { lib 2 + , aliyun-python-sdk-core 3 + , buildPythonPackage 4 + , fetchPypi 5 + , pythonOlder 6 + }: 7 + 8 + buildPythonPackage rec { 9 + pname = "aliyun-python-sdk-kms"; 10 + version = "2.16.0"; 11 + format = "setuptools"; 12 + 13 + disabled = pythonOlder "3.7"; 14 + 15 + src = fetchPypi { 16 + inherit pname version; 17 + hash = "sha256-p/GFdyyI86DdqFa2Zt2kNtguAPnxHqW78S3KsmEO41g="; 18 + }; 19 + 20 + propagatedBuildInputs = [ 21 + aliyun-python-sdk-core 22 + ]; 23 + 24 + # All components are stored in a mono repo 25 + doCheck = false; 26 + 27 + pythonImportsCheck = [ 28 + "aliyunsdkkms" 29 + ]; 30 + 31 + meta = with lib; { 32 + description = "KMS module of Aliyun Python SDK"; 33 + homepage = "https://github.com/aliyun/aliyun-openapi-python-sdk"; 34 + license = licenses.asl20; 35 + maintainers = with maintainers; [ fab ]; 36 + }; 37 + }
+37
pkgs/development/python-modules/aliyun-python-sdk-sts/default.nix
··· 1 + { lib 2 + , aliyun-python-sdk-core 3 + , buildPythonPackage 4 + , fetchPypi 5 + , pythonOlder 6 + }: 7 + 8 + buildPythonPackage rec { 9 + pname = "aliyun-python-sdk-sts"; 10 + version = "3.1.0"; 11 + format = "setuptools"; 12 + 13 + disabled = pythonOlder "3.7"; 14 + 15 + src = fetchPypi { 16 + inherit pname version; 17 + hash = "sha256-CpUMw2qdY+5a99WgFLp0p00kQVnuvf3yMOZqTztqnRA="; 18 + }; 19 + 20 + propagatedBuildInputs = [ 21 + aliyun-python-sdk-core 22 + ]; 23 + 24 + # All components are stored in a mono repo 25 + doCheck = false; 26 + 27 + pythonImportsCheck = [ 28 + "aliyunsdksts" 29 + ]; 30 + 31 + meta = with lib; { 32 + description = "STS module of Aliyun Python SDK"; 33 + homepage = "https://github.com/aliyun/aliyun-openapi-python-sdk"; 34 + license = licenses.asl20; 35 + maintainers = with maintainers; [ fab ]; 36 + }; 37 + }
+111
pkgs/development/python-modules/oss2/default.nix
··· 1 + { lib 2 + , aliyun-python-sdk-core 3 + , aliyun-python-sdk-kms 4 + , aliyun-python-sdk-sts 5 + , buildPythonPackage 6 + , crcmod 7 + , fetchFromGitHub 8 + , mock 9 + , pycryptodome 10 + , pytestCheckHook 11 + , pythonOlder 12 + , pythonRelaxDepsHook 13 + , requests 14 + , six 15 + }: 16 + 17 + buildPythonPackage rec { 18 + pname = "oss2"; 19 + version = "2.16.0"; 20 + format = "setuptools"; 21 + 22 + disabled = pythonOlder "3.7"; 23 + 24 + src = fetchFromGitHub { 25 + owner = "aliyun"; 26 + repo = "aliyun-oss-python-sdk"; 27 + rev = version; 28 + hash = "sha256-Q8U7zMlqpKSoW99MBm9p0AnrGZY7M9oRNImMNJaEjSw="; 29 + }; 30 + 31 + nativeBuildInputs = [ 32 + pythonRelaxDepsHook 33 + ]; 34 + 35 + propagatedBuildInputs = [ 36 + requests 37 + crcmod 38 + pycryptodome 39 + aliyun-python-sdk-kms 40 + aliyun-python-sdk-core 41 + six 42 + ]; 43 + 44 + checkInputs = [ 45 + aliyun-python-sdk-sts 46 + mock 47 + pytestCheckHook 48 + ]; 49 + 50 + pythonRelaxDeps = true; 51 + 52 + pythonImportsCheck = [ 53 + "oss2" 54 + ]; 55 + 56 + disabledTestPaths = [ 57 + # Tests require network access 58 + "tests/test_api_base.py" 59 + "tests/test_async_fetch_task.py" 60 + "tests/test_bucket_cname.py" 61 + "tests/test_bucket_inventory.py" 62 + "tests/test_bucket_meta_query.py" 63 + "tests/test_bucket_replication.py" 64 + "tests/test_bucket_transfer_acceleration.py" 65 + "tests/test_bucket_versioning.py" 66 + "tests/test_bucket_worm.py" 67 + "tests/test_bucket.py" 68 + "tests/test_chinese.py" 69 + "tests/test_crc64_combine.py" 70 + "tests/test_credentials_provider.py" 71 + "tests/test_crypto_multipart.py" 72 + "tests/test_crypto_object.py" 73 + "tests/test_crypto.py" 74 + "tests/test_download.py" 75 + "tests/test_headers.py" 76 + "tests/test_image.py" 77 + "tests/test_init.py" 78 + "tests/test_iterator.py" 79 + "tests/test_lifecycle_versioning.py" 80 + "tests/test_list_objects_v2.py" 81 + "tests/test_live_channel.py" 82 + "tests/test_multipart.py" 83 + "tests/test_object_request_payment_versions.py" 84 + "tests/test_object_request_payment.py" 85 + "tests/test_object_versioning.py" 86 + "tests/test_object.py" 87 + "tests/test_proxy.py" 88 + "tests/test_put_object_chunked.py" 89 + "tests/test_qos_info.py" 90 + "tests/test_request_payment.py" 91 + "tests/test_select_csv_object.py" 92 + "tests/test_select_json_object.py" 93 + "tests/test_server_side_encryotion.py" 94 + "tests/test_sign.py" 95 + "tests/test_traffic_limit.py" 96 + "tests/test_upload.py" 97 + "tests/test_utils.py" 98 + "tests/test_website.py" 99 + ]; 100 + 101 + disabledTests = [ 102 + "test_crypto_get_compact_deprecated_kms" 103 + ]; 104 + 105 + meta = with lib; { 106 + description = "Alibaba Cloud OSS SDK for Python"; 107 + homepage = "https://github.com/aliyun/aliyun-oss-python-sdk"; 108 + license = licenses.mit; 109 + maintainers = with maintainers; [ fab ]; 110 + }; 111 + }
+41
pkgs/development/python-modules/ossfs/default.nix
··· 1 + { lib 2 + , buildPythonPackage 3 + , fetchFromGitHub 4 + , fsspec 5 + , oss2 6 + , pythonOlder 7 + }: 8 + 9 + buildPythonPackage rec { 10 + pname = "ossfs"; 11 + version = "2021.8.0"; 12 + format = "setuptools"; 13 + 14 + disabled = pythonOlder "3.7"; 15 + 16 + src = fetchFromGitHub { 17 + owner = "fsspec"; 18 + repo = pname; 19 + rev = version; 20 + hash = "sha256-bORiE3sIDNESjEizdzsJYZTSMbcqpbjostXo+0NQDfA="; 21 + }; 22 + 23 + propagatedBuildInputs = [ 24 + fsspec 25 + oss2 26 + ]; 27 + 28 + # Most tests require network access 29 + doCheck = false; 30 + 31 + pythonImportsCheck = [ 32 + "ossfs" 33 + ]; 34 + 35 + meta = with lib; { 36 + description = "Filesystem for Alibaba Cloud (Aliyun) Object Storage System (OSS)"; 37 + homepage = "https://github.com/fsspec/ossfs"; 38 + license = licenses.asl20; 39 + maintainers = with maintainers; [ fab ]; 40 + }; 41 + }
+2 -2
pkgs/development/python-modules/versioneer/default.nix
··· 6 6 7 7 buildPythonPackage rec { 8 8 pname = "versioneer"; 9 - version = "0.22"; 9 + version = "0.23"; 10 10 format = "setuptools"; 11 11 12 12 disabled = pythonOlder "3.7"; 13 13 14 14 src = fetchPypi { 15 15 inherit pname version; 16 - hash = "sha256-nw6aLLXvUhy/0QTUOiCN2RJN+0rM+nLWlODQQwoBQrw="; 16 + hash = "sha256-1rbWjCmWU3NqKfGZMJ7kMG6XoPDQp47LceIckM4TIrs="; 17 17 }; 18 18 19 19 # Couldn't get tests to work because, for instance, they used virtualenv and
+2 -2
pkgs/development/python-modules/yalexs-ble/default.nix
··· 13 13 14 14 buildPythonPackage rec { 15 15 pname = "yalexs-ble"; 16 - version = "1.3.1"; 16 + version = "1.4.0"; 17 17 format = "pyproject"; 18 18 19 19 disabled = pythonOlder "3.9"; ··· 22 22 owner = "bdraco"; 23 23 repo = pname; 24 24 rev = "v${version}"; 25 - hash = "sha256-YBFO9DnvcFf1iXnsMW3COn2qWs9PrD3kjQDz08WU1xQ="; 25 + hash = "sha256-DGNq/+3RJUTWixwR86zIE3rrNxRow6S8x0wZPMO+EiU="; 26 26 }; 27 27 28 28 nativeBuildInputs = [
+2 -2
pkgs/development/tools/continuous-integration/dagger/default.nix
··· 2 2 3 3 buildGoModule rec { 4 4 pname = "dagger"; 5 - version = "0.2.28"; 5 + version = "0.2.29"; 6 6 7 7 src = fetchFromGitHub { 8 8 owner = "dagger"; 9 9 repo = "dagger"; 10 10 rev = "v${version}"; 11 - sha256 = "sha256-f9Oq9+FiGaL71RGR2eerHM9bBbNK7ysZsCWvOZo5u8g="; 11 + sha256 = "sha256-IfsBrsArP5PoznepNPr7ARVJWuDnFJaiSDMm8NjaLVY="; 12 12 }; 13 13 14 14 vendorSha256 = "sha256-e++fNcgdQUPnbKVx7ncuf7NGc8eVdli5/rB7Jw+D/Ds=";
+3 -3
pkgs/development/tools/database/clickhouse-backup/default.nix
··· 2 2 3 3 buildGoModule rec { 4 4 pname = "clickhouse-backup"; 5 - version = "1.5.0"; 5 + version = "1.5.2"; 6 6 7 7 src = fetchFromGitHub { 8 8 owner = "AlexAkulov"; 9 9 repo = pname; 10 10 rev = "v${version}"; 11 - sha256 = "sha256-j4z9Ldufrc1LiO1OgcBrAW17n9sXzJ2930uawdw07Pk="; 11 + sha256 = "sha256-N/uYVp89zL+dq8GcZBIrKimR/K1FFa+lDVtb7K28n+Y="; 12 12 }; 13 13 14 - vendorSha256 = "sha256-N4zAdylb7etNknR0/VjIVkuI6kTWlk137HNT03Y2gWs="; 14 + vendorSha256 = "sha256-d8YwdtSkcmh+Kromi8GsD2M8k2x8Ibrymsa+rG5GEoU="; 15 15 16 16 postConfigure = '' 17 17 export CGO_ENABLED=0
+3 -3
pkgs/development/tools/misc/circleci-cli/default.nix
··· 2 2 3 3 buildGoModule rec { 4 4 pname = "circleci-cli"; 5 - version = "0.1.20397"; 5 + version = "0.1.20500"; 6 6 7 7 src = fetchFromGitHub { 8 8 owner = "CircleCI-Public"; 9 9 repo = pname; 10 10 rev = "v${version}"; 11 - sha256 = "sha256-2z5xax9RmBWYV7xNGNZQJKdPY5pUdcFCU+cQoGamvVk="; 11 + sha256 = "sha256-zFiQSyuIRzkkNuJib8D8/8FRlYXzqR+sz6ch52KZnMY="; 12 12 }; 13 13 14 - vendorSha256 = "sha256-EswzTlvFbFZK76cl0TKxIcr8Qa7/RcQCvvw+Si323Hs="; 14 + vendorSha256 = "sha256-8TPJrFDGShEXt+L+6btMEXXMVRHHWDh2fHxy63biLxU="; 15 15 16 16 doCheck = false; 17 17
+3 -3
pkgs/development/tools/rust/cargo-expand/default.nix
··· 7 7 8 8 rustPlatform.buildRustPackage rec { 9 9 pname = "cargo-expand"; 10 - version = "1.0.29"; 10 + version = "1.0.30"; 11 11 12 12 src = fetchFromGitHub { 13 13 owner = "dtolnay"; 14 14 repo = pname; 15 15 rev = version; 16 - sha256 = "sha256-HK6FnB8S3rVTN9p7wYvmMUmdNmYQ738ua5491R6/KME="; 16 + sha256 = "sha256-H97B48SrcUTgY7hLMx9NUc4VUENBZtGMwpI6ijTUB08="; 17 17 }; 18 18 19 - cargoSha256 = "sha256-hqg4Htf8nRRPLm9xyJgb2T8ycsPUZmrRMvk4E5f17Fc="; 19 + cargoSha256 = "sha256-OCCBmcKNotsDXAAu0A8HCmniDLofkp2MmBm+k3C0ZJ4="; 20 20 21 21 buildInputs = lib.optional stdenv.isDarwin libiconv; 22 22
+2 -2
pkgs/development/tools/sumneko-lua-language-server/default.nix
··· 4 4 in 5 5 stdenv.mkDerivation rec { 6 6 pname = "sumneko-lua-language-server"; 7 - version = "3.4.1"; 7 + version = "3.5.3"; 8 8 9 9 src = fetchFromGitHub { 10 10 owner = "sumneko"; 11 11 repo = "lua-language-server"; 12 12 rev = version; 13 - sha256 = "sha256-A5a3cOhdPkheMooPjcZW5jneziDcFB0o3gfY2nEOJ4Y="; 13 + sha256 = "sha256-K/B+THEgM6pzW+VOc8pgtH+3zpWEgocEdTsuO0APoT0="; 14 14 fetchSubmodules = true; 15 15 }; 16 16
+12 -9
pkgs/os-specific/linux/kernel/perf.nix pkgs/os-specific/linux/kernel/perf/default.nix
··· 1 - { lib, stdenv, kernel, elfutils, python2, python3, perl, newt, slang, asciidoc, xmlto, makeWrapper 1 + { lib, stdenv, fetchpatch, kernel, elfutils, python2, python3, perl, newt, slang, asciidoc, xmlto, makeWrapper 2 2 , docbook_xsl, docbook_xml_dtd_45, libxslt, flex, bison, pkg-config, libunwind, binutils-unwrapped 3 3 , libiberty, audit, libbfd, libopcodes, openssl, systemtap, numactl 4 4 , zlib ··· 7 7 , withLibcap ? true, libcap 8 8 }: 9 9 10 - with lib; 11 - 12 10 stdenv.mkDerivation { 13 11 pname = "perf-linux"; 14 12 version = kernel.version; 15 13 16 14 inherit (kernel) src; 15 + 16 + patches = lib.optionals (lib.versionAtLeast kernel.version "5.19" && lib.versionOlder kernel.version "5.20") [ 17 + # binutils-2.39 support around init_disassemble_info() 18 + # API change. 19 + # Will be included in 5.20. 20 + ./5.19-binutils-2.39-support.patch 21 + ]; 17 22 18 23 preConfigure = '' 19 24 cd tools/perf ··· 43 48 elfutils newt slang libunwind libbfd zlib openssl systemtap.stapBuild numactl 44 49 libopcodes python3 perl 45 50 ] ++ lib.optional withGtk gtk2 46 - ++ (if (versionAtLeast kernel.version "4.19") then [ python3 ] else [ python2 ]) 51 + ++ (if (lib.versionAtLeast kernel.version "4.19") then [ python3 ] else [ python2 ]) 47 52 ++ lib.optional withZstd zstd 48 53 ++ lib.optional withLibcap libcap; 49 54 50 - # Note: we don't add elfutils to buildInputs, since it provides a 51 - # bad `ld' and other stuff. 52 55 NIX_CFLAGS_COMPILE = toString [ 53 56 "-Wno-error=cpp" 54 57 "-Wno-error=bool-compare" ··· 72 75 --prefix PATH : "${binutils-unwrapped}/bin" 73 76 ''; 74 77 75 - meta = { 78 + meta = with lib; { 76 79 homepage = "https://perf.wiki.kernel.org/"; 77 80 description = "Linux tools to profile with performance counters"; 78 - maintainers = with lib.maintainers; [viric]; 79 - platforms = with lib.platforms; linux; 81 + maintainers = with maintainers; [ viric ]; 82 + platforms = platforms.linux; 80 83 broken = kernel.kernelOlder "5"; 81 84 }; 82 85 }
+352
pkgs/os-specific/linux/kernel/perf/5.19-binutils-2.39-support.patch
··· 1 + Fetched as: 2 + $ wget 'https://github.com/torvalds/linux/compare/00b32625982e0c796f0abb8effcac9c05ef55bd3...600b7b26c07a070d0153daa76b3806c1e52c9e00.patch' 3 + 4 + Adds support for binutils-2.39 API change around init_disassemble_info(). 5 + --- a/tools/build/Makefile.feature 6 + +++ b/tools/build/Makefile.feature 7 + @@ -70,6 +70,7 @@ FEATURE_TESTS_BASIC := \ 8 + libaio \ 9 + libzstd \ 10 + disassembler-four-args \ 11 + + disassembler-init-styled \ 12 + file-handle 13 + 14 + # FEATURE_TESTS_BASIC + FEATURE_TESTS_EXTRA is the complete list 15 + --- a/tools/build/feature/Makefile 16 + +++ b/tools/build/feature/Makefile 17 + @@ -18,6 +18,7 @@ FILES= \ 18 + test-libbfd.bin \ 19 + test-libbfd-buildid.bin \ 20 + test-disassembler-four-args.bin \ 21 + + test-disassembler-init-styled.bin \ 22 + test-reallocarray.bin \ 23 + test-libbfd-liberty.bin \ 24 + test-libbfd-liberty-z.bin \ 25 + @@ -248,6 +249,9 @@ $(OUTPUT)test-libbfd-buildid.bin: 26 + $(OUTPUT)test-disassembler-four-args.bin: 27 + $(BUILD) -DPACKAGE='"perf"' -lbfd -lopcodes 28 + 29 + +$(OUTPUT)test-disassembler-init-styled.bin: 30 + + $(BUILD) -DPACKAGE='"perf"' -lbfd -lopcodes 31 + + 32 + $(OUTPUT)test-reallocarray.bin: 33 + $(BUILD) 34 + 35 + --- a/tools/build/feature/test-all.c 36 + +++ b/tools/build/feature/test-all.c 37 + @@ -166,6 +166,10 @@ 38 + # include "test-disassembler-four-args.c" 39 + #undef main 40 + 41 + +#define main main_test_disassembler_init_styled 42 + +# include "test-disassembler-init-styled.c" 43 + +#undef main 44 + + 45 + #define main main_test_libzstd 46 + # include "test-libzstd.c" 47 + #undef main 48 + --- /dev/null 49 + +++ b/tools/build/feature/test-disassembler-init-styled.c 50 + @@ -0,0 +1,13 @@ 51 + +// SPDX-License-Identifier: GPL-2.0 52 + +#include <stdio.h> 53 + +#include <dis-asm.h> 54 + + 55 + +int main(void) 56 + +{ 57 + + struct disassemble_info info; 58 + + 59 + + init_disassemble_info(&info, stdout, 60 + + NULL, NULL); 61 + + 62 + + return 0; 63 + +} 64 + 65 + --- a/tools/build/Makefile.feature 66 + +++ b/tools/build/Makefile.feature 67 + @@ -135,8 +135,7 @@ FEATURE_DISPLAY ?= \ 68 + get_cpuid \ 69 + bpf \ 70 + libaio \ 71 + - libzstd \ 72 + - disassembler-four-args 73 + + libzstd 74 + 75 + # Set FEATURE_CHECK_(C|LD)FLAGS-all for all FEATURE_TESTS features. 76 + # If in the future we need per-feature checks/flags for features not 77 + 78 + --- /dev/null 79 + +++ b/tools/include/tools/dis-asm-compat.h 80 + @@ -0,0 +1,55 @@ 81 + +/* SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause */ 82 + +#ifndef _TOOLS_DIS_ASM_COMPAT_H 83 + +#define _TOOLS_DIS_ASM_COMPAT_H 84 + + 85 + +#include <stdio.h> 86 + +#include <dis-asm.h> 87 + + 88 + +/* define types for older binutils version, to centralize ifdef'ery a bit */ 89 + +#ifndef DISASM_INIT_STYLED 90 + +enum disassembler_style {DISASSEMBLER_STYLE_NOT_EMPTY}; 91 + +typedef int (*fprintf_styled_ftype) (void *, enum disassembler_style, const char*, ...); 92 + +#endif 93 + + 94 + +/* 95 + + * Trivial fprintf wrapper to be used as the fprintf_styled_func argument to 96 + + * init_disassemble_info_compat() when normal fprintf suffices. 97 + + */ 98 + +static inline int fprintf_styled(void *out, 99 + + enum disassembler_style style, 100 + + const char *fmt, ...) 101 + +{ 102 + + va_list args; 103 + + int r; 104 + + 105 + + (void)style; 106 + + 107 + + va_start(args, fmt); 108 + + r = vfprintf(out, fmt, args); 109 + + va_end(args); 110 + + 111 + + return r; 112 + +} 113 + + 114 + +/* 115 + + * Wrapper for init_disassemble_info() that hides version 116 + + * differences. Depending on binutils version and architecture either 117 + + * fprintf_func or fprintf_styled_func will be called. 118 + + */ 119 + +static inline void init_disassemble_info_compat(struct disassemble_info *info, 120 + + void *stream, 121 + + fprintf_ftype unstyled_func, 122 + + fprintf_styled_ftype styled_func) 123 + +{ 124 + +#ifdef DISASM_INIT_STYLED 125 + + init_disassemble_info(info, stream, 126 + + unstyled_func, 127 + + styled_func); 128 + +#else 129 + + (void)styled_func; 130 + + init_disassemble_info(info, stream, 131 + + unstyled_func); 132 + +#endif 133 + +} 134 + + 135 + +#endif /* _TOOLS_DIS_ASM_COMPAT_H */ 136 + 137 + --- a/tools/perf/Makefile.config 138 + +++ b/tools/perf/Makefile.config 139 + @@ -298,6 +298,7 @@ FEATURE_CHECK_LDFLAGS-libpython := $(PYTHON_EMBED_LDOPTS) 140 + FEATURE_CHECK_LDFLAGS-libaio = -lrt 141 + 142 + FEATURE_CHECK_LDFLAGS-disassembler-four-args = -lbfd -lopcodes -ldl 143 + +FEATURE_CHECK_LDFLAGS-disassembler-init-styled = -lbfd -lopcodes -ldl 144 + 145 + CORE_CFLAGS += -fno-omit-frame-pointer 146 + CORE_CFLAGS += -ggdb3 147 + @@ -924,13 +925,16 @@ ifndef NO_LIBBFD 148 + ifeq ($(feature-libbfd-liberty), 1) 149 + EXTLIBS += -lbfd -lopcodes -liberty 150 + FEATURE_CHECK_LDFLAGS-disassembler-four-args += -liberty -ldl 151 + + FEATURE_CHECK_LDFLAGS-disassembler-init-styled += -liberty -ldl 152 + else 153 + ifeq ($(feature-libbfd-liberty-z), 1) 154 + EXTLIBS += -lbfd -lopcodes -liberty -lz 155 + FEATURE_CHECK_LDFLAGS-disassembler-four-args += -liberty -lz -ldl 156 + + FEATURE_CHECK_LDFLAGS-disassembler-init-styled += -liberty -lz -ldl 157 + endif 158 + endif 159 + $(call feature_check,disassembler-four-args) 160 + + $(call feature_check,disassembler-init-styled) 161 + endif 162 + 163 + ifeq ($(feature-libbfd-buildid), 1) 164 + @@ -1044,6 +1048,10 @@ ifeq ($(feature-disassembler-four-args), 1) 165 + CFLAGS += -DDISASM_FOUR_ARGS_SIGNATURE 166 + endif 167 + 168 + +ifeq ($(feature-disassembler-init-styled), 1) 169 + + CFLAGS += -DDISASM_INIT_STYLED 170 + +endif 171 + + 172 + ifeq (${IS_64_BIT}, 1) 173 + ifndef NO_PERF_READ_VDSO32 174 + $(call feature_check,compile-32) 175 + --- a/tools/perf/util/annotate.c 176 + +++ b/tools/perf/util/annotate.c 177 + @@ -1720,6 +1720,7 @@ static int dso__disassemble_filename(struct dso *dso, char *filename, size_t fil 178 + #include <bpf/btf.h> 179 + #include <bpf/libbpf.h> 180 + #include <linux/btf.h> 181 + +#include <tools/dis-asm-compat.h> 182 + 183 + static int symbol__disassemble_bpf(struct symbol *sym, 184 + struct annotate_args *args) 185 + @@ -1762,9 +1763,9 @@ static int symbol__disassemble_bpf(struct symbol *sym, 186 + ret = errno; 187 + goto out; 188 + } 189 + - init_disassemble_info(&info, s, 190 + - (fprintf_ftype) fprintf); 191 + - 192 + + init_disassemble_info_compat(&info, s, 193 + + (fprintf_ftype) fprintf, 194 + + fprintf_styled); 195 + info.arch = bfd_get_arch(bfdf); 196 + info.mach = bfd_get_mach(bfdf); 197 + 198 + 199 + --- a/tools/bpf/Makefile 200 + +++ b/tools/bpf/Makefile 201 + @@ -34,7 +34,7 @@ else 202 + endif 203 + 204 + FEATURE_USER = .bpf 205 + -FEATURE_TESTS = libbfd disassembler-four-args 206 + +FEATURE_TESTS = libbfd disassembler-four-args disassembler-init-styled 207 + FEATURE_DISPLAY = libbfd disassembler-four-args 208 + 209 + check_feat := 1 210 + @@ -56,6 +56,9 @@ endif 211 + ifeq ($(feature-disassembler-four-args), 1) 212 + CFLAGS += -DDISASM_FOUR_ARGS_SIGNATURE 213 + endif 214 + +ifeq ($(feature-disassembler-init-styled), 1) 215 + +CFLAGS += -DDISASM_INIT_STYLED 216 + +endif 217 + 218 + $(OUTPUT)%.yacc.c: $(srctree)/tools/bpf/%.y 219 + $(QUIET_BISON)$(YACC) -o $@ -d $< 220 + --- a/tools/bpf/bpf_jit_disasm.c 221 + +++ b/tools/bpf/bpf_jit_disasm.c 222 + @@ -28,6 +28,7 @@ 223 + #include <sys/types.h> 224 + #include <sys/stat.h> 225 + #include <limits.h> 226 + +#include <tools/dis-asm-compat.h> 227 + 228 + #define CMD_ACTION_SIZE_BUFFER 10 229 + #define CMD_ACTION_READ_ALL 3 230 + @@ -64,7 +65,9 @@ static void get_asm_insns(uint8_t *image, size_t len, int opcodes) 231 + assert(bfdf); 232 + assert(bfd_check_format(bfdf, bfd_object)); 233 + 234 + - init_disassemble_info(&info, stdout, (fprintf_ftype) fprintf); 235 + + init_disassemble_info_compat(&info, stdout, 236 + + (fprintf_ftype) fprintf, 237 + + fprintf_styled); 238 + info.arch = bfd_get_arch(bfdf); 239 + info.mach = bfd_get_mach(bfdf); 240 + info.buffer = image; 241 + 242 + --- a/tools/bpf/Makefile 243 + +++ b/tools/bpf/Makefile 244 + @@ -35,7 +35,7 @@ endif 245 + 246 + FEATURE_USER = .bpf 247 + FEATURE_TESTS = libbfd disassembler-four-args disassembler-init-styled 248 + -FEATURE_DISPLAY = libbfd disassembler-four-args 249 + +FEATURE_DISPLAY = libbfd 250 + 251 + check_feat := 1 252 + NON_CHECK_FEAT_TARGETS := clean bpftool_clean runqslower_clean resolve_btfids_clean 253 + 254 + --- a/tools/bpf/bpftool/Makefile 255 + +++ b/tools/bpf/bpftool/Makefile 256 + @@ -93,7 +93,7 @@ INSTALL ?= install 257 + RM ?= rm -f 258 + 259 + FEATURE_USER = .bpftool 260 + -FEATURE_TESTS = libbfd disassembler-four-args zlib libcap \ 261 + +FEATURE_TESTS = libbfd disassembler-four-args disassembler-init-styled zlib libcap \ 262 + clang-bpf-co-re 263 + FEATURE_DISPLAY = libbfd disassembler-four-args zlib libcap \ 264 + clang-bpf-co-re 265 + @@ -117,6 +117,9 @@ endif 266 + ifeq ($(feature-disassembler-four-args), 1) 267 + CFLAGS += -DDISASM_FOUR_ARGS_SIGNATURE 268 + endif 269 + +ifeq ($(feature-disassembler-init-styled), 1) 270 + + CFLAGS += -DDISASM_INIT_STYLED 271 + +endif 272 + 273 + LIBS = $(LIBBPF) -lelf -lz 274 + LIBS_BOOTSTRAP = $(LIBBPF_BOOTSTRAP) -lelf -lz 275 + --- a/tools/bpf/bpftool/jit_disasm.c 276 + +++ b/tools/bpf/bpftool/jit_disasm.c 277 + @@ -24,6 +24,7 @@ 278 + #include <sys/stat.h> 279 + #include <limits.h> 280 + #include <bpf/libbpf.h> 281 + +#include <tools/dis-asm-compat.h> 282 + 283 + #include "json_writer.h" 284 + #include "main.h" 285 + @@ -39,15 +40,12 @@ static void get_exec_path(char *tpath, size_t size) 286 + } 287 + 288 + static int oper_count; 289 + -static int fprintf_json(void *out, const char *fmt, ...) 290 + +static int printf_json(void *out, const char *fmt, va_list ap) 291 + { 292 + - va_list ap; 293 + char *s; 294 + int err; 295 + 296 + - va_start(ap, fmt); 297 + err = vasprintf(&s, fmt, ap); 298 + - va_end(ap); 299 + if (err < 0) 300 + return -1; 301 + 302 + @@ -73,6 +71,32 @@ static int fprintf_json(void *out, const char *fmt, ...) 303 + return 0; 304 + } 305 + 306 + +static int fprintf_json(void *out, const char *fmt, ...) 307 + +{ 308 + + va_list ap; 309 + + int r; 310 + + 311 + + va_start(ap, fmt); 312 + + r = printf_json(out, fmt, ap); 313 + + va_end(ap); 314 + + 315 + + return r; 316 + +} 317 + + 318 + +static int fprintf_json_styled(void *out, 319 + + enum disassembler_style style __maybe_unused, 320 + + const char *fmt, ...) 321 + +{ 322 + + va_list ap; 323 + + int r; 324 + + 325 + + va_start(ap, fmt); 326 + + r = printf_json(out, fmt, ap); 327 + + va_end(ap); 328 + + 329 + + return r; 330 + +} 331 + + 332 + void disasm_print_insn(unsigned char *image, ssize_t len, int opcodes, 333 + const char *arch, const char *disassembler_options, 334 + const struct btf *btf, 335 + @@ -99,11 +123,13 @@ void disasm_print_insn(unsigned char *image, ssize_t len, int opcodes, 336 + assert(bfd_check_format(bfdf, bfd_object)); 337 + 338 + if (json_output) 339 + - init_disassemble_info(&info, stdout, 340 + - (fprintf_ftype) fprintf_json); 341 + + init_disassemble_info_compat(&info, stdout, 342 + + (fprintf_ftype) fprintf_json, 343 + + fprintf_json_styled); 344 + else 345 + - init_disassemble_info(&info, stdout, 346 + - (fprintf_ftype) fprintf); 347 + + init_disassemble_info_compat(&info, stdout, 348 + + (fprintf_ftype) fprintf, 349 + + fprintf_styled); 350 + 351 + /* Update architecture info for offload. */ 352 + if (arch) {
+5 -3
pkgs/os-specific/linux/mdadm/default.nix
··· 1 - { lib, stdenv, util-linux, coreutils, fetchurl, groff, system-sendmail }: 1 + { lib, stdenv, util-linux, coreutils, fetchurl, groff, system-sendmail, udev }: 2 2 3 3 stdenv.mkDerivation rec { 4 4 pname = "mdadm"; 5 - version = "4.1"; 5 + version = "4.2"; 6 6 7 7 src = fetchurl { 8 8 url = "mirror://kernel/linux/utils/raid/mdadm/mdadm-${version}.tar.xz"; 9 - sha256 = "0jjgjgqijpdp7ijh8slzzjjw690kydb1jjadf0x5ilq85628hxmb"; 9 + sha256 = "sha256-RhwhVnCGS7dKTRo2IGhKorL4KW3/oGdD8m3aVVes8B0="; 10 10 }; 11 11 12 12 patches = [ ./no-self-references.patch ]; ··· 23 23 installFlags = [ "install-systemd" ]; 24 24 25 25 enableParallelBuilding = true; 26 + 27 + buildInputs = [ udev ]; 26 28 27 29 nativeBuildInputs = [ groff ]; 28 30
+12 -18
pkgs/os-specific/linux/mdadm/no-self-references.patch
··· 1 1 diff --git a/Makefile b/Makefile 2 - index d82e30f..d231cf9 100644 2 + index 2a51d813..a31ac48a 100644 3 3 --- a/Makefile 4 4 +++ b/Makefile 5 - @@ -51,6 +51,9 @@ endif 5 + @@ -63,6 +63,9 @@ endif 6 6 ifdef DEBIAN 7 7 CPPFLAGS += -DDEBIAN 8 8 endif ··· 12 12 ifdef DEFAULT_OLD_METADATA 13 13 CPPFLAGS += -DDEFAULT_OLD_METADATA 14 14 DEFAULT_METADATA=0.90 15 - @@ -105,6 +108,7 @@ endif 15 + @@ -129,6 +132,7 @@ endif 16 16 INSTALL = /usr/bin/install 17 17 DESTDIR = 18 18 BINDIR = /sbin ··· 20 20 MANDIR = /usr/share/man 21 21 MAN4DIR = $(MANDIR)/man4 22 22 MAN5DIR = $(MANDIR)/man5 23 - @@ -259,20 +263,20 @@ sha1.o : sha1.c sha1.h md5.h 24 - $(CC) $(CFLAGS) -DHAVE_STDINT_H -o sha1.o -c sha1.c 25 - 26 - install : mdadm mdmon install-man install-udev 27 - - $(INSTALL) -D $(STRIP) -m 755 mdadm $(DESTDIR)$(BINDIR)/mdadm 28 - - $(INSTALL) -D $(STRIP) -m 755 mdmon $(DESTDIR)$(BINDIR)/mdmon 29 - + $(INSTALL) -D $(STRIP) -m 755 mdadm $(DESTDIR)$(INSTALL_BINDIR)/mdadm 30 - + $(INSTALL) -D $(STRIP) -m 755 mdmon $(DESTDIR)$(INSTALL_BINDIR)/mdmon 23 + @@ -253,16 +257,16 @@ sha1.o : sha1.c sha1.h md5.h 24 + install : install-bin install-man install-udev 31 25 32 26 install-static : mdadm.static install-man 33 27 - $(INSTALL) -D $(STRIP) -m 755 mdadm.static $(DESTDIR)$(BINDIR)/mdadm ··· 47 41 48 42 install-man: mdadm.8 md.4 mdadm.conf.5 mdmon.8 49 43 $(INSTALL) -D -m 644 mdadm.8 $(DESTDIR)$(MAN8DIR)/mdadm.8 50 - @@ -305,7 +309,7 @@ install-systemd: systemd/mdmon@.service 51 - if [ -f /etc/SuSE-release -o -n "$(SUSE)" ] ;then $(INSTALL) -D -m 755 systemd/SUSE-mdadm_env.sh $(DESTDIR)$(SYSTEMD_DIR)/../scripts/mdadm_env.sh ;fi 44 + @@ -305,7 +309,7 @@ install-bin: mdadm mdmon 45 + $(INSTALL) -D $(STRIP) -m 755 mdmon $(DESTDIR)$(BINDIR)/mdmon 52 46 53 47 uninstall: 54 48 - rm -f $(DESTDIR)$(MAN8DIR)/mdadm.8 $(DESTDIR)$(MAN8DIR)/mdmon.8 $(DESTDIR)$(MAN4DIR)/md.4 $(DESTDIR)$(MAN5DIR)/mdadm.conf.5 $(DESTDIR)$(BINDIR)/mdadm ··· 57 51 test: mdadm mdmon test_stripe swap_super raid6check 58 52 @echo "Please run './test' as root" 59 53 diff --git a/policy.c b/policy.c 60 - index 064d349..6b2f2b1 100644 54 + index eee9ef63..9f916e9d 100644 61 55 --- a/policy.c 62 56 +++ b/policy.c 63 - @@ -796,12 +796,39 @@ char *find_rule(struct rule *rule, char *rule_type) 57 + @@ -817,12 +817,39 @@ char *find_rule(struct rule *rule, char *rule_type) 64 58 #define UDEV_RULE_FORMAT \ 65 59 "ACTION==\"add\", SUBSYSTEM==\"block\", " \ 66 60 "ENV{DEVTYPE}==\"%s\", ENV{ID_PATH}==\"%s\", " \ ··· 102 96 103 97 /* Write rule in the rule file. Use format from UDEV_RULE_FORMAT */ 104 98 int write_rule(struct rule *rule, int fd, int force_part) 105 - @@ -815,9 +842,9 @@ int write_rule(struct rule *rule, int fd, int force_part) 99 + @@ -836,9 +863,9 @@ int write_rule(struct rule *rule, int fd, int force_part) 106 100 if (force_part) 107 101 typ = type_part; 108 102 if (typ) ··· 115 109 } 116 110 117 111 diff --git a/util.c b/util.c 118 - index cc98d3b..1ada2f4 100644 112 + index 3d05d074..e004a798 100644 119 113 --- a/util.c 120 114 +++ b/util.c 121 - @@ -1700,7 +1700,9 @@ int start_mdmon(char *devnm) 115 + @@ -1913,7 +1913,9 @@ int start_mdmon(char *devnm) 122 116 char pathbuf[1024]; 123 117 char *paths[4] = { 124 118 pathbuf,
+3 -3
pkgs/servers/etcd/3.4.nix
··· 2 2 3 3 buildGoModule rec { 4 4 pname = "etcd"; 5 - version = "3.4.19"; 5 + version = "3.4.20"; 6 6 7 - vendorSha256 = "sha256-ZONIsizxRiwZWRu4y9VzZcCpyBKoa0j3h3JqoMMPGu0="; 7 + vendorSha256 = "sha256-P3EQTraMdZ2fAHDue5cKAxyHbh6nNeFV9ykT0rH7KPs="; 8 8 9 9 doCheck = false; 10 10 ··· 12 12 owner = "etcd-io"; 13 13 repo = "etcd"; 14 14 rev = "v${version}"; 15 - sha256 = "sha256-8X7xTZrZ/AjUgrW9XgD8B7eKFfOulj8WBjXoImAtJoM="; 15 + sha256 = "sha256-JfwjkgD57FqSmwgWZ5NbxshmY5JZUUWsk3bdYx15BKo="; 16 16 }; 17 17 18 18 buildPhase = ''
+3 -3
pkgs/servers/traefik/default.nix
··· 2 2 3 3 buildGoModule rec { 4 4 pname = "traefik"; 5 - version = "2.8.2"; 5 + version = "2.8.3"; 6 6 7 7 # Archive with static assets for webui 8 8 src = fetchzip { 9 9 url = "https://github.com/traefik/traefik/releases/download/v${version}/traefik-v${version}.src.tar.gz"; 10 - sha256 = "sha256-ycGbzkFwoLWJZTNhHNdMl41reDThKnnB6S5MqgM7u6Q="; 10 + sha256 = "sha256-ww5yy4W6voP5Wo1wVuCXUtmyA9CoVk1HU5UzPUoHf/E="; 11 11 stripRoot = false; 12 12 }; 13 13 14 - vendorSha256 = "sha256-xq3zGGKmWI/QlI49/JhHszTPazu7jcXv2XZBTIvtHxw="; 14 + vendorSha256 = "sha256-ogq/4gBX4+5GZomk00Yu8J3JSbkhEFOWE6Ik+HqtkWk="; 15 15 16 16 subPackages = [ "cmd/traefik" ]; 17 17
+1 -1
pkgs/top-level/linux-kernels.nix
··· 430 430 431 431 oci-seccomp-bpf-hook = if lib.versionAtLeast kernel.version "5.4" then callPackage ../os-specific/linux/oci-seccomp-bpf-hook { } else null; 432 432 433 - perf = callPackage ../os-specific/linux/kernel/perf.nix { }; 433 + perf = callPackage ../os-specific/linux/kernel/perf { }; 434 434 435 435 phc-intel = if lib.versionAtLeast kernel.version "4.10" then callPackage ../os-specific/linux/phc-intel { } else null; 436 436
+20
pkgs/top-level/python-packages.nix
··· 206 206 207 207 adjusttext = callPackage ../development/python-modules/adjusttext { }; 208 208 209 + adlfs = callPackage ../development/python-modules/adlfs { }; 210 + 209 211 advantage-air = callPackage ../development/python-modules/advantage-air { }; 210 212 211 213 advocate = callPackage ../development/python-modules/advocate { }; ··· 487 489 alembic = callPackage ../development/python-modules/alembic { }; 488 490 489 491 algebraic-data-types = callPackage ../development/python-modules/algebraic-data-types { }; 492 + 493 + aliyun-python-sdk-cdn = callPackage ../development/python-modules/aliyun-python-sdk-cdn { }; 494 + 495 + aliyun-python-sdk-config = callPackage ../development/python-modules/aliyun-python-sdk-config { }; 496 + 497 + aliyun-python-sdk-core = callPackage ../development/python-modules/aliyun-python-sdk-core { }; 498 + 499 + aliyun-python-sdk-dbfs = callPackage ../development/python-modules/aliyun-python-sdk-dbfs { }; 500 + 501 + aliyun-python-sdk-iot = callPackage ../development/python-modules/aliyun-python-sdk-iot { }; 502 + 503 + aliyun-python-sdk-kms = callPackage ../development/python-modules/aliyun-python-sdk-kms { }; 504 + 505 + aliyun-python-sdk-sts = callPackage ../development/python-modules/aliyun-python-sdk-sts { }; 490 506 491 507 allpairspy = callPackage ../development/python-modules/allpairspy { }; 492 508 ··· 6343 6359 ospd = callPackage ../development/python-modules/ospd { }; 6344 6360 6345 6361 osqp = callPackage ../development/python-modules/osqp { }; 6362 + 6363 + oss2 = callPackage ../development/python-modules/oss2 { }; 6364 + 6365 + ossfs = callPackage ../development/python-modules/ossfs { }; 6346 6366 6347 6367 outcome = callPackage ../development/python-modules/outcome { }; 6348 6368