lol
0
fork

Configure Feed

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

ncrack: pull upstream fix for fno-common toolchains

Without the change build on -fno-common toolchains like upstream gcc-10
fails as:

$ nix build -L --impure --expr 'with import ./. {}; ncrack.overrideAttrs (oa: { NIX_CFLAGS_COMPILE = (oa.NIX_CFLAGS_COMPILE or "") + "-fno-common"; })'
...
ld: opensshlib/libopenssh.a(umac128.o):/build/source/opensshlib/umac.c:1184:
multiple definition of `umac_ctx'; opensshlib/libopenssh.a(umac.o):/build/source/opensshlib/umac.c:1184: first defined here

+11 -1
+11 -1
pkgs/tools/security/ncrack/default.nix
··· 1 - { lib, stdenv, fetchFromGitHub, openssl, zlib }: 1 + { lib, stdenv, fetchFromGitHub, fetchpatch, openssl, zlib }: 2 2 3 3 stdenv.mkDerivation rec { 4 4 pname = "ncrack"; ··· 10 10 rev = version; 11 11 sha256 = "1gnv5xdd7n04glcpy7q1mkb6f8gdhdrhlrh8z6k4g2pjdhxlz26g"; 12 12 }; 13 + 14 + patches = [ 15 + # Pull upstream fix for -fno-common toolchains like upstream gcc-10: 16 + # https://github.com/nmap/ncrack/pull/83 17 + (fetchpatch { 18 + name = "fno-common.patch"; 19 + url = "https://github.com/nmap/ncrack/commit/cc4103267bab6017a4da9d41156d0c1075012eba.patch"; 20 + sha256 = "06nlfvc7p108f8ppbcgwmj4iwmjy95xhc1sawa8c78lrx22r7gy3"; 21 + }) 22 + ]; 13 23 14 24 buildInputs = [ openssl zlib ]; 15 25