nixpkgs/pkgs
Rouven Czerwinski eee562ffb5 bintools-wrapper: fix inverted link32 check
The new skip for the dynamic linker introduced in
ccfd26ef14 ("bintools-wrapper: skip dynamic linker for static
binaries") includes a change in behaviour, previously the $link32
variable was checked using an arithmetic expression via (( )). This
returns zero if the output of the arithmetic expression is nonzero, i.e.
link32=1 would return zero and the if condition would be executed.
The code refactored this to use "$link32" = "0" which is incorrect in
this case, since we want this if conditional to run if $link32 is 1.

Small shell excerpt for clarity:

$ export link32=1
$ export cookie=1
$ if [[ "$cookie" = "1" ]] && (( "$link32" )); then echo "do some stuff"; fi;
do some stuff
$ if [[ "$cookie" = "1" && "$link32" = "0" ]]; then echo "do some stuff"; fi;
$

Change it to check for $link32 = "1", as the previous code did.
2020-12-20 17:27:16 +01:00
..
applications Merge master into staging-next 2020-12-20 06:18:56 +00:00
build-support bintools-wrapper: fix inverted link32 check 2020-12-20 17:27:16 +01:00
common-updater
data Merge master into staging-next 2020-12-19 00:42:26 +00:00
desktops Merge master into staging-next 2020-12-18 00:42:45 +00:00
development Merge master into staging-next 2020-12-20 00:43:57 +00:00
games Merge pull request #107224 from petabyteboy/feature/xonotic-fix-desktop-item 2020-12-19 23:51:38 +01:00
misc Merge pull request #106359 from AndersonTorres/wip-dgen 2020-12-17 12:18:36 -03:00
os-specific Merge master into staging-next 2020-12-19 12:22:54 +00:00
pkgs-lib
servers Merge master into staging-next 2020-12-19 18:19:27 +00:00
shells oh-my-zsh: 2020-12-14 → 2020-12-16 2020-12-17 09:02:46 -05:00
stdenv
test Merge master into staging-next 2020-12-20 00:43:57 +00:00
tools Merge master into staging-next 2020-12-20 06:18:56 +00:00
top-level Merge master into staging-next 2020-12-20 00:43:57 +00:00