Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

Merge pull request #33575 from dtzWill/fix/cross-1

Minor cross fixes, 1

authored by

John Ericson and committed by
GitHub
0c16a11c 73303b59

+36 -16
+3 -3
pkgs/development/interpreters/lua-5/5.2.nix
··· 57 ''; 58 59 crossAttrs = let 60 - inherit (hostPlatform) isDarwin isMingw; 61 in { 62 configurePhase = '' 63 makeFlagsArray=( ··· 65 INSTALL_MAN=$out/share/man/man1 66 V=${luaversion} 67 R=${version} 68 - ${if isMingw then "mingw" else stdenv.lib.optionalString isDarwin '' 69 ''} 70 ) 71 - '' + stdenv.lib.optionalString isMingw '' 72 installFlagsArray=( 73 TO_BIN="lua.exe luac.exe" 74 TO_LIB="liblua.a lua52.dll"
··· 57 ''; 58 59 crossAttrs = let 60 + inherit (hostPlatform) isDarwin isMinGW; 61 in { 62 configurePhase = '' 63 makeFlagsArray=( ··· 65 INSTALL_MAN=$out/share/man/man1 66 V=${luaversion} 67 R=${version} 68 + ${if isMinGW then "mingw" else stdenv.lib.optionalString isDarwin '' 69 ''} 70 ) 71 + '' + stdenv.lib.optionalString isMinGW '' 72 installFlagsArray=( 73 TO_BIN="lua.exe luac.exe" 74 TO_LIB="liblua.a lua52.dll"
+3 -3
pkgs/development/interpreters/lua-5/5.3.nix
··· 56 ''; 57 58 crossAttrs = let 59 - inherit (hostPlatform) isDarwin isMingw; 60 in { 61 configurePhase = '' 62 makeFlagsArray=( ··· 64 INSTALL_MAN=$out/share/man/man1 65 V=${luaversion} 66 R=${version} 67 - ${if isMingw then "mingw" else stdenv.lib.optionalString isDarwin '' 68 ''} 69 ) 70 - '' + stdenv.lib.optionalString isMingw '' 71 installFlagsArray=( 72 TO_BIN="lua.exe luac.exe" 73 TO_LIB="liblua.a lua52.dll"
··· 56 ''; 57 58 crossAttrs = let 59 + inherit (hostPlatform) isDarwin isMinGW; 60 in { 61 configurePhase = '' 62 makeFlagsArray=( ··· 64 INSTALL_MAN=$out/share/man/man1 65 V=${luaversion} 66 R=${version} 67 + ${if isMinGW then "mingw" else stdenv.lib.optionalString isDarwin '' 68 ''} 69 ) 70 + '' + stdenv.lib.optionalString isMinGW '' 71 installFlagsArray=( 72 TO_BIN="lua.exe luac.exe" 73 TO_LIB="liblua.a lua52.dll"
+6 -1
pkgs/development/libraries/kerberos/krb5.nix
··· 22 outputs = [ "out" "dev" ]; 23 24 configureFlags = [ "--with-tcl=no" "--localstatedir=/var/lib"] 25 - ++ optional stdenv.isFreeBSD ''WARN_CFLAGS=""''; 26 27 nativeBuildInputs = [ pkgconfig perl ] 28 ++ optional (!libOnly) yacc
··· 22 outputs = [ "out" "dev" ]; 23 24 configureFlags = [ "--with-tcl=no" "--localstatedir=/var/lib"] 25 + ++ optional stdenv.isFreeBSD ''WARN_CFLAGS=""'' 26 + ++ optionals (stdenv.buildPlatform != stdenv.hostPlatform) 27 + [ "krb5_cv_attr_constructor_destructor=yes,yes" 28 + "ac_cv_func_regcomp=yes" 29 + "ac_cv_printf_positional=yes" 30 + ]; 31 32 nativeBuildInputs = [ pkgconfig perl ] 33 ++ optional (!libOnly) yacc
+9 -1
pkgs/development/tools/misc/pkgconfig/default.nix
··· 24 buildInputs = optional (stdenv.isCygwin || stdenv.isDarwin || stdenv.isSunOS) libiconv; 25 26 configureFlags = [ "--with-internal-glib" ] 27 - ++ optional (stdenv.isSunOS) [ "--with-libiconv=gnu" "--with-system-library-path" "--with-system-include-path" "CFLAGS=-DENABLE_NLS" ]; 28 29 postInstall = ''rm -f "$out"/bin/*-pkg-config''; # clean the duplicate file 30
··· 24 buildInputs = optional (stdenv.isCygwin || stdenv.isDarwin || stdenv.isSunOS) libiconv; 25 26 configureFlags = [ "--with-internal-glib" ] 27 + ++ optional (stdenv.isSunOS) [ "--with-libiconv=gnu" "--with-system-library-path" "--with-system-include-path" "CFLAGS=-DENABLE_NLS" ] 28 + # Can't run these tests while cross-compiling 29 + ++ optional (stdenv.hostPlatform != stdenv.buildPlatform) 30 + [ "glib_cv_stack_grows=no" 31 + "glib_cv_uscore=no" 32 + "ac_cv_func_posix_getpwuid_r=yes" 33 + "ac_cv_func_posix_getgrgid_r=yes" 34 + ]; 35 + 36 37 postInstall = ''rm -f "$out"/bin/*-pkg-config''; # clean the duplicate file 38
+2 -2
pkgs/tools/compression/bsdiff/default.nix
··· 13 patches = [ ./include-systypes.patch ]; 14 15 buildPhase = '' 16 - cc -O3 -lbz2 bspatch.c -o bspatch 17 - cc -O3 -lbz2 bsdiff.c -o bsdiff 18 ''; 19 20 installPhase = ''
··· 13 patches = [ ./include-systypes.patch ]; 14 15 buildPhase = '' 16 + $CC -O3 -lbz2 bspatch.c -o bspatch 17 + $CC -O3 -lbz2 bsdiff.c -o bsdiff 18 ''; 19 20 installPhase = ''
+11 -4
pkgs/tools/system/at/default.nix
··· 1 - { fetchurl, stdenv, bison, flex, pam 2 , sendmailPath ? "/run/wrappers/bin/sendmail" 3 , atWrapperPath ? "/run/wrappers/bin/at" 4 }: ··· 13 sha256 = "1fgsrqpx0r6qcjxmlsqnwilydhfxn976c870mjc0n1bkmcy94w88"; 14 }; 15 16 - patches = [ ./install.patch ]; 17 18 - buildInputs = 19 - [ bison flex pam ]; 20 21 preConfigure = 22 ''
··· 1 + { stdenv, fetchurl, fetchpatch, bison, flex, pam 2 , sendmailPath ? "/run/wrappers/bin/sendmail" 3 , atWrapperPath ? "/run/wrappers/bin/at" 4 }: ··· 13 sha256 = "1fgsrqpx0r6qcjxmlsqnwilydhfxn976c870mjc0n1bkmcy94w88"; 14 }; 15 16 + patches = [ 17 + ./install.patch 18 + (fetchpatch { 19 + url = "https://raw.githubusercontent.com/riscv/riscv-poky/master/meta/recipes-extended/at/at/0001-remove-glibc-assumption.patch"; 20 + sha256 = "1rk4hskp0c1jqkanzdxf873i6jgki3xhrm609fsam8an8sl1njnm"; 21 + }) 22 + ]; 23 24 + nativeBuildInputs = [ bison flex ]; 25 + 26 + buildInputs = [ pam ]; 27 28 preConfigure = 29 ''
+2 -2
pkgs/tools/system/at/install.patch
··· 20 + $(INSTALL) -m 755 -d $(IROOT)$(sbindir) 21 + $(INSTALL) -m 755 -d $(IROOT)$(docdir) 22 + $(INSTALL) -m 755 -d $(IROOT)$(atdocdir) 23 - + $(INSTALL) -m 0755 -s at $(IROOT)$(bindir) 24 $(LN_S) -f at $(IROOT)$(bindir)/atq 25 $(LN_S) -f at $(IROOT)$(bindir)/atrm 26 - $(INSTALL) -g root -o root -m 755 batch $(IROOT)$(bindir) ··· 34 + $(INSTALL) -d -m 755 $(IROOT)$(man1dir) 35 + $(INSTALL) -d -m 755 $(IROOT)$(man5dir) 36 + $(INSTALL) -d -m 755 $(IROOT)$(man8dir) 37 - + $(INSTALL) -m 755 -s atd $(IROOT)$(sbindir) 38 + $(INSTALL) -m 755 atrun $(IROOT)$(sbindir) 39 + $(INSTALL) -m 644 at.1 $(IROOT)$(man1dir)/ 40 cd $(IROOT)$(man1dir) && $(LN_S) -f at.1 atq.1 && $(LN_S) -f at.1 batch.1 && $(LN_S) -f at.1 atrm.1
··· 20 + $(INSTALL) -m 755 -d $(IROOT)$(sbindir) 21 + $(INSTALL) -m 755 -d $(IROOT)$(docdir) 22 + $(INSTALL) -m 755 -d $(IROOT)$(atdocdir) 23 + + $(INSTALL) -m 0755 at $(IROOT)$(bindir) 24 $(LN_S) -f at $(IROOT)$(bindir)/atq 25 $(LN_S) -f at $(IROOT)$(bindir)/atrm 26 - $(INSTALL) -g root -o root -m 755 batch $(IROOT)$(bindir) ··· 34 + $(INSTALL) -d -m 755 $(IROOT)$(man1dir) 35 + $(INSTALL) -d -m 755 $(IROOT)$(man5dir) 36 + $(INSTALL) -d -m 755 $(IROOT)$(man8dir) 37 + + $(INSTALL) -m 755 atd $(IROOT)$(sbindir) 38 + $(INSTALL) -m 755 atrun $(IROOT)$(sbindir) 39 + $(INSTALL) -m 644 at.1 $(IROOT)$(man1dir)/ 40 cd $(IROOT)$(man1dir) && $(LN_S) -f at.1 atq.1 && $(LN_S) -f at.1 batch.1 && $(LN_S) -f at.1 atrm.1