Merge pull request #101207 from NixOS/staging-next

Staging next

authored by

Frederik Rietdijk and committed by
GitHub
49cd7307 d4905b13

+1064 -2665
+6 -1
doc/stdenv/stdenv.xml
··· 2070 2070 The <literal>installManPage</literal> function takes one or more paths to manpages to install. The manpages must have a section suffix, and may optionally be compressed (with <literal>.gz</literal> suffix). This function will place them into the correct directory. 2071 2071 </para> 2072 2072 <para> 2073 - The <literal>installShellCompletion</literal> function takes one or more paths to shell completion files. By default it will autodetect the shell type from the completion file extension, but you may also specify it by passing one of <literal>--bash</literal>, <literal>--fish</literal>, or <literal>--zsh</literal>. These flags apply to all paths listed after them (up until another shell flag is given). Each path may also have a custom installation name provided by providing a flag <literal>--name NAME</literal> before the path. If this flag is not provided, zsh completions will be renamed automatically such that <literal>foobar.zsh</literal> becomes <literal>_foobar</literal>. 2073 + The <literal>installShellCompletion</literal> function takes one or more paths to shell completion files. By default it will autodetect the shell type from the completion file extension, but you may also specify it by passing one of <literal>--bash</literal>, <literal>--fish</literal>, or <literal>--zsh</literal>. These flags apply to all paths listed after them (up until another shell flag is given). Each path may also have a custom installation name provided by providing a flag <literal>--name NAME</literal> before the path. If this flag is not provided, zsh completions will be renamed automatically such that <literal>foobar.zsh</literal> becomes <literal>_foobar</literal>. A root name may be provided for all paths using the flag <literal>--cmd NAME</literal>; this synthesizes the appropriate name depending on the shell (e.g. <literal>--cmd foo</literal> will synthesize the name <literal>foo.bash</literal> for bash and <literal>_foo</literal> for zsh). The path may also be a fifo or named fd (such as produced by <literal>&lt;(cmd)</literal>), in which case the shell and name must be provided. 2074 2074 <programlisting> 2075 2075 nativeBuildInputs = [ installShellFiles ]; 2076 2076 postInstall = '' ··· 2081 2081 installShellCompletion --zsh --name _foobar share/completions.zsh 2082 2082 # implicit behavior 2083 2083 installShellCompletion share/completions/foobar.{bash,fish,zsh} 2084 + # using named fd 2085 + installShellCompletion --cmd foobar \ 2086 + --bash &lt;($out/bin/foobar --bash-completion) \ 2087 + --fish &lt;($out/bin/foobar --fish-completion) \ 2088 + --zsh &lt;($out/bin/foobar --zsh-completion) 2084 2089 ''; 2085 2090 </programlisting> 2086 2091 </para>
+2 -2
pkgs/applications/version-management/git-and-tools/git/default.nix
··· 22 22 assert svnSupport -> perlSupport; 23 23 24 24 let 25 - version = "2.28.0"; 25 + version = "2.29.0"; 26 26 svn = subversionClient.override { perlBindings = perlSupport; }; 27 27 28 28 gitwebPerlLibs = with perlPackages; [ CGI HTMLParser CGIFast FCGI FCGIProcManager HTMLTagCloud ]; ··· 34 34 35 35 src = fetchurl { 36 36 url = "https://www.kernel.org/pub/software/scm/git/git-${version}.tar.xz"; 37 - sha256 = "17a311vzimqn1glc9d7x82rhb1mb81m5rr4g8xji8idaafid39fz"; 37 + sha256 = "KEMtmVJXxGJv4PsgkfWI327tmOlXFBnnLIO8Izcua4k="; 38 38 }; 39 39 40 40 outputs = [ "out" ] ++ stdenv.lib.optional withManual "doc";
+10 -2
pkgs/build-support/install-shell-files/default.nix
··· 1 - { makeSetupHook }: 1 + { makeSetupHook, tests }: 2 2 3 3 # See the header comment in ../setup-hooks/install-shell-files.sh for example usage. 4 - makeSetupHook { name = "install-shell-files"; } ../setup-hooks/install-shell-files.sh 4 + let 5 + setupHook = makeSetupHook { name = "install-shell-files"; } ../setup-hooks/install-shell-files.sh; 6 + in 7 + 8 + setupHook.overrideAttrs (oldAttrs: { 9 + passthru = (oldAttrs.passthru or {}) // { 10 + tests = tests.install-shell-files; 11 + }; 12 + })
+95 -30
pkgs/build-support/setup-hooks/install-shell-files.sh
··· 1 - #!/bin/bash 1 + # shellcheck shell=bash 2 2 # Setup hook for the `installShellFiles` package. 3 3 # 4 4 # Example usage in a derivation: ··· 19 19 # installManPage <path> [...<path>] 20 20 # 21 21 # Each argument is checked for its man section suffix and installed into the appropriate 22 - # share/man<n>/ directory. The function returns an error if any paths don't have the man section 23 - # suffix (with optional .gz compression). 22 + # share/man/man<n>/ directory. The function returns an error if any paths don't have the man 23 + # section suffix (with optional .gz compression). 24 24 installManPage() { 25 25 local path 26 26 for path in "$@"; do ··· 49 49 done 50 50 } 51 51 52 - # installShellCompletion [--bash|--fish|--zsh] ([--name <name>] <path>)... 52 + # installShellCompletion [--cmd <name>] ([--bash|--fish|--zsh] [--name <name>] <path>)... 53 53 # 54 54 # Each path is installed into the appropriate directory for shell completions for the given shell. 55 55 # If one of `--bash`, `--fish`, or `--zsh` is given the path is assumed to belong to that shell. ··· 61 61 # If the shell completion needs to be renamed before installing the optional `--name <name>` flag 62 62 # may be given. Any name provided with this flag only applies to the next path. 63 63 # 64 + # If all shell completions need to be renamed before installing the optional `--cmd <name>` flag 65 + # may be given. This will synthesize a name for each file, unless overridden with an explicit 66 + # `--name` flag. For example, `--cmd foobar` will synthesize the name `_foobar` for zsh and 67 + # `foobar.bash` for bash. 68 + # 64 69 # For zsh completions, if the `--name` flag is not given, the path will be automatically renamed 65 70 # such that `foobar.zsh` becomes `_foobar`. 66 71 # 72 + # A path may be a named fd, such as produced by the bash construct `<(cmd)`. When using a named fd, 73 + # the shell type flag must be provided, and either the `--name` or `--cmd` flag must be provided. 74 + # This might look something like: 75 + # 76 + # installShellCompletion --zsh --name _foobar <($out/bin/foobar --zsh-completion) 77 + # 67 78 # This command accepts multiple shell flags in conjunction with multiple paths if you wish to 68 79 # install them all in one command: 69 80 # ··· 76 87 # installShellCompletion --fish --name foobar.fish share/completions.fish 77 88 # installShellCompletion --zsh --name _foobar share/completions.zsh 78 89 # 90 + # Or to use shell newline escaping to split a single invocation across multiple lines: 91 + # 92 + # installShellCompletion --cmd foobar \ 93 + # --bash <($out/bin/foobar --bash-completion) \ 94 + # --fish <($out/bin/foobar --fish-completion) \ 95 + # --zsh <($out/bin/foobar --zsh-completion) 96 + # 79 97 # If any argument is `--` the remaining arguments will be treated as paths. 80 98 installShellCompletion() { 81 - local shell='' name='' retval=0 parseArgs=1 arg 99 + local shell='' name='' cmdname='' retval=0 parseArgs=1 arg 82 100 while { arg=$1; shift; }; do 83 101 # Parse arguments 84 102 if (( parseArgs )); then ··· 97 115 # treat `--name=foo` the same as `--name foo` 98 116 name=${arg#--name=} 99 117 continue;; 118 + --cmd) 119 + cmdname=$1 120 + shift || { 121 + echo 'installShellCompletion: error: --cmd flag expected an argument' >&2 122 + return 1 123 + } 124 + continue;; 125 + --cmd=*) 126 + # treat `--cmd=foo` the same as `--cmd foo` 127 + cmdname=${arg#--cmd=} 128 + continue;; 100 129 --?*) 101 130 echo "installShellCompletion: warning: unknown flag ${arg%%=*}" >&2 102 131 retval=2 ··· 110 139 if (( "${NIX_DEBUG:-0}" >= 1 )); then 111 140 echo "installShellCompletion: installing $arg${name:+ as $name}" 112 141 fi 113 - # if we get here, this is a path 114 - # Identify shell 115 - local basename 116 - basename=$(stripHash "$arg") 142 + # if we get here, this is a path or named pipe 143 + # Identify shell and output name 117 144 local curShell=$shell 118 - if [[ -z "$curShell" ]]; then 119 - # auto-detect the shell 120 - case "$basename" in 121 - ?*.bash) curShell=bash;; 122 - ?*.fish) curShell=fish;; 123 - ?*.zsh) curShell=zsh;; 145 + local outName='' 146 + if [[ -z "$arg" ]]; then 147 + echo "installShellCompletion: error: empty path is not allowed" >&2 148 + return 1 149 + elif [[ -p "$arg" ]]; then 150 + # this is a named fd or fifo 151 + if [[ -z "$curShell" ]]; then 152 + echo "installShellCompletion: error: named pipe requires one of --bash, --fish, or --zsh" >&2 153 + return 1 154 + elif [[ -z "$name" && -z "$cmdname" ]]; then 155 + echo "installShellCompletion: error: named pipe requires one of --cmd or --name" >&2 156 + return 1 157 + fi 158 + else 159 + # this is a path 160 + local argbase 161 + argbase=$(stripHash "$arg") 162 + if [[ -z "$curShell" ]]; then 163 + # auto-detect the shell 164 + case "$argbase" in 165 + ?*.bash) curShell=bash;; 166 + ?*.fish) curShell=fish;; 167 + ?*.zsh) curShell=zsh;; 168 + *) 169 + if [[ "$argbase" = _* && "$argbase" != *.* ]]; then 170 + # probably zsh 171 + echo "installShellCompletion: warning: assuming path \`$arg' is zsh; please specify with --zsh" >&2 172 + curShell=zsh 173 + else 174 + echo "installShellCompletion: warning: unknown shell for path: $arg" >&2 175 + retval=2 176 + continue 177 + fi;; 178 + esac 179 + fi 180 + outName=$argbase 181 + fi 182 + # Identify output path 183 + if [[ -n "$name" ]]; then 184 + outName=$name 185 + elif [[ -n "$cmdname" ]]; then 186 + case "$curShell" in 187 + bash|fish) outName=$cmdname.$curShell;; 188 + zsh) outName=_$cmdname;; 124 189 *) 125 - if [[ "$basename" = _* && "$basename" != *.* ]]; then 126 - # probably zsh 127 - echo "installShellCompletion: warning: assuming path \`$arg' is zsh; please specify with --zsh" >&2 128 - curShell=zsh 129 - else 130 - echo "installShellCompletion: warning: unknown shell for path: $arg" >&2 131 - retval=2 132 - continue 133 - fi;; 190 + # Our list of shells is out of sync with the flags we accept or extensions we detect. 191 + echo 'installShellCompletion: internal error' >&2 192 + return 1;; 134 193 esac 135 194 fi 136 - # Identify output path 137 - local outName sharePath 138 - outName=${name:-$basename} 195 + local sharePath 139 196 case "$curShell" in 140 197 bash) sharePath=bash-completion/completions;; 141 198 fish) sharePath=fish/vendor_completions.d;; 142 199 zsh) 143 200 sharePath=zsh/site-functions 144 201 # only apply automatic renaming if we didn't have a manual rename 145 - if test -z "$name"; then 202 + if [[ -z "$name" && -z "$cmdname" ]]; then 146 203 # convert a name like `foo.zsh` into `_foo` 147 204 outName=${outName%.zsh} 148 205 outName=_${outName#_} ··· 153 210 return 1;; 154 211 esac 155 212 # Install file 156 - install -Dm644 -T "$arg" "${!outputBin:?}/share/$sharePath/$outName" || return 157 - # Clear the name, it only applies to one path 213 + local outDir="${!outputBin:?}/share/$sharePath" 214 + local outPath="$outDir/$outName" 215 + if [[ -p "$arg" ]]; then 216 + # install handles named pipes on NixOS but not on macOS 217 + mkdir -p "$outDir" \ 218 + && cat "$arg" > "$outPath" 219 + else 220 + install -Dm644 -T "$arg" "$outPath" 221 + fi || return 222 + # Clear the per-path flags 158 223 name= 159 224 done 160 225 if [[ -n "$name" ]]; then
+3 -3
pkgs/data/misc/tzdata/default.nix
··· 2 2 3 3 stdenv.mkDerivation rec { 4 4 pname = "tzdata"; 5 - version = "2019c"; 5 + version = "2020c"; 6 6 7 7 srcs = 8 8 [ (fetchurl { 9 9 url = "https://data.iana.org/time-zones/releases/tzdata${version}.tar.gz"; 10 - sha256 = "0z7w1yv37cfk8yhix2cillam091vgp1j4g8fv84261q9mdnq1ivr"; 10 + sha256 = "1nab36g5ibs88wg2mzpzygi1wh5gh2al1qjvbk8sb90sbw8ar43q"; 11 11 }) 12 12 (fetchurl { 13 13 url = "https://data.iana.org/time-zones/releases/tzcode${version}.tar.gz"; 14 - sha256 = "1m3y2rnf1nggxxhxplab5zdd5whvar3ijyrv7lifvm82irkd7szn"; 14 + sha256 = "1r5zrk1k3jhhilkhrx82fd19rvysji8jk05gq5v0rndmyx07zacs"; 15 15 }) 16 16 ]; 17 17
+6 -1
pkgs/development/compilers/gcc/builder.sh
··· 287 287 done 288 288 289 289 # Two identical man pages are shipped (moving and compressing is done later) 290 - ln -sf gcc.1 "$out"/share/man/man1/g++.1 290 + for i in "$out"/share/man/man1/*g++.1; do 291 + if test -e "$i"; then 292 + man_prefix=`echo "$i" | sed "s,.*/\(.*\)g++.1,\1,"` 293 + ln -sf "$man_prefix"gcc.1 "$i" 294 + fi 295 + done 291 296 } 292 297 293 298 genericBuild
+64 -11
pkgs/development/compilers/ghc/8.10.2-binary.nix
··· 2 2 , fetchurl, perl, gcc 3 3 , ncurses6, gmp, glibc, libiconv, numactl 4 4 , llvmPackages 5 + 6 + # minimal = true; will remove files that aren't strictly necessary for 7 + # regular builds and GHC bootstrapping. 8 + # This is "useful" for staying within hydra's output limits for at least the 9 + # aarch64-linux architecture. 10 + # Examples of unnecessary files are the bundled documentation and files that 11 + # are only needed for profiling builds. 12 + , minimal ? false 5 13 }: 6 14 7 15 # Prebuilt only does native ··· 82 90 patchShebangs ghc-${version}/utils/ 83 91 patchShebangs ghc-${version}/configure 84 92 '' + 85 - 86 93 # We have to patch the GMP paths for the integer-gmp package. 87 94 '' 88 95 find . -name integer-gmp.buildinfo \ ··· 90 97 '' + stdenv.lib.optionalString stdenv.isDarwin '' 91 98 find . -name base.buildinfo \ 92 99 -exec sed -i "s@extra-lib-dirs: @extra-lib-dirs: ${libiconv}/lib@" {} \; 100 + '' + 101 + # aarch64 does HAVE_NUMA so -lnuma requires it in library-dirs in rts/package.conf.in 102 + # FFI_LIB_DIR is a good indication of places it must be needed. 103 + stdenv.lib.optionalString stdenv.hostPlatform.isAarch64 '' 104 + find . -name package.conf.in \ 105 + -exec sed -i "s@FFI_LIB_DIR@FFI_LIB_DIR ${numactl.out}/lib@g" {} \; 93 106 '' + 94 107 # Rename needed libraries and binaries, fix interpreter 95 108 stdenv.lib.optionalString stdenv.isLinux '' ··· 128 141 129 142 # On Linux, use patchelf to modify the executables so that they can 130 143 # find editline/gmp. 131 - postFixup = stdenv.lib.optionalString stdenv.isLinux '' 132 - for p in $(find "$out" -type f -executable); do 133 - if isELF "$p"; then 134 - echo "Patchelfing $p" 135 - patchelf --set-rpath "${libPath}:$(patchelf --print-rpath $p)" $p 136 - fi 137 - done 138 - '' + stdenv.lib.optionalString stdenv.isDarwin '' 144 + postFixup = stdenv.lib.optionalString stdenv.isLinux 145 + (if stdenv.hostPlatform.isAarch64 then 146 + # Keep rpath as small as possible on aarch64 for patchelf#244. All Elfs 147 + # are 2 directories deep from $out/lib, so pooling symlinks there makes 148 + # a short rpath. 149 + '' 150 + (cd $out/lib; ln -s ${ncurses6.out}/lib/libtinfo.so.6) 151 + (cd $out/lib; ln -s ${gmp.out}/lib/libgmp.so.10) 152 + (cd $out/lib; ln -s ${numactl.out}/lib/libnuma.so.1) 153 + for p in $(find "$out/lib" -type f -name "*\.so*"); do 154 + (cd $out/lib; ln -s $p) 155 + done 156 + 157 + for p in $(find "$out/lib" -type f -executable); do 158 + if isELF "$p"; then 159 + echo "Patchelfing $p" 160 + patchelf --set-rpath "\$ORIGIN:\$ORIGIN/../.." $p 161 + fi 162 + done 163 + '' 164 + else 165 + '' 166 + for p in $(find "$out" -type f -executable); do 167 + if isELF "$p"; then 168 + echo "Patchelfing $p" 169 + patchelf --set-rpath "${libPath}:$(patchelf --print-rpath $p)" $p 170 + fi 171 + done 172 + '') + stdenv.lib.optionalString stdenv.isDarwin '' 139 173 # not enough room in the object files for the full path to libiconv :( 140 174 for exe in $(find "$out" -type f -executable); do 141 175 isScript $exe && continue ··· 146 180 for file in $(find "$out" -name setup-config); do 147 181 substituteInPlace $file --replace /usr/bin/ranlib "$(type -P ranlib)" 148 182 done 183 + '' + 184 + stdenv.lib.optionalString minimal '' 185 + # Remove profiling objects 186 + find $out -type f -name '*.p_o' -delete 187 + rm $out/lib/ghc-*/bin/ghc-iserv-prof 188 + # Remove docs 189 + rm -r $out/share/{doc,man} 149 190 ''; 150 191 151 192 doInstallCheck = true; ··· 169 210 enableShared = true; 170 211 }; 171 212 172 - meta.license = stdenv.lib.licenses.bsd3; 173 - meta.platforms = ["x86_64-linux" "armv7l-linux" "aarch64-linux" "i686-linux" "x86_64-darwin"]; 213 + meta = let 214 + platforms = ["x86_64-linux" "armv7l-linux" "aarch64-linux" "i686-linux" "x86_64-darwin"]; 215 + in { 216 + homepage = "http://haskell.org/ghc"; 217 + description = "The Glasgow Haskell Compiler"; 218 + license = stdenv.lib.licenses.bsd3; 219 + 220 + # The minimal variation can not be distributed because it removes the 221 + # documentation, including licensing information that is required for 222 + # distribution. 223 + inherit platforms; 224 + hydraPlatforms = stdenv.lib.optionals (!minimal) platforms; 225 + maintainers = with stdenv.lib.maintainers; [ lostnet ]; 226 + }; 174 227 }
+5 -1
pkgs/development/compilers/ghc/8.8.4.nix
··· 119 119 postPatch = "patchShebangs ."; 120 120 121 121 # GHC is a bit confused on its cross terminology. 122 - preConfigure = '' 122 + preConfigure = stdenv.lib.optionalString stdenv.isAarch64 '' 123 + # Aarch64 allow backward bootstrapping since earlier versions are unstable. 124 + find . -name \*\.cabal\* -exec sed -i -e 's/\(base.*\)4.14/\14.16/' {} \; \ 125 + -exec sed -i -e 's/\(prim.*\)0.6/\10.8/' {} \; 126 + '' + '' 123 127 for env in $(env | grep '^TARGET_' | sed -E 's|\+?=.*||'); do 124 128 export "''${env#TARGET_}=''${!env}" 125 129 done
+2 -9
pkgs/development/compilers/go/1.4.nix
··· 43 43 cd go 44 44 patchShebangs ./ # replace /bin/bash 45 45 46 + # Disable timezone tests (these fail when `tzdata` is updated) 47 + rm src/time/{example,format}_test.go 46 48 # Disabling the 'os/http/net' tests (they want files not available in 47 49 # chroot builds) 48 50 rm src/net/{multicast_test.go,parse_test.go,port_test.go} ··· 56 58 sed -i '/TestDialTimeout/areturn' src/net/dial_test.go 57 59 # Disable the hostname test 58 60 sed -i '/TestHostname/areturn' src/os/os_test.go 59 - # ParseInLocation fails the test 60 - sed -i '/TestParseInSydney/areturn' src/time/format_test.go 61 61 62 62 sed -i 's,/etc/protocols,${iana-etc}/etc/protocols,' src/net/lookup_unix.go 63 63 '' + lib.optionalString stdenv.isLinux '' ··· 119 119 patches = [ 120 120 ./remove-tools-1.4.patch 121 121 ./creds-test-1.4.patch 122 - 123 - # This test checks for the wrong thing with recent tzdata. It's been fixed in master but the patch 124 - # actually works on old versions too. 125 - (fetchpatch { 126 - url = "https://github.com/golang/go/commit/91563ced5897faf729a34be7081568efcfedda31.patch"; 127 - sha256 = "1ny5l3f8a9dpjjrnjnsplb66308a0x13sa0wwr4j6yrkc8j4qxqi"; 128 - }) 129 122 ]; 130 123 131 124 GOOS = if stdenv.isDarwin then "darwin" else "linux";
+4 -6
pkgs/development/compilers/purescript/psc-package/default.nix
··· 44 44 '' + '' 45 45 chmod u-w $PSC_PACKAGE 46 46 47 - $PSC_PACKAGE --bash-completion-script $PSC_PACKAGE > psc-package.bash 48 - $PSC_PACKAGE --fish-completion-script $PSC_PACKAGE > psc-package.fish 49 - $PSC_PACKAGE --zsh-completion-script $PSC_PACKAGE > _psc-package 50 - installShellCompletion \ 51 - psc-package.{bash,fish} \ 52 - --zsh _psc-package 47 + installShellCompletion --cmd psc-package \ 48 + --bash <($PSC_PACKAGE --bash-completion-script $PSC_PACKAGE) \ 49 + --fish <($PSC_PACKAGE --fish-completion-script $PSC_PACKAGE) \ 50 + --zsh <($PSC_PACKAGE --zsh-completion-script $PSC_PACKAGE) 53 51 ''; 54 52 55 53 meta = with lib; {
-45
pkgs/development/compilers/rust/1_46.nix
··· 1 - # New rust versions should first go to staging. 2 - # Things to check after updating: 3 - # 1. Rustc should produce rust binaries on x86_64-linux, aarch64-linux and x86_64-darwin: 4 - # i.e. nix-shell -p fd or @GrahamcOfBorg build fd on github 5 - # This testing can be also done by other volunteers as part of the pull 6 - # request review, in case platforms cannot be covered. 7 - # 2. The LLVM version used for building should match with rust upstream. 8 - # Check the version number in the src/llvm-project git submodule in: 9 - # https://github.com/rust-lang/rust/blob/<version-tag>/.gitmodules 10 - # 3. Firefox and Thunderbird should still build on x86_64-linux. 11 - 12 - { stdenv, lib 13 - , buildPackages 14 - , newScope, callPackage 15 - , CoreFoundation, Security 16 - , llvmPackages 17 - , pkgsBuildTarget, pkgsBuildBuild 18 - , makeRustPlatform 19 - } @ args: 20 - 21 - import ./default.nix { 22 - rustcVersion = "1.46.0"; 23 - rustcSha256 = "0a17jby2pd050s24cy4dfc0gzvgcl585v3vvyfilniyvjrqknsid"; 24 - 25 - # Note: the version MUST be one version prior to the version we're 26 - # building 27 - bootstrapVersion = "1.45.2"; 28 - 29 - # fetch hashes by running `print-hashes.sh 1.45.2` 30 - bootstrapHashes = { 31 - i686-unknown-linux-gnu = "5b2050dde23152750de89f7e59acaab6bf088d0beb5854c69c9a545fd254b936"; 32 - x86_64-unknown-linux-gnu = "860feed955726a4d96ffe40758a110053326b9ae11c9e1ee059e9c6222f25643"; 33 - arm-unknown-linux-gnueabihf = "ddb5f59bbdef84e0b7c83049461e003ed031dd881a4622365c3d475102535c60"; 34 - armv7-unknown-linux-gnueabihf = "7a556581f87602705f9c89b04cce621cfbba9050b6fbe478166e91d164567531"; 35 - aarch64-unknown-linux-gnu = "151fad66442d28a4e4786753d1afb559c4a3d359081c64769273a31c2f0f4d30"; 36 - x86_64-apple-darwin = "6e8067624ede10aa23081d62e0086c6f42f7228cc0d00fb5ff24d4dac65249d6"; 37 - }; 38 - 39 - selectRustPackage = pkgs: pkgs.rust_1_46; 40 - 41 - rustcPatches = [ 42 - ]; 43 - } 44 - 45 - (builtins.removeAttrs args [ "fetchpatch" ])
+45
pkgs/development/compilers/rust/1_47.nix
··· 1 + # New rust versions should first go to staging. 2 + # Things to check after updating: 3 + # 1. Rustc should produce rust binaries on x86_64-linux, aarch64-linux and x86_64-darwin: 4 + # i.e. nix-shell -p fd or @GrahamcOfBorg build fd on github 5 + # This testing can be also done by other volunteers as part of the pull 6 + # request review, in case platforms cannot be covered. 7 + # 2. The LLVM version used for building should match with rust upstream. 8 + # Check the version number in the src/llvm-project git submodule in: 9 + # https://github.com/rust-lang/rust/blob/<version-tag>/.gitmodules 10 + # 3. Firefox and Thunderbird should still build on x86_64-linux. 11 + 12 + { stdenv, lib 13 + , buildPackages 14 + , newScope, callPackage 15 + , CoreFoundation, Security 16 + , llvmPackages 17 + , pkgsBuildTarget, pkgsBuildBuild 18 + , makeRustPlatform 19 + } @ args: 20 + 21 + import ./default.nix { 22 + rustcVersion = "1.47.0"; 23 + rustcSha256 = "sha256-MYXfBkxHR/LIubuMRGjt1Y/0rW0HiAyHmsGxc7do2B0="; 24 + 25 + # Note: the version MUST be one version prior to the version we're 26 + # building 27 + bootstrapVersion = "1.46.0"; 28 + 29 + # fetch hashes by running `print-hashes.sh 1.45.2` 30 + bootstrapHashes = { 31 + i686-unknown-linux-gnu = "6ebd7e04dc18a36d08b9731cdb42d5caf8460e1eb41b75f3a8596c39f5e71206"; 32 + x86_64-unknown-linux-gnu = "e3b98bc3440fe92817881933f9564389eccb396f5f431f33d48b979fa2fbdcf5"; 33 + arm-unknown-linux-gnueabihf = "bb8af68565321f54608e918597083eb016ed0f9f4f3cc23f7cc5f467b934ce7f"; 34 + armv7-unknown-linux-gnueabihf = "7c0640879d7f2c38db60352e3c0f09e3fc6fa3bac6ca8f22cbccb1eb5e950121"; 35 + aarch64-unknown-linux-gnu = "f0c6d630f3dedb3db69d69ed9f833aa6b472363096f5164f1068c7001ca42aeb"; 36 + x86_64-apple-darwin = "82d61582a3772932432a99789c3b3bd4abe6baca339e355048ca9efb9ea5b4db"; 37 + }; 38 + 39 + selectRustPackage = pkgs: pkgs.rust_1_47; 40 + 41 + rustcPatches = [ 42 + ]; 43 + } 44 + 45 + (builtins.removeAttrs args [ "fetchpatch" ])
+9 -3
pkgs/development/compilers/rust/binary.nix
··· 1 - { stdenv, makeWrapper, bash, curl, darwin 1 + { stdenv, makeWrapper, bash, curl, darwin, zlib 2 2 , version 3 3 , src 4 4 , platform ··· 42 42 ./install.sh --prefix=$out \ 43 43 --components=${installComponents} 44 44 45 - ${optionalString (stdenv.isLinux && bootstrapping) '' 45 + ${optionalString (stdenv.isLinux && bootstrapping) ('' 46 46 patchelf \ 47 47 --set-interpreter $(cat $NIX_CC/nix-support/dynamic-linker) \ 48 48 "$out/bin/rustc" 49 + '' + optionalString (stdenv.lib.versionAtLeast version "1.46") 50 + # rustc bootstrap needs libz starting from 1.46 51 + '' 52 + ln -s ${zlib}/lib/libz.so.1 $out/lib/libz.so.1 53 + ln -s ${zlib}/lib/libz.so $out/lib/libz.so 54 + '' + '' 49 55 patchelf \ 50 56 --set-interpreter $(cat $NIX_CC/nix-support/dynamic-linker) \ 51 57 "$out/bin/rustdoc" 52 58 patchelf \ 53 59 --set-interpreter $(cat $NIX_CC/nix-support/dynamic-linker) \ 54 60 "$out/bin/cargo" 55 - ''} 61 + '')} 56 62 57 63 # Do NOT, I repeat, DO NOT use `wrapProgram` on $out/bin/rustc 58 64 # (or similar) here. It causes strange effects where rustc loads
+2 -2
pkgs/development/interpreters/ruby/rubygems/default.nix
··· 2 2 3 3 stdenv.mkDerivation rec { 4 4 name = "rubygems"; 5 - version = "3.1.2"; 5 + version = "3.1.3"; 6 6 7 7 src = fetchurl { 8 8 url = "https://rubygems.org/rubygems/rubygems-${version}.tgz"; 9 - sha256 = "0h7ij4jpj8rgnpkl63cwh2lnav73pw5wpfqra3va7077lsyadlgd"; 9 + sha256 = "181wjclxnq5lrwnr53famy9pg8911hi9w2v0vy7dqgjqnc4iy1hp"; 10 10 }; 11 11 12 12 patches = [
+2 -2
pkgs/development/libraries/enchant/2.x.nix
··· 10 10 11 11 stdenv.mkDerivation rec { 12 12 pname = "enchant"; 13 - version = "2.2.11"; 13 + version = "2.2.12"; 14 14 15 15 outputs = [ "out" "dev" ]; 16 16 17 17 src = fetchurl { 18 18 url = "https://github.com/AbiWord/${pname}/releases/download/v${version}/${pname}-${version}.tar.gz"; 19 - sha256 = "opxXd8TkX8rCWVwVxJ1tKqQ0+l58mT3/P582e2X+Ryo="; 19 + sha256 = "0zi20s62gax9rkhwj318kqrxa62pmks6dsdd6m9pzvhlwy5cb6vb"; 20 20 }; 21 21 22 22 nativeBuildInputs = [
+7 -5
pkgs/development/libraries/expat/default.nix
··· 1 - { stdenv, fetchurl }: 1 + { stdenv, fetchurl, lib }: 2 2 3 3 # Note: this package is used for bootstrapping fetchurl, and thus 4 4 # cannot use fetchpatch! All mutable patches (generated by GitHub or 5 5 # cgit) that are needed here should be included directly in Nixpkgs as 6 6 # files. 7 7 8 - stdenv.mkDerivation rec { 9 - name = "expat-2.2.8"; 8 + let 9 + version = "2.2.10"; 10 + in stdenv.mkDerivation rec { 11 + name = "expat-${version}"; 10 12 11 13 src = fetchurl { 12 - url = "https://github.com/libexpat/libexpat/releases/download/R_2_2_8/${name}.tar.xz"; 13 - sha256 = "16vpj5mk3lps3x7fr8cs03rffx3ir4jilyqw0frayn6q94daijk1"; 14 + url = "https://github.com/libexpat/libexpat/releases/download/R_${lib.replaceStrings ["."] ["_"] version}/${name}.tar.xz"; 15 + sha256 = "sha256-Xf5Tj4tbY/A+mO2sUg19mmpNIuSC5cltTQb8xUhcJfI="; 14 16 }; 15 17 16 18 outputs = [ "out" "dev" ]; # TODO: fix referrers
+2 -2
pkgs/development/libraries/freetype/default.nix
··· 14 14 15 15 in stdenv.mkDerivation rec { 16 16 pname = "freetype"; 17 - version = "2.10.2"; 17 + version = "2.10.4"; 18 18 19 19 meta = with stdenv.lib; { 20 20 description = "A font rendering engine"; ··· 33 33 34 34 src = fetchurl { 35 35 url = "mirror://savannah/${pname}/${pname}-${version}.tar.xz"; 36 - sha256 = "12rd181yzz6952cyjqaa4253f5szam93cmhw18p33rnj4l8dchqm"; 36 + sha256 = "112pyy215chg7f7fmp2l9374chhhpihbh8wgpj5nj6avj3c59a46"; 37 37 }; 38 38 39 39 propagatedBuildInputs = [ zlib bzip2 libpng ]; # needed when linking against freetype
+73
pkgs/development/libraries/gamin/abstract-socket-namespace.patch
··· 1 + From 737452159d521aef2041a2767f3ebf9f68f4b6a9 Mon Sep 17 00:00:00 2001 2 + From: Christian Kampka <christian@kampka.net> 3 + Date: Tue, 1 Sep 2020 13:54:35 +0200 4 + Subject: [PATCH] Pin abstract namespace sockets to host_os 5 + 6 + Running programs with AC_RUN_IFELSE fails when cross-compiling. 7 + Since abstract namespace sockets are linux feature, we can easily 8 + assume it is available for linux and not for darwin. 9 + --- 10 + configure.in | 47 ++++++----------------------------------------- 11 + 1 file changed, 6 insertions(+), 41 deletions(-) 12 + 13 + diff --git a/configure.in b/configure.in 14 + index eb129db..0ed82ba 100644 15 + --- a/configure.in 16 + +++ b/configure.in 17 + @@ -387,47 +387,12 @@ fi 18 + 19 + #### Abstract sockets 20 + 21 + -AC_MSG_CHECKING(abstract socket namespace) 22 + -AC_LANG_PUSH(C) 23 + -AC_RUN_IFELSE([AC_LANG_PROGRAM( 24 + -[[ 25 + -#include <sys/types.h> 26 + -#include <stdlib.h> 27 + -#include <string.h> 28 + -#include <stdio.h> 29 + -#include <sys/socket.h> 30 + -#include <sys/un.h> 31 + -#include <errno.h> 32 + -]], 33 + -[[ 34 + - int listen_fd; 35 + - struct sockaddr_un addr; 36 + - 37 + - listen_fd = socket (PF_UNIX, SOCK_STREAM, 0); 38 + - 39 + - if (listen_fd < 0) 40 + - { 41 + - fprintf (stderr, "socket() failed: %s\n", strerror (errno)); 42 + - exit (1); 43 + - } 44 + - 45 + - memset (&addr, '\0', sizeof (addr)); 46 + - addr.sun_family = AF_UNIX; 47 + - strcpy (addr.sun_path, "X/tmp/dbus-fake-socket-path-used-in-configure-test"); 48 + - addr.sun_path[0] = '\0'; /* this is what makes it abstract */ 49 + - 50 + - if (bind (listen_fd, (struct sockaddr*) &addr, SUN_LEN (&addr)) < 0) 51 + - { 52 + - fprintf (stderr, "Abstract socket namespace bind() failed: %s\n", 53 + - strerror (errno)); 54 + - exit (1); 55 + - } 56 + - else 57 + - exit (0); 58 + -]])], 59 + - [have_abstract_sockets=yes], 60 + - [have_abstract_sockets=no]) 61 + -AC_LANG_POP(C) 62 + +AC_MSG_CHECKING([whether target os has abstract socket namespace]) 63 + +if test x$target_os = xlinux-gnu ; then 64 + + have_abstract_sockets=yes 65 + +else 66 + + have_abstract_sockets=no 67 + +fi 68 + AC_MSG_RESULT($have_abstract_sockets) 69 + 70 + if test x$enable_abstract_sockets = xyes; then 71 + -- 72 + 2.25.4 73 +
+6 -4
pkgs/development/libraries/gamin/default.nix
··· 1 - { stdenv, fetchurl, fetchpatch, pkgconfig, glib }: 1 + { stdenv, fetchurl, fetchpatch, pkgconfig, glib, autoreconfHook }: 2 2 3 - stdenv.mkDerivation (rec { 3 + let 4 + cross = stdenv.hostPlatform != stdenv.buildPlatform; 5 + in stdenv.mkDerivation (rec { 4 6 name = "gamin-0.1.10"; 5 7 6 8 src = fetchurl { ··· 8 10 sha256 = "18cr51y5qacvs2fc2p1bqv32rs8bzgs6l67zhasyl45yx055y218"; 9 11 }; 10 12 11 - nativeBuildInputs = [ pkgconfig ]; 13 + nativeBuildInputs = [ pkgconfig autoreconfHook ]; 12 14 13 15 buildInputs = [ glib ]; 14 16 ··· 27 29 name = "fix-pthread-mutex.patch"; 28 30 url = "https://git.alpinelinux.org/aports/plain/main/gamin/fix-pthread-mutex.patch?h=3.4-stable&id=a1a836b089573752c1b0da7d144c0948b04e8ea8"; 29 31 sha256 = "13igdbqsxb3sz0h417k6ifmq2n4siwqspj6slhc7fdl5wd1fxmdz"; 30 - }); 32 + }) ++ stdenv.lib.optional (cross) ./abstract-socket-namespace.patch ; 31 33 32 34 33 35 meta = with stdenv.lib; {
+2 -2
pkgs/development/libraries/harfbuzz/default.nix
··· 11 11 }: 12 12 13 13 let 14 - version = "2.7.1"; 14 + version = "2.7.2"; 15 15 inherit (stdenv.lib) optional optionals optionalString; 16 16 mesonFeatureFlag = opt: b: 17 17 "-D${opt}=${if b then "enabled" else "disabled"}"; ··· 24 24 owner = "harfbuzz"; 25 25 repo = "harfbuzz"; 26 26 rev = version; 27 - sha256 = "172jmwp666xbs6yy1pc2495gnkz8xw11b8zkz3j19jxlvvp4mxcs"; 27 + sha256 = "0vfyxr3lvzp80j1347nrwpr1ndv265p15rj2q8rj31lb26nyz4dm"; 28 28 }; 29 29 30 30 postPatch = ''
+3 -3
pkgs/development/libraries/jbig2dec/default.nix
··· 2 2 3 3 stdenv.mkDerivation rec { 4 4 pname = "jbig2dec"; 5 - version = "0.18"; 5 + version = "0.19"; 6 6 7 7 src = fetchurl { 8 - url = "https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs952/${pname}-${version}.tar.gz"; 9 - sha256 = "0pigfw2v0ppvr0lbysm69gx0zsa5q2q92yrb8af2j3im6x97f6cy"; 8 + url = "https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs9533/${pname}-${version}.tar.gz"; 9 + sha256 = "0dwa24kjqyg9hmm40fh048sdxfpnasz43l2rm8wlkw1qbdlpd517"; 10 10 }; 11 11 12 12 postPatch = ''
+1 -1
pkgs/development/libraries/libical/default.nix
··· 91 91 runHook preInstallCheck 92 92 93 93 export TZDIR=${tzdata}/share/zoneinfo 94 - ctest --output-on-failure 94 + ctest --output-on-failure --exclude-regex 'timezones|libical-glib-array|libical-glib-component|libical-glib-timezone' 95 95 96 96 runHook postInstallCheck 97 97 '';
+9 -6
pkgs/development/libraries/libinput/default.nix
··· 1 - { stdenv, fetchurl, pkgconfig, meson, ninja 1 + { stdenv, fetchFromGitLab, pkgconfig, meson, ninja 2 2 , libevdev, mtdev, udev, libwacom 3 3 , documentationSupport ? false, doxygen ? null, graphviz ? null # Documentation 4 4 , eventGUISupport ? false, cairo ? null, glib ? null, gtk3 ? null # GUI event viewer support ··· 27 27 with stdenv.lib; 28 28 stdenv.mkDerivation rec { 29 29 pname = "libinput"; 30 - version = "1.16.1"; 30 + version = "1.16.2"; 31 31 32 - src = fetchurl { 33 - url = "https://www.freedesktop.org/software/libinput/${pname}-${version}.tar.xz"; 34 - sha256 = "e6fRru3RUWi7IdF+nmKKocJ5V5Y6Qjo/6jk4pQF1hTk="; 32 + src = fetchFromGitLab { 33 + domain = "gitlab.freedesktop.org"; 34 + owner = pname; 35 + repo = pname; 36 + rev = version; 37 + sha256 = "0qii6yh3dlhgv9z970cpzbz19ii8zjvq4k7pg75sy2gmia7smwd1"; 35 38 }; 36 39 37 40 outputs = [ "bin" "out" "dev" ]; ··· 80 83 81 84 meta = { 82 85 description = "Handles input devices in Wayland compositors and provides a generic X.Org input driver"; 83 - homepage = "http://www.freedesktop.org/wiki/Software/libinput"; 86 + homepage = "https://www.freedesktop.org/wiki/Software/libinput/"; 84 87 license = licenses.mit; 85 88 platforms = platforms.unix; 86 89 maintainers = with maintainers; [ codyopel ];
-211
pkgs/development/libraries/libvpx/CVE-2019-9232.CVE-2019-9325.CVE-2019-9371.CVE-2019-9433.patch
··· 1 - Backports of 2 - 3 - From 46e17f0cb4a80b36755c84b8bf15731d3386c08f Mon Sep 17 00:00:00 2001 4 - From: kyslov <kyslov@google.com> 5 - Date: Fri, 4 Jan 2019 17:04:09 -0800 6 - Subject: [PATCH] Fix OOB memory access on fuzzed data 7 - 8 - From 0681cff1ad36b3ef8ec242f59b5a6c4234ccfb88 Mon Sep 17 00:00:00 2001 9 - From: James Zern <jzern@google.com> 10 - Date: Tue, 24 Jul 2018 21:36:50 -0700 11 - Subject: [PATCH] vp9: fix OOB read in decoder_peek_si_internal 12 - 13 - From f00890eecdf8365ea125ac16769a83aa6b68792d Mon Sep 17 00:00:00 2001 14 - From: James Zern <jzern@google.com> 15 - Date: Tue, 11 Dec 2018 18:06:20 -0800 16 - Subject: [PATCH] update libwebm to libwebm-1.0.0.27-352-g6ab9fcf 17 - 18 - From 34d54b04e98dd0bac32e9aab0fbda0bf501bc742 Mon Sep 17 00:00:00 2001 19 - From: James Zern <jzern@google.com> 20 - Date: Tue, 9 Apr 2019 18:37:44 -0700 21 - Subject: [PATCH] update libwebm to libwebm-1.0.0.27-358-gdbf1d10 22 - 23 - From 52add5896661d186dec284ed646a4b33b607d2c7 Mon Sep 17 00:00:00 2001 24 - From: Jerome Jiang <jianj@google.com> 25 - Date: Wed, 23 May 2018 15:43:00 -0700 26 - Subject: [PATCH] VP8: Fix use-after-free in postproc. 27 - 28 - to address CVE-2019-9232 CVE-2019-9325 CVE-2019-9371 CVE-2019-9433 29 - 30 - --- libvpx-1.7.0.orig/test/decode_api_test.cc 31 - +++ libvpx-1.7.0/test/decode_api_test.cc 32 - @@ -138,8 +138,30 @@ TEST(DecodeAPI, Vp9InvalidDecode) { 33 - EXPECT_EQ(VPX_CODEC_OK, vpx_codec_destroy(&dec)); 34 - } 35 - 36 - -TEST(DecodeAPI, Vp9PeekSI) { 37 - +void TestPeekInfo(const uint8_t *const data, uint32_t data_sz, 38 - + uint32_t peek_size) { 39 - const vpx_codec_iface_t *const codec = &vpx_codec_vp9_dx_algo; 40 - + // Verify behavior of vpx_codec_decode. vpx_codec_decode doesn't even get 41 - + // to decoder_peek_si_internal on frames of size < 8. 42 - + if (data_sz >= 8) { 43 - + vpx_codec_ctx_t dec; 44 - + EXPECT_EQ(VPX_CODEC_OK, vpx_codec_dec_init(&dec, codec, NULL, 0)); 45 - + EXPECT_EQ((data_sz < peek_size) ? VPX_CODEC_UNSUP_BITSTREAM 46 - + : VPX_CODEC_CORRUPT_FRAME, 47 - + vpx_codec_decode(&dec, data, data_sz, NULL, 0)); 48 - + vpx_codec_iter_t iter = NULL; 49 - + EXPECT_EQ(NULL, vpx_codec_get_frame(&dec, &iter)); 50 - + EXPECT_EQ(VPX_CODEC_OK, vpx_codec_destroy(&dec)); 51 - + } 52 - + 53 - + // Verify behavior of vpx_codec_peek_stream_info. 54 - + vpx_codec_stream_info_t si; 55 - + si.sz = sizeof(si); 56 - + EXPECT_EQ((data_sz < peek_size) ? VPX_CODEC_UNSUP_BITSTREAM : VPX_CODEC_OK, 57 - + vpx_codec_peek_stream_info(codec, data, data_sz, &si)); 58 - +} 59 - + 60 - +TEST(DecodeAPI, Vp9PeekStreamInfo) { 61 - // The first 9 bytes are valid and the rest of the bytes are made up. Until 62 - // size 10, this should return VPX_CODEC_UNSUP_BITSTREAM and after that it 63 - // should return VPX_CODEC_CORRUPT_FRAME. 64 - @@ -150,24 +172,18 @@ TEST(DecodeAPI, Vp9PeekSI) { 65 - }; 66 - 67 - for (uint32_t data_sz = 1; data_sz <= 32; ++data_sz) { 68 - - // Verify behavior of vpx_codec_decode. vpx_codec_decode doesn't even get 69 - - // to decoder_peek_si_internal on frames of size < 8. 70 - - if (data_sz >= 8) { 71 - - vpx_codec_ctx_t dec; 72 - - EXPECT_EQ(VPX_CODEC_OK, vpx_codec_dec_init(&dec, codec, NULL, 0)); 73 - - EXPECT_EQ( 74 - - (data_sz < 10) ? VPX_CODEC_UNSUP_BITSTREAM : VPX_CODEC_CORRUPT_FRAME, 75 - - vpx_codec_decode(&dec, data, data_sz, NULL, 0)); 76 - - vpx_codec_iter_t iter = NULL; 77 - - EXPECT_EQ(NULL, vpx_codec_get_frame(&dec, &iter)); 78 - - EXPECT_EQ(VPX_CODEC_OK, vpx_codec_destroy(&dec)); 79 - - } 80 - - 81 - - // Verify behavior of vpx_codec_peek_stream_info. 82 - - vpx_codec_stream_info_t si; 83 - - si.sz = sizeof(si); 84 - - EXPECT_EQ((data_sz < 10) ? VPX_CODEC_UNSUP_BITSTREAM : VPX_CODEC_OK, 85 - - vpx_codec_peek_stream_info(codec, data, data_sz, &si)); 86 - + TestPeekInfo(data, data_sz, 10); 87 - + } 88 - +} 89 - + 90 - +TEST(DecodeAPI, Vp9PeekStreamInfoTruncated) { 91 - + // This profile 1 header requires 10.25 bytes, ensure 92 - + // vpx_codec_peek_stream_info doesn't over read. 93 - + const uint8_t profile1_data[10] = { 0xa4, 0xe9, 0x30, 0x68, 0x53, 94 - + 0xe9, 0x30, 0x68, 0x53, 0x04 }; 95 - + 96 - + for (uint32_t data_sz = 1; data_sz <= 10; ++data_sz) { 97 - + TestPeekInfo(profile1_data, data_sz, 11); 98 - } 99 - } 100 - #endif // CONFIG_VP9_DECODER 101 - --- libvpx-1.7.0.orig/third_party/libwebm/mkvparser/mkvparser.cc 102 - +++ libvpx-1.7.0/third_party/libwebm/mkvparser/mkvparser.cc 103 - @@ -5307,8 +5307,8 @@ long VideoTrack::Parse(Segment* pSegment 104 - 105 - const long long stop = pos + s.size; 106 - 107 - - Colour* colour = NULL; 108 - - Projection* projection = NULL; 109 - + std::unique_ptr<Colour> colour_ptr; 110 - + std::unique_ptr<Projection> projection_ptr; 111 - 112 - while (pos < stop) { 113 - long long id, size; 114 - @@ -5357,11 +5357,19 @@ long VideoTrack::Parse(Segment* pSegment 115 - if (rate <= 0) 116 - return E_FILE_FORMAT_INVALID; 117 - } else if (id == libwebm::kMkvColour) { 118 - - if (!Colour::Parse(pReader, pos, size, &colour)) 119 - + Colour* colour = NULL; 120 - + if (!Colour::Parse(pReader, pos, size, &colour)) { 121 - return E_FILE_FORMAT_INVALID; 122 - + } else { 123 - + colour_ptr.reset(colour); 124 - + } 125 - } else if (id == libwebm::kMkvProjection) { 126 - - if (!Projection::Parse(pReader, pos, size, &projection)) 127 - + Projection* projection = NULL; 128 - + if (!Projection::Parse(pReader, pos, size, &projection)) { 129 - return E_FILE_FORMAT_INVALID; 130 - + } else { 131 - + projection_ptr.reset(projection); 132 - + } 133 - } 134 - 135 - pos += size; // consume payload 136 - @@ -5392,8 +5400,8 @@ long VideoTrack::Parse(Segment* pSegment 137 - pTrack->m_display_unit = display_unit; 138 - pTrack->m_stereo_mode = stereo_mode; 139 - pTrack->m_rate = rate; 140 - - pTrack->m_colour = colour; 141 - - pTrack->m_projection = projection; 142 - + pTrack->m_colour = colour_ptr.release(); 143 - + pTrack->m_projection = projection_ptr.release(); 144 - 145 - pResult = pTrack; 146 - return 0; // success 147 - --- libvpx-1.7.0.orig/vp8/common/postproc.c 148 - +++ libvpx-1.7.0/vp8/common/postproc.c 149 - @@ -65,7 +65,7 @@ void vp8_deblock(VP8_COMMON *cm, YV12_BU 150 - double level = 6.0e-05 * q * q * q - .0067 * q * q + .306 * q + .0065; 151 - int ppl = (int)(level + .5); 152 - 153 - - const MODE_INFO *mode_info_context = cm->show_frame_mi; 154 - + const MODE_INFO *mode_info_context = cm->mi; 155 - int mbr, mbc; 156 - 157 - /* The pixel thresholds are adjusted according to if or not the macroblock 158 - --- libvpx-1.7.0.orig/vp8/decoder/dboolhuff.h 159 - +++ libvpx-1.7.0/vp8/decoder/dboolhuff.h 160 - @@ -76,7 +76,7 @@ static int vp8dx_decode_bool(BOOL_DECODE 161 - } 162 - 163 - { 164 - - register int shift = vp8_norm[range]; 165 - + const unsigned char shift = vp8_norm[(unsigned char)range]; 166 - range <<= shift; 167 - value <<= shift; 168 - count -= shift; 169 - --- libvpx-1.7.0.orig/vp9/vp9_dx_iface.c 170 - +++ libvpx-1.7.0/vp9/vp9_dx_iface.c 171 - @@ -97,7 +97,7 @@ static vpx_codec_err_t decoder_peek_si_i 172 - const uint8_t *data, unsigned int data_sz, vpx_codec_stream_info_t *si, 173 - int *is_intra_only, vpx_decrypt_cb decrypt_cb, void *decrypt_state) { 174 - int intra_only_flag = 0; 175 - - uint8_t clear_buffer[10]; 176 - + uint8_t clear_buffer[11]; 177 - 178 - if (data + data_sz <= data) return VPX_CODEC_INVALID_PARAM; 179 - 180 - @@ -158,6 +158,9 @@ static vpx_codec_err_t decoder_peek_si_i 181 - if (profile > PROFILE_0) { 182 - if (!parse_bitdepth_colorspace_sampling(profile, &rb)) 183 - return VPX_CODEC_UNSUP_BITSTREAM; 184 - + // The colorspace info may cause vp9_read_frame_size() to need 11 185 - + // bytes. 186 - + if (data_sz < 11) return VPX_CODEC_UNSUP_BITSTREAM; 187 - } 188 - rb.bit_offset += REF_FRAMES; // refresh_frame_flags 189 - vp9_read_frame_size(&rb, (int *)&si->w, (int *)&si->h); 190 - --- libvpx-1.7.0.orig/vpx_dsp/bitreader.h 191 - +++ libvpx-1.7.0/vpx_dsp/bitreader.h 192 - @@ -94,7 +94,7 @@ static INLINE int vpx_read(vpx_reader *r 193 - } 194 - 195 - { 196 - - register int shift = vpx_norm[range]; 197 - + const unsigned char shift = vpx_norm[(unsigned char)range]; 198 - range <<= shift; 199 - value <<= shift; 200 - count -= shift; 201 - --- libvpx-1.7.0.orig/vpx_dsp/bitreader_buffer.c 202 - +++ libvpx-1.7.0/vpx_dsp/bitreader_buffer.c 203 - @@ -23,7 +23,7 @@ int vpx_rb_read_bit(struct vpx_read_bit_ 204 - rb->bit_offset = off + 1; 205 - return bit; 206 - } else { 207 - - rb->error_handler(rb->error_handler_data); 208 - + if (rb->error_handler != NULL) rb->error_handler(rb->error_handler_data); 209 - return 0; 210 - } 211 - }
+14 -8
pkgs/development/libraries/libvpx/default.nix
··· 56 56 57 57 stdenv.mkDerivation rec { 58 58 pname = "libvpx"; 59 - version = "1.7.0"; 59 + version = "1.9.0"; 60 60 61 61 src = fetchFromGitHub { 62 62 owner = "webmproject"; 63 - repo = "libvpx"; 63 + repo = pname; 64 64 rev = "v${version}"; 65 - sha256 = "0vvh89hvp8qg9an9vcmwb7d9k3nixhxaz6zi65qdjnd0i56kkcz6"; 65 + sha256 = "16xv6ambc82g14h1y0q1vyy57wp6j9fbp0nk0wd5csnrw407rhry"; 66 66 }; 67 67 68 - patches = [ 69 - ./CVE-2019-9232.CVE-2019-9325.CVE-2019-9371.CVE-2019-9433.patch 70 - ]; 71 - 72 - postPatch = ''patchShebangs .''; 68 + postPatch = "patchShebangs ."; 73 69 74 70 outputs = [ "bin" "dev" "out" ]; 75 71 setOutputFlags = false; ··· 135 131 experimentalFpMbStatsSupport || 136 132 experimentalEmulateHardwareSupport) "experimental") 137 133 ] ++ optionals (stdenv.hostPlatform != stdenv.buildPlatform) [ 134 + #"--extra-cflags=" 135 + #"--extra-cxxflags=" 136 + #"--prefix=" 137 + #"--libc=" 138 + #"--libdir=" 139 + "--enable-external-build" 138 140 # libvpx darwin targets include darwin version (ie. ARCH-darwinXX-gcc, XX being the darwin version) 139 141 # See all_platforms: https://github.com/webmproject/libvpx/blob/master/configure 140 142 # Darwin versions: 10.4=8, 10.5=9, 10.6=10, 10.7=11, 10.8=12, 10.9=13, 10.10=14 ··· 158 160 159 161 buildInputs = [ ] 160 162 ++ optionals unitTestsSupport [ coreutils curl ]; 163 + 164 + NIX_LDFLAGS = [ 165 + "-lpthread" # fixes linker errors 166 + ]; 161 167 162 168 enableParallelBuilding = true; 163 169
+10 -5
pkgs/development/libraries/libwebp/default.nix
··· 1 - { stdenv, fetchurl 1 + { stdenv, fetchFromGitHub, autoreconfHook, libtool 2 2 , threadingSupport ? true # multi-threading 3 3 , openglSupport ? false, freeglut ? null, libGL ? null, libGLU ? null # OpenGL (required for vwebp) 4 4 , pngSupport ? true, libpng ? null # PNG image format ··· 27 27 with stdenv.lib; 28 28 stdenv.mkDerivation rec { 29 29 pname = "libwebp"; 30 - version = "1.0.3"; 30 + version = "1.1.0"; 31 31 32 - src = fetchurl { 33 - url = "http://downloads.webmproject.org/releases/webp/${pname}-${version}.tar.gz"; 34 - sha256 = "0kxk4sic34bln3k09mml7crvrmhj97swdk7b1ahbp5w6bj30f2p2"; 32 + src = fetchFromGitHub { 33 + owner = "webmproject"; 34 + repo = pname; 35 + rev = version; 36 + sha256 = "1kl6qqa29ygqb2fpv140y59v539gdqx4vcf3mlaxhca2bks98qgm"; 35 37 }; 38 + 39 + prePatch = "patchShebangs ."; 36 40 37 41 configureFlags = [ 38 42 (mkFlag threadingSupport "threading") ··· 50 54 (mkFlag libwebpdecoderSupport "libwebpdecoder") 51 55 ]; 52 56 57 + nativeBuildInputs = [ autoreconfHook libtool ]; 53 58 buildInputs = [ ] 54 59 ++ optionals openglSupport [ freeglut libGL libGLU ] 55 60 ++ optional pngSupport libpng
+3 -4
pkgs/development/libraries/mesa/default.nix
··· 8 8 , galliumDrivers ? ["auto"] 9 9 , driDrivers ? ["auto"] 10 10 , vulkanDrivers ? ["auto"] 11 - , eglPlatforms ? [ "x11" "surfaceless" ] ++ lib.optionals stdenv.isLinux [ "wayland" "drm" ] 11 + , eglPlatforms ? [ "x11" ] ++ lib.optionals stdenv.isLinux [ "wayland" ] 12 12 , OpenGL, Xplugin 13 13 , withValgrind ? stdenv.hostPlatform.isLinux && !stdenv.hostPlatform.isAarch32, valgrind-light 14 14 , enableGalliumNine ? stdenv.isLinux ··· 31 31 let 32 32 # Release calendar: https://www.mesa3d.org/release-calendar.html 33 33 # Release frequency: https://www.mesa3d.org/releasing.html#schedule 34 - version = "20.1.9"; 34 + version = "20.2.1"; 35 35 branch = versions.major version; 36 36 in 37 37 ··· 46 46 "ftp://ftp.freedesktop.org/pub/mesa/${version}/mesa-${version}.tar.xz" 47 47 "ftp://ftp.freedesktop.org/pub/mesa/older-versions/${branch}.x/${version}/mesa-${version}.tar.xz" 48 48 ]; 49 - sha256 = "10kk8a8k7f4ip8yaiqdyrx162nbw8pw4h3b4hs4ha8mpd43wlldj"; 49 + sha256 = "0ji4s1gwcvx3fbj9h0x5zbma6kw4b75vs0266zhc06r97yd6v96i"; 50 50 }; 51 51 52 52 prePatch = "patchShebangs ."; ··· 58 58 ./missing-includes.patch # dev_t needs sys/stat.h, time_t needs time.h, etc.-- fixes build w/musl 59 59 ./opencl-install-dir.patch 60 60 ./disk_cache-include-dri-driver-path-in-cache-key.patch 61 - ./link-radv-with-ld_args_build_id.patch 62 61 ] 63 62 ++ lib.optionals stdenv.hostPlatform.isMusl [ 64 63 # Fix `-Werror=int-conversion` pthread warnings on musl.
+15 -14
pkgs/development/libraries/mesa/disk_cache-include-dri-driver-path-in-cache-key.patch
··· 1 - From 46b10f2bc28fd79d561c8c49bbae3aee6a4cf0e6 Mon Sep 17 00:00:00 2001 1 + From 980164fd92f5c2302624cd046d30ff21e6e4ba8a Mon Sep 17 00:00:00 2001 2 2 From: David McFarland <corngood@gmail.com> 3 3 Date: Mon, 6 Aug 2018 15:52:11 -0300 4 4 Subject: [PATCH] disk_cache: include dri driver path in cache key ··· 12 12 3 files changed, 15 insertions(+), 1 deletion(-) 13 13 14 14 diff --git a/meson_options.txt b/meson_options.txt 15 - index 1a2dd8ebd12..2ac741af5a6 100644 15 + index 2d39d13b6ad..daf06480a60 100644 16 16 --- a/meson_options.txt 17 17 +++ b/meson_options.txt 18 - @@ -348,6 +348,12 @@ option( 18 + @@ -368,6 +368,12 @@ option( 19 19 value : true, 20 20 description : 'Enable direct rendering in GLX and EGL for DRI', 21 21 ) ··· 26 26 + description : 'Mesa cache key.' 27 27 +) 28 28 option( 29 - 'I-love-half-baked-turnips', 29 + 'prefer-iris', 30 30 type : 'boolean', 31 31 diff --git a/src/util/disk_cache.c b/src/util/disk_cache.c 32 - index d1f14736725..2ed328f292e 100644 32 + index a92d621927a..3bd65c6890c 100644 33 33 --- a/src/util/disk_cache.c 34 34 +++ b/src/util/disk_cache.c 35 - @@ -402,8 +402,10 @@ disk_cache_create(const char *gpu_name, const char *driver_id, 35 + @@ -401,8 +401,10 @@ disk_cache_create(const char *gpu_name, const char *driver_id, 36 36 37 37 /* Create driver id keys */ 38 38 size_t id_size = strlen(driver_id) + 1; ··· 43 43 cache->driver_keys_blob_size += gpu_name_size; 44 44 45 45 /* We sometimes store entire structs that contains a pointers in the cache, 46 - @@ -424,6 +426,7 @@ disk_cache_create(const char *gpu_name, const char *driver_id, 46 + @@ -423,6 +425,7 @@ disk_cache_create(const char *gpu_name, const char *driver_id, 47 47 uint8_t *drv_key_blob = cache->driver_keys_blob; 48 48 DRV_KEY_CPY(drv_key_blob, &cache_version, cv_size) 49 49 DRV_KEY_CPY(drv_key_blob, driver_id, id_size) ··· 52 52 DRV_KEY_CPY(drv_key_blob, &ptr_size, ptr_size_size) 53 53 DRV_KEY_CPY(drv_key_blob, &driver_flags, driver_flags_size) 54 54 diff --git a/src/util/meson.build b/src/util/meson.build 55 - index 9da29cc7390..5f549bb1d99 100644 55 + index 0893f64793b..d46ce85a85f 100644 56 56 --- a/src/util/meson.build 57 57 +++ b/src/util/meson.build 58 - @@ -170,7 +170,12 @@ _libmesa_util = static_library( 59 - include_directories : inc_common, 58 + @@ -179,7 +179,12 @@ _libmesa_util = static_library( 59 + include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux], 60 60 dependencies : deps_for_libmesa_util, 61 61 link_with: libmesa_format, 62 - - c_args : [c_msvc_compat_args, c_vis_args], 62 + - c_args : [c_msvc_compat_args], 63 63 + c_args : [ 64 - + c_msvc_compat_args, c_vis_args, 64 + + c_msvc_compat_args, 65 65 + '-DDISK_CACHE_KEY="@0@"'.format( 66 66 + get_option('disk-cache-key') 67 67 + ), 68 68 + ], 69 + gnu_symbol_visibility : 'hidden', 69 70 build_by_default : false 70 71 ) 71 - 72 72 -- 73 - 2.25.1 73 + 2.28.0 74 +
-12
pkgs/development/libraries/mesa/missing-includes.patch
··· 9 9 #include "pipe/p_compiler.h" 10 10 #include "pipe/p_state.h" 11 11 12 - --- ./src/util/rand_xor.c.orig 2017-06-20 00:38:57.199474067 +0200 13 - +++ ./src/util/rand_xor.c 2017-06-20 00:40:31.351279557 +0200 14 - @@ -23,7 +23,9 @@ 15 - */ 16 - 17 - #if defined(__linux__) 18 - +#include <sys/types.h> 19 - #include <sys/file.h> 20 - +#include <sys/stat.h> 21 - #include <unistd.h> 22 - #include <fcntl.h> 23 - #else 24 12 --- ./src/amd/vulkan/winsys/amdgpu/radv_amdgpu_winsys.h 25 13 +++ ./src/amd/vulkan/winsys/amdgpu/radv_amdgpu_winsys.h 26 14 @@ -28,6 +28,8 @@
+2 -2
pkgs/development/libraries/openssl/default.nix
··· 160 160 }; 161 161 162 162 openssl_1_1 = common { 163 - version = "1.1.1g"; 164 - sha256 = "0ikdcc038i7jk8h7asq5xcn8b1xc2rrbc88yfm4hqbz3y5s4gc6x"; 163 + version = "1.1.1h"; 164 + sha256 = "1ncmcnh5bmxkwrvm0m1q4kdcjjfpwvlyjspjhibkxc6p9dvsi72w"; 165 165 patches = [ 166 166 ./1.1/nix-ssl-cert-file.patch 167 167
+7
pkgs/development/libraries/p11-kit/default.nix
··· 36 36 37 37 enableParallelBuilding = true; 38 38 39 + # Tests run in fakeroot for non-root users 40 + preCheck = '' 41 + if [ "$(id -u)" != "0" ]; then 42 + export FAKED_MODE=1 43 + fi 44 + ''; 45 + 39 46 doCheck = !stdenv.isDarwin; 40 47 41 48 installFlags = [
+6 -4
pkgs/development/libraries/zeromq/4.x.nix
··· 1 - { stdenv, fetchFromGitHub, cmake, asciidoc, enableDrafts ? false }: 1 + { stdenv, fetchFromGitHub, cmake, asciidoc, pkg-config, libsodium 2 + , enableDrafts ? false }: 2 3 3 4 stdenv.mkDerivation rec { 4 5 pname = "zeromq"; 5 - version = "4.3.2"; 6 + version = "4.3.3"; 6 7 7 8 src = fetchFromGitHub { 8 9 owner = "zeromq"; 9 10 repo = "libzmq"; 10 11 rev = "v${version}"; 11 - sha256 = "1q37z05i76ili31j6jlw8988iy6vxadlmd306f99phxfdpqa6bn9"; 12 + sha256 = "155kb0ih0xj4jvd39bq8d04bgvhy9143r3632ks1m04455z4qdzd"; 12 13 }; 13 14 14 - nativeBuildInputs = [ cmake asciidoc ]; 15 + nativeBuildInputs = [ cmake asciidoc pkg-config ]; 16 + buildInputs = [ libsodium ]; 15 17 16 18 enableParallelBuilding = true; 17 19
+2 -2
pkgs/development/python-modules/arrow/default.nix
··· 6 6 7 7 buildPythonPackage rec { 8 8 pname = "arrow"; 9 - version = "0.15.8"; 9 + version = "0.17.0"; 10 10 11 11 src = fetchPypi { 12 12 inherit pname version; 13 - sha256 = "edc31dc051db12c95da9bac0271cd1027b8e36912daf6d4580af53b23e62721a"; 13 + sha256 = "ff08d10cda1d36c68657d6ad20d74fbea493d980f8b2d45344e00d6ed2bf6ed4"; 14 14 }; 15 15 16 16 propagatedBuildInputs = [ python-dateutil ]
+18 -6
pkgs/development/python-modules/pycairo/default.nix
··· 1 - { lib, fetchFromGitHub, meson, ninja, buildPythonPackage, pytest, pkgconfig, cairo, xlibsWrapper, isPy3k }: 1 + { lib 2 + , fetchFromGitHub 3 + , meson 4 + , ninja 5 + , buildPythonPackage 6 + , pytestCheckHook 7 + , pkg-config 8 + , cairo 9 + , isPy3k 10 + }: 2 11 3 12 buildPythonPackage rec { 4 13 pname = "pycairo"; ··· 16 25 nativeBuildInputs = [ 17 26 meson 18 27 ninja 19 - pkgconfig 28 + pkg-config 20 29 ]; 21 30 22 31 buildInputs = [ 23 32 cairo 24 - xlibsWrapper 25 33 ]; 26 34 27 - checkInputs = [ pytest ]; 35 + checkInputs = [ 36 + pytestCheckHook 37 + ]; 28 38 29 - mesonFlags = [ "-Dpython=${if isPy3k then "python3" else "python"}" ]; 39 + mesonFlags = [ 40 + "-Dpython=${if isPy3k then "python3" else "python"}" 41 + ]; 30 42 31 43 meta = with lib; { 32 44 description = "Python 2/3 bindings for cairo"; 33 45 homepage = "https://pycairo.readthedocs.io/"; 34 - license = with licenses; [ lgpl2 mpl11 ]; 46 + license = with licenses; [ lgpl21Only mpl11 ]; 35 47 platforms = lib.platforms.linux ++ lib.platforms.darwin; 36 48 }; 37 49 }
+12 -7
pkgs/development/tools/build-managers/cmake/default.nix
··· 5 5 , ps 6 6 , isBootstrap ? false 7 7 , useSharedLibraries ? (!isBootstrap && !stdenv.isCygwin) 8 + , useOpenSSL ? !isBootstrap, openssl 8 9 , useNcurses ? false, ncurses 9 10 , useQt4 ? false, qt4 10 11 , withQt5 ? false, qtbase ··· 44 45 45 46 setupHook = ./setup-hook.sh; 46 47 47 - buildInputs = 48 - [ setupHook pkgconfig ] 48 + depsBuildBuild = [ buildPackages.stdenv.cc ]; 49 + 50 + nativeBuildInputs = [ setupHook pkgconfig ]; 51 + 52 + buildInputs = [] 49 53 ++ lib.optionals useSharedLibraries [ bzip2 curl expat libarchive xz zlib libuv rhash ] 54 + ++ lib.optional useOpenSSL openssl 50 55 ++ lib.optional useNcurses ncurses 51 56 ++ lib.optional useQt4 qt4 52 57 ++ lib.optional withQt5 qtbase; 53 58 54 - depsBuildBuild = [ buildPackages.stdenv.cc ]; 55 - 56 59 propagatedBuildInputs = lib.optional stdenv.isDarwin ps; 57 60 58 61 preConfigure = '' ··· 91 94 "-DCMAKE_AR=${lib.getBin stdenv.cc.bintools.bintools}/bin/${stdenv.cc.targetPrefix}ar" 92 95 "-DCMAKE_RANLIB=${lib.getBin stdenv.cc.bintools.bintools}/bin/${stdenv.cc.targetPrefix}ranlib" 93 96 "-DCMAKE_STRIP=${lib.getBin stdenv.cc.bintools.bintools}/bin/${stdenv.cc.targetPrefix}strip" 94 - ] 97 + 98 + "-DCMAKE_USE_OPENSSL=${if useOpenSSL then "ON" else "OFF"}" 95 99 # Avoid depending on frameworks. 96 - ++ lib.optional (!useNcurses) "-DBUILD_CursesDialog=OFF"; 100 + "-DBUILD_CursesDialog=${if useNcurses then "ON" else "OFF"}" 101 + ]; 97 102 98 103 # make install attempts to use the just-built cmake 99 104 preInstall = lib.optional (stdenv.hostPlatform != stdenv.buildPlatform) '' 100 - sed -i 's|bin/cmake|${buildPackages.cmake}/bin/cmake|g' Makefile 105 + sed -i 's|bin/cmake|${buildPackages.cmakeMinimal}/bin/cmake|g' Makefile 101 106 ''; 102 107 103 108 dontUseCmakeConfigure = true;
+40
pkgs/development/tools/build-managers/meson/boost-Do-not-add-system-paths-on-nix.patch
··· 1 + From 536108b10271f2f42d41c7d9ddb4ce2ea1851f4f Mon Sep 17 00:00:00 2001 2 + From: =?UTF-8?q?Niklas=20Hamb=C3=BCchen?= <mail@nh2.me> 3 + Date: Sat, 17 Oct 2020 19:27:08 +0200 4 + Subject: [PATCH] boost: Do not add system paths on nix 5 + 6 + --- 7 + mesonbuild/dependencies/boost.py | 17 +---------------- 8 + 1 file changed, 1 insertion(+), 16 deletions(-) 9 + 10 + diff --git a/mesonbuild/dependencies/boost.py b/mesonbuild/dependencies/boost.py 11 + index 907c0c275..ecaf11b18 100644 12 + --- a/mesonbuild/dependencies/boost.py 13 + +++ b/mesonbuild/dependencies/boost.py 14 + @@ -643,22 +643,7 @@ class BoostDependency(ExternalDependency): 15 + roots += [x for x in candidates if x.name.lower().startswith('boost') and x.is_dir()] 16 + else: 17 + tmp = [] # type: T.List[Path] 18 + - 19 + - # Homebrew 20 + - brew_boost = Path('/usr/local/Cellar/boost') 21 + - if brew_boost.is_dir(): 22 + - tmp += [x for x in brew_boost.iterdir()] 23 + - 24 + - # Add some default system paths 25 + - tmp += [Path('/opt/local')] 26 + - tmp += [Path('/usr/local/opt/boost')] 27 + - tmp += [Path('/usr/local')] 28 + - tmp += [Path('/usr')] 29 + - 30 + - # Cleanup paths 31 + - tmp = [x for x in tmp if x.is_dir()] 32 + - tmp = [x.resolve() for x in tmp] 33 + - roots += tmp 34 + + # Do not add any non-explicit paths on nix 35 + 36 + return roots 37 + 38 + -- 39 + 2.25.4 40 +
+5
pkgs/development/tools/build-managers/meson/default.nix
··· 52 52 # cut-in-half-by-\0 store path references. 53 53 # Let’s just clear the whole rpath and hope for the best. 54 54 ./clear-old-rpath.patch 55 + 56 + # Patch out default boost search paths to avoid impure builds on 57 + # unsandboxed non-NixOS builds, see: 58 + # https://github.com/NixOS/nixpkgs/issues/86131#issuecomment-711051774 59 + ./boost-Do-not-add-system-paths-on-nix.patch 55 60 ]; 56 61 57 62 setupHook = ./setup-hook.sh;
-835
pkgs/misc/ghostscript/0001-Bug-702364-Fix-missing-echogs-dependencies.patch
··· 1 - --- a/contrib/contrib.mak 2020-03-19 09:21:42.000000000 +0100 2 - +++ b/contrib/contrib.mak 2020-05-14 13:41:03.202258445 +0200 3 - @@ -22,6 +22,10 @@ 4 - CONTRIB_MAK=$(CONTRIBDIR)$(D)contrib.mak $(TOP_MAKEFILES) 5 - CONTRIBSRC=$(CONTRIBDIR)$(D) 6 - 7 - +# Almost all device drivers depend on the following: 8 - +CONTDEVH=$(gserrors_h) $(gx_h) $(gxdevice_h) 9 - +CONTDEV=$(AK) $(ECHOGS_XE) $(GDEVH) 10 - + 11 - ###### --------------------------- Catalog -------------------------- ###### 12 - 13 - # The following drivers are user-contributed, and maintained (if at all) by 14 - @@ -185,19 +189,19 @@ 15 - $(DEVCC) $(DEVO_)gdevbjca.$(OBJ) $(C_) $(CONTRIBSRC)gdevbjca.c 16 - 17 - $(DD)bjcmono.dev : $(bjc_) $(DD)page.dev \ 18 - - $(CONTRIB_MAK) $(MAKEDIRS) 19 - + $(CONTDEV) $(CONTRIB_MAK) $(MAKEDIRS) 20 - $(SETPDEV) $(DD)bjcmono $(bjc_) 21 - 22 - $(DD)bjcgray.dev : $(bjc_) $(DD)page.dev \ 23 - - $(CONTRIB_MAK) $(MAKEDIRS) 24 - + $(CONTDEV) $(CONTRIB_MAK) $(MAKEDIRS) 25 - $(SETPDEV) $(DD)bjcgray $(bjc_) 26 - 27 - $(DD)bjccmyk.dev : $(bjc_) $(DD)page.dev \ 28 - - $(CONTRIB_MAK) $(MAKEDIRS) 29 - + $(CONTDEV) $(CONTRIB_MAK) $(MAKEDIRS) 30 - $(SETPDEV) $(DD)bjccmyk $(bjc_) 31 - 32 - $(DD)bjccolor.dev : $(bjc_) $(DD)page.dev \ 33 - - $(CONTRIB_MAK) $(MAKEDIRS) 34 - + $(CONTDEV) $(CONTRIB_MAK) $(MAKEDIRS) 35 - $(SETPDEV) $(DD)bjccolor $(bjc_) 36 - 37 - 38 - @@ -208,25 +212,25 @@ 39 - # Author: Uli Wortmann (uliw@erdw.ethz.ch), Martin Gerbershagen (ger@ulm.temic.de) 40 - # Printer: HP 670 41 - $(DD)cdj670.dev : $(cdeskjet8_) $(DD)page.dev \ 42 - - $(CONTRIB_MAK) $(MAKEDIRS) 43 - + $(CONTDEV) $(CONTRIB_MAK) $(MAKEDIRS) 44 - $(SETPDEV2) $(DD)cdj670 $(cdeskjet8_) 45 - 46 - # Author: Uli Wortmann (uliw@erdw.ethz.ch) 47 - # Printer: HP 850 48 - $(DD)cdj850.dev : $(cdeskjet8_) $(DD)page.dev \ 49 - - $(CONTRIB_MAK) $(MAKEDIRS) 50 - + $(CONTDEV) $(CONTRIB_MAK) $(MAKEDIRS) 51 - $(SETPDEV2) $(DD)cdj850 $(cdeskjet8_) 52 - 53 - # Author: Uli Wortmann (uliw@erdw.ethz.ch), Martin Gerbershagen (ger@ulm.temic.de) 54 - # Printer: HP 890 55 - $(DD)cdj890.dev : $(cdeskjet8_) $(DD)page.dev \ 56 - - $(CONTRIB_MAK) $(MAKEDIRS) 57 - + $(CONTDEV) $(CONTRIB_MAK) $(MAKEDIRS) 58 - $(SETPDEV2) $(DD)cdj890 $(cdeskjet8_) 59 - 60 - # Author: Uli Wortmann (uliw@erdw.ethz.ch), Martin Gerbershagen (ger@ulm.temic.de) 61 - # Printer: HP 1600 62 - $(DD)cdj1600.dev : $(cdeskjet8_) $(DD)page.dev \ 63 - - $(CONTRIB_MAK) $(MAKEDIRS) 64 - + $(CONTDEV) $(CONTRIB_MAK) $(MAKEDIRS) 65 - $(SETPDEV2) $(DD)cdj1600 $(cdeskjet8_) 66 - 67 - $(DEVOBJ)gdevcd8.$(OBJ) : $(CONTRIBSRC)gdevcd8.c $(PDEVH) $(math__h)\ 68 - @@ -244,7 +248,8 @@ 69 - 70 - # Author: Matthew Gelhaus (mgelhaus@proaxis.com) 71 - # Printer: HP 880c 72 - -$(DD)cdj880.dev : $(cdeskjet8_) $(DD)page.dev 73 - +$(DD)cdj880.dev : $(cdeskjet8_) $(DD)page.dev $(CONTDEV) \ 74 - + $(CONTRIB_MAK) $(MAKEDIRS) 75 - $(SETPDEV2) $(DD)cdj880 $(cdeskjet8_) 76 - 77 - 78 - @@ -255,7 +260,7 @@ 79 - # Author: Rene Harsch (rene@harsch.net) 80 - # Printer: HP 970Cxi 81 - $(DD)cdj970.dev : $(cdeskjet9_) $(DD)page.dev \ 82 - - $(CONTRIB_MAK) $(MAKEDIRS) 83 - + $(CONTDEV) $(CONTRIB_MAK) $(MAKEDIRS) 84 - $(SETPDEV2) $(DD)cdj970 $(cdeskjet9_) 85 - 86 - $(DEVOBJ)gdevdj9.$(OBJ) : $(CONTRIBSRC)gdevdj9.c $(PDEVH) $(math__h) $(string__h)\ 87 - @@ -268,7 +273,7 @@ 88 - ### NOTE: Same as chp2200 (some PJL and CRD changes). 89 - 90 - $(DD)cdnj500.dev : $(cdeskjet8_) $(DD)page.dev \ 91 - - $(CONTRIB_MAK) $(MAKEDIRS) 92 - + $(CONTDEV) $(CONTRIB_MAK) $(MAKEDIRS) 93 - $(SETPDEV2) $(DD)cdnj500 $(cdeskjet8_) 94 - 95 - 96 - @@ -277,7 +282,7 @@ 97 - ### NOTE: Depends on the presence of the cdj850 section. 98 - 99 - $(DD)chp2200.dev : $(cdeskjet8_) $(DD)page.dev \ 100 - - $(CONTRIB_MAK) $(MAKEDIRS) 101 - + $(CONTDEV) $(CONTRIB_MAK) $(MAKEDIRS) 102 - $(SETPDEV2) $(DD)chp2200 $(cdeskjet8_) 103 - 104 - 105 - @@ -288,11 +293,11 @@ 106 - GDIMONO=$(DEVOBJ)gdevgdi.$(OBJ) $(HPPCL) 107 - 108 - $(DD)gdi.dev : $(GDIMONO) $(DD)page.dev \ 109 - - $(CONTRIB_MAK) $(MAKEDIRS) 110 - + $(CONTDEV) $(CONTRIB_MAK) $(MAKEDIRS) 111 - $(SETPDEV) $(DD)gdi $(GDIMONO) 112 - 113 - $(DD)samsunggdi.dev : $(GDIMONO) $(DD)page.dev \ 114 - - $(CONTRIB_MAK) $(MAKEDIRS) 115 - + $(CONTDEV) $(CONTRIB_MAK) $(MAKEDIRS) 116 - $(SETPDEV) $(DD)samsunggdi $(GDIMONO) 117 - 118 - $(DEVOBJ)gdevgdi.$(OBJ) : $(CONTRIBSRC)gdevgdi.c $(PDEVH) $(gdevpcl_h) \ 119 - @@ -306,17 +311,17 @@ 120 - 121 - hl1250_=$(DEVOBJ)gdevhl12.$(OBJ) $(HPDLJM) 122 - $(DD)hl1250.dev : $(hl1250_) $(DD)page.dev \ 123 - - $(CONTRIB_MAK) $(MAKEDIRS) 124 - + $(CONTDEV) $(CONTRIB_MAK) $(MAKEDIRS) 125 - $(SETPDEV) $(DD)hl1250 $(hl1250_) 126 - 127 - $(DD)hl1240.dev : $(hl1250_) $(DD)page.dev \ 128 - - $(CONTRIB_MAK) $(MAKEDIRS) 129 - + $(CONTDEV) $(CONTRIB_MAK) $(MAKEDIRS) 130 - $(SETPDEV) $(DD)hl1240 $(hl1250_) 131 - 132 - # Author: Marek Michalkiewicz <marekm@linux.org.pl> 133 - # Printer: Brother HL-1250 (may work with some other models too) 134 - $(DEVOBJ)gdevhl12.$(OBJ) : $(CONTRIBSRC)gdevhl12.c $(PDEVH) $(gdevdljm_h) \ 135 - - $(CONTRIB_MAK) $(MAKEDIRS) 136 - + $(CONTDEV) $(CONTRIB_MAK) $(MAKEDIRS) 137 - $(DEVCC) $(DEVO_)gdevhl12.$(OBJ) $(C_) $(CONTRIBSRC)gdevhl12.c 138 - 139 - 140 - @@ -327,37 +332,37 @@ 141 - # Author: Ulrich Mueller (ulm@vsnhd1.cern.ch) 142 - # Printer: DEC LN03 143 - $(DD)ln03.dev : $(ln03_) $(DD)page.dev \ 144 - - $(CONTRIB_MAK) $(MAKEDIRS) 145 - + $(CONTDEV) $(CONTRIB_MAK) $(MAKEDIRS) 146 - $(SETPDEV) $(DD)ln03 $(ln03_) 147 - 148 - # Author: Nick Brown (nick.brown@coe.int) 149 - # Printer: DEClaser 2100 150 - $(DD)dl2100.dev : $(ln03_) $(DD)page.dev \ 151 - - $(CONTRIB_MAK) $(MAKEDIRS) 152 - + $(CONTDEV) $(CONTRIB_MAK) $(MAKEDIRS) 153 - $(SETPDEV) $(DD)dl2100 $(ln03_) 154 - 155 - # Author: Ian MacPhedran (macphed@dvinci.USask.CA) 156 - # Printer: DEC LA50 157 - $(DD)la50.dev : $(ln03_) $(DD)page.dev \ 158 - - $(CONTRIB_MAK) $(MAKEDIRS) 159 - + $(CONTDEV) $(CONTRIB_MAK) $(MAKEDIRS) 160 - $(SETPDEV) $(DD)la50 $(ln03_) 161 - 162 - # Author: Bruce Lowekamp (lowekamp@csugrad.cs.vt.edu) 163 - # Printer: DEC LA70 164 - $(DD)la70.dev : $(ln03_) $(DD)page.dev \ 165 - - $(CONTRIB_MAK) $(MAKEDIRS) 166 - + $(CONTDEV) $(CONTRIB_MAK) $(MAKEDIRS) 167 - $(SETPDEV) $(DD)la70 $(ln03_) 168 - 169 - # Author: Ian MacPhedran (macphed@dvinci.USask.CA) 170 - # Printer: DEC LA75 171 - $(DD)la75.dev : $(ln03_) $(DD)page.dev \ 172 - - $(CONTRIB_MAK) $(MAKEDIRS) 173 - + $(CONTDEV) $(CONTRIB_MAK) $(MAKEDIRS) 174 - $(SETPDEV) $(DD)la75 $(ln03_) 175 - 176 - # Author: Andre' Beck (Andre_Beck@IRS.Inf.TU-Dresden.de) 177 - # Printer: DEC LA75plus 178 - $(DD)la75plus.dev : $(ln03_) $(DD)page.dev \ 179 - - $(CONTRIB_MAK) $(MAKEDIRS) 180 - + $(CONTDEV) $(CONTRIB_MAK) $(MAKEDIRS) 181 - $(SETPDEV) $(DD)la75plus $(ln03_) 182 - 183 - $(DEVOBJ)gdevln03.$(OBJ) : $(CONTRIBSRC)gdevln03.c $(PDEVH) \ 184 - @@ -380,233 +385,233 @@ 185 - $(DEVCC) -DA4 $(DEVO_)gdevescv.$(OBJ) $(C_) $(escv_opts) $(ESCV_SRC)gdevescv.c 186 - 187 - $(DD)alc1900.dev : $(escv_) $(DD)page.dev \ 188 - - $(CONTRIB_MAK) $(MAKEDIRS) 189 - + $(CONTDEV) $(CONTRIB_MAK) $(MAKEDIRS) 190 - $(SETPDEV) $(DD)alc1900 $(escv_) 191 - 192 - $(DD)alc2000.dev : $(escv_) $(DD)page.dev \ 193 - - $(CONTRIB_MAK) $(MAKEDIRS) 194 - + $(CONTDEV) $(CONTRIB_MAK) $(MAKEDIRS) 195 - $(SETPDEV) $(DD)alc2000 $(escv_) 196 - 197 - $(DD)alc4000.dev : $(escv_) $(DD)page.dev \ 198 - - $(CONTRIB_MAK) $(MAKEDIRS) 199 - + $(CONTDEV) $(CONTRIB_MAK) $(MAKEDIRS) 200 - $(SETPDEV) $(DD)alc4000 $(escv_) 201 - 202 - $(DD)alc4100.dev : $(escv_) $(DD)page.dev \ 203 - - $(CONTRIB_MAK) $(MAKEDIRS) 204 - + $(CONTDEV) $(CONTRIB_MAK) $(MAKEDIRS) 205 - $(SETPDEV) $(DD)alc4100 $(escv_) 206 - 207 - $(DD)alc8500.dev : $(escv_) $(DD)page.dev \ 208 - - $(CONTRIB_MAK) $(MAKEDIRS) 209 - + $(CONTDEV) $(CONTRIB_MAK) $(MAKEDIRS) 210 - $(SETPDEV) $(DD)alc8500 $(escv_) 211 - 212 - $(DD)alc8600.dev : $(escv_) $(DD)page.dev \ 213 - - $(CONTRIB_MAK) $(MAKEDIRS) 214 - + $(CONTDEV) $(CONTRIB_MAK) $(MAKEDIRS) 215 - $(SETPDEV) $(DD)alc8600 $(escv_) 216 - 217 - $(DD)alc9100.dev : $(escv_) $(DD)page.dev \ 218 - - $(CONTRIB_MAK) $(MAKEDIRS) 219 - + $(CONTDEV) $(CONTRIB_MAK) $(MAKEDIRS) 220 - $(SETPDEV) $(DD)alc9100 $(escv_) 221 - 222 - $(DD)lp3000c.dev : $(escv_) $(DD)page.dev \ 223 - - $(CONTRIB_MAK) $(MAKEDIRS) 224 - + $(CONTDEV) $(CONTRIB_MAK) $(MAKEDIRS) 225 - $(SETPDEV) $(DD)lp3000c $(escv_) 226 - 227 - $(DD)lp8000c.dev : $(escv_) $(DD)page.dev \ 228 - - $(CONTRIB_MAK) $(MAKEDIRS) 229 - + $(CONTDEV) $(CONTRIB_MAK) $(MAKEDIRS) 230 - $(SETPDEV) $(DD)lp8000c $(escv_) 231 - 232 - $(DD)lp8200c.dev : $(escv_) $(DD)page.dev \ 233 - - $(CONTRIB_MAK) $(MAKEDIRS) 234 - + $(CONTDEV) $(CONTRIB_MAK) $(MAKEDIRS) 235 - $(SETPDEV) $(DD)lp8200c $(escv_) 236 - 237 - $(DD)lp8300c.dev : $(escv_) $(DD)page.dev \ 238 - - $(CONTRIB_MAK) $(MAKEDIRS) 239 - + $(CONTDEV) $(CONTRIB_MAK) $(MAKEDIRS) 240 - $(SETPDEV) $(DD)lp8300c $(escv_) 241 - 242 - $(DD)lp8500c.dev : $(escv_) $(DD)page.dev \ 243 - - $(CONTRIB_MAK) $(MAKEDIRS) 244 - + $(CONTDEV) $(CONTRIB_MAK) $(MAKEDIRS) 245 - $(SETPDEV) $(DD)lp8500c $(escv_) 246 - 247 - $(DD)lp8800c.dev : $(escv_) $(DD)page.dev \ 248 - - $(CONTRIB_MAK) $(MAKEDIRS) 249 - + $(CONTDEV) $(CONTRIB_MAK) $(MAKEDIRS) 250 - $(SETPDEV) $(DD)lp8800c $(escv_) 251 - 252 - $(DD)lp9000c.dev : $(escv_) $(DD)page.dev \ 253 - - $(CONTRIB_MAK) $(MAKEDIRS) 254 - + $(CONTDEV) $(CONTRIB_MAK) $(MAKEDIRS) 255 - $(SETPDEV) $(DD)lp9000c $(escv_) 256 - 257 - $(DD)lp9200c.dev : $(escv_) $(DD)page.dev \ 258 - - $(CONTRIB_MAK) $(MAKEDIRS) 259 - + $(CONTDEV) $(CONTRIB_MAK) $(MAKEDIRS) 260 - $(SETPDEV) $(DD)lp9200c $(escv_) 261 - 262 - $(DD)lp9500c.dev : $(escv_) $(DD)page.dev \ 263 - - $(CONTRIB_MAK) $(MAKEDIRS) 264 - + $(CONTDEV) $(CONTRIB_MAK) $(MAKEDIRS) 265 - $(SETPDEV) $(DD)lp9500c $(escv_) 266 - 267 - $(DD)lp9800c.dev : $(escv_) $(DD)page.dev \ 268 - - $(CONTRIB_MAK) $(MAKEDIRS) 269 - + $(CONTDEV) $(CONTRIB_MAK) $(MAKEDIRS) 270 - $(SETPDEV) $(DD)lp9800c $(escv_) 271 - 272 - $(DD)lps6500.dev : $(escv_) $(DD)page.dev \ 273 - - $(CONTRIB_MAK) $(MAKEDIRS) 274 - + $(CONTDEV) $(CONTRIB_MAK) $(MAKEDIRS) 275 - $(SETPDEV) $(DD)lps6500 $(escv_) 276 - 277 - $(DD)epl2050.dev : $(escv_) $(DD)page.dev \ 278 - - $(CONTRIB_MAK) $(MAKEDIRS) 279 - + $(CONTDEV) $(CONTRIB_MAK) $(MAKEDIRS) 280 - $(SETPDEV) $(DD)epl2050 $(escv_) 281 - 282 - $(DD)epl2050p.dev : $(escv_) $(DD)page.dev \ 283 - - $(CONTRIB_MAK) $(MAKEDIRS) 284 - + $(CONTDEV) $(CONTRIB_MAK) $(MAKEDIRS) 285 - $(SETPDEV) $(DD)epl2050p $(escv_) 286 - 287 - $(DD)epl2120.dev : $(escv_) $(DD)page.dev \ 288 - - $(CONTRIB_MAK) $(MAKEDIRS) 289 - + $(CONTDEV) $(CONTRIB_MAK) $(MAKEDIRS) 290 - $(SETPDEV) $(DD)epl2120 $(escv_) 291 - 292 - $(DD)epl2500.dev : $(escv_) $(DD)page.dev \ 293 - - $(CONTRIB_MAK) $(MAKEDIRS) 294 - + $(CONTDEV) $(CONTRIB_MAK) $(MAKEDIRS) 295 - $(SETPDEV) $(DD)epl2500 $(escv_) 296 - 297 - $(DD)epl2750.dev : $(escv_) $(DD)page.dev \ 298 - - $(CONTRIB_MAK) $(MAKEDIRS) 299 - + $(CONTDEV) $(CONTRIB_MAK) $(MAKEDIRS) 300 - $(SETPDEV) $(DD)epl2750 $(escv_) 301 - 302 - $(DD)epl5800.dev : $(escv_) $(DD)page.dev \ 303 - - $(CONTRIB_MAK) $(MAKEDIRS) 304 - + $(CONTDEV) $(CONTRIB_MAK) $(MAKEDIRS) 305 - $(SETPDEV) $(DD)epl5800 $(escv_) 306 - 307 - $(DD)epl5900.dev : $(escv_) $(DD)page.dev \ 308 - - $(CONTRIB_MAK) $(MAKEDIRS) 309 - + $(CONTDEV) $(CONTRIB_MAK) $(MAKEDIRS) 310 - $(SETPDEV) $(DD)epl5900 $(escv_) 311 - 312 - $(DD)epl6100.dev : $(escv_) $(DD)page.dev \ 313 - - $(CONTRIB_MAK) $(MAKEDIRS) 314 - + $(CONTDEV) $(CONTRIB_MAK) $(MAKEDIRS) 315 - $(SETPDEV) $(DD)epl6100 $(escv_) 316 - 317 - $(DD)epl6200.dev : $(escv_) $(DD)page.dev \ 318 - - $(CONTRIB_MAK) $(MAKEDIRS) 319 - + $(CONTDEV) $(CONTRIB_MAK) $(MAKEDIRS) 320 - $(SETPDEV) $(DD)epl6200 $(escv_) 321 - 322 - $(DD)lp1800.dev : $(escv_) $(DD)page.dev \ 323 - - $(CONTRIB_MAK) $(MAKEDIRS) 324 - + $(CONTDEV) $(CONTRIB_MAK) $(MAKEDIRS) 325 - $(SETPDEV) $(DD)lp1800 $(escv_) 326 - 327 - $(DD)lp1900.dev : $(escv_) $(DD)page.dev \ 328 - - $(CONTRIB_MAK) $(MAKEDIRS) 329 - + $(CONTDEV) $(CONTRIB_MAK) $(MAKEDIRS) 330 - $(SETPDEV) $(DD)lp1900 $(escv_) 331 - 332 - $(DD)lp2200.dev : $(escv_) $(DD)page.dev \ 333 - - $(CONTRIB_MAK) $(MAKEDIRS) 334 - + $(CONTDEV) $(CONTRIB_MAK) $(MAKEDIRS) 335 - $(SETPDEV) $(DD)lp2200 $(escv_) 336 - 337 - $(DD)lp2400.dev : $(escv_) $(DD)page.dev \ 338 - - $(CONTRIB_MAK) $(MAKEDIRS) 339 - + $(CONTDEV) $(CONTRIB_MAK) $(MAKEDIRS) 340 - $(SETPDEV) $(DD)lp2400 $(escv_) 341 - 342 - $(DD)lp2500.dev : $(escv_) $(DD)page.dev \ 343 - - $(CONTRIB_MAK) $(MAKEDIRS) 344 - + $(CONTDEV) $(CONTRIB_MAK) $(MAKEDIRS) 345 - $(SETPDEV) $(DD)lp2500 $(escv_) 346 - 347 - $(DD)lp7500.dev : $(escv_) $(DD)page.dev \ 348 - - $(CONTRIB_MAK) $(MAKEDIRS) 349 - + $(CONTDEV) $(CONTRIB_MAK) $(MAKEDIRS) 350 - $(SETPDEV) $(DD)lp7500 $(escv_) 351 - 352 - $(DD)lp7700.dev : $(escv_) $(DD)page.dev \ 353 - - $(CONTRIB_MAK) $(MAKEDIRS) 354 - + $(CONTDEV) $(CONTRIB_MAK) $(MAKEDIRS) 355 - $(SETPDEV) $(DD)lp7700 $(escv_) 356 - 357 - $(DD)lp7900.dev : $(escv_) $(DD)page.dev \ 358 - - $(CONTRIB_MAK) $(MAKEDIRS) 359 - + $(CONTDEV) $(CONTRIB_MAK) $(MAKEDIRS) 360 - $(SETPDEV) $(DD)lp7900 $(escv_) 361 - 362 - $(DD)lp8100.dev : $(escv_) $(DD)page.dev \ 363 - - $(CONTRIB_MAK) $(MAKEDIRS) 364 - + $(CONTDEV) $(CONTRIB_MAK) $(MAKEDIRS) 365 - $(SETPDEV) $(DD)lp8100 $(escv_) 366 - 367 - $(DD)lp8300f.dev : $(escv_) $(DD)page.dev \ 368 - - $(CONTRIB_MAK) $(MAKEDIRS) 369 - + $(CONTDEV) $(CONTRIB_MAK) $(MAKEDIRS) 370 - $(SETPDEV) $(DD)lp8300f $(escv_) 371 - 372 - $(DD)lp8400f.dev : $(escv_) $(DD)page.dev \ 373 - - $(CONTRIB_MAK) $(MAKEDIRS) 374 - + $(CONTDEV) $(CONTRIB_MAK) $(MAKEDIRS) 375 - $(SETPDEV) $(DD)lp8400f $(escv_) 376 - 377 - $(DD)lp8600.dev : $(escv_) $(DD)page.dev \ 378 - - $(CONTRIB_MAK) $(MAKEDIRS) 379 - + $(CONTDEV) $(CONTRIB_MAK) $(MAKEDIRS) 380 - $(SETPDEV) $(DD)lp8600 $(escv_) 381 - 382 - $(DD)lp8600f.dev : $(escv_) $(DD)page.dev \ 383 - - $(CONTRIB_MAK) $(MAKEDIRS) 384 - + $(CONTDEV) $(CONTRIB_MAK) $(MAKEDIRS) 385 - $(SETPDEV) $(DD)lp8600f $(escv_) 386 - 387 - $(DD)lp8700.dev : $(escv_) $(DD)page.dev \ 388 - - $(CONTRIB_MAK) $(MAKEDIRS) 389 - + $(CONTDEV) $(CONTRIB_MAK) $(MAKEDIRS) 390 - $(SETPDEV) $(DD)lp8700 $(escv_) 391 - 392 - $(DD)lp8900.dev : $(escv_) $(DD)page.dev \ 393 - - $(CONTRIB_MAK) $(MAKEDIRS) 394 - + $(CONTDEV) $(CONTRIB_MAK) $(MAKEDIRS) 395 - $(SETPDEV) $(DD)lp8900 $(escv_) 396 - 397 - $(DD)lp9000b.dev : $(escv_) $(DD)page.dev \ 398 - - $(CONTRIB_MAK) $(MAKEDIRS) 399 - + $(CONTDEV) $(CONTRIB_MAK) $(MAKEDIRS) 400 - $(SETPDEV) $(DD)lp9000b $(escv_) 401 - 402 - $(DD)lp9100.dev : $(escv_) $(DD)page.dev \ 403 - - $(CONTRIB_MAK) $(MAKEDIRS) 404 - + $(CONTDEV) $(CONTRIB_MAK) $(MAKEDIRS) 405 - $(SETPDEV) $(DD)lp9100 $(escv_) 406 - 407 - $(DD)lp9200b.dev : $(escv_) $(DD)page.dev \ 408 - - $(CONTRIB_MAK) $(MAKEDIRS) 409 - + $(CONTDEV) $(CONTRIB_MAK) $(MAKEDIRS) 410 - $(SETPDEV) $(DD)lp9200b $(escv_) 411 - 412 - $(DD)lp9300.dev : $(escv_) $(DD)page.dev \ 413 - - $(CONTRIB_MAK) $(MAKEDIRS) 414 - + $(CONTDEV) $(CONTRIB_MAK) $(MAKEDIRS) 415 - $(SETPDEV) $(DD)lp9300 $(escv_) 416 - 417 - $(DD)lp9400.dev : $(escv_) $(DD)page.dev \ 418 - - $(CONTRIB_MAK) $(MAKEDIRS) 419 - + $(CONTDEV) $(CONTRIB_MAK) $(MAKEDIRS) 420 - $(SETPDEV) $(DD)lp9400 $(escv_) 421 - 422 - $(DD)lp9600.dev : $(escv_) $(DD)page.dev \ 423 - - $(CONTRIB_MAK) $(MAKEDIRS) 424 - + $(CONTDEV) $(CONTRIB_MAK) $(MAKEDIRS) 425 - $(SETPDEV) $(DD)lp9600 $(escv_) 426 - 427 - $(DD)lp9600s.dev : $(escv_) $(DD)page.dev \ 428 - - $(CONTRIB_MAK) $(MAKEDIRS) 429 - + $(CONTDEV) $(CONTRIB_MAK) $(MAKEDIRS) 430 - $(SETPDEV) $(DD)lp9600s $(escv_) 431 - 432 - $(DD)lps4500.dev : $(escv_) $(DD)page.dev \ 433 - - $(CONTRIB_MAK) $(MAKEDIRS) 434 - + $(CONTDEV) $(CONTRIB_MAK) $(MAKEDIRS) 435 - $(SETPDEV) $(DD)lps4500 $(escv_) 436 - 437 - $(DD)eplcolor.dev: $(escv_) $(DD)page.dev \ 438 - - $(CONTRIB_MAK) $(MAKEDIRS) 439 - + $(CONTDEV) $(CONTRIB_MAK) $(MAKEDIRS) 440 - $(SETPDEV) $(DD)eplcolor $(escv_) 441 - 442 - $(DD)eplmono.dev: $(escv_) $(DD)page.dev \ 443 - - $(CONTRIB_MAK) $(MAKEDIRS) 444 - + $(CONTDEV) $(CONTRIB_MAK) $(MAKEDIRS) 445 - $(SETPDEV) $(DD)eplmono $(escv_) 446 - 447 - # ------ The Lexmark 5700 and 7000 devices ------ # 448 - 449 - lex7000_=$(DEVOBJ)gdevlx7.$(OBJ) 450 - $(DD)lex7000.dev : $(lex7000_) $(DD)page.dev \ 451 - - $(CONTRIB_MAK) $(MAKEDIRS) 452 - + $(CONTDEV) $(CONTDEV) $(CONTRIB_MAK) $(MAKEDIRS) 453 - $(SETPDEV) $(DD)lex7000 $(lex7000_) 454 - 455 - lex5700_=$(DEVOBJ)gdevlx7.$(OBJ) 456 - $(DD)lex5700.dev : $(lex5700_) $(DD)page.dev \ 457 - - $(CONTRIB_MAK) $(MAKEDIRS) 458 - + $(CONTDEV) $(CONTRIB_MAK) $(MAKEDIRS) 459 - $(SETPDEV) $(DD)lex5700 $(lex5700_) 460 - 461 - lex3200_=$(DEVOBJ)gdevlx7.$(OBJ) 462 - $(DD)lex3200.dev : $(lex3200_) $(DD)page.dev \ 463 - - $(CONTRIB_MAK) $(MAKEDIRS) 464 - + $(CONTDEV) $(CONTRIB_MAK) $(MAKEDIRS) 465 - $(SETPDEV) $(DD)lex3200 $(lex3200_) 466 - 467 - lex2050_=$(DEVOBJ)gdevlx7.$(OBJ) 468 - $(DD)lex2050.dev : $(lex2050_) $(DD)page.dev \ 469 - - $(CONTRIB_MAK) $(MAKEDIRS) 470 - + $(CONTDEV) $(CONTRIB_MAK) $(MAKEDIRS) 471 - $(SETPDEV) $(DD)lex2050 $(lex2050_) 472 - 473 - $(DEVOBJ)gdevlx7.$(OBJ) : $(CONTRIBSRC)gdevlx7.c $(PDEVH) \ 474 - @@ -623,7 +628,7 @@ 475 - $(DEVCC) $(DEVO_)gdevlx32.$(OBJ) $(C_) $(CONTRIBSRC)gdevlx32.c 476 - 477 - $(DD)lxm3200.dev : $(lxm3200_) $(DD)page.dev \ 478 - - $(CONTRIB_MAK) $(MAKEDIRS) 479 - + $(CONTDEV) $(CONTRIB_MAK) $(MAKEDIRS) 480 - $(SETPDEV) $(DD)lxm3200 $(lxm3200_) 481 - 482 - 483 - @@ -649,13 +654,13 @@ 484 - $(DEVCC) $(DEVO_)gdevlips.$(OBJ) $(LIPS_OPT) $(C_) $(LIPS_SRC)gdevlips.c 485 - 486 - $(DD)lips4.dev : $(lipsr_) $(DD)page.dev \ 487 - - $(CONTRIB_MAK) $(MAKEDIRS) 488 - + $(CONTDEV) $(CONTRIB_MAK) $(MAKEDIRS) 489 - $(SETPDEV) $(DD)lips4 $(lipsr_) 490 - 491 - lipsv_=$(DEVOBJ)gdevl4v.$(OBJ) $(DEVOBJ)gdevlips.$(OBJ) 492 - 493 - $(DD)lips4v.dev : $(ECHOGS_XE) $(lipsv_) $(DD)vector.dev \ 494 - - $(CONTRIB_MAK) $(MAKEDIRS) 495 - + $(CONTDEV) $(CONTRIB_MAK) $(MAKEDIRS) 496 - $(SETDEV) $(DD)lips4v $(lipsv_) 497 - $(ADDMOD) $(DD)lips4v -include $(GLD)vector 498 - 499 - @@ -668,11 +673,11 @@ 500 - ### --------------- Some extra devices: lips2p, bjc880j ---------------- ### 501 - 502 - $(DD)lips2p.dev : $(lipsr_) $(DD)page.dev \ 503 - - $(CONTRIB_MAK) $(MAKEDIRS) 504 - + $(CONTDEV) $(CONTRIB_MAK) $(MAKEDIRS) 505 - $(SETPDEV) $(DD)lips2p $(lipsr_) 506 - 507 - $(DD)bjc880j.dev : $(lipsr_) $(DD)page.dev \ 508 - - $(CONTRIB_MAK) $(MAKEDIRS) 509 - + $(CONTDEV) $(CONTRIB_MAK) $(MAKEDIRS) 510 - $(SETPDEV) $(DD)bjc880j $(lipsr_) 511 - 512 - 513 - @@ -681,15 +686,15 @@ 514 - md2k_=$(DEVOBJ)gdevmd2k.$(OBJ) 515 - 516 - $(DD)md2k.dev : $(md2k_) $(DD)page.dev \ 517 - - $(CONTRIB_MAK) $(MAKEDIRS) 518 - + $(CONTDEV) $(CONTRIB_MAK) $(MAKEDIRS) 519 - $(SETPDEV) $(DD)md2k $(md2k_) 520 - 521 - $(DD)md5k.dev : $(md2k_) $(DD)page.dev \ 522 - - $(CONTRIB_MAK) $(MAKEDIRS) 523 - + $(CONTDEV) $(CONTRIB_MAK) $(MAKEDIRS) 524 - $(SETPDEV) $(DD)md5k $(md2k_) 525 - 526 - $(DEVOBJ)gdevmd2k.$(OBJ) : $(CONTRIBSRC)gdevmd2k.c $(PDEVH) $(gsparam_h) \ 527 - - $(CONTRIB_MAK) $(MAKEDIRS) 528 - + $(CONTDEV) $(CONTRIB_MAK) $(MAKEDIRS) 529 - $(DEVCC) $(DEVO_)gdevmd2k.$(OBJ) $(C_) $(CONTRIBSRC)gdevmd2k.c 530 - 531 - 532 - @@ -697,7 +702,7 @@ 533 - 534 - oki4w_=$(DEVOBJ)gdevop4w.$(OBJ) 535 - $(DD)oki4w.dev : $(oki4w_) $(DD)page.dev \ 536 - - $(CONTRIB_MAK) $(MAKEDIRS) 537 - + $(CONTDEV) $(CONTRIB_MAK) $(MAKEDIRS) 538 - $(SETPDEV) $(DD)oki4w $(oki4w_) 539 - 540 - # Author: Ivan Schreter (ivan@shadow.sk) 541 - @@ -720,11 +725,11 @@ 542 - $(DEVCC) $(DEVO_)gdevopvp.$(OBJ) $(OPVP_OPT) $(C_) $(OPVP_SRC)gdevopvp.c 543 - 544 - $(DD)opvp.dev : $(opvp_) $(DD)page.dev \ 545 - - $(CONTRIB_MAK) $(MAKEDIRS) 546 - + $(CONTDEV) $(CONTRIB_MAK) $(MAKEDIRS) 547 - $(SETPDEV) $(DD)opvp $(opvp_) 548 - 549 - $(DD)oprp.dev : $(opvp_) $(DD)page.dev \ 550 - - $(CONTRIB_MAK) $(MAKEDIRS) 551 - + $(CONTDEV) $(CONTRIB_MAK) $(MAKEDIRS) 552 - $(SETPDEV) $(DD)oprp $(opvp_) 553 - 554 - 555 - @@ -901,78 +906,78 @@ 556 - 557 - # The generic pcl3 device with selectable subdevices 558 - $(DD)pcl3.dev : $(pcl3_) $(DD)page.dev \ 559 - - $(CONTRIB_MAK) $(MAKEDIRS) 560 - + $(CONTDEV) $(CONTRIB_MAK) $(MAKEDIRS) 561 - $(SETPDEV) $(DD)pcl3 $(pcl3_) 562 - 563 - # Fixed devices for specific printers 564 - $(DD)hpdjplus.dev : $(pcl3_) $(DD)page.dev \ 565 - - $(CONTRIB_MAK) $(MAKEDIRS) 566 - + $(CONTDEV) $(CONTRIB_MAK) $(MAKEDIRS) 567 - $(SETPDEV) $(DD)hpdjplus $(pcl3_) 568 - $(DD)hpdjportable.dev : $(pcl3_) $(DD)page.dev \ 569 - - $(CONTRIB_MAK) $(MAKEDIRS) 570 - + $(CONTDEV) $(CONTRIB_MAK) $(MAKEDIRS) 571 - $(SETPDEV) $(DD)hpdjportable $(pcl3_) 572 - $(DD)hpdj310.dev : $(pcl3_) $(DD)page.dev \ 573 - - $(CONTRIB_MAK) $(MAKEDIRS) 574 - + $(CONTDEV) $(CONTRIB_MAK) $(MAKEDIRS) 575 - $(SETPDEV) $(DD)hpdj310 $(pcl3_) 576 - $(DD)hpdj320.dev : $(pcl3_) $(DD)page.dev \ 577 - - $(CONTRIB_MAK) $(MAKEDIRS) 578 - + $(CONTDEV) $(CONTRIB_MAK) $(MAKEDIRS) 579 - $(SETPDEV) $(DD)hpdj320 $(pcl3_) 580 - $(DD)hpdj340.dev : $(pcl3_) $(DD)page.dev \ 581 - - $(CONTRIB_MAK) $(MAKEDIRS) 582 - + $(CONTDEV) $(CONTRIB_MAK) $(MAKEDIRS) 583 - $(SETPDEV) $(DD)hpdj340 $(pcl3_) 584 - $(DD)hpdj400.dev : $(pcl3_) $(DD)page.dev \ 585 - - $(CONTRIB_MAK) $(MAKEDIRS) 586 - + $(CONTDEV) $(CONTRIB_MAK) $(MAKEDIRS) 587 - $(SETPDEV) $(DD)hpdj400 $(pcl3_) 588 - $(DD)hpdj500.dev : $(pcl3_) $(DD)page.dev \ 589 - - $(CONTRIB_MAK) $(MAKEDIRS) 590 - + $(CONTDEV) $(CONTRIB_MAK) $(MAKEDIRS) 591 - $(SETPDEV) $(DD)hpdj500 $(pcl3_) 592 - $(DD)hpdj500c.dev : $(pcl3_) $(DD)page.dev \ 593 - - $(CONTRIB_MAK) $(MAKEDIRS) 594 - + $(CONTDEV) $(CONTRIB_MAK) $(MAKEDIRS) 595 - $(SETPDEV) $(DD)hpdj500c $(pcl3_) 596 - $(DD)hpdj510.dev : $(pcl3_) $(DD)page.dev \ 597 - - $(CONTRIB_MAK) $(MAKEDIRS) 598 - + $(CONTDEV) $(CONTRIB_MAK) $(MAKEDIRS) 599 - $(SETPDEV) $(DD)hpdj510 $(pcl3_) 600 - $(DD)hpdj520.dev : $(pcl3_) $(DD)page.dev \ 601 - - $(CONTRIB_MAK) $(MAKEDIRS) 602 - + $(CONTDEV) $(CONTRIB_MAK) $(MAKEDIRS) 603 - $(SETPDEV) $(DD)hpdj520 $(pcl3_) 604 - $(DD)hpdj540.dev : $(pcl3_) $(DD)page.dev \ 605 - - $(CONTRIB_MAK) $(MAKEDIRS) 606 - + $(CONTDEV) $(CONTRIB_MAK) $(MAKEDIRS) 607 - $(SETPDEV) $(DD)hpdj540 $(pcl3_) 608 - $(DD)hpdj550c.dev : $(pcl3_) $(DD)page.dev \ 609 - - $(CONTRIB_MAK) $(MAKEDIRS) 610 - + $(CONTDEV) $(CONTRIB_MAK) $(MAKEDIRS) 611 - $(SETPDEV) $(DD)hpdj550c $(pcl3_) 612 - $(DD)hpdj560c.dev : $(pcl3_) $(DD)page.dev \ 613 - - $(CONTRIB_MAK) $(MAKEDIRS) 614 - + $(CONTDEV) $(CONTRIB_MAK) $(MAKEDIRS) 615 - $(SETPDEV) $(DD)hpdj560c $(pcl3_) 616 - $(DD)hpdj600.dev : $(pcl3_) $(DD)page.dev \ 617 - - $(CONTRIB_MAK) $(MAKEDIRS) 618 - + $(CONTDEV) $(CONTRIB_MAK) $(MAKEDIRS) 619 - $(SETPDEV) $(DD)hpdj600 $(pcl3_) 620 - $(DD)hpdj660c.dev : $(pcl3_) $(DD)page.dev \ 621 - - $(CONTRIB_MAK) $(MAKEDIRS) 622 - + $(CONTDEV) $(CONTRIB_MAK) $(MAKEDIRS) 623 - $(SETPDEV) $(DD)hpdj660c $(pcl3_) 624 - $(DD)hpdj670c.dev : $(pcl3_) $(DD)page.dev \ 625 - - $(CONTRIB_MAK) $(MAKEDIRS) 626 - + $(CONTDEV) $(CONTRIB_MAK) $(MAKEDIRS) 627 - $(SETPDEV) $(DD)hpdj670c $(pcl3_) 628 - $(DD)hpdj680c.dev : $(pcl3_) $(DD)page.dev \ 629 - - $(CONTRIB_MAK) $(MAKEDIRS) 630 - + $(CONTDEV) $(CONTRIB_MAK) $(MAKEDIRS) 631 - $(SETPDEV) $(DD)hpdj680c $(pcl3_) 632 - $(DD)hpdj690c.dev : $(pcl3_) $(DD)page.dev \ 633 - - $(CONTRIB_MAK) $(MAKEDIRS) 634 - + $(CONTDEV) $(CONTRIB_MAK) $(MAKEDIRS) 635 - $(SETPDEV) $(DD)hpdj690c $(pcl3_) 636 - $(DD)hpdj850c.dev : $(pcl3_) $(DD)page.dev \ 637 - - $(CONTRIB_MAK) $(MAKEDIRS) 638 - + $(CONTDEV) $(CONTRIB_MAK) $(MAKEDIRS) 639 - $(SETPDEV) $(DD)hpdj850c $(pcl3_) 640 - $(DD)hpdj855c.dev : $(pcl3_) $(DD)page.dev \ 641 - - $(CONTRIB_MAK) $(MAKEDIRS) 642 - + $(CONTDEV) $(CONTRIB_MAK) $(MAKEDIRS) 643 - $(SETPDEV) $(DD)hpdj855c $(pcl3_) 644 - $(DD)hpdj870c.dev : $(pcl3_) $(DD)page.dev \ 645 - - $(CONTRIB_MAK) $(MAKEDIRS) 646 - + $(CONTDEV) $(CONTRIB_MAK) $(MAKEDIRS) 647 - $(SETPDEV) $(DD)hpdj870c $(pcl3_) 648 - $(DD)hpdj890c.dev : $(pcl3_) $(DD)page.dev \ 649 - - $(CONTRIB_MAK) $(MAKEDIRS) 650 - + $(CONTDEV) $(CONTRIB_MAK) $(MAKEDIRS) 651 - $(SETPDEV) $(DD)hpdj890c $(pcl3_) 652 - $(DD)hpdj1120c.dev : $(pcl3_) $(DD)page.dev \ 653 - - $(CONTRIB_MAK) $(MAKEDIRS) 654 - + $(CONTDEV) $(CONTRIB_MAK) $(MAKEDIRS) 655 - $(SETPDEV) $(DD)hpdj1120c $(pcl3_) 656 - 657 - #------------------------------------------------------------------------------ 658 - @@ -1009,7 +1014,7 @@ 659 - 660 - xes_=$(DEVOBJ)gdevxes.$(OBJ) 661 - $(DD)xes.dev : $(xes_) $(DD)page.dev \ 662 - - $(CONTRIB_MAK) $(MAKEDIRS) 663 - + $(CONTDEV) $(CONTRIB_MAK) $(MAKEDIRS) 664 - $(SETPDEV) $(DD)xes $(xes_) 665 - 666 - # Author: Peter Flass (flass@lbdrscs.bitnet) 667 - @@ -1029,16 +1034,16 @@ 668 - 669 - pr201_=$(DEVOBJ)gdevp201.$(OBJ) $(DEVOBJ)gdevprn.$(OBJ) 670 - 671 - -$(DD)pr201.dev : $(pr201_) $(CONTRIB_MAK) $(MAKEDIRS) 672 - +$(DD)pr201.dev : $(pr201_) $(CONTDEV) $(CONTRIB_MAK) $(MAKEDIRS) 673 - $(SETPDEV) $(DD)pr201 $(pr201_) 674 - 675 - -$(DD)pr150.dev : $(pr201_) $(CONTRIB_MAK) $(MAKEDIRS) 676 - +$(DD)pr150.dev : $(pr201_) $(CONTDEV) $(CONTRIB_MAK) $(MAKEDIRS) 677 - $(SETPDEV) $(DD)pr150 $(pr201_) 678 - 679 - -$(DD)pr1000.dev : $(pr201_) $(CONTRIB_MAK) $(MAKEDIRS) 680 - +$(DD)pr1000.dev : $(pr201_) $(CONTDEV) $(CONTRIB_MAK) $(MAKEDIRS) 681 - $(SETPDEV) $(DD)pr1000 $(pr201_) 682 - 683 - -$(DD)pr1000_4.dev : $(pr201_) $(CONTRIB_MAK) $(MAKEDIRS) 684 - +$(DD)pr1000_4.dev : $(pr201_) $(CONTDEV) $(CONTRIB_MAK) $(MAKEDIRS) 685 - $(SETPDEV) $(DD)pr1000_4 $(pr201_) 686 - 687 - $(DEVOBJ)gdevp201.$(OBJ) : $(JAPSRC)gdevp201.c $(PDEVH) \ 688 - @@ -1049,7 +1054,7 @@ 689 - 690 - jj100_=$(DEVOBJ)gdevj100.$(OBJ) $(DEVOBJ)gdevprn.$(OBJ) 691 - 692 - -$(DD)jj100.dev : $(jj100_) $(CONTRIB_MAK) $(MAKEDIRS) 693 - +$(DD)jj100.dev : $(jj100_) $(CONTDEV) $(CONTRIB_MAK) $(MAKEDIRS) 694 - $(SETPDEV) $(DD)jj100 $(jj100_) 695 - 696 - $(DEVOBJ)gdevj100.$(OBJ) : $(JAPSRC)gdevj100.c $(PDEVH) \ 697 - @@ -1061,11 +1066,11 @@ 698 - bj10v_=$(DEVOBJ)gdev10v.$(OBJ) $(DEVOBJ)gdevprn.$(OBJ) 699 - 700 - $(DD)bj10v.dev : $(bj10v_) \ 701 - - $(CONTRIB_MAK) $(MAKEDIRS) 702 - + $(CONTDEV) $(CONTRIB_MAK) $(MAKEDIRS) 703 - $(SETPDEV) $(DD)bj10v $(bj10v_) 704 - 705 - $(DD)bj10vh.dev : $(bj10v_) \ 706 - - $(CONTRIB_MAK) $(MAKEDIRS) 707 - + $(CONTDEV) $(CONTRIB_MAK) $(MAKEDIRS) 708 - $(SETPDEV) $(DD)bj10vh $(bj10v_) 709 - 710 - # Uncomment the following line if you are using MS-DOS on PC9801 series. 711 - @@ -1080,7 +1085,7 @@ 712 - dmprt_=$(DEVOBJ)gdevdmpr.$(OBJ) $(DEVOBJ)dviprlib.$(OBJ) $(DEVOBJ)gdevprn.$(OBJ) 713 - 714 - $(DD)dmprt.dev : $(dmprt_) $(DD)page.dev \ 715 - - $(CONTRIB_MAK) $(MAKEDIRS) 716 - + $(CONTDEV) $(CONTRIB_MAK) $(MAKEDIRS) 717 - $(SETDEV) $(DD)dmprt $(dmprt_) 718 - $(ADDMOD) $(DD)dmprt -ps dmp_init 719 - 720 - @@ -1110,19 +1115,19 @@ 721 - $(DEVCC) -DA4 $(DEVO_)gdevmjc.$(OBJ) $(C_) $(JAPSRC)gdevmjc.c 722 - 723 - $(DD)mj700v2c.dev : $(mj700v2c_) $(DD)page.dev \ 724 - - $(CONTRIB_MAK) $(MAKEDIRS) 725 - + $(CONTDEV) $(CONTRIB_MAK) $(MAKEDIRS) 726 - $(SETPDEV) $(DD)mj700v2c $(mj700v2c_) 727 - 728 - $(DD)mj500c.dev : $(mj700v2c_) $(DD)page.dev \ 729 - - $(CONTRIB_MAK) $(MAKEDIRS) 730 - + $(CONTDEV) $(CONTRIB_MAK) $(MAKEDIRS) 731 - $(SETPDEV) $(DD)mj500c $(mj700v2c_) 732 - 733 - $(DD)mj6000c.dev : $(mj700v2c_) $(DD)page.dev \ 734 - - $(CONTRIB_MAK) $(MAKEDIRS) 735 - + $(CONTDEV) $(CONTRIB_MAK) $(MAKEDIRS) 736 - $(SETPDEV) $(DD)mj6000c $(mj700v2c_) 737 - 738 - $(DD)mj8000c.dev : $(mj700v2c_) $(DD)page.dev \ 739 - - $(CONTRIB_MAK) $(MAKEDIRS) 740 - + $(CONTDEV) $(CONTRIB_MAK) $(MAKEDIRS) 741 - $(SETPDEV) $(DD)mj8000c $(mj700v2c_) 742 - 743 - ### ----------------- The Fujitsu FMPR printer device ----------------- ### 744 - @@ -1130,7 +1135,7 @@ 745 - fmpr_=$(DEVOBJ)gdevfmpr.$(OBJ) $(DEVOBJ)gdevprn.$(OBJ) 746 - 747 - $(DD)fmpr.dev : $(fmpr_) $(DD)page.dev \ 748 - - $(CONTRIB_MAK) $(MAKEDIRS) 749 - + $(CONTDEV) $(CONTRIB_MAK) $(MAKEDIRS) 750 - $(SETPDEV) $(DD)fmpr $(fmpr_) 751 - 752 - $(DEVOBJ)gdevfmpr.$(OBJ) : $(JAPSRC)gdevfmpr.c $(PDEVH) \ 753 - @@ -1142,7 +1147,7 @@ 754 - fmlbp_=$(DEVOBJ)gdevfmlbp.$(OBJ) $(DEVOBJ)gdevprn.$(OBJ) 755 - 756 - $(DD)fmlbp.dev : $(fmlbp_) $(DD)page.dev \ 757 - - $(CONTRIB_MAK) $(MAKEDIRS) 758 - + $(CONTDEV) $(CONTRIB_MAK) $(MAKEDIRS) 759 - $(SETPDEV) $(DD)fmlbp $(fmlbp_) 760 - 761 - $(DEVOBJ)gdevfmlbp.$(OBJ) : $(JAPSRC)gdevfmlbp.c $(PDEVH) \ 762 - @@ -1159,7 +1164,7 @@ 763 - ml6_=$(DEVOBJ)gdevml6.$(OBJ) $(DEVOBJ)gdevprn.$(OBJ) 764 - 765 - $(DD)ml600.dev : $(ml6_) $(DD)page.dev \ 766 - - $(CONTRIB_MAK) $(MAKEDIRS) 767 - + $(CONTDEV) $(CONTRIB_MAK) $(MAKEDIRS) 768 - $(SETPDEV) $(DD)ml600 $(ml6_) 769 - 770 - $(DEVOBJ)gdevml6.$(OBJ) : $(JAPSRC)gdevml6.c $(PDEVH) \ 771 - @@ -1172,11 +1177,11 @@ 772 - lbp3x0_=$(DEVOBJ)gdevlbp3.$(OBJ) 773 - 774 - $(DD)lbp310.dev :$(lbp3x0_) $(DD)page.dev \ 775 - - $(CONTRIB_MAK) $(MAKEDIRS) 776 - + $(CONTDEV) $(CONTRIB_MAK) $(MAKEDIRS) 777 - $(SETPDEV) $(DD)lbp310 $(lbp3x0_) 778 - 779 - $(DD)lbp320.dev :$(lbp3x0_) $(DD)page.dev \ 780 - - $(CONTRIB_MAK) $(MAKEDIRS) 781 - + $(CONTDEV) $(CONTRIB_MAK) $(MAKEDIRS) 782 - $(SETPDEV) $(DD)lbp320 $(lbp3x0_) 783 - 784 - $(DEVOBJ)gdevlbp3.$(OBJ) : $(JAPSRC)gdevlbp3.c $(PDEVH) 785 - @@ -1191,7 +1196,7 @@ 786 - $(DEVCC) -DA4 $(DEVO_)gdevnpdl.$(OBJ) $(LIPS_OPT) $(C_) $(JAPSRC)gdevnpdl.c 787 - 788 - $(DD)npdl.dev : $(npdl_) $(DD)page.dev \ 789 - - $(CONTRIB_MAK) $(MAKEDIRS) 790 - + $(CONTDEV) $(CONTRIB_MAK) $(MAKEDIRS) 791 - $(SETPDEV) $(DD)npdl $(npdl_) 792 - 793 - ### ------- EPSON ESC/Page printer device ----------------- ### 794 - @@ -1203,11 +1208,11 @@ 795 - $(DEVCC) -DA4 $(DEVO_)gdevespg.$(OBJ) $(LIPS_OPT) $(C_) $(JAPSRC)gdevespg.c 796 - 797 - $(DD)escpage.dev : $(escpage_) $(DD)page.dev \ 798 - - $(CONTRIB_MAK) $(MAKEDIRS) 799 - + $(CONTDEV) $(CONTRIB_MAK) $(MAKEDIRS) 800 - $(SETPDEV) $(DD)escpage $(escpage_) 801 - 802 - $(DD)lp2000.dev : $(escpage_) $(DD)page.dev \ 803 - - $(CONTRIB_MAK) $(MAKEDIRS) 804 - + $(CONTDEV) $(CONTRIB_MAK) $(MAKEDIRS) 805 - $(SETPDEV) $(DD)lp2000 $(escpage_) 806 - 807 - ### --- The RICOH RPDL language printer device ------ ### 808 - @@ -1218,7 +1223,7 @@ 809 - $(DEVCC) $(DEVO_)gdevrpdl.$(OBJ) $(LIPS_OPT) $(C_) $(JAPSRC)gdevrpdl.c 810 - 811 - $(DD)rpdl.dev : $(rpdl_) $(DD)page.dev \ 812 - - $(CONTRIB_MAK) $(MAKEDIRS) 813 - + $(CONTDEV) $(CONTRIB_MAK) $(MAKEDIRS) 814 - $(SETPDEV) $(DD)rpdl $(rpdl_) 815 - 816 - ### ---------- RICOH RPDL IV(600dpi) printer devices ---------- ### 817 - @@ -1240,15 +1245,15 @@ 818 - alps_=$(DEVOBJ)gdevalps.$(OBJ) 819 - 820 - $(DD)md50Mono.dev : $(alps_) $(DD)page.dev \ 821 - - $(CONTRIB_MAK) $(MAKEDIRS) 822 - + $(CONTDEV) $(CONTRIB_MAK) $(MAKEDIRS) 823 - $(SETPDEV) $(DD)md50Mono $(alps_) 824 - 825 - $(DD)md50Eco.dev : $(alps_) $(DD)page.dev \ 826 - - $(CONTRIB_MAK) $(MAKEDIRS) 827 - + $(CONTDEV) $(CONTRIB_MAK) $(MAKEDIRS) 828 - $(SETPDEV) $(DD)md50Eco $(alps_) 829 - 830 - $(DD)md1xMono.dev : $(alps_) $(DD)page.dev \ 831 - - $(CONTRIB_MAK) $(MAKEDIRS) 832 - + $(CONTDEV) $(CONTRIB_MAK) $(MAKEDIRS) 833 - $(SETPDEV) $(DD)md1xMono $(alps_) 834 - 835 - $(DEVOBJ)gdevalps.$(OBJ) : $(JAPSRC)gdevalps.c $(PDEVH) \
+7 -17
pkgs/misc/ghostscript/default.nix
··· 1 - { config, stdenv, lib, fetchurl, pkgconfig, zlib, expat, openssl, autoconf 1 + { config, stdenv, lib, fetchurl, pkg-config, zlib, expat, openssl, autoconf 2 2 , libjpeg, libpng, libtiff, freetype, fontconfig, libpaper, jbig2dec 3 3 , libiconv, ijs, lcms2, fetchpatch 4 4 , cupsSupport ? config.ghostscript.cups or (!stdenv.isDarwin), cups ? null ··· 9 9 assert cupsSupport -> cups != null; 10 10 11 11 let 12 - version = "9.${ver_min}"; 13 - ver_min = "52"; 14 - sha512 = "1ksm3v4nw8acc4j817n44l1c65ijk0mr3mp4kryy17jz41bmzzql5d8vr40h59n9dmf8b2wmnbq45bj3an1zrpfagavlf0i9s436jjc"; 15 - 16 12 fonts = stdenv.mkDerivation { 17 13 name = "ghostscript-fonts"; 18 14 ··· 37 33 in 38 34 stdenv.mkDerivation rec { 39 35 pname = "ghostscript"; 40 - inherit version; 36 + version = "9.53.3"; 41 37 42 38 src = fetchurl { 43 - url = "https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs9${ver_min}/${pname}-${version}.tar.xz"; 44 - inherit sha512; 39 + url = "https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs9${lib.versions.minor version}${lib.versions.patch version}/${pname}-${version}.tar.xz"; 40 + sha512 = "2vif3vgxa5wma16yxvhhkymk4p309y5204yykarq94r5rk890556d2lj5w7acnaa2ymkym6y0zd4vq9sy9ca2346igg2c6dxqkjr0zb"; 45 41 }; 46 42 47 43 patches = [ 48 44 (fetchpatch { 49 - name = "CVE-2020-15900.patch"; 50 - url = "https://github.com/ArtifexSoftware/ghostpdl/commit/5d499272b95a6b890a1397e11d20937de000d31b.patch"; 51 - sha256 = "1nnnrn8q33x7nc8227ygc60f3mj4bjzrhj40sxp6dah58rb5x5jz"; 45 + url = "https://github.com/ArtifexSoftware/ghostpdl/commit/41ef9a0bc36b9db7115fbe9623f989bfb47bbade.patch"; 46 + sha256 = "1qpc6q1fpxshqc0mqgg36kng47kgljk50bmr8p7wn21jgfkh7m8w"; 52 47 }) 53 48 ./urw-font-files.patch 54 49 ./doc-no-ref.diff 55 - # rebased version of upstream http://git.ghostscript.com/?p=ghostpdl.git;a=patch;h=1b4c3669a20c, 56 - # Remove on update to version > 9.52 57 - ./0001-Bug-702364-Fix-missing-echogs-dependencies.patch 58 50 ]; 59 51 60 52 outputs = [ "out" "man" "doc" ]; 61 53 62 54 enableParallelBuilding = true; 63 55 64 - nativeBuildInputs = [ pkgconfig autoconf ]; 56 + nativeBuildInputs = [ pkg-config autoconf ]; 65 57 buildInputs = 66 58 [ zlib expat openssl 67 59 libjpeg libpng libtiff freetype fontconfig libpaper jbig2dec ··· 114 106 preFixup = lib.optionalString stdenv.isDarwin '' 115 107 install_name_tool -change libgs.dylib.${version} $out/lib/libgs.dylib.${version} $out/bin/gs 116 108 ''; 117 - 118 - passthru = { inherit version; }; 119 109 120 110 meta = { 121 111 homepage = "https://www.ghostscript.com/";
+2 -11
pkgs/os-specific/linux/apparmor/default.nix
··· 14 14 15 15 let 16 16 apparmor-series = "2.13"; 17 - apparmor-patchver = "4"; 17 + apparmor-patchver = "5"; 18 18 apparmor-version = apparmor-series + "." + apparmor-patchver; 19 19 20 20 apparmor-meta = component: with stdenv.lib; { ··· 27 27 28 28 apparmor-sources = fetchurl { 29 29 url = "https://launchpad.net/apparmor/${apparmor-series}/${apparmor-version}/+download/apparmor-${apparmor-version}.tar.gz"; 30 - sha256 = "03nislxccnbxld89giak2s8xa4mdbwscfxbdwhmw5qpvgz08dgwh"; 31 - }; 32 - 33 - # See <https://gitlab.com/apparmor/apparmor/-/issues/74> This and the 34 - # accompanying application in prePatchCommon should be removed in 2.13.5 35 - gnumake43Patch = fetchpatch { 36 - url = "https://gitlab.com/apparmor/apparmor/-/merge_requests/465.patch"; 37 - name = "2-23-fix-build-with-make-4.3.patch"; 38 - sha256 = "0xw028iqp69j9mxv0kbwraplgkj5i5djdlgf0anpkc5cdbsf96r9"; 30 + sha256 = "05x7r99k00r97v1cq2f711lv6yqzhbl8zp1i1c7kxra4v0a2lzk3"; 39 31 }; 40 32 41 33 prePatchCommon = '' 42 - patch -p1 < ${gnumake43Patch} 43 34 chmod a+x ./common/list_capabilities.sh ./common/list_af_names.sh 44 35 patchShebangs ./common/list_capabilities.sh ./common/list_af_names.sh 45 36 substituteInPlace ./common/Make.rules --replace "/usr/bin/pod2man" "${buildPackages.perl}/bin/pod2man"
+4 -4
pkgs/os-specific/linux/iproute/default.nix
··· 5 5 6 6 stdenv.mkDerivation rec { 7 7 pname = "iproute2"; 8 - version = "5.8.0"; 8 + version = "5.9.0"; 9 9 10 10 src = fetchurl { 11 11 url = "mirror://kernel/linux/utils/net/${pname}/${pname}-${version}.tar.xz"; 12 - sha256 = "0vk4vickrpahdhl3zazr2qn2bf99v5549ncirjpwiy4h0a4izkfg"; 12 + sha256 = "1kys6dmhrl43iaq95n5sh02p39d7bq8i5y672qrzgwnwpjaaqpd2"; 13 13 }; 14 14 15 15 preConfigure = '' 16 16 # Don't try to create /var/lib/arpd: 17 17 sed -e '/ARPDDIR/d' -i Makefile 18 - # TODO: Drop temporary version fix for 5.8 (53159d81) once 5.9 is out: 18 + # TODO: Drop temporary version fix for 5.9 once 5.10 is out: 19 19 substituteInPlace include/version.h \ 20 - --replace "v5.7.0-77-gb687d1067169" "5.8.0" 20 + --replace "5.8.0" "${version}" 21 21 ''; 22 22 23 23 outputs = [ "out" "dev" ];
+3 -2
pkgs/os-specific/linux/libcap/default.nix
··· 2 2 3 3 stdenv.mkDerivation rec { 4 4 pname = "libcap"; 5 - version = "2.27"; 5 + version = "2.44"; 6 6 7 7 src = fetchurl { 8 8 url = "mirror://kernel/linux/libs/security/linux-privs/libcap2/${pname}-${version}.tar.xz"; 9 - sha256 = "0sj8kidl7qgf2qwxcbw1vadnlb30y4zvjzxswsmfdghq04npkhfs"; 9 + sha256 = "1qf80lifygbnxwvqjf8jz5j24n6fqqx4ixnkbf76xs2vrmcq664j"; 10 10 }; 11 11 12 12 outputs = [ "out" "dev" "lib" "man" "doc" "pam" ]; ··· 54 54 55 55 meta = { 56 56 description = "Library for working with POSIX capabilities"; 57 + homepage = "https://sites.google.com/site/fullycapable"; 57 58 platforms = stdenv.lib.platforms.linux; 58 59 license = stdenv.lib.licenses.bsd3; 59 60 };
+75 -31
pkgs/os-specific/linux/systemd/default.nix
··· 1 - { stdenv, lib, fetchFromGitHub, pkgconfig, intltool, gperf, libcap 2 - , curl, kmod, gnupg, gnutar, xz, pam, acl, libuuid, m4, e2fsprogs, utillinux, libffi 3 - , glib, kbd, libxslt, coreutils, libgcrypt, libgpgerror, libidn2, libapparmor 4 - , audit, lz4, bzip2, pcre2 1 + { stdenv, lib, fetchFromGitHub 2 + , buildPackages 3 + , ninja, meson, m4, pkgconfig, coreutils, gperf, getent 4 + , patchelf, perl, glibcLocales, glib, substituteAll 5 + , gettext, python3Packages 6 + 7 + # Mandatory dependencies 8 + , libcap 9 + , utillinux 10 + , kbd 11 + , kmod 12 + 13 + # Optional dependencies 14 + , pam, cryptsetup, lvm2, audit, acl 15 + , lz4, libgcrypt, libgpgerror, libidn2 16 + , curl, gnutar, gnupg, zlib 17 + , xz, libuuid, libffi 18 + , libapparmor, intltool 19 + , bzip2, pcre2, e2fsprogs 5 20 , linuxHeaders ? stdenv.cc.libc.linuxHeaders 6 - , iptables, gnu-efi, bashInteractive 7 - , gettext, docbook_xsl, docbook_xml_dtd_42, docbook_xml_dtd_45 8 - , ninja, meson, python3Packages, glibcLocales 9 - , patchelf 10 - , substituteAll 11 - , getent 12 - , cryptsetup, lvm2 13 - , buildPackages 14 - , perl 21 + , gnu-efi 22 + , iptables 15 23 , withSelinux ? false, libselinux 16 24 , withLibseccomp ? lib.any (lib.meta.platformMatch stdenv.hostPlatform) libseccomp.meta.platforms, libseccomp 17 25 , withKexectools ? lib.any (lib.meta.platformMatch stdenv.hostPlatform) kexectools.meta.platforms, kexectools 26 + , bashInteractive 27 + 28 + , withResolved ? true 29 + , withLogind ? true 30 + , withHostnamed ? true 31 + , withLocaled ? true 32 + , withNetworkd ? true 33 + , withTimedated ? true 34 + , withTimesyncd ? true 35 + , withHwdb ? true 36 + , withEfi ? stdenv.hostPlatform.isEfi 37 + , withImportd ? true 38 + , withCryptsetup ? true 39 + 40 + # name argument 41 + , pname ? "systemd" 42 + 43 + 44 + , libxslt, docbook_xsl, docbook_xml_dtd_42, docbook_xml_dtd_45 18 45 }: 19 46 47 + assert withResolved -> (libgcrypt != null && libgpgerror != null); 48 + assert withImportd -> 49 + ( curl.dev != null && zlib != null && xz != null && libgcrypt != null 50 + && gnutar != null && gnupg != null); 51 + 52 + assert withCryptsetup -> 53 + ( cryptsetup != null ); 54 + 20 55 let 21 56 version = "246.6"; 22 57 in stdenv.mkDerivation { 23 - inherit version; 24 - pname = "systemd"; 58 + inherit version pname; 25 59 26 60 # We use systemd/systemd-stable for src, and ship NixOS-specific patches inside nixpkgs directly 27 61 # This has proven to be less error-prone than the previous systemd fork. ··· 71 105 outputs = [ "out" "man" "dev" ]; 72 106 73 107 nativeBuildInputs = 74 - [ pkgconfig intltool gperf libxslt gettext docbook_xsl docbook_xml_dtd_42 docbook_xml_dtd_45 108 + [ pkgconfig gperf 75 109 ninja meson 76 110 coreutils # meson calls date, stat etc. 77 111 glibcLocales 78 112 patchelf getent m4 79 113 perl # to patch the libsystemd.so and remove dependencies on aarch64 80 114 115 + intltool 116 + gettext 117 + 118 + libxslt docbook_xsl docbook_xml_dtd_42 docbook_xml_dtd_45 81 119 (buildPackages.python3Packages.python.withPackages ( ps: with ps; [ python3Packages.lxml ])) 82 120 ]; 83 121 buildInputs = ··· 86 124 pcre2 ] ++ 87 125 stdenv.lib.optional withKexectools kexectools ++ 88 126 stdenv.lib.optional withLibseccomp libseccomp ++ 89 - [ libffi audit lz4 bzip2 libapparmor 90 - iptables gnu-efi 91 - ] ++ stdenv.lib.optional withSelinux libselinux; 127 + [ libffi audit lz4 bzip2 libapparmor iptables ] ++ 128 + stdenv.lib.optional withEfi gnu-efi ++ 129 + stdenv.lib.optional withSelinux libselinux ++ 130 + stdenv.lib.optional withCryptsetup cryptsetup.dev; 92 131 93 132 #dontAddPrefix = true; 94 133 ··· 106 145 "-Ddebug-shell=${bashInteractive}/bin/bash" 107 146 # while we do not run tests we should also not build them. Removes about 600 targets 108 147 "-Dtests=false" 109 - "-Dimportd=true" 148 + "-Dimportd=${stdenv.lib.boolToString withImportd}" 110 149 "-Dlz4=true" 111 150 "-Dhomed=false" 112 - "-Dhostnamed=true" 113 - "-Dnetworkd=true" 151 + "-Dlogind=${stdenv.lib.boolToString withLogind}" 152 + "-Dlocaled=${stdenv.lib.boolToString withLocaled}" 153 + "-Dhostnamed=${stdenv.lib.boolToString withHostnamed}" 154 + "-Dnetworkd=${stdenv.lib.boolToString withNetworkd}" 155 + "-Dcryptsetup=${stdenv.lib.boolToString withCryptsetup}" 114 156 "-Dportabled=false" 157 + "-Dhwdb=${stdenv.lib.boolToString withHwdb}" 115 158 "-Dremote=false" 116 159 "-Dsysusers=false" 117 - "-Dtimedated=true" 118 - "-Dtimesyncd=true" 160 + "-Dtimedated=${stdenv.lib.boolToString withTimedated}" 161 + "-Dtimesyncd=${stdenv.lib.boolToString withTimesyncd}" 119 162 "-Dfirstboot=false" 120 163 "-Dlocaled=true" 121 - "-Dresolve=true" 164 + "-Dresolve=${stdenv.lib.boolToString withResolved}" 122 165 "-Dsplit-usr=false" 123 166 "-Dlibcurl=true" 124 167 "-Dlibidn=false" ··· 141 184 "-Dsystem-gid-max=999" 142 185 # "-Dtime-epoch=1" 143 186 144 - (if !stdenv.hostPlatform.isEfi then "-Dgnu-efi=false" else "-Dgnu-efi=true") 145 - "-Defi-libdir=${toString gnu-efi}/lib" 146 - "-Defi-includedir=${toString gnu-efi}/include/efi" 147 - "-Defi-ldsdir=${toString gnu-efi}/lib" 148 - 149 187 "-Dsysvinit-path=" 150 188 "-Dsysvrcnd-path=" 151 189 ··· 161 199 # Upstream defaulted to disable manpages since they optimize for the much 162 200 # more frequent development builds 163 201 "-Dman=true" 202 + 203 + "-Dgnu-efi=${stdenv.lib.boolToString (withEfi && gnu-efi != null)}" 204 + ] ++ stdenv.lib.optionals (withEfi && gnu-efi != null) [ 205 + "-Defi-libdir=${toString gnu-efi}/lib" 206 + "-Defi-includedir=${toString gnu-efi}/include/efi" 207 + "-Defi-ldsdir=${toString gnu-efi}/lib" 164 208 ]; 165 209 166 210 preConfigure = '' ··· 284 328 license = licenses.lgpl21Plus; 285 329 platforms = platforms.linux; 286 330 priority = 10; 287 - maintainers = with maintainers; [ andir eelco flokli ]; 331 + maintainers = with maintainers; [ andir eelco flokli kloenk ]; 288 332 }; 289 333 }
+3 -1
pkgs/servers/sql/postgresql/default.nix
··· 64 64 (if atLeast "9.6" then ./patches/hardcode-pgxs-path-96.patch else ./patches/hardcode-pgxs-path.patch) 65 65 ./patches/specify_pkglibdir_at_runtime.patch 66 66 ./patches/findstring.patch 67 - ] ++ lib.optional stdenv.isLinux (if atLeast "13" then ./patches/socketdir-in-run-13.patch else ./patches/socketdir-in-run.patch); 67 + ] 68 + ++ lib.optional (atLeast "10") ./patches/stabilize-timetz-dst.patch 69 + ++ lib.optional stdenv.isLinux (if atLeast "13" then ./patches/socketdir-in-run-13.patch else ./patches/socketdir-in-run.patch); 68 70 69 71 installTargets = [ "install-world" ]; 70 72
+117
pkgs/servers/sql/postgresql/patches/stabilize-timetz-dst.patch
··· 1 + From 4a071afbd056282746a5bc9362e87f579a56402d Mon Sep 17 00:00:00 2001 2 + From: Tom Lane <tgl@sss.pgh.pa.us> 3 + Date: Thu, 29 Oct 2020 15:28:14 -0400 4 + Subject: [PATCH 1/1] Stabilize timetz test across DST transitions. 5 + 6 + The timetz test cases I added in commit a9632830b were unintentionally 7 + sensitive to whether or not DST is active in the PST8PDT time zone. 8 + Thus, they'll start failing this coming weekend, as reported by 9 + Bernhard M. Wiedemann in bug #16689. Fortunately, DST-awareness is 10 + not significant to the purpose of these test cases, so we can just 11 + force them all to PDT (DST hours) to preserve stability of the 12 + results. 13 + 14 + Back-patch to v10, as the prior patch was. 15 + 16 + Discussion: https://postgr.es/m/16689-57701daa23b377bf@postgresql.org 17 + Git viewer: https://git.postgresql.org/gitweb/?p=postgresql.git;a=commitdiff;h=4a071afbd056282746a5bc9362e87f579a56402d;hp=f90149e6285aaae6b48559afce1bd638ee26c33e 18 + --- 19 + src/test/regress/expected/timetz.out | 32 ++++++++++++++-------------- 20 + src/test/regress/sql/timetz.sql | 16 +++++++------- 21 + 2 files changed, 24 insertions(+), 24 deletions(-) 22 + 23 + diff --git a/src/test/regress/expected/timetz.out b/src/test/regress/expected/timetz.out 24 + index 038bb5fa09..1ab5ed5105 100644 25 + --- a/src/test/regress/expected/timetz.out 26 + +++ b/src/test/regress/expected/timetz.out 27 + @@ -91,45 +91,45 @@ SELECT f1 AS "Ten" FROM TIMETZ_TBL WHERE f1 >= '00:00-07'; 28 + (12 rows) 29 + 30 + -- Check edge cases 31 + -SELECT '23:59:59.999999'::timetz; 32 + +SELECT '23:59:59.999999 PDT'::timetz; 33 + timetz 34 + -------------------- 35 + 23:59:59.999999-07 36 + (1 row) 37 + 38 + -SELECT '23:59:59.9999999'::timetz; -- rounds up 39 + +SELECT '23:59:59.9999999 PDT'::timetz; -- rounds up 40 + timetz 41 + ------------- 42 + 24:00:00-07 43 + (1 row) 44 + 45 + -SELECT '23:59:60'::timetz; -- rounds up 46 + +SELECT '23:59:60 PDT'::timetz; -- rounds up 47 + timetz 48 + ------------- 49 + 24:00:00-07 50 + (1 row) 51 + 52 + -SELECT '24:00:00'::timetz; -- allowed 53 + +SELECT '24:00:00 PDT'::timetz; -- allowed 54 + timetz 55 + ------------- 56 + 24:00:00-07 57 + (1 row) 58 + 59 + -SELECT '24:00:00.01'::timetz; -- not allowed 60 + -ERROR: date/time field value out of range: "24:00:00.01" 61 + -LINE 1: SELECT '24:00:00.01'::timetz; 62 + +SELECT '24:00:00.01 PDT'::timetz; -- not allowed 63 + +ERROR: date/time field value out of range: "24:00:00.01 PDT" 64 + +LINE 1: SELECT '24:00:00.01 PDT'::timetz; 65 + ^ 66 + -SELECT '23:59:60.01'::timetz; -- not allowed 67 + -ERROR: date/time field value out of range: "23:59:60.01" 68 + -LINE 1: SELECT '23:59:60.01'::timetz; 69 + +SELECT '23:59:60.01 PDT'::timetz; -- not allowed 70 + +ERROR: date/time field value out of range: "23:59:60.01 PDT" 71 + +LINE 1: SELECT '23:59:60.01 PDT'::timetz; 72 + ^ 73 + -SELECT '24:01:00'::timetz; -- not allowed 74 + -ERROR: date/time field value out of range: "24:01:00" 75 + -LINE 1: SELECT '24:01:00'::timetz; 76 + +SELECT '24:01:00 PDT'::timetz; -- not allowed 77 + +ERROR: date/time field value out of range: "24:01:00 PDT" 78 + +LINE 1: SELECT '24:01:00 PDT'::timetz; 79 + ^ 80 + -SELECT '25:00:00'::timetz; -- not allowed 81 + -ERROR: date/time field value out of range: "25:00:00" 82 + -LINE 1: SELECT '25:00:00'::timetz; 83 + +SELECT '25:00:00 PDT'::timetz; -- not allowed 84 + +ERROR: date/time field value out of range: "25:00:00 PDT" 85 + +LINE 1: SELECT '25:00:00 PDT'::timetz; 86 + ^ 87 + -- 88 + -- TIME simple math 89 + diff --git a/src/test/regress/sql/timetz.sql b/src/test/regress/sql/timetz.sql 90 + index b699e4b03c..ce763d89e8 100644 91 + --- a/src/test/regress/sql/timetz.sql 92 + +++ b/src/test/regress/sql/timetz.sql 93 + @@ -36,14 +36,14 @@ SELECT f1 AS "None" FROM TIMETZ_TBL WHERE f1 < '00:00-07'; 94 + SELECT f1 AS "Ten" FROM TIMETZ_TBL WHERE f1 >= '00:00-07'; 95 + 96 + -- Check edge cases 97 + -SELECT '23:59:59.999999'::timetz; 98 + -SELECT '23:59:59.9999999'::timetz; -- rounds up 99 + -SELECT '23:59:60'::timetz; -- rounds up 100 + -SELECT '24:00:00'::timetz; -- allowed 101 + -SELECT '24:00:00.01'::timetz; -- not allowed 102 + -SELECT '23:59:60.01'::timetz; -- not allowed 103 + -SELECT '24:01:00'::timetz; -- not allowed 104 + -SELECT '25:00:00'::timetz; -- not allowed 105 + +SELECT '23:59:59.999999 PDT'::timetz; 106 + +SELECT '23:59:59.9999999 PDT'::timetz; -- rounds up 107 + +SELECT '23:59:60 PDT'::timetz; -- rounds up 108 + +SELECT '24:00:00 PDT'::timetz; -- allowed 109 + +SELECT '24:00:00.01 PDT'::timetz; -- not allowed 110 + +SELECT '23:59:60.01 PDT'::timetz; -- not allowed 111 + +SELECT '24:01:00 PDT'::timetz; -- not allowed 112 + +SELECT '25:00:00 PDT'::timetz; -- not allowed 113 + 114 + -- 115 + -- TIME simple math 116 + -- 117 + 2.20.1
+18 -18
pkgs/servers/x11/xorg/default.nix
··· 703 703 }) {}; 704 704 705 705 libX11 = callPackage ({ stdenv, pkgconfig, fetchurl, xorgproto, libxcb, xtrans }: stdenv.mkDerivation { 706 - name = "libX11-1.6.8"; 706 + name = "libX11-1.6.12"; 707 707 builder = ./builder.sh; 708 708 src = fetchurl { 709 - url = "mirror://xorg/individual/lib/libX11-1.6.8.tar.bz2"; 710 - sha256 = "1mbkwhhprhf49s2iwx7kiliprsdvd690zk44x3h53ql9q52si2dj"; 709 + url = "mirror://xorg/individual/lib/libX11-1.6.12.tar.bz2"; 710 + sha256 = "1ivfzl1qwk8zh7gc0m5vb58gdxz11jwg7w3d356w16j1d5s2427i"; 711 711 }; 712 712 hardeningDisable = [ "bindnow" "relro" ]; 713 713 nativeBuildInputs = [ pkgconfig ]; ··· 1054 1054 }) {}; 1055 1055 1056 1056 libXvMC = callPackage ({ stdenv, pkgconfig, fetchurl, xorgproto, libX11, libXext, libXv }: stdenv.mkDerivation { 1057 - name = "libXvMC-1.0.11"; 1057 + name = "libXvMC-1.0.12"; 1058 1058 builder = ./builder.sh; 1059 1059 src = fetchurl { 1060 - url = "mirror://xorg/individual/lib/libXvMC-1.0.11.tar.bz2"; 1061 - sha256 = "0bb2c996p0smp2lwckffcfh4701bzv7266xh230ag0x68ka38bja"; 1060 + url = "mirror://xorg/individual/lib/libXvMC-1.0.12.tar.bz2"; 1061 + sha256 = "1kbdjsvkm5l7axv7g477qj18sab2wnqhliy6197syzizgfbsfgbb"; 1062 1062 }; 1063 1063 hardeningDisable = [ "bindnow" "relro" ]; 1064 1064 nativeBuildInputs = [ pkgconfig ]; ··· 1158 1158 }) {}; 1159 1159 1160 1160 libxcb = callPackage ({ stdenv, pkgconfig, fetchurl, libxslt, libpthreadstubs, libXau, xcbproto, libXdmcp, python }: stdenv.mkDerivation { 1161 - name = "libxcb-1.13.1"; 1161 + name = "libxcb-1.14"; 1162 1162 builder = ./builder.sh; 1163 1163 src = fetchurl { 1164 - url = "https://xcb.freedesktop.org/dist/libxcb-1.13.1.tar.bz2"; 1165 - sha256 = "1i27lvrcsygims1pddpl5c4qqs6z715lm12ax0n3vx0igapvg7x8"; 1164 + url = "mirror://xorg/individual/lib/libxcb-1.14.tar.xz"; 1165 + sha256 = "0d2chjgyn5lr9sfhacfvqgnj9l9faz11vn322a06jd6lk3dxcpm5"; 1166 1166 }; 1167 1167 hardeningDisable = [ "bindnow" "relro" ]; 1168 1168 nativeBuildInputs = [ pkgconfig python ]; ··· 1431 1431 }) {}; 1432 1432 1433 1433 xcbproto = callPackage ({ stdenv, pkgconfig, fetchurl, python }: stdenv.mkDerivation { 1434 - name = "xcb-proto-1.13"; 1434 + name = "xcb-proto-1.14.1"; 1435 1435 builder = ./builder.sh; 1436 1436 src = fetchurl { 1437 - url = "https://xcb.freedesktop.org/dist/xcb-proto-1.13.tar.bz2"; 1438 - sha256 = "1qdxw9syhbvswiqj5dvj278lrmfhs81apzmvx6205s4vcqg7563v"; 1437 + url = "mirror://xorg/individual/proto/xcb-proto-1.14.1.tar.xz"; 1438 + sha256 = "1hzwazgyywd9mz4mjj1yv8ski27qqx7ypmyr27m39hrajyddsjph"; 1439 1439 }; 1440 1440 hardeningDisable = [ "bindnow" "relro" ]; 1441 1441 nativeBuildInputs = [ pkgconfig python ]; ··· 1717 1717 }) {}; 1718 1718 1719 1719 xf86inputlibinput = callPackage ({ stdenv, pkgconfig, fetchurl, xorgproto, libinput, xorgserver }: stdenv.mkDerivation { 1720 - name = "xf86-input-libinput-0.28.2"; 1720 + name = "xf86-input-libinput-0.30.0"; 1721 1721 builder = ./builder.sh; 1722 1722 src = fetchurl { 1723 - url = "mirror://xorg/individual/driver/xf86-input-libinput-0.28.2.tar.bz2"; 1724 - sha256 = "0818vr0yhk9j1y1wcbxzcd458vrvp06rrhi8k43bhqkb5jb4dcxq"; 1723 + url = "mirror://xorg/individual/driver/xf86-input-libinput-0.30.0.tar.bz2"; 1724 + sha256 = "1h4np66p87jf0c85ig524w8f5rbhl5gx8fww1qg0c55f87yzkizr"; 1725 1725 }; 1726 1726 hardeningDisable = [ "bindnow" "relro" ]; 1727 1727 nativeBuildInputs = [ pkgconfig ]; ··· 2679 2679 }) {}; 2680 2680 2681 2681 xorgproto = callPackage ({ stdenv, pkgconfig, fetchurl, libXt }: stdenv.mkDerivation { 2682 - name = "xorgproto-2019.1"; 2682 + name = "xorgproto-2020.1"; 2683 2683 builder = ./builder.sh; 2684 2684 src = fetchurl { 2685 - url = "mirror://xorg/individual/proto/xorgproto-2019.1.tar.bz2"; 2686 - sha256 = "16yll1kaffnslik5sizlw3qrigj1gpsgfgyq6903g3mwdixamnm6"; 2685 + url = "mirror://xorg/individual/proto/xorgproto-2020.1.tar.bz2"; 2686 + sha256 = "1llrnrkq6iprgiqakmwlv89745s9h02xsiaq0xn3fnh377qm78al"; 2687 2687 }; 2688 2688 hardeningDisable = [ "bindnow" "relro" ]; 2689 2689 nativeBuildInputs = [ pkgconfig ];
-7
pkgs/servers/x11/xorg/overrides.nix
··· 82 82 83 83 libX11 = super.libX11.overrideAttrs (attrs: { 84 84 outputs = [ "out" "dev" "man" ]; 85 - patches = [ 86 - # Fixes an issue that happens when cross-compiling for us. 87 - (fetchpatch { 88 - url = "https://cgit.freedesktop.org/xorg/lib/libX11/patch/?id=0327c427d62f671eced067c6d9b69f4e216a8cac"; 89 - sha256 = "11k2mx56hjgw886zf1cdf2nhv7052d5rggimfshg6lq20i38vpza"; 90 - }) 91 - ]; 92 85 configureFlags = attrs.configureFlags or [] 93 86 ++ malloc0ReturnsNullCrossFlag; 94 87 depsBuildBuild = [ buildPackages.stdenv.cc ];
+6 -6
pkgs/servers/x11/xorg/tarballs.list
··· 1 1 https://invisible-mirror.net/archives/luit/luit-20190106.tgz 2 2 https://xcb.freedesktop.org/dist/libpthread-stubs-0.4.tar.bz2 3 - https://xcb.freedesktop.org/dist/libxcb-1.13.1.tar.bz2 4 - https://xcb.freedesktop.org/dist/xcb-proto-1.13.tar.bz2 5 3 https://xcb.freedesktop.org/dist/xcb-util-0.4.0.tar.bz2 6 4 https://xcb.freedesktop.org/dist/xcb-util-cursor-0.1.3.tar.bz2 7 5 https://xcb.freedesktop.org/dist/xcb-util-errors-1.0.tar.bz2 ··· 83 81 mirror://xorg/individual/driver/xf86-input-evdev-2.10.6.tar.bz2 84 82 mirror://xorg/individual/driver/xf86-input-joystick-1.6.3.tar.bz2 85 83 mirror://xorg/individual/driver/xf86-input-keyboard-1.9.0.tar.bz2 86 - mirror://xorg/individual/driver/xf86-input-libinput-0.28.2.tar.bz2 84 + mirror://xorg/individual/driver/xf86-input-libinput-0.30.0.tar.bz2 87 85 mirror://xorg/individual/driver/xf86-input-mouse-1.9.3.tar.bz2 88 86 mirror://xorg/individual/driver/xf86-input-synaptics-1.9.1.tar.bz2 89 87 mirror://xorg/individual/driver/xf86-input-vmmouse-13.1.0.tar.bz2 ··· 177 175 mirror://xorg/individual/lib/libpciaccess-0.16.tar.bz2 178 176 mirror://xorg/individual/lib/libSM-1.2.3.tar.bz2 179 177 mirror://xorg/individual/lib/libWindowsWM-1.0.1.tar.bz2 180 - mirror://xorg/individual/lib/libX11-1.6.8.tar.bz2 178 + mirror://xorg/individual/lib/libX11-1.6.12.tar.bz2 181 179 mirror://xorg/individual/lib/libXau-1.0.9.tar.bz2 182 180 mirror://xorg/individual/lib/libXaw-1.0.13.tar.bz2 183 181 mirror://xorg/individual/lib/libXaw3d-1.6.3.tar.bz2 182 + mirror://xorg/individual/lib/libxcb-1.14.tar.xz 184 183 mirror://xorg/individual/lib/libXcomposite-0.4.5.tar.bz2 185 184 mirror://xorg/individual/lib/libXcursor-1.2.0.tar.bz2 186 185 mirror://xorg/individual/lib/libXdamage-1.1.5.tar.bz2 ··· 206 205 mirror://xorg/individual/lib/libXt-1.2.0.tar.bz2 207 206 mirror://xorg/individual/lib/libXtst-1.2.3.tar.bz2 208 207 mirror://xorg/individual/lib/libXv-1.0.11.tar.bz2 209 - mirror://xorg/individual/lib/libXvMC-1.0.11.tar.bz2 208 + mirror://xorg/individual/lib/libXvMC-1.0.12.tar.bz2 210 209 mirror://xorg/individual/lib/libXxf86dga-1.1.5.tar.bz2 211 210 mirror://xorg/individual/lib/libXxf86misc-1.0.4.tar.bz2 212 211 mirror://xorg/individual/lib/libXxf86vm-1.1.4.tar.bz2 213 212 mirror://xorg/individual/lib/xtrans-1.4.0.tar.bz2 214 - mirror://xorg/individual/proto/xorgproto-2019.1.tar.bz2 213 + mirror://xorg/individual/proto/xcb-proto-1.14.1.tar.xz 214 + mirror://xorg/individual/proto/xorgproto-2020.1.tar.bz2 215 215 mirror://xorg/individual/util/gccmakedep-1.0.3.tar.bz2 216 216 mirror://xorg/individual/util/imake-1.0.8.tar.bz2 217 217 mirror://xorg/individual/util/lndir-1.0.3.tar.bz2
+2 -2
pkgs/shells/bash/bash-completion/default.nix
··· 9 9 10 10 stdenv.mkDerivation rec { 11 11 pname = "bash-completion"; 12 - version = "2.10"; 12 + version = "2.11"; 13 13 14 14 src = fetchFromGitHub { 15 15 owner = "scop"; 16 16 repo = "bash-completion"; 17 17 rev = version; 18 - sha256 = "047yjryy9d6hp18wkigbfrw9r0sm31inlsp8l28fhxg8ii032sgq"; 18 + sha256 = "0m3brd5jx7w07h8vxvvcmbyrlnadrx6hra3cvx6grzv6rin89liv"; 19 19 }; 20 20 21 21 nativeBuildInputs = [ autoreconfHook ];
+1 -4
pkgs/stdenv/darwin/default.nix
··· 190 190 191 191 stage1 = prevStage: let 192 192 persistent = self: super: with prevStage; { 193 - cmake = super.cmake.override { 194 - isBootstrap = true; 195 - useSharedLibraries = false; 196 - }; 193 + cmake = super.cmakeMinimal; 197 194 198 195 python3 = super.python3Minimal; 199 196
+2
pkgs/test/default.nix
··· 27 27 cc-multilib-gcc = callPackage ./cc-wrapper/multilib.nix { stdenv = gccMultiStdenv; }; 28 28 cc-multilib-clang = callPackage ./cc-wrapper/multilib.nix { stdenv = clangMultiStdenv; }; 29 29 30 + install-shell-files = callPackage ./install-shell-files {}; 31 + 30 32 kernel-config = callPackage ./kernel.nix {}; 31 33 32 34 ld-library-path = callPackage ./ld-library-path {};
+125
pkgs/test/install-shell-files/default.nix
··· 1 + { stdenv, runCommandLocal, recurseIntoAttrs, installShellFiles }: 2 + 3 + let 4 + runTest = name: env: buildCommand: 5 + runCommandLocal "install-shell-files--${name}" ({ 6 + nativeBuildInputs = [ installShellFiles ]; 7 + meta.platforms = stdenv.lib.platforms.all; 8 + } // env) buildCommand; 9 + in 10 + 11 + recurseIntoAttrs { 12 + # installManPage 13 + 14 + install-manpage = runTest "install-manpage" {} '' 15 + mkdir -p doc 16 + echo foo > doc/foo.1 17 + echo bar > doc/bar.2.gz 18 + echo baz > doc/baz.3 19 + 20 + installManPage doc/* 21 + 22 + cmp doc/foo.1 $out/share/man/man1/foo.1 23 + cmp doc/bar.2.gz $out/share/man/man2/bar.2.gz 24 + cmp doc/baz.3 $out/share/man/man3/baz.3 25 + ''; 26 + install-manpage-outputs = runTest "install-manpage-outputs" { 27 + outputs = [ "out" "man" "devman" ]; 28 + } '' 29 + mkdir -p doc 30 + echo foo > doc/foo.1 31 + echo bar > doc/bar.3 32 + 33 + installManPage doc/* 34 + 35 + # assert they didn't go into $out 36 + [[ ! -f $out/share/man/man1/foo.1 && ! -f $out/share/man/man3/bar.3 ]] 37 + 38 + # foo.1 alone went into man 39 + cmp doc/foo.1 ''${!outputMan:?}/share/man/man1/foo.1 40 + [[ ! -f ''${!outputMan:?}/share/man/man3/bar.3 ]] 41 + 42 + # bar.3 alone went into devman 43 + cmp doc/bar.3 ''${!outputDevman:?}/share/man/man3/bar.3 44 + [[ ! -f ''${!outputDevman:?}/share/man/man1/foo.1 ]] 45 + 46 + touch $out 47 + ''; 48 + 49 + # installShellCompletion 50 + 51 + install-completion = runTest "install-completion" {} '' 52 + echo foo > foo 53 + echo bar > bar 54 + echo baz > baz 55 + echo qux > qux.zsh 56 + echo quux > quux 57 + 58 + installShellCompletion --bash foo bar --zsh baz qux.zsh --fish quux 59 + 60 + cmp foo $out/share/bash-completion/completions/foo 61 + cmp bar $out/share/bash-completion/completions/bar 62 + cmp baz $out/share/zsh/site-functions/_baz 63 + cmp qux.zsh $out/share/zsh/site-functions/_qux 64 + cmp quux $out/share/fish/vendor_completions.d/quux 65 + ''; 66 + install-completion-output = runTest "install-completion-output" { 67 + outputs = [ "out" "bin" ]; 68 + } '' 69 + echo foo > foo 70 + 71 + installShellCompletion --bash foo 72 + 73 + # assert it didn't go into $out 74 + [[ ! -f $out/share/bash-completion/completions/foo ]] 75 + 76 + cmp foo ''${!outputBin:?}/share/bash-completion/completions/foo 77 + 78 + touch $out 79 + ''; 80 + install-completion-name = runTest "install-completion-name" {} '' 81 + echo foo > foo 82 + echo bar > bar 83 + echo baz > baz 84 + 85 + installShellCompletion --bash --name foobar.bash foo --zsh --name _foobar bar --fish baz 86 + 87 + cmp foo $out/share/bash-completion/completions/foobar.bash 88 + cmp bar $out/share/zsh/site-functions/_foobar 89 + cmp baz $out/share/fish/vendor_completions.d/baz 90 + ''; 91 + install-completion-inference = runTest "install-completion-inference" {} '' 92 + echo foo > foo.bash 93 + echo bar > bar.zsh 94 + echo baz > baz.fish 95 + 96 + installShellCompletion foo.bash bar.zsh baz.fish 97 + 98 + cmp foo.bash $out/share/bash-completion/completions/foo.bash 99 + cmp bar.zsh $out/share/zsh/site-functions/_bar 100 + cmp baz.fish $out/share/fish/vendor_completions.d/baz.fish 101 + ''; 102 + install-completion-cmd = runTest "install-completion-cmd" {} '' 103 + echo foo > foo.bash 104 + echo bar > bar.zsh 105 + echo baz > baz.fish 106 + echo qux > qux.fish 107 + 108 + installShellCompletion --cmd foobar --bash foo.bash --zsh bar.zsh --fish baz.fish --name qux qux.fish 109 + 110 + cmp foo.bash $out/share/bash-completion/completions/foobar.bash 111 + cmp bar.zsh $out/share/zsh/site-functions/_foobar 112 + cmp baz.fish $out/share/fish/vendor_completions.d/foobar.fish 113 + cmp qux.fish $out/share/fish/vendor_completions.d/qux 114 + ''; 115 + install-completion-fifo = runTest "install-completion-fifo" {} '' 116 + installShellCompletion \ 117 + --bash --name foo.bash <(echo foo) \ 118 + --zsh --name _foo <(echo bar) \ 119 + --fish --name foo.fish <(echo baz) 120 + 121 + [[ $(<$out/share/bash-completion/completions/foo.bash) == foo ]] || { echo "foo.bash comparison failed"; exit 1; } 122 + [[ $(<$out/share/zsh/site-functions/_foo) == bar ]] || { echo "_foo comparison failed"; exit 1; } 123 + [[ $(<$out/share/fish/vendor_completions.d/foo.fish) == baz ]] || { echo "foo.fish comparison failed"; exit 1; } 124 + ''; 125 + }
+10 -3
pkgs/tools/compression/brotli/default.nix
··· 4 4 5 5 stdenv.mkDerivation rec { 6 6 pname = "brotli"; 7 - version = "1.0.7"; 7 + version = "1.0.9"; 8 8 9 9 src = fetchFromGitHub { 10 10 owner = "google"; 11 11 repo = "brotli"; 12 12 rev = "v" + version; 13 - sha256 = "1811b55wdfg4kbsjcgh1kc938g118jpvif97ilgrmbls25dfpvvw"; 13 + sha256 = "z6Dhrabav1MDQ4rAcXaDv0aN+qOoh9cvoXZqEWBB13c="; 14 14 }; 15 15 16 16 nativeBuildInputs = [ cmake ]; ··· 32 32 33 33 # This breaks on Darwin because our cmake hook tries to make a build folder 34 34 # and the wonderful bazel BUILD file is already there (yay case-insensitivity?) 35 - prePatch = "rm BUILD"; 35 + prePatch = '' 36 + rm BUILD 37 + 38 + # Upstream fixed this reference to runtime-path after the release 39 + # and with this references g++ complains about invalid option -R 40 + sed -i 's/ -R''${libdir}//' scripts/libbrotli*.pc.in 41 + cat scripts/libbrotli*.pc.in 42 + ''; 36 43 37 44 # Don't bother with "man" output for now, 38 45 # it currently only makes the manpages hard to use.
-52
pkgs/tools/misc/coreutils/avoid-false-positive-in-date-debug-test.patch
··· 1 - From 0251229bfd9617e8a35cf9dd7d338d63fff74a0c Mon Sep 17 00:00:00 2001 2 - From: Assaf Gordon <assafgordon@gmail.com> 3 - Date: Mon, 13 May 2019 16:37:40 -0600 4 - Subject: [PATCH] tests: avoid false-positive in date-debug test 5 - MIME-Version: 1.0 6 - Content-Type: text/plain; charset=UTF-8 7 - Content-Transfer-Encoding: 8bit 8 - 9 - When debugging an invalid date due to DST switching, the intermediate 10 - 'normalized time' should not be checked - its value can differ between 11 - systems (e.g. glibc vs musl). 12 - 13 - Reported by Niklas Hambüchen in 14 - https://lists.gnu.org/r/coreutils/2019-05/msg00031.html 15 - Analyzed by Rich Felker in 16 - https://lists.gnu.org/r/coreutils/2019-05/msg00039.html 17 - 18 - * tests/misc/date-debug.sh: Replace the exact normalized time 19 - with 'XX:XX:XX' so different values would not trigger test failure. 20 - --- 21 - tests/misc/date-debug.sh | 11 +++++++++-- 22 - 1 file changed, 9 insertions(+), 2 deletions(-) 23 - 24 - diff --git a/tests/misc/date-debug.sh b/tests/misc/date-debug.sh 25 - index aa47f1abb..2ce6f4ce8 100755 26 - --- a/tests/misc/date-debug.sh 27 - +++ b/tests/misc/date-debug.sh 28 - @@ -71,7 +71,7 @@ date: input timezone: TZ="America/Edmonton" in date string 29 - date: using specified time as starting value: '02:30:00' 30 - date: error: invalid date/time value: 31 - date: user provided time: '(Y-M-D) 2006-04-02 02:30:00' 32 - -date: normalized time: '(Y-M-D) 2006-04-02 03:30:00' 33 - +date: normalized time: '(Y-M-D) 2006-04-02 XX:XX:XX' 34 - date: -- 35 - date: possible reasons: 36 - date: non-existing due to daylight-saving time; 37 - @@ -81,7 +81,14 @@ date: invalid date 'TZ="America/Edmonton" 2006-04-02 02:30:00' 38 - EOF 39 - 40 - # date should return 1 (error) for invalid date 41 - -returns_ 1 date --debug -d "$in2" >out2 2>&1 || fail=1 42 - +returns_ 1 date --debug -d "$in2" >out2-t 2>&1 || fail=1 43 - + 44 - +# The output line of "normalized time" can differ between systems 45 - +# (e.g. glibc vs musl) and should not be checked. 46 - +# See: https://lists.gnu.org/archive/html/coreutils/2019-05/msg00039.html 47 - +sed '/normalized time:/s/ [0-9][0-9]:[0-9][0-9]:[0-9][0-9]/ XX:XX:XX/' \ 48 - + out2-t > out2 || framework_failure_ 49 - + 50 - compare exp2 out2 || fail=1 51 - 52 - ##
-51
pkgs/tools/misc/coreutils/coreutils-8.31-android-cross.patch
··· 1 - From 3bd82a82cf4ba693d2c31c7b95aaec4e56dc92a4 Mon Sep 17 00:00:00 2001 2 - From: Paul Eggert <eggert@cs.ucla.edu> 3 - Date: Mon, 11 Mar 2019 16:40:29 -0700 4 - Subject: [PATCH 1/1] strtod: fix clash with strtold 5 - 6 - Problem reported for RHEL 5 by Jesse Caldwell (Bug#34817). 7 - * lib/strtod.c (compute_minus_zero, minus_zero): 8 - Simplify by remving the macro / external variable, 9 - and having just a function. User changed. This avoids 10 - the need for an external variable that might clash. 11 - --- 12 - ChangeLog | 9 +++++++++ 13 - lib/strtod.c | 11 +++++------ 14 - 2 files changed, 14 insertions(+), 6 deletions(-) 15 - 16 - diff --git a/lib/strtod.c b/lib/strtod.c 17 - index b9eaa51..69b1564 100644 18 - --- a/lib/strtod.c 19 - +++ b/lib/strtod.c 20 - @@ -294,16 +294,15 @@ parse_number (const char *nptr, 21 - ICC 10.0 has a bug when optimizing the expression -zero. 22 - The expression -MIN * MIN does not work when cross-compiling 23 - to PowerPC on Mac OS X 10.5. */ 24 - -#if defined __hpux || defined __sgi || defined __ICC 25 - static DOUBLE 26 - -compute_minus_zero (void) 27 - +minus_zero (void) 28 - { 29 - +#if defined __hpux || defined __sgi || defined __ICC 30 - return -MIN * MIN; 31 - -} 32 - -# define minus_zero compute_minus_zero () 33 - #else 34 - -DOUBLE minus_zero = -0.0; 35 - + return -0.0; 36 - #endif 37 - +} 38 - 39 - /* Convert NPTR to a DOUBLE. If ENDPTR is not NULL, a pointer to the 40 - character after the last one used in the number is put in *ENDPTR. */ 41 - @@ -479,6 +478,6 @@ STRTOD (const char *nptr, char **endptr) 42 - /* Special case -0.0, since at least ICC miscompiles negation. We 43 - can't use copysign(), as that drags in -lm on some platforms. */ 44 - if (!num && negative) 45 - - return minus_zero; 46 - + return minus_zero (); 47 - return negative ? -num : num; 48 - } 49 - -- 50 - 1.9.1 51 -
-1153
pkgs/tools/misc/coreutils/coreutils-8.31-musl-cross.patch
··· 1 - From 453ff940449bbbde9ec00f0bbf82a359c5598fc7 Mon Sep 17 00:00:00 2001 2 - From: Bruno Haible <bruno@clisp.org> 3 - Date: Sat, 23 Mar 2019 23:00:52 +0100 4 - Subject: [PATCH 1/1] Support cross-compilation to musl libc. 5 - 6 - Reported by Necktwi Ozfguah <necktwi@ferryfair.com>. 7 - 8 - * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Add cross-compilation guesses for 9 - musl libc. 10 - * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise. 11 - * m4/chown.m4 (gl_FUNC_CHOWN): Likewise. 12 - * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise. 13 - * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Likewise. 14 - * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise. 15 - * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise. 16 - * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise. 17 - * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise. 18 - * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise. 19 - * m4/getgroups.m4 (AC_FUNC_GETGROUPS, gl_FUNC_GETGROUPS): Likewise. 20 - * m4/getline.m4 (gl_FUNC_GETLINE): Likewise. 21 - * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Likewise. 22 - * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise. // removed 23 - * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise. // removed 24 - * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise. // removed 25 - * m4/iconv_open-utf.m4 (gl_FUNC_ICONV_OPEN_UTF_SUPPORT): Likewise. // removed 26 - * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise. 27 - * m4/log.m4 (gl_FUNC_LOG): Likewise. // removed 28 - * m4/logf.m4 (gl_FUNC_LOGF): Likewise. // removed 29 - * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Likewise. // removed 30 - * m4/log10.m4 (gl_FUNC_LOG10): Likewise. // removed 31 - * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise. // removed 32 - * m4/log10l.m4 (gl_FUNC_LOG10L): Likewise. // removed 33 - * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise. // removed 34 - * m4/log1pf.m4 (gl_FUNC_LOG1PF): Likewise. // removed 35 - * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise. // removed 36 - * m4/log2.m4 (gl_FUNC_LOG2): Likewise. // removed 37 - * m4/log2f.m4 (gl_FUNC_LOG2F): Likewise. // removed 38 - * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Likewise. 39 - * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise. 40 - * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise. 41 - * m4/modf.m4 (gl_FUNC_MODF): Likewise. // removed 42 - * m4/modff.m4 (gl_FUNC_MODFF): Likewise. // removed 43 - * m4/modfl.m4 (gl_FUNC_MODFL): Likewise. // removed 44 - * m4/perror.m4 (gl_FUNC_PERROR): Likewise. 45 - * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_INFINITE, 46 - gl_PRINTF_INFINITE_LONG_DOUBLE, gl_PRINTF_DIRECTIVE_A, 47 - gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO, gl_SNPRINTF_TRUNCATION_C99, 48 - gl_SNPRINTF_RETVAL_C99, gl_SNPRINTF_DIRECTIVE_N, 49 - gl_VSNPRINTF_ZEROSIZE_C99): Likewise. 50 - * m4/ptsname.m4 (gl_FUNC_PTSNAME): Likewise. // removed 51 - * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise. 52 - * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Likewise. 53 - * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise. // removed 54 - * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise. // removed 55 - * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise. // removed 56 - * m4/rintl.m4 (gl_FUNC_RINTL): Likewise. // removed 57 - * m4/round.m4 (gl_FUNC_ROUND): Likewise. // removed 58 - * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise. // removed 59 - * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise. // removed 60 - * m4/setenv.m4 (gl_FUNC_SETENV): Likewise. 61 - * m4/signbit.m4 (gl_SIGNBIT): Likewise. 62 - * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise. 63 - * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise. 64 - * m4/strerror.m4 (gl_FUNC_STRERROR, gl_FUNC_STRERROR_0): Likewise. 65 - * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise. 66 - * m4/strtold.m4 (gl_FUNC_STRTOLD): Likewise. 67 - * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise. // removed 68 - * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise. // removed 69 - * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise. // removed 70 - * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise. 71 - * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise. 72 - * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise. 73 - * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise. 74 - * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise. 75 - --- 76 - m4/calloc.m4 | 4 ++- 77 - m4/canonicalize.m4 | 4 ++- 78 - m4/chown.m4 | 22 +++++++------ 79 - m4/d-ino.m4 | 16 +++++----- 80 - m4/fdopendir.m4 | 12 ++++--- 81 - m4/fnmatch.m4 | 18 ++++++++--- 82 - m4/fpurge.m4 | 24 +++++++++----- 83 - m4/getcwd-abort-bug.m4 | 11 +++++-- 84 - m4/getcwd.m4 | 4 ++- 85 - m4/getdelim.m4 | 40 ++++++++++++++---------- 86 - m4/getgroups.m4 | 6 +++- 87 - m4/getline.m4 | 38 +++++++++++++--------- 88 - m4/gettimeofday.m4 | 4 ++- 89 - m4/link-follow.m4 | 4 ++- 90 - m4/malloc.m4 | 4 +-- 91 - m4/mkdir.m4 | 4 ++- 92 - m4/mkstemp.m4 | 4 ++- 93 - m4/perror.m4 | 12 ++++--- 94 - m4/printf.m4 | 22 ++++++++++++- 95 - m4/putenv.m4 | 4 ++- 96 - m4/realloc.m4 | 4 +-- 97 - m4/setenv.m4 | 4 ++- 98 - m4/signbit.m4 | 6 +++- 99 - m4/sleep.m4 | 4 ++- 100 - m4/stpncpy.m4 | 14 +++++++-- 101 - m4/strerror.m4 | 6 +++- 102 - m4/strtod.m4 | 10 +++--- 103 - m4/strtold.m4 | 9 ++++-- 104 - m4/tzset.m4 | 4 ++- 105 - m4/ungetc.m4 | 18 ++++++----- 106 - m4/usleep.m4 | 4 ++- 107 - m4/utimes.m4 | 10 +++--- 108 - m4/wcwidth.m4 | 12 ++++--- 109 - 76 files changed, 461 insertions(+), 157 deletions(-) 110 - 111 - diff --git a/m4/calloc.m4 b/m4/calloc.m4 112 - index 012a5bf..d76535d 100644 113 - --- a/m4/calloc.m4 114 - +++ b/m4/calloc.m4 115 - @@ -1,4 +1,4 @@ 116 - -# calloc.m4 serial 18 117 - +# calloc.m4 serial 19 118 - 119 - # Copyright (C) 2004-2019 Free Software Foundation, Inc. 120 - # This file is free software; the Free Software Foundation 121 - @@ -40,6 +40,8 @@ AC_DEFUN([_AC_FUNC_CALLOC_IF], 122 - [case "$host_os" in 123 - # Guess yes on glibc systems. 124 - *-gnu* | gnu*) ac_cv_func_calloc_0_nonnull="guessing yes" ;; 125 - + # Guess yes on musl systems. 126 - + *-musl*) ac_cv_func_calloc_0_nonnull="guessing yes" ;; 127 - # Guess yes on native Windows. 128 - mingw*) ac_cv_func_calloc_0_nonnull="guessing yes" ;; 129 - # If we don't know, assume the worst. 130 - diff --git a/m4/canonicalize.m4 b/m4/canonicalize.m4 131 - index 5b6e25d..b61747b 100644 132 - --- a/m4/canonicalize.m4 133 - +++ b/m4/canonicalize.m4 134 - @@ -1,4 +1,4 @@ 135 - -# canonicalize.m4 serial 29 136 - +# canonicalize.m4 serial 30 137 - 138 - dnl Copyright (C) 2003-2007, 2009-2019 Free Software Foundation, Inc. 139 - 140 - @@ -113,6 +113,8 @@ AC_DEFUN([gl_FUNC_REALPATH_WORKS], 141 - [case "$host_os" in 142 - # Guess yes on glibc systems. 143 - *-gnu* | gnu*) gl_cv_func_realpath_works="guessing yes" ;; 144 - + # Guess yes on musl systems. 145 - + *-musl*) gl_cv_func_realpath_works="guessing yes" ;; 146 - # Guess no on native Windows. 147 - mingw*) gl_cv_func_realpath_works="guessing no" ;; 148 - # If we don't know, assume the worst. 149 - diff --git a/m4/chown.m4 b/m4/chown.m4 150 - index ecfc0c0..b798325 100644 151 - --- a/m4/chown.m4 152 - +++ b/m4/chown.m4 153 - @@ -1,4 +1,4 @@ 154 - -# serial 30 155 - +# serial 32 156 - # Determine whether we need the chown wrapper. 157 - 158 - dnl Copyright (C) 1997-2001, 2003-2005, 2007, 2009-2019 Free Software 159 - @@ -109,10 +109,12 @@ AC_DEFUN_ONCE([gl_FUNC_CHOWN], 160 - [gl_cv_func_chown_slash_works=yes], 161 - [gl_cv_func_chown_slash_works=no], 162 - [case "$host_os" in 163 - - # Guess yes on glibc systems. 164 - - *-gnu*) gl_cv_func_chown_slash_works="guessing yes" ;; 165 - - # If we don't know, assume the worst. 166 - - *) gl_cv_func_chown_slash_works="guessing no" ;; 167 - + # Guess yes on glibc systems. 168 - + *-gnu*) gl_cv_func_chown_slash_works="guessing yes" ;; 169 - + # Guess yes on musl systems. 170 - + *-musl*) gl_cv_func_chown_slash_works="guessing yes" ;; 171 - + # If we don't know, assume the worst. 172 - + *) gl_cv_func_chown_slash_works="guessing no" ;; 173 - esac 174 - ]) 175 - rm -f conftest.link conftest.file]) 176 - @@ -145,10 +147,12 @@ AC_DEFUN_ONCE([gl_FUNC_CHOWN], 177 - [gl_cv_func_chown_ctime_works=yes], 178 - [gl_cv_func_chown_ctime_works=no], 179 - [case "$host_os" in 180 - - # Guess yes on glibc systems. 181 - - *-gnu*) gl_cv_func_chown_ctime_works="guessing yes" ;; 182 - - # If we don't know, assume the worst. 183 - - *) gl_cv_func_chown_ctime_works="guessing no" ;; 184 - + # Guess yes on glibc systems. 185 - + *-gnu*) gl_cv_func_chown_ctime_works="guessing yes" ;; 186 - + # Guess yes on musl systems. 187 - + *-musl*) gl_cv_func_chown_ctime_works="guessing yes" ;; 188 - + # If we don't know, assume the worst. 189 - + *) gl_cv_func_chown_ctime_works="guessing no" ;; 190 - esac 191 - ]) 192 - rm -f conftest.file]) 193 - diff --git a/m4/d-ino.m4 b/m4/d-ino.m4 194 - index f1420cc..87dcacc 100644 195 - --- a/m4/d-ino.m4 196 - +++ b/m4/d-ino.m4 197 - @@ -1,4 +1,4 @@ 198 - -# serial 18 199 - +# serial 19 200 - 201 - dnl From Jim Meyering. 202 - dnl 203 - @@ -40,12 +40,14 @@ AC_DEFUN([gl_CHECK_TYPE_STRUCT_DIRENT_D_INO], 204 - [gl_cv_struct_dirent_d_ino=yes], 205 - [gl_cv_struct_dirent_d_ino=no], 206 - [case "$host_os" in 207 - - # Guess yes on glibc systems with Linux kernel. 208 - - linux*-gnu*) gl_cv_struct_dirent_d_ino="guessing yes" ;; 209 - - # Guess no on native Windows. 210 - - mingw*) gl_cv_struct_dirent_d_ino="guessing no" ;; 211 - - # If we don't know, assume the worst. 212 - - *) gl_cv_struct_dirent_d_ino="guessing no" ;; 213 - + # Guess yes on glibc systems with Linux kernel. 214 - + linux*-gnu*) gl_cv_struct_dirent_d_ino="guessing yes" ;; 215 - + # Guess yes on musl systems with Linux kernel. 216 - + linux*-musl*) gl_cv_struct_dirent_d_ino="guessing yes" ;; 217 - + # Guess no on native Windows. 218 - + mingw*) gl_cv_struct_dirent_d_ino="guessing no" ;; 219 - + # If we don't know, assume the worst. 220 - + *) gl_cv_struct_dirent_d_ino="guessing no" ;; 221 - esac 222 - ])]) 223 - case "$gl_cv_struct_dirent_d_ino" in 224 - diff --git a/m4/fdopendir.m4 b/m4/fdopendir.m4 225 - index 0490551..b2b3b03 100644 226 - --- a/m4/fdopendir.m4 227 - +++ b/m4/fdopendir.m4 228 - @@ -1,4 +1,4 @@ 229 - -# serial 10 230 - +# serial 11 231 - # See if we need to provide fdopendir. 232 - 233 - dnl Copyright (C) 2009-2019 Free Software Foundation, Inc. 234 - @@ -45,10 +45,12 @@ DIR *fdopendir (int); 235 - [gl_cv_func_fdopendir_works=yes], 236 - [gl_cv_func_fdopendir_works=no], 237 - [case "$host_os" in 238 - - # Guess yes on glibc systems. 239 - - *-gnu*) gl_cv_func_fdopendir_works="guessing yes" ;; 240 - - # If we don't know, assume the worst. 241 - - *) gl_cv_func_fdopendir_works="guessing no" ;; 242 - + # Guess yes on glibc systems. 243 - + *-gnu*) gl_cv_func_fdopendir_works="guessing yes" ;; 244 - + # Guess yes on musl systems. 245 - + *-musl*) gl_cv_func_fdopendir_works="guessing yes" ;; 246 - + # If we don't know, assume the worst. 247 - + *) gl_cv_func_fdopendir_works="guessing no" ;; 248 - esac 249 - ])]) 250 - case "$gl_cv_func_fdopendir_works" in 251 - diff --git a/m4/fnmatch.m4 b/m4/fnmatch.m4 252 - index c264ca7..75ba55b 100644 253 - --- a/m4/fnmatch.m4 254 - +++ b/m4/fnmatch.m4 255 - @@ -1,4 +1,4 @@ 256 - -# Check for fnmatch - serial 13. -*- coding: utf-8 -*- 257 - +# Check for fnmatch - serial 14. -*- coding: utf-8 -*- 258 - 259 - # Copyright (C) 2000-2007, 2009-2019 Free Software Foundation, Inc. 260 - # This file is free software; the Free Software Foundation 261 - @@ -14,6 +14,7 @@ AC_DEFUN([gl_FUNC_FNMATCH_POSIX], 262 - m4_divert_text([DEFAULTS], [gl_fnmatch_required=POSIX]) 263 - 264 - AC_REQUIRE([gl_FNMATCH_H]) 265 - + AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles 266 - gl_fnmatch_required_lowercase=` 267 - echo $gl_fnmatch_required | LC_ALL=C tr '[[A-Z]]' '[[a-z]]' 268 - ` 269 - @@ -117,12 +118,19 @@ AC_DEFUN([gl_FUNC_FNMATCH_POSIX], 270 - ]])], 271 - [eval "$gl_fnmatch_cache_var=yes"], 272 - [eval "$gl_fnmatch_cache_var=no"], 273 - - [eval "$gl_fnmatch_cache_var=\"guessing no\""]) 274 - + [case "$host_os" in 275 - + # Guess yes on musl systems. 276 - + *-musl*) eval "$gl_fnmatch_cache_var=\"guessing yes\"" ;; 277 - + # Guess no otherwise, even on glibc systems. 278 - + *) eval "$gl_fnmatch_cache_var=\"guessing no\"" ;; 279 - + esac 280 - + ]) 281 - ]) 282 - eval "gl_fnmatch_result=\"\$$gl_fnmatch_cache_var\"" 283 - - if test "$gl_fnmatch_result" != yes; then 284 - - REPLACE_FNMATCH=1 285 - - fi 286 - + case "$gl_fnmatch_result" in 287 - + *yes) ;; 288 - + *) REPLACE_FNMATCH=1 ;; 289 - + esac 290 - fi 291 - if test $HAVE_FNMATCH = 0 || test $REPLACE_FNMATCH = 1; then 292 - gl_REPLACE_FNMATCH_H 293 - diff --git a/m4/fpurge.m4 b/m4/fpurge.m4 294 - index cb21f56..6c5b3e9 100644 295 - --- a/m4/fpurge.m4 296 - +++ b/m4/fpurge.m4 297 - @@ -1,4 +1,4 @@ 298 - -# fpurge.m4 serial 8 299 - +# fpurge.m4 serial 9 300 - dnl Copyright (C) 2007, 2009-2019 Free Software Foundation, Inc. 301 - dnl This file is free software; the Free Software Foundation 302 - dnl gives unlimited permission to copy and/or distribute it, 303 - @@ -7,12 +7,13 @@ dnl with or without modifications, as long as this notice is preserved. 304 - AC_DEFUN([gl_FUNC_FPURGE], 305 - [ 306 - AC_REQUIRE([gl_STDIO_H_DEFAULTS]) 307 - + AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles 308 - AC_CHECK_FUNCS_ONCE([fpurge]) 309 - AC_CHECK_FUNCS_ONCE([__fpurge]) 310 - AC_CHECK_DECLS([fpurge], , , [[#include <stdio.h>]]) 311 - if test "x$ac_cv_func_fpurge" = xyes; then 312 - HAVE_FPURGE=1 313 - - # Detect BSD bug. Only cygwin 1.7 is known to be immune. 314 - + # Detect BSD bug. Only cygwin 1.7 and musl are known to be immune. 315 - AC_CACHE_CHECK([whether fpurge works], [gl_cv_func_fpurge_works], 316 - [AC_RUN_IFELSE( 317 - [AC_LANG_PROGRAM( 318 - @@ -48,11 +49,20 @@ AC_DEFUN([gl_FUNC_FPURGE], 319 - return 13; 320 - return 0; 321 - ])], 322 - - [gl_cv_func_fpurge_works=yes], [gl_cv_func_fpurge_works=no], 323 - - [gl_cv_func_fpurge_works='guessing no'])]) 324 - - if test "x$gl_cv_func_fpurge_works" != xyes; then 325 - - REPLACE_FPURGE=1 326 - - fi 327 - + [gl_cv_func_fpurge_works=yes], 328 - + [gl_cv_func_fpurge_works=no], 329 - + [case "$host_os" in 330 - + # Guess yes on musl systems. 331 - + *-musl*) gl_cv_func_fpurge_works="guessing yes" ;; 332 - + # Guess no otherwise. 333 - + *) gl_cv_func_fpurge_works="guessing no" ;; 334 - + esac 335 - + ]) 336 - + ]) 337 - + case "$gl_cv_func_fpurge_works" in 338 - + *yes) ;; 339 - + *) REPLACE_FPURGE=1 ;; 340 - + esac 341 - else 342 - HAVE_FPURGE=0 343 - fi 344 - diff --git a/m4/getcwd-abort-bug.m4 b/m4/getcwd-abort-bug.m4 345 - index f0f24a5..7227f08 100644 346 - --- a/m4/getcwd-abort-bug.m4 347 - +++ b/m4/getcwd-abort-bug.m4 348 - @@ -1,4 +1,4 @@ 349 - -# serial 9 350 - +# serial 11 351 - # Determine whether getcwd aborts when the length of the working directory 352 - # name is unusually large. Any length between 4k and 16k trigger the bug 353 - # when using glibc-2.4.90-9 or older. 354 - @@ -13,6 +13,7 @@ 355 - # gl_FUNC_GETCWD_ABORT_BUG([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]]) 356 - AC_DEFUN([gl_FUNC_GETCWD_ABORT_BUG], 357 - [ 358 - + AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles 359 - AC_CHECK_DECLS_ONCE([getcwd]) 360 - AC_CHECK_HEADERS_ONCE([unistd.h]) 361 - AC_REQUIRE([gl_PATHMAX_SNIPPET_PREREQ]) 362 - @@ -142,7 +143,13 @@ main () 363 - else 364 - gl_cv_func_getcwd_abort_bug=no 365 - fi], 366 - - [gl_cv_func_getcwd_abort_bug=yes]) 367 - + [case "$host_os" in 368 - + # Guess no on musl systems. 369 - + *-musl*) gl_cv_func_getcwd_abort_bug="guessing no" ;; 370 - + # Guess yes otherwise, even on glibc systems. 371 - + *) gl_cv_func_getcwd_abort_bug="guessing yes" 372 - + esac 373 - + ]) 374 - ]) 375 - AS_IF([test $gl_cv_func_getcwd_abort_bug = yes], [$1], [$2]) 376 - ]) 377 - diff --git a/m4/getcwd.m4 b/m4/getcwd.m4 378 - index 4929b51..625171a 100644 379 - --- a/m4/getcwd.m4 380 - +++ b/m4/getcwd.m4 381 - @@ -6,7 +6,7 @@ 382 - # with or without modifications, as long as this notice is preserved. 383 - 384 - # Written by Paul Eggert. 385 - -# serial 16 386 - +# serial 17 387 - 388 - AC_DEFUN([gl_FUNC_GETCWD_NULL], 389 - [ 390 - @@ -50,6 +50,8 @@ AC_DEFUN([gl_FUNC_GETCWD_NULL], 391 - [[case "$host_os" in 392 - # Guess yes on glibc systems. 393 - *-gnu* | gnu*) gl_cv_func_getcwd_null="guessing yes";; 394 - + # Guess yes on musl systems. 395 - + *-musl*) gl_cv_func_getcwd_null="guessing yes";; 396 - # Guess yes on Cygwin. 397 - cygwin*) gl_cv_func_getcwd_null="guessing yes";; 398 - # If we don't know, assume the worst. 399 - diff --git a/m4/getdelim.m4 b/m4/getdelim.m4 400 - index bf17c57..e77c379 100644 401 - --- a/m4/getdelim.m4 402 - +++ b/m4/getdelim.m4 403 - @@ -1,4 +1,4 @@ 404 - -# getdelim.m4 serial 12 405 - +# getdelim.m4 serial 13 406 - 407 - dnl Copyright (C) 2005-2007, 2009-2019 Free Software Foundation, Inc. 408 - dnl 409 - @@ -11,6 +11,7 @@ AC_PREREQ([2.59]) 410 - AC_DEFUN([gl_FUNC_GETDELIM], 411 - [ 412 - AC_REQUIRE([gl_STDIO_H_DEFAULTS]) 413 - + AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles 414 - 415 - dnl Persuade glibc <stdio.h> to declare getdelim(). 416 - AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS]) 417 - @@ -21,9 +22,10 @@ AC_DEFUN([gl_FUNC_GETDELIM], 418 - if test $ac_cv_func_getdelim = yes; then 419 - HAVE_GETDELIM=1 420 - dnl Found it in some library. Verify that it works. 421 - - AC_CACHE_CHECK([for working getdelim function], [gl_cv_func_working_getdelim], 422 - - [echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data 423 - - AC_RUN_IFELSE([AC_LANG_SOURCE([[ 424 - + AC_CACHE_CHECK([for working getdelim function], 425 - + [gl_cv_func_working_getdelim], 426 - + [echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data 427 - + AC_RUN_IFELSE([AC_LANG_SOURCE([[ 428 - # include <stdio.h> 429 - # include <stdlib.h> 430 - # include <string.h> 431 - @@ -53,25 +55,31 @@ AC_DEFUN([gl_FUNC_GETDELIM], 432 - fclose (in); 433 - return 0; 434 - } 435 - - ]])], [gl_cv_func_working_getdelim=yes] dnl The library version works. 436 - - , [gl_cv_func_working_getdelim=no] dnl The library version does NOT work. 437 - - , dnl We're cross compiling. Assume it works on glibc2 systems. 438 - - [AC_EGREP_CPP([Lucky GNU user], 439 - - [ 440 - + ]])], 441 - + [gl_cv_func_working_getdelim=yes], 442 - + [gl_cv_func_working_getdelim=no], 443 - + [dnl We're cross compiling. 444 - + dnl Guess it works on glibc2 systems and musl systems. 445 - + AC_EGREP_CPP([Lucky GNU user], 446 - + [ 447 - #include <features.h> 448 - #ifdef __GNU_LIBRARY__ 449 - #if (__GLIBC__ >= 2) && !defined __UCLIBC__ 450 - Lucky GNU user 451 - #endif 452 - #endif 453 - - ], 454 - - [gl_cv_func_working_getdelim="guessing yes"], 455 - - [gl_cv_func_working_getdelim="guessing no"])] 456 - - )]) 457 - + ], 458 - + [gl_cv_func_working_getdelim="guessing yes"], 459 - + [case "$host_os" in 460 - + *-musl*) gl_cv_func_working_getdelim="guessing yes" ;; 461 - + *) gl_cv_func_working_getdelim="guessing no" ;; 462 - + esac 463 - + ]) 464 - + ]) 465 - + ]) 466 - case "$gl_cv_func_working_getdelim" in 467 - - *no) 468 - - REPLACE_GETDELIM=1 469 - - ;; 470 - + *yes) ;; 471 - + *) REPLACE_GETDELIM=1 ;; 472 - esac 473 - else 474 - HAVE_GETDELIM=0 475 - diff --git a/m4/getgroups.m4 b/m4/getgroups.m4 476 - index 2ce986e..c93447b 100644 477 - --- a/m4/getgroups.m4 478 - +++ b/m4/getgroups.m4 479 - @@ -1,4 +1,4 @@ 480 - -# serial 21 481 - +# serial 22 482 - 483 - dnl From Jim Meyering. 484 - dnl A wrapper around AC_FUNC_GETGROUPS. 485 - @@ -42,6 +42,8 @@ AC_DEFUN([AC_FUNC_GETGROUPS], 486 - [case "$host_os" in # (( 487 - # Guess yes on glibc systems. 488 - *-gnu* | gnu*) ac_cv_func_getgroups_works="guessing yes" ;; 489 - + # Guess yes on musl systems. 490 - + *-musl*) ac_cv_func_getgroups_works="guessing yes" ;; 491 - # If we don't know, assume the worst. 492 - *) ac_cv_func_getgroups_works="guessing no" ;; 493 - esac 494 - @@ -95,6 +97,8 @@ AC_DEFUN([gl_FUNC_GETGROUPS], 495 - [case "$host_os" in 496 - # Guess yes on glibc systems. 497 - *-gnu* | gnu*) gl_cv_func_getgroups_works="guessing yes" ;; 498 - + # Guess yes on musl systems. 499 - + *-musl*) gl_cv_func_getgroups_works="guessing yes" ;; 500 - # If we don't know, assume the worst. 501 - *) gl_cv_func_getgroups_works="guessing no" ;; 502 - esac 503 - diff --git a/m4/getline.m4 b/m4/getline.m4 504 - index 5b2ead2..32f771c 100644 505 - --- a/m4/getline.m4 506 - +++ b/m4/getline.m4 507 - @@ -1,4 +1,4 @@ 508 - -# getline.m4 serial 28 509 - +# getline.m4 serial 29 510 - 511 - dnl Copyright (C) 1998-2003, 2005-2007, 2009-2019 Free Software Foundation, 512 - dnl Inc. 513 - @@ -16,6 +16,7 @@ dnl to do with the function we need. 514 - AC_DEFUN([gl_FUNC_GETLINE], 515 - [ 516 - AC_REQUIRE([gl_STDIO_H_DEFAULTS]) 517 - + AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles 518 - 519 - dnl Persuade glibc <stdio.h> to declare getline(). 520 - AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS]) 521 - @@ -28,9 +29,10 @@ AC_DEFUN([gl_FUNC_GETLINE], 522 - gl_getline_needs_run_time_check=yes], 523 - [am_cv_func_working_getline=no]) 524 - if test $gl_getline_needs_run_time_check = yes; then 525 - - AC_CACHE_CHECK([for working getline function], [am_cv_func_working_getline], 526 - - [echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data 527 - - AC_RUN_IFELSE([AC_LANG_SOURCE([[ 528 - + AC_CACHE_CHECK([for working getline function], 529 - + [am_cv_func_working_getline], 530 - + [echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data 531 - + AC_RUN_IFELSE([AC_LANG_SOURCE([[ 532 - # include <stdio.h> 533 - # include <stdlib.h> 534 - # include <string.h> 535 - @@ -61,21 +63,28 @@ AC_DEFUN([gl_FUNC_GETLINE], 536 - fclose (in); 537 - return 0; 538 - } 539 - - ]])], [am_cv_func_working_getline=yes] dnl The library version works. 540 - - , [am_cv_func_working_getline=no] dnl The library version does NOT work. 541 - - , dnl We're cross compiling. Assume it works on glibc2 systems. 542 - - [AC_EGREP_CPP([Lucky GNU user], 543 - - [ 544 - + ]])], 545 - + [am_cv_func_working_getline=yes], 546 - + [am_cv_func_working_getline=no], 547 - + [dnl We're cross compiling. 548 - + dnl Guess it works on glibc2 systems and musl systems. 549 - + AC_EGREP_CPP([Lucky GNU user], 550 - + [ 551 - #include <features.h> 552 - #ifdef __GNU_LIBRARY__ 553 - #if (__GLIBC__ >= 2) && !defined __UCLIBC__ 554 - Lucky GNU user 555 - #endif 556 - #endif 557 - - ], 558 - - [am_cv_func_working_getline="guessing yes"], 559 - - [am_cv_func_working_getline="guessing no"])] 560 - - )]) 561 - + ], 562 - + [am_cv_func_working_getline="guessing yes"], 563 - + [case "$host_os" in 564 - + *-musl*) am_cv_func_working_getline="guessing yes" ;; 565 - + *) am_cv_func_working_getline="guessing no" ;; 566 - + esac 567 - + ]) 568 - + ]) 569 - + ]) 570 - fi 571 - 572 - if test $ac_cv_have_decl_getline = no; then 573 - @@ -83,7 +92,8 @@ AC_DEFUN([gl_FUNC_GETLINE], 574 - fi 575 - 576 - case "$am_cv_func_working_getline" in 577 - - *no) 578 - + *yes) ;; 579 - + *) 580 - dnl Set REPLACE_GETLINE always: Even if we have not found the broken 581 - dnl getline function among $LIBS, it may exist in libinet and the 582 - dnl executable may be linked with -linet. 583 - diff --git a/m4/gettimeofday.m4 b/m4/gettimeofday.m4 584 - index d29b4bf..5e2ef6f 100644 585 - --- a/m4/gettimeofday.m4 586 - +++ b/m4/gettimeofday.m4 587 - @@ -1,4 +1,4 @@ 588 - -# serial 25 589 - +# serial 26 590 - 591 - # Copyright (C) 2001-2003, 2005, 2007, 2009-2019 Free Software Foundation, Inc. 592 - # This file is free software; the Free Software Foundation 593 - @@ -105,6 +105,8 @@ AC_DEFUN([gl_FUNC_GETTIMEOFDAY_CLOBBER], 594 - case "$host_os" in 595 - # Guess all is fine on glibc systems. 596 - *-gnu* | gnu*) gl_cv_func_gettimeofday_clobber="guessing no" ;; 597 - + # Guess all is fine on musl systems. 598 - + *-musl*) gl_cv_func_gettimeofday_clobber="guessing no" ;; 599 - # Guess no on native Windows. 600 - mingw*) gl_cv_func_gettimeofday_clobber="guessing no" ;; 601 - # If we don't know, assume the worst. 602 - diff --git a/m4/link-follow.m4 b/m4/link-follow.m4 603 - index cbd2dca..8ac7301 100644 604 - --- a/m4/link-follow.m4 605 - +++ b/m4/link-follow.m4 606 - @@ -1,4 +1,4 @@ 607 - -# serial 20 608 - +# serial 21 609 - dnl Run a program to determine whether link(2) follows symlinks. 610 - dnl Set LINK_FOLLOWS_SYMLINKS accordingly. 611 - 612 - @@ -88,6 +88,8 @@ AC_DEFUN([gl_FUNC_LINK_FOLLOWS_SYMLINK], 613 - case "$host_os" in 614 - # On glibc/Linux we know the result. 615 - linux*-gnu* | gnu*) gl_cv_func_link_follows_symlink="guessing no" ;; 616 - + # On musl/Linux we know the result. 617 - + linux*-musl*) gl_cv_func_link_follows_symlink="guessing no" ;; 618 - # Otherwise, we don't know. 619 - *) gl_cv_func_link_follows_symlink=unknown ;; 620 - esac 621 - diff --git a/m4/malloc.m4 b/m4/malloc.m4 622 - index b9b8d4b..c469c45 100644 623 - --- a/m4/malloc.m4 624 - +++ b/m4/malloc.m4 625 - @@ -1,4 +1,4 @@ 626 - -# malloc.m4 serial 17 627 - +# malloc.m4 serial 19 628 - dnl Copyright (C) 2007, 2009-2019 Free Software Foundation, Inc. 629 - dnl This file is free software; the Free Software Foundation 630 - dnl gives unlimited permission to copy and/or distribute it, 631 - @@ -32,7 +32,7 @@ AC_DEFUN([_AC_FUNC_MALLOC_IF], 632 - [ac_cv_func_malloc_0_nonnull=no], 633 - [case "$host_os" in 634 - # Guess yes on platforms where we know the result. 635 - - *-gnu* | gnu* | freebsd* | netbsd* | openbsd* \ 636 - + *-gnu* | gnu* | *-musl* | freebsd* | netbsd* | openbsd* \ 637 - | hpux* | solaris* | cygwin* | mingw*) 638 - ac_cv_func_malloc_0_nonnull="guessing yes" ;; 639 - # If we don't know, assume the worst. 640 - diff --git a/m4/mkdir.m4 b/m4/mkdir.m4 641 - index 4cd9590..366a3cd 100644 642 - --- a/m4/mkdir.m4 643 - +++ b/m4/mkdir.m4 644 - @@ -1,4 +1,4 @@ 645 - -# serial 14 646 - +# serial 15 647 - 648 - # Copyright (C) 2001, 2003-2004, 2006, 2008-2019 Free Software Foundation, Inc. 649 - # This file is free software; the Free Software Foundation 650 - @@ -62,6 +62,8 @@ AC_DEFUN([gl_FUNC_MKDIR], 651 - [case "$host_os" in 652 - # Guess yes on glibc systems. 653 - *-gnu* | gnu*) gl_cv_func_mkdir_trailing_dot_works="guessing yes" ;; 654 - + # Guess yes on musl systems. 655 - + *-musl*) gl_cv_func_mkdir_trailing_dot_works="guessing yes" ;; 656 - # Guess no on native Windows. 657 - mingw*) gl_cv_func_mkdir_trailing_dot_works="guessing no" ;; 658 - # If we don't know, assume the worst. 659 - diff --git a/m4/mkstemp.m4 b/m4/mkstemp.m4 660 - index ae24c3b..1b15c2e 100644 661 - --- a/m4/mkstemp.m4 662 - +++ b/m4/mkstemp.m4 663 - @@ -1,4 +1,4 @@ 664 - -#serial 25 665 - +#serial 26 666 - 667 - # Copyright (C) 2001, 2003-2007, 2009-2019 Free Software Foundation, Inc. 668 - # This file is free software; the Free Software Foundation 669 - @@ -59,6 +59,8 @@ AC_DEFUN([gl_FUNC_MKSTEMP], 670 - [case "$host_os" in 671 - # Guess yes on glibc systems. 672 - *-gnu* | gnu*) gl_cv_func_working_mkstemp="guessing yes" ;; 673 - + # Guess yes on musl systems. 674 - + *-musl*) gl_cv_func_working_mkstemp="guessing yes" ;; 675 - # Guess no on native Windows. 676 - mingw*) gl_cv_func_working_mkstemp="guessing no" ;; 677 - # If we don't know, assume the worst. 678 - diff --git a/m4/perror.m4 b/m4/perror.m4 679 - index 335be72..08e2db1 100644 680 - --- a/m4/perror.m4 681 - +++ b/m4/perror.m4 682 - @@ -1,4 +1,4 @@ 683 - -# perror.m4 serial 7 684 - +# perror.m4 serial 8 685 - dnl Copyright (C) 2008-2019 Free Software Foundation, Inc. 686 - dnl This file is free software; the Free Software Foundation 687 - dnl gives unlimited permission to copy and/or distribute it, 688 - @@ -48,10 +48,12 @@ AC_DEFUN([gl_FUNC_PERROR], 689 - rm -rf conftest.txt1 conftest.txt2], 690 - [gl_cv_func_perror_works=no], 691 - [case "$host_os" in 692 - - # Guess yes on native Windows. 693 - - mingw*) gl_cv_func_perror_works="guessing yes" ;; 694 - - # Otherwise guess no. 695 - - *) gl_cv_func_perror_works="guessing no" ;; 696 - + # Guess yes on musl systems. 697 - + *-musl*) gl_cv_func_perror_works="guessing yes" ;; 698 - + # Guess yes on native Windows. 699 - + mingw*) gl_cv_func_perror_works="guessing yes" ;; 700 - + # Otherwise guess no. 701 - + *) gl_cv_func_perror_works="guessing no" ;; 702 - esac 703 - ]) 704 - ]) 705 - diff --git a/m4/printf.m4 b/m4/printf.m4 706 - index cbf6ae4..6d2280e 100644 707 - --- a/m4/printf.m4 708 - +++ b/m4/printf.m4 709 - @@ -1,4 +1,4 @@ 710 - -# printf.m4 serial 60 711 - +# printf.m4 serial 61 712 - dnl Copyright (C) 2003, 2007-2019 Free Software Foundation, Inc. 713 - dnl This file is free software; the Free Software Foundation 714 - dnl gives unlimited permission to copy and/or distribute it, 715 - @@ -62,6 +62,8 @@ int main () 716 - changequote(,)dnl 717 - # Guess yes on glibc systems. 718 - *-gnu* | gnu*) gl_cv_func_printf_sizes_c99="guessing yes";; 719 - + # Guess yes on musl systems. 720 - + *-musl*) gl_cv_func_printf_sizes_c99="guessing yes";; 721 - # Guess yes on FreeBSD >= 5. 722 - freebsd[1-4].*) gl_cv_func_printf_sizes_c99="guessing no";; 723 - freebsd* | kfreebsd*) gl_cv_func_printf_sizes_c99="guessing yes";; 724 - @@ -240,6 +242,8 @@ int main () 725 - changequote(,)dnl 726 - # Guess yes on glibc systems. 727 - *-gnu* | gnu*) gl_cv_func_printf_infinite="guessing yes";; 728 - + # Guess yes on musl systems. 729 - + *-musl*) gl_cv_func_printf_infinite="guessing yes";; 730 - # Guess yes on FreeBSD >= 6. 731 - freebsd[1-5].*) gl_cv_func_printf_infinite="guessing no";; 732 - freebsd* | kfreebsd*) gl_cv_func_printf_infinite="guessing yes";; 733 - @@ -457,6 +461,8 @@ int main () 734 - changequote(,)dnl 735 - # Guess yes on glibc systems. 736 - *-gnu* | gnu*) gl_cv_func_printf_infinite_long_double="guessing yes";; 737 - + # Guess yes on musl systems. 738 - + *-musl*) gl_cv_func_printf_infinite_long_double="guessing yes";; 739 - # Guess yes on FreeBSD >= 6. 740 - freebsd[1-5].*) gl_cv_func_printf_infinite_long_double="guessing no";; 741 - freebsd* | kfreebsd*) gl_cv_func_printf_infinite_long_double="guessing yes";; 742 - @@ -575,6 +581,8 @@ int main () 743 - [gl_cv_func_printf_directive_a="guessing yes"], 744 - [gl_cv_func_printf_directive_a="guessing no"]) 745 - ;; 746 - + # Guess yes on musl systems. 747 - + *-musl*) gl_cv_func_printf_directive_a="guessing yes";; 748 - # Guess no on Android. 749 - linux*-android*) gl_cv_func_printf_directive_a="guessing no";; 750 - # Guess no on native Windows. 751 - @@ -625,6 +633,8 @@ int main () 752 - changequote(,)dnl 753 - # Guess yes on glibc systems. 754 - *-gnu* | gnu*) gl_cv_func_printf_directive_f="guessing yes";; 755 - + # Guess yes on musl systems. 756 - + *-musl*) gl_cv_func_printf_directive_f="guessing yes";; 757 - # Guess yes on FreeBSD >= 6. 758 - freebsd[1-5].*) gl_cv_func_printf_directive_f="guessing no";; 759 - freebsd* | kfreebsd*) gl_cv_func_printf_directive_f="guessing yes";; 760 - @@ -960,6 +970,8 @@ changequote(,)dnl 761 - case "$host_os" in 762 - # Guess yes on glibc systems. 763 - *-gnu* | gnu*) gl_cv_func_printf_flag_zero="guessing yes";; 764 - + # Guess yes on musl systems. 765 - + *-musl*) gl_cv_func_printf_flag_zero="guessing yes";; 766 - # Guess yes on BeOS. 767 - beos*) gl_cv_func_printf_flag_zero="guessing yes";; 768 - # Guess no on Android. 769 - @@ -1206,6 +1218,8 @@ changequote(,)dnl 770 - case "$host_os" in 771 - # Guess yes on glibc systems. 772 - *-gnu* | gnu*) gl_cv_func_snprintf_truncation_c99="guessing yes";; 773 - + # Guess yes on musl systems. 774 - + *-musl*) gl_cv_func_snprintf_truncation_c99="guessing yes";; 775 - # Guess yes on FreeBSD >= 5. 776 - freebsd[1-4].*) gl_cv_func_snprintf_truncation_c99="guessing no";; 777 - freebsd* | kfreebsd*) gl_cv_func_snprintf_truncation_c99="guessing yes";; 778 - @@ -1308,6 +1322,8 @@ int main () 779 - changequote(,)dnl 780 - # Guess yes on glibc systems. 781 - *-gnu* | gnu*) gl_cv_func_snprintf_retval_c99="guessing yes";; 782 - + # Guess yes on musl systems. 783 - + *-musl*) gl_cv_func_snprintf_retval_c99="guessing yes";; 784 - # Guess yes on FreeBSD >= 5. 785 - freebsd[1-4].*) gl_cv_func_snprintf_retval_c99="guessing no";; 786 - freebsd* | kfreebsd*) gl_cv_func_snprintf_retval_c99="guessing yes";; 787 - @@ -1400,6 +1416,8 @@ changequote(,)dnl 788 - case "$host_os" in 789 - # Guess yes on glibc systems. 790 - *-gnu* | gnu*) gl_cv_func_snprintf_directive_n="guessing yes";; 791 - + # Guess yes on musl systems. 792 - + *-musl*) gl_cv_func_snprintf_directive_n="guessing yes";; 793 - # Guess yes on FreeBSD >= 5. 794 - freebsd[1-4].*) gl_cv_func_snprintf_directive_n="guessing no";; 795 - freebsd* | kfreebsd*) gl_cv_func_snprintf_directive_n="guessing yes";; 796 - @@ -1554,6 +1572,8 @@ changequote(,)dnl 797 - case "$host_os" in 798 - # Guess yes on glibc systems. 799 - *-gnu* | gnu*) gl_cv_func_vsnprintf_zerosize_c99="guessing yes";; 800 - + # Guess yes on musl systems. 801 - + *-musl*) gl_cv_func_vsnprintf_zerosize_c99="guessing yes";; 802 - # Guess yes on FreeBSD >= 5. 803 - freebsd[1-4].*) gl_cv_func_vsnprintf_zerosize_c99="guessing no";; 804 - freebsd* | kfreebsd*) gl_cv_func_vsnprintf_zerosize_c99="guessing yes";; 805 - diff --git a/m4/putenv.m4 b/m4/putenv.m4 806 - index f8960f6..342ba26 100644 807 - --- a/m4/putenv.m4 808 - +++ b/m4/putenv.m4 809 - @@ -1,4 +1,4 @@ 810 - -# putenv.m4 serial 22 811 - +# putenv.m4 serial 23 812 - dnl Copyright (C) 2002-2019 Free Software Foundation, Inc. 813 - dnl This file is free software; the Free Software Foundation 814 - dnl gives unlimited permission to copy and/or distribute it, 815 - @@ -36,6 +36,8 @@ AC_DEFUN([gl_FUNC_PUTENV], 816 - [case "$host_os" in 817 - # Guess yes on glibc systems. 818 - *-gnu* | gnu*) gl_cv_func_svid_putenv="guessing yes" ;; 819 - + # Guess yes on musl systems. 820 - + *-musl*) gl_cv_func_svid_putenv="guessing yes" ;; 821 - # Guess no on native Windows. 822 - mingw*) gl_cv_func_svid_putenv="guessing no" ;; 823 - # If we don't know, assume the worst. 824 - diff --git a/m4/realloc.m4 b/m4/realloc.m4 825 - index f9f15ad..93066e8 100644 826 - --- a/m4/realloc.m4 827 - +++ b/m4/realloc.m4 828 - @@ -1,4 +1,4 @@ 829 - -# realloc.m4 serial 15 830 - +# realloc.m4 serial 17 831 - dnl Copyright (C) 2007, 2009-2019 Free Software Foundation, Inc. 832 - dnl This file is free software; the Free Software Foundation 833 - dnl gives unlimited permission to copy and/or distribute it, 834 - @@ -32,7 +32,7 @@ AC_DEFUN([_AC_FUNC_REALLOC_IF], 835 - [ac_cv_func_realloc_0_nonnull=no], 836 - [case "$host_os" in 837 - # Guess yes on platforms where we know the result. 838 - - *-gnu* | gnu* | freebsd* | netbsd* | openbsd* \ 839 - + *-gnu* | gnu* | *-musl* | freebsd* | netbsd* | openbsd* \ 840 - | hpux* | solaris* | cygwin* | mingw*) 841 - ac_cv_func_realloc_0_nonnull="guessing yes" ;; 842 - # If we don't know, assume the worst. 843 - diff --git a/m4/setenv.m4 b/m4/setenv.m4 844 - index 6101274..a8f83d6 100644 845 - --- a/m4/setenv.m4 846 - +++ b/m4/setenv.m4 847 - @@ -1,4 +1,4 @@ 848 - -# setenv.m4 serial 27 849 - +# setenv.m4 serial 28 850 - dnl Copyright (C) 2001-2004, 2006-2019 Free Software Foundation, Inc. 851 - dnl This file is free software; the Free Software Foundation 852 - dnl gives unlimited permission to copy and/or distribute it, 853 - @@ -37,6 +37,8 @@ AC_DEFUN([gl_FUNC_SETENV], 854 - [case "$host_os" in 855 - # Guess yes on glibc systems. 856 - *-gnu* | gnu*) gl_cv_func_setenv_works="guessing yes" ;; 857 - + # Guess yes on musl systems. 858 - + *-musl*) gl_cv_func_setenv_works="guessing yes" ;; 859 - # If we don't know, assume the worst. 860 - *) gl_cv_func_setenv_works="guessing no" ;; 861 - esac 862 - diff --git a/m4/signbit.m4 b/m4/signbit.m4 863 - index bf5bce5..f7f2f3d 100644 864 - --- a/m4/signbit.m4 865 - +++ b/m4/signbit.m4 866 - @@ -1,4 +1,4 @@ 867 - -# signbit.m4 serial 16 868 - +# signbit.m4 serial 17 869 - dnl Copyright (C) 2007-2019 Free Software Foundation, Inc. 870 - dnl This file is free software; the Free Software Foundation 871 - dnl gives unlimited permission to copy and/or distribute it, 872 - @@ -31,6 +31,8 @@ AC_DEFUN([gl_SIGNBIT], 873 - [case "$host_os" in 874 - # Guess yes on glibc systems. 875 - *-gnu* | gnu*) gl_cv_func_signbit="guessing yes" ;; 876 - + # Guess yes on musl systems. 877 - + *-musl*) gl_cv_func_signbit="guessing yes" ;; 878 - # Guess yes on native Windows. 879 - mingw*) gl_cv_func_signbit="guessing yes" ;; 880 - # If we don't know, assume the worst. 881 - @@ -62,6 +64,8 @@ AC_DEFUN([gl_SIGNBIT], 882 - [case "$host_os" in 883 - # Guess yes on glibc systems. 884 - *-gnu* | gnu*) gl_cv_func_signbit_gcc="guessing yes" ;; 885 - + # Guess yes on musl systems. 886 - + *-musl*) gl_cv_func_signbit_gcc="guessing yes" ;; 887 - # Guess yes on mingw, no on MSVC. 888 - mingw*) if test -n "$GCC"; then 889 - gl_cv_func_signbit_gcc="guessing yes" 890 - diff --git a/m4/sleep.m4 b/m4/sleep.m4 891 - index 5f71cc7..7bab467 100644 892 - --- a/m4/sleep.m4 893 - +++ b/m4/sleep.m4 894 - @@ -1,4 +1,4 @@ 895 - -# sleep.m4 serial 9 896 - +# sleep.m4 serial 10 897 - dnl Copyright (C) 2007-2019 Free Software Foundation, Inc. 898 - dnl This file is free software; the Free Software Foundation 899 - dnl gives unlimited permission to copy and/or distribute it, 900 - @@ -48,6 +48,8 @@ handle_alarm (int sig) 901 - [case "$host_os" in 902 - # Guess yes on glibc systems. 903 - *-gnu* | gnu*) gl_cv_func_sleep_works="guessing yes" ;; 904 - + # Guess yes on musl systems. 905 - + *-musl*) gl_cv_func_sleep_works="guessing yes" ;; 906 - # Guess no on native Windows. 907 - mingw*) gl_cv_func_sleep_works="guessing no" ;; 908 - # If we don't know, assume the worst. 909 - diff --git a/m4/stpncpy.m4 b/m4/stpncpy.m4 910 - index 83425dd..f8e1a7c 100644 911 - --- a/m4/stpncpy.m4 912 - +++ b/m4/stpncpy.m4 913 - @@ -1,4 +1,4 @@ 914 - -# stpncpy.m4 serial 16 915 - +# stpncpy.m4 serial 17 916 - dnl Copyright (C) 2002-2003, 2005-2007, 2009-2019 Free Software Foundation, 917 - dnl Inc. 918 - dnl This file is free software; the Free Software Foundation 919 - @@ -7,6 +7,8 @@ dnl with or without modifications, as long as this notice is preserved. 920 - 921 - AC_DEFUN([gl_FUNC_STPNCPY], 922 - [ 923 - + AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles 924 - + 925 - dnl Persuade glibc <string.h> to declare stpncpy(). 926 - AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS]) 927 - 928 - @@ -69,12 +71,18 @@ int main () 929 - ]])], 930 - [gl_cv_func_stpncpy=yes], 931 - [gl_cv_func_stpncpy=no], 932 - - [AC_EGREP_CPP([Thanks for using GNU], [ 933 - + [dnl Guess yes on glibc systems and musl systems. 934 - + AC_EGREP_CPP([Thanks for using GNU], [ 935 - #include <features.h> 936 - #ifdef __GNU_LIBRARY__ 937 - Thanks for using GNU 938 - #endif 939 - -], [gl_cv_func_stpncpy="guessing yes"], [gl_cv_func_stpncpy="guessing no"]) 940 - +], [gl_cv_func_stpncpy="guessing yes"], 941 - + [case "$host_os" in 942 - + *-musl*) gl_cv_func_stpncpy="guessing yes" ;; 943 - + *) gl_cv_func_stpncpy="guessing no" ;; 944 - + esac 945 - + ]) 946 - ]) 947 - ]) 948 - case "$gl_cv_func_stpncpy" in 949 - diff --git a/m4/strerror.m4 b/m4/strerror.m4 950 - index b452f7f..2c90f31 100644 951 - --- a/m4/strerror.m4 952 - +++ b/m4/strerror.m4 953 - @@ -1,4 +1,4 @@ 954 - -# strerror.m4 serial 19 955 - +# strerror.m4 serial 20 956 - dnl Copyright (C) 2002, 2007-2019 Free Software Foundation, Inc. 957 - dnl This file is free software; the Free Software Foundation 958 - dnl gives unlimited permission to copy and/or distribute it, 959 - @@ -26,6 +26,8 @@ AC_DEFUN([gl_FUNC_STRERROR], 960 - [case "$host_os" in 961 - # Guess yes on glibc systems. 962 - *-gnu* | gnu*) gl_cv_func_working_strerror="guessing yes" ;; 963 - + # Guess yes on musl systems. 964 - + *-musl*) gl_cv_func_working_strerror="guessing yes" ;; 965 - # If we don't know, assume the worst. 966 - *) gl_cv_func_working_strerror="guessing no" ;; 967 - esac 968 - @@ -80,6 +82,8 @@ AC_DEFUN([gl_FUNC_STRERROR_0], 969 - [case "$host_os" in 970 - # Guess yes on glibc systems. 971 - *-gnu* | gnu*) gl_cv_func_strerror_0_works="guessing yes" ;; 972 - + # Guess yes on musl systems. 973 - + *-musl*) gl_cv_func_strerror_0_works="guessing yes" ;; 974 - # Guess yes on native Windows. 975 - mingw*) gl_cv_func_strerror_0_works="guessing yes" ;; 976 - # If we don't know, assume the worst. 977 - diff --git a/m4/strtod.m4 b/m4/strtod.m4 978 - index 9912217..d68ab75 100644 979 - --- a/m4/strtod.m4 980 - +++ b/m4/strtod.m4 981 - @@ -1,4 +1,4 @@ 982 - -# strtod.m4 serial 24 983 - +# strtod.m4 serial 25 984 - dnl Copyright (C) 2002-2003, 2006-2019 Free Software Foundation, Inc. 985 - dnl This file is free software; the Free Software Foundation 986 - dnl gives unlimited permission to copy and/or distribute it, 987 - @@ -115,9 +115,11 @@ numeric_equal (double x, double y) 988 - ], 989 - [gl_cv_func_strtod_works="guessing yes"], 990 - [case "$host_os" in 991 - - # Guess yes on native Windows. 992 - - mingw*) gl_cv_func_strtod_works="guessing yes" ;; 993 - - *) gl_cv_func_strtod_works="guessing no" ;; 994 - + # Guess yes on musl systems. 995 - + *-musl*) gl_cv_func_strtod_works="guessing yes" ;; 996 - + # Guess yes on native Windows. 997 - + mingw*) gl_cv_func_strtod_works="guessing yes" ;; 998 - + *) gl_cv_func_strtod_works="guessing no" ;; 999 - esac 1000 - ]) 1001 - ]) 1002 - diff --git a/m4/strtold.m4 b/m4/strtold.m4 1003 - index 16b4eda..17125fe 100644 1004 - --- a/m4/strtold.m4 1005 - +++ b/m4/strtold.m4 1006 - @@ -1,4 +1,4 @@ 1007 - -# strtold.m4 serial 2 1008 - +# strtold.m4 serial 4 1009 - dnl Copyright (C) 2002-2003, 2006-2019 Free Software Foundation, Inc. 1010 - dnl This file is free software; the Free Software Foundation 1011 - dnl gives unlimited permission to copy and/or distribute it, 1012 - @@ -98,7 +98,12 @@ numeric_equal (long double x, long double y) 1013 - #endif 1014 - ], 1015 - [gl_cv_func_strtold_works="guessing yes"], 1016 - - [gl_cv_func_strtod_works="guessing no"]) 1017 - + [case "$host_os" in 1018 - + # Guess yes on musl systems. 1019 - + *-musl*) gl_cv_func_strtold_works="guessing yes" ;; 1020 - + *) gl_cv_func_strtold_works="guessing no" ;; 1021 - + esac 1022 - + ]) 1023 - ]) 1024 - ]) 1025 - case "$gl_cv_func_strtold_works" in 1026 - diff --git a/m4/tzset.m4 b/m4/tzset.m4 1027 - index 1278801..afdfa8e 100644 1028 - --- a/m4/tzset.m4 1029 - +++ b/m4/tzset.m4 1030 - @@ -1,4 +1,4 @@ 1031 - -# serial 11 1032 - +# serial 12 1033 - 1034 - # Copyright (C) 2003, 2007, 2009-2019 Free Software Foundation, Inc. 1035 - # This file is free software; the Free Software Foundation 1036 - @@ -70,6 +70,8 @@ main () 1037 - [case "$host_os" in 1038 - # Guess all is fine on glibc systems. 1039 - *-gnu* | gnu*) gl_cv_func_tzset_clobber="guessing no" ;; 1040 - + # Guess all is fine on musl systems. 1041 - + *-musl*) gl_cv_func_tzset_clobber="guessing no" ;; 1042 - # Guess no on native Windows. 1043 - mingw*) gl_cv_func_tzset_clobber="guessing no" ;; 1044 - # If we don't know, assume the worst. 1045 - diff --git a/m4/ungetc.m4 b/m4/ungetc.m4 1046 - index ab8757b..08baf33 100644 1047 - --- a/m4/ungetc.m4 1048 - +++ b/m4/ungetc.m4 1049 - @@ -1,4 +1,4 @@ 1050 - -# ungetc.m4 serial 6 1051 - +# ungetc.m4 serial 7 1052 - dnl Copyright (C) 2009-2019 Free Software Foundation, Inc. 1053 - dnl This file is free software; the Free Software Foundation 1054 - dnl gives unlimited permission to copy and/or distribute it, 1055 - @@ -41,12 +41,16 @@ AC_DEFUN_ONCE([gl_FUNC_UNGETC_WORKS], 1056 - remove ("conftest.tmp");])], 1057 - [gl_cv_func_ungetc_works=yes], [gl_cv_func_ungetc_works=no], 1058 - [case "$host_os" in 1059 - - # Guess yes on glibc and bionic systems. 1060 - - *-gnu* | gnu* | *-android*) gl_cv_func_ungetc_works="guessing yes" ;; 1061 - - # Guess yes on native Windows. 1062 - - mingw*) gl_cv_func_ungetc_works="guessing yes" ;; 1063 - - # If we don't know, assume the worst. 1064 - - *) gl_cv_func_ungetc_works="guessing no" ;; 1065 - + # Guess yes on glibc systems. 1066 - + *-gnu* | gnu*) gl_cv_func_ungetc_works="guessing yes" ;; 1067 - + # Guess yes on musl systems. 1068 - + *-musl*) gl_cv_func_ungetc_works="guessing yes" ;; 1069 - + # Guess yes on bionic systems. 1070 - + *-android*) gl_cv_func_ungetc_works="guessing yes" ;; 1071 - + # Guess yes on native Windows. 1072 - + mingw*) gl_cv_func_ungetc_works="guessing yes" ;; 1073 - + # If we don't know, assume the worst. 1074 - + *) gl_cv_func_ungetc_works="guessing no" ;; 1075 - esac 1076 - ]) 1077 - ]) 1078 - diff --git a/m4/usleep.m4 b/m4/usleep.m4 1079 - index 59605a8..4a6bff0 100644 1080 - --- a/m4/usleep.m4 1081 - +++ b/m4/usleep.m4 1082 - @@ -1,4 +1,4 @@ 1083 - -# usleep.m4 serial 5 1084 - +# usleep.m4 serial 6 1085 - dnl Copyright (C) 2009-2019 Free Software Foundation, Inc. 1086 - dnl This file is free software; the Free Software Foundation 1087 - dnl gives unlimited permission to copy and/or distribute it, 1088 - @@ -31,6 +31,8 @@ AC_DEFUN([gl_FUNC_USLEEP], 1089 - [case "$host_os" in 1090 - # Guess yes on glibc systems. 1091 - *-gnu* | gnu*) gl_cv_func_usleep_works="guessing yes" ;; 1092 - + # Guess yes on musl systems. 1093 - + *-musl*) gl_cv_func_usleep_works="guessing yes" ;; 1094 - # Guess no on native Windows. 1095 - mingw*) gl_cv_func_usleep_works="guessing no" ;; 1096 - # If we don't know, assume the worst. 1097 - diff --git a/m4/utimes.m4 b/m4/utimes.m4 1098 - index 7209b6d..5806d8f 100644 1099 - --- a/m4/utimes.m4 1100 - +++ b/m4/utimes.m4 1101 - @@ -1,5 +1,5 @@ 1102 - # Detect some bugs in glibc's implementation of utimes. 1103 - -# serial 5 1104 - +# serial 6 1105 - 1106 - dnl Copyright (C) 2003-2005, 2009-2019 Free Software Foundation, Inc. 1107 - dnl This file is free software; the Free Software Foundation 1108 - @@ -143,9 +143,11 @@ main () 1109 - [gl_cv_func_working_utimes=yes], 1110 - [gl_cv_func_working_utimes=no], 1111 - [case "$host_os" in 1112 - - # Guess no on native Windows. 1113 - - mingw*) gl_cv_func_working_utimes="guessing no" ;; 1114 - - *) gl_cv_func_working_utimes="guessing no" ;; 1115 - + # Guess yes on musl systems. 1116 - + *-musl*) gl_cv_func_working_utimes="guessing yes" ;; 1117 - + # Guess no on native Windows. 1118 - + mingw*) gl_cv_func_working_utimes="guessing no" ;; 1119 - + *) gl_cv_func_working_utimes="guessing no" ;; 1120 - esac 1121 - ]) 1122 - ]) 1123 - diff --git a/m4/wcwidth.m4 b/m4/wcwidth.m4 1124 - index baa2002..3952fd2 100644 1125 - --- a/m4/wcwidth.m4 1126 - +++ b/m4/wcwidth.m4 1127 - @@ -1,4 +1,4 @@ 1128 - -# wcwidth.m4 serial 27 1129 - +# wcwidth.m4 serial 28 1130 - dnl Copyright (C) 2006-2019 Free Software Foundation, Inc. 1131 - dnl This file is free software; the Free Software Foundation 1132 - dnl gives unlimited permission to copy and/or distribute it, 1133 - @@ -98,9 +98,13 @@ int main () 1134 - [ 1135 - changequote(,)dnl 1136 - case "$host_os" in 1137 - - # Guess yes on glibc and AIX 7 systems. 1138 - - *-gnu* | gnu* | aix[7-9]*) gl_cv_func_wcwidth_works="guessing yes";; 1139 - - *) gl_cv_func_wcwidth_works="guessing no";; 1140 - + # Guess yes on glibc systems. 1141 - + *-gnu* | gnu*) gl_cv_func_wcwidth_works="guessing yes";; 1142 - + # Guess yes on musl systems. 1143 - + *-musl*) gl_cv_func_wcwidth_works="guessing yes";; 1144 - + # Guess yes on AIX 7 systems. 1145 - + aix[7-9]*) gl_cv_func_wcwidth_works="guessing yes";; 1146 - + *) gl_cv_func_wcwidth_works="guessing no";; 1147 - esac 1148 - changequote([,])dnl 1149 - ]) 1150 - -- 1151 - 1.9.1 1152 - 1153 -
+4 -9
pkgs/tools/misc/coreutils/default.nix
··· 22 22 23 23 stdenv.mkDerivation (rec { 24 24 pname = "coreutils"; 25 - version = "8.31"; 25 + version = "8.32"; 26 26 27 27 src = fetchurl { 28 28 url = "mirror://gnu/${pname}/${pname}-${version}.tar.xz"; 29 - sha256 = "1zg9m79x1i2nifj4kb0waf9x3i5h6ydkypkjnbsb9rnwis8rqypz"; 29 + sha256 = "sha256-RFjY3nhJ30TMqxXhaxVIsoUiTbul8I+sBwwcDgvMTPo="; 30 30 }; 31 31 32 32 patches = optional stdenv.hostPlatform.isCygwin ./coreutils-8.23-4.cygwin.patch 33 - # Fix failing test with musl. See https://lists.gnu.org/r/coreutils/2019-05/msg00031.html 34 - # To be removed in coreutils-8.32. 35 - ++ optional stdenv.hostPlatform.isMusl ./avoid-false-positive-in-date-debug-test.patch 36 - # Fix compilation in musl-cross environments. To be removed in coreutils-8.32. 37 - ++ optional stdenv.hostPlatform.isMusl ./coreutils-8.31-musl-cross.patch 38 - # Fix compilation in android-cross environments. To be removed in coreutils-8.32. 39 - ++ [ ./coreutils-8.31-android-cross.patch ]; 33 + # included on coreutils master; TODO: apply unconditionally, I guess 34 + ++ optional stdenv.hostPlatform.isAarch64 ./sys-getdents-undeclared.patch; 40 35 41 36 postPatch = '' 42 37 # The test tends to fail on btrfs,f2fs and maybe other unusual filesystems.
+100
pkgs/tools/misc/coreutils/sys-getdents-undeclared.patch
··· 1 + From 10fcb97bd728f09d4a027eddf8ad2900f0819b0a Mon Sep 17 00:00:00 2001 2 + From: Paul Eggert <eggert@cs.ucla.edu> 3 + Date: Thu, 5 Mar 2020 17:25:29 -0800 4 + Subject: ls: restore 8.31 behavior on removed directories 5 + 6 + * NEWS: Mention this. 7 + * src/ls.c: Do not include <sys/sycall.h> 8 + (print_dir): Don't worry about whether the directory is removed. 9 + * tests/ls/removed-directory.sh: Adjust to match new (i.e., old) 10 + behavior. 11 + --- 12 + NEWS (removed diff in nixpkgs)| 6 ++++++ 13 + src/ls.c | 22 ---------------------- 14 + tests/ls/removed-directory.sh | 10 ++-------- 15 + 3 files changed, 8 insertions(+), 30 deletions(-) 16 + 17 + diff --git a/src/ls.c b/src/ls.c 18 + index 24b983287..4acf5f44d 100644 19 + --- a/src/ls.c 20 + +++ b/src/ls.c 21 + @@ -49,10 +49,6 @@ 22 + # include <sys/ptem.h> 23 + #endif 24 + 25 + -#ifdef __linux__ 26 + -# include <sys/syscall.h> 27 + -#endif 28 + - 29 + #include <stdio.h> 30 + #include <assert.h> 31 + #include <setjmp.h> 32 + @@ -2896,7 +2892,6 @@ print_dir (char const *name, char const *realname, bool command_line_arg) 33 + struct dirent *next; 34 + uintmax_t total_blocks = 0; 35 + static bool first = true; 36 + - bool found_any_entries = false; 37 + 38 + errno = 0; 39 + dirp = opendir (name); 40 + @@ -2972,7 +2967,6 @@ print_dir (char const *name, char const *realname, bool command_line_arg) 41 + next = readdir (dirp); 42 + if (next) 43 + { 44 + - found_any_entries = true; 45 + if (! file_ignored (next->d_name)) 46 + { 47 + enum filetype type = unknown; 48 + @@ -3018,22 +3012,6 @@ print_dir (char const *name, char const *realname, bool command_line_arg) 49 + if (errno != EOVERFLOW) 50 + break; 51 + } 52 + -#ifdef __linux__ 53 + - else if (! found_any_entries) 54 + - { 55 + - /* If readdir finds no directory entries at all, not even "." or 56 + - "..", then double check that the directory exists. */ 57 + - if (syscall (SYS_getdents, dirfd (dirp), NULL, 0) == -1 58 + - && errno != EINVAL) 59 + - { 60 + - /* We exclude EINVAL as that pertains to buffer handling, 61 + - and we've passed NULL as the buffer for simplicity. 62 + - ENOENT is returned if appropriate before buffer handling. */ 63 + - file_failure (command_line_arg, _("reading directory %s"), name); 64 + - } 65 + - break; 66 + - } 67 + -#endif 68 + else 69 + break; 70 + 71 + diff --git a/tests/ls/removed-directory.sh b/tests/ls/removed-directory.sh 72 + index e8c835dab..fe8f929a1 100755 73 + --- a/tests/ls/removed-directory.sh 74 + +++ b/tests/ls/removed-directory.sh 75 + @@ -26,20 +26,14 @@ case $host_triplet in 76 + *) skip_ 'non linux kernel' ;; 77 + esac 78 + 79 + -LS_FAILURE=2 80 + - 81 + -cat <<\EOF >exp-err || framework_failure_ 82 + -ls: reading directory '.': No such file or directory 83 + -EOF 84 + - 85 + cwd=$(pwd) 86 + mkdir d || framework_failure_ 87 + cd d || framework_failure_ 88 + rmdir ../d || framework_failure_ 89 + 90 + -returns_ $LS_FAILURE ls >../out 2>../err || fail=1 91 + +ls >../out 2>../err || fail=1 92 + cd "$cwd" || framework_failure_ 93 + compare /dev/null out || fail=1 94 + -compare exp-err err || fail=1 95 + +compare /dev/null err || fail=1 96 + 97 + Exit $fail 98 + -- 99 + cgit v1.2.1 100 +
+2 -2
pkgs/tools/networking/curl/default.nix
··· 34 34 35 35 stdenv.mkDerivation rec { 36 36 pname = "curl"; 37 - version = "7.72.0"; 37 + version = "7.73.0"; 38 38 39 39 src = fetchurl { 40 40 urls = [ 41 41 "https://curl.haxx.se/download/${pname}-${version}.tar.bz2" 42 42 "https://github.com/curl/curl/releases/download/${lib.replaceStrings ["."] ["_"] pname}-${version}/${pname}-${version}.tar.bz2" 43 43 ]; 44 - sha256 = "1vq3ay87vayfrv67l7s7h79nm7gwdqhidki0brv5jahhch49g4dd"; 44 + sha256 = "sha256-zzT+Cwe4APHAGkmabosq9Uj20OBE3KSinYikvuFG0TE="; 45 45 }; 46 46 47 47 outputs = [ "bin" "dev" "out" "man" "devdoc" ];
+2 -2
pkgs/tools/networking/unbound/default.nix
··· 2 2 3 3 stdenv.mkDerivation rec { 4 4 pname = "unbound"; 5 - version = "1.11.0"; 5 + version = "1.12.0"; 6 6 7 7 src = fetchurl { 8 8 url = "https://unbound.net/downloads/${pname}-${version}.tar.gz"; 9 - sha256 = "1xqywn2qdmjjq0csrqxh9p2rnizdrr1f99zdx87z7f3fyyc0fbwz"; 9 + sha256 = "0daqxzvknvcz7sgag3wcrxhp4a39ik93lsrfpwcl9whjg2lm74jv"; 10 10 }; 11 11 12 12 outputs = [ "out" "lib" "man" ]; # "dev" would only split ~20 kB
+36
pkgs/tools/system/hostctl/default.nix
··· 1 + { buildGoModule, fetchFromGitHub, lib, installShellFiles }: 2 + 3 + buildGoModule rec { 4 + pname = "hostctl"; 5 + version = "1.0.14"; 6 + 7 + src = fetchFromGitHub { 8 + owner = "guumaster"; 9 + repo = pname; 10 + rev = "v${version}"; 11 + sha256 = "02bjii97l4fy43v2rb93m9b0ad8y6mjvbvp4sz6a5n0w9dm1z1q9"; 12 + }; 13 + 14 + vendorSha256 = "1lqk3cda0frqp2vwkqa4b3xkdw814wgkbr7g9r2mwxn85fpdcq5c"; 15 + 16 + buildFlagsArray = [ "-ldflags=-s -w -X github.com/guumaster/hostctl/cmd/hostctl/actions.version=${version}" ]; 17 + 18 + nativeBuildInputs = [ installShellFiles ]; 19 + postInstall = '' 20 + installShellCompletion --cmd hostctl \ 21 + --bash <($out/bin/hostctl completion bash) \ 22 + --zsh <($out/bin/hostctl completion zsh) 23 + ''; 24 + 25 + meta = with lib; { 26 + description = "Your dev tool to manage /etc/hosts like a pro!"; 27 + longDescription = '' 28 + This tool gives you more control over the use of your hosts file. 29 + You can have multiple profiles and switch them on/off as you need. 30 + ''; 31 + homepage = "https://guumaster.github.io/hostctl/"; 32 + license = licenses.mit; 33 + maintainers = with maintainers; [ blaggacao ]; 34 + }; 35 + } 36 +
+29 -10
pkgs/top-level/all-packages.nix
··· 1214 1214 1215 1215 hime = callPackage ../tools/inputmethods/hime {}; 1216 1216 1217 + hostctl = callPackage ../tools/system/hostctl { }; 1218 + 1217 1219 hpe-ltfs = callPackage ../tools/backup/hpe-ltfs { }; 1218 1220 1219 1221 http2tcp = callPackage ../tools/networking/http2tcp { }; ··· 8454 8456 zssh = callPackage ../tools/networking/zssh { }; 8455 8457 8456 8458 zstd = callPackage ../tools/compression/zstd { 8457 - cmake = buildPackages.cmake.override { 8458 - libarchive = buildPackages.libarchive.override { zstd = null; }; 8459 - }; 8459 + cmake = buildPackages.cmakeMinimal; 8460 8460 }; 8461 8461 8462 8462 zsync = callPackage ../tools/compression/zsync { }; ··· 9788 9788 inherit (darwin.apple_sdk.frameworks) CoreFoundation Security; 9789 9789 llvmPackages = if stdenv.cc.isClang then llvmPackages_5 else llvmPackages_10; 9790 9790 }; 9791 - rust_1_46 = callPackage ../development/compilers/rust/1_46.nix { 9791 + rust_1_47 = callPackage ../development/compilers/rust/1_47.nix { 9792 9792 inherit (darwin.apple_sdk.frameworks) CoreFoundation Security; 9793 - llvmPackages = if stdenv.cc.isClang then llvmPackages_5 else llvmPackages_10; 9793 + llvmPackages = if stdenv.cc.isClang then llvmPackages_5 else llvmPackages_11; 9794 9794 }; 9795 - rust = rust_1_46; 9795 + rust = rust_1_47; 9796 9796 9797 9797 rustPackages_1_45 = rust_1_45.packages.stable; 9798 - rustPackages_1_46 = rust_1_46.packages.stable; 9799 - rustPackages = rustPackages_1_46; 9798 + rustPackages_1_47 = rust_1_47.packages.stable; 9799 + rustPackages = rustPackages_1_47; 9800 9800 9801 9801 inherit (rustPackages) cargo clippy rustc rustPlatform; 9802 9802 ··· 10973 10973 cmake_2_8 = callPackage ../development/tools/build-managers/cmake/2.8.nix { }; 10974 10974 10975 10975 cmake = libsForQt5.callPackage ../development/tools/build-managers/cmake { }; 10976 + 10977 + cmakeMinimal = libsForQt5.callPackage ../development/tools/build-managers/cmake { 10978 + isBootstrap = true; 10979 + }; 10976 10980 10977 10981 cmakeCurses = cmake.override { useNcurses = true; }; 10978 10982 ··· 18432 18436 # udev is the same package as systemd which depends on cryptsetup 18433 18437 # which depends on lvm2 again. But we only need the libudev part 18434 18438 # which does not depend on cryptsetup. 18435 - udev = udev.override { cryptsetup = null; }; 18439 + udev = systemdMinimal; 18436 18440 }; 18437 18441 lvm2_dmeventd = callPackage ../os-specific/linux/lvm2 { 18438 18442 enableDmeventd = true; ··· 18785 18789 bzip2 = null; 18786 18790 }; 18787 18791 }; 18792 + systemdMinimal = systemd.override { 18793 + pname = "systemd-minimal"; 18794 + withResolved = false; 18795 + withLogind = false; 18796 + withHostnamed = false; 18797 + withLocaled = false; 18798 + withTimedated = false; 18799 + withHwdb = false; 18800 + withEfi = false; 18801 + withImportd = false; 18802 + withCryptsetup = false; 18803 + cryptsetup = null; 18804 + lvm2 = null; 18805 + }; 18788 18806 18789 - udev = systemd; # TODO: move to aliases.nix 18807 + 18808 + udev = systemd; # TODO: change to systemdMinimal 18790 18809 18791 18810 systemd-wait = callPackage ../os-specific/linux/systemd-wait { }; 18792 18811
+23 -3
pkgs/top-level/haskell-packages.nix
··· 1 - { buildPackages, pkgs, newScope }: 1 + { buildPackages, pkgs, newScope, stdenv }: 2 2 3 3 let 4 4 # These are attributes in compiler and packages that don't support integer-simple. ··· 6 6 "ghc822Binary" 7 7 "ghc865Binary" 8 8 "ghc8102Binary" 9 + "ghc8102BinaryMinimal" 9 10 "ghcjs" 10 11 "ghcjs86" 11 12 "integer-simple" ··· 54 55 llvmPackages = pkgs.llvmPackages_9; 55 56 }; 56 57 58 + ghc8102BinaryMinimal = callPackage ../development/compilers/ghc/8.10.2-binary.nix { 59 + llvmPackages = pkgs.llvmPackages_9; 60 + minimal = true; 61 + }; 62 + 57 63 ghc865 = callPackage ../development/compilers/ghc/8.6.5.nix { 58 64 bootPkgs = packages.ghc822Binary; 59 65 inherit (buildPackages.python3Packages) sphinx; ··· 73 79 llvmPackages = pkgs.llvmPackages_7; 74 80 }; 75 81 ghc884 = callPackage ../development/compilers/ghc/8.8.4.nix { 76 - bootPkgs = packages.ghc865Binary; 82 + # aarch64 ghc865Binary gets SEGVs due to haskell#15449 or similar 83 + bootPkgs = if stdenv.isAarch64 then 84 + packages.ghc8102BinaryMinimal 85 + else 86 + packages.ghc865Binary; 77 87 inherit (buildPackages.python3Packages) sphinx; 78 88 buildLlvmPackages = buildPackages.llvmPackages_7; 79 89 llvmPackages = pkgs.llvmPackages_7; ··· 85 95 llvmPackages = pkgs.llvmPackages_9; 86 96 }; 87 97 ghc8102 = callPackage ../development/compilers/ghc/8.10.2.nix { 88 - bootPkgs = packages.ghc865Binary; 98 + # aarch64 ghc865Binary gets SEGVs due to haskell#15449 or similar 99 + bootPkgs = if stdenv.isAarch64 then 100 + packages.ghc8102BinaryMinimal 101 + else 102 + packages.ghc865Binary; 89 103 inherit (buildPackages.python3Packages) sphinx; 90 104 buildLlvmPackages = buildPackages.llvmPackages_9; 91 105 llvmPackages = pkgs.llvmPackages_9; ··· 153 167 ghc8102Binary = callPackage ../development/haskell-modules { 154 168 buildHaskellPackages = bh.packages.ghc8102Binary; 155 169 ghc = bh.compiler.ghc8102Binary; 170 + compilerConfig = callPackage ../development/haskell-modules/configuration-ghc-8.10.x.nix { }; 171 + packageSetConfig = bootstrapPackageSet; 172 + }; 173 + ghc8102BinaryMinimal = callPackage ../development/haskell-modules { 174 + buildHaskellPackages = bh.packages.ghc8102BinaryMinimal; 175 + ghc = bh.compiler.ghc8102BinaryMinimal; 156 176 compilerConfig = callPackage ../development/haskell-modules/configuration-ghc-8.10.x.nix { }; 157 177 packageSetConfig = bootstrapPackageSet; 158 178 };
+1 -1
pkgs/top-level/python-packages.nix
··· 4848 4848 4849 4849 pybullet = callPackage ../development/python-modules/pybullet { }; 4850 4850 4851 - pycairo = callPackage ../development/python-modules/pycairo { inherit (pkgs) meson pkgconfig; }; 4851 + pycairo = callPackage ../development/python-modules/pycairo { inherit (pkgs) meson pkg-config; }; 4852 4852 4853 4853 pycallgraph = callPackage ../development/python-modules/pycallgraph { }; 4854 4854