lol

Merge pull request #135414 from trofi/fix-imake-vendor

imake: do not skip Linux* vendor definitions

authored by

Luke Granger-Brown and committed by
GitHub
764a52ba 31efc58e

+30 -20
+4 -2
pkgs/applications/misc/xcruiser/default.nix
··· 12 12 buildInputs = [ libXt libXaw libXpm libXext ]; 13 13 14 14 makeFlags = [ 15 - "BINDIR=$(out)/bin" 16 - "XAPPLOADDIR=$(out)/etc/X11/app-defaults" 15 + "BINDIR=${placeholder "out"}/bin" 16 + "CONFDIR=${placeholder "out"}/etc/X11" 17 + "LIBDIR=${placeholder "out"}/lib/X11" 18 + "XAPPLOADDIR=${placeholder "out"}/etc/X11/app-defaults" 17 19 ]; 18 20 19 21 meta = with lib; {
+2
pkgs/applications/misc/xxkb/default.nix
··· 24 24 25 25 makeFlags = [ 26 26 "BINDIR=${placeholder "out"}/bin" 27 + "CONFDIR=${placeholder "out"}/etc/X11" 27 28 "PIXMAPDIR=${placeholder "out"}/share/xxkb" 29 + "LIBDIR=${placeholder "out"}/lib/X11" 28 30 "XAPPLOADDIR=${placeholder "out"}/etc/X11/app-defaults" 29 31 "MANDIR=${placeholder "man"}/share/man" 30 32 ];
+19 -15
pkgs/servers/x11/xorg/imake.patch
··· 1 - diff -Naur imake-1.0.7-orig/imake.c imake-1.0.7/imake.c 2 - --- imake-1.0.7-orig/imake.c 2013-08-17 10:11:50.000000000 +0000 3 - +++ imake-1.0.7/imake.c 2015-02-04 09:41:59.000000000 +0000 4 - @@ -1045,6 +1045,7 @@ 5 - static void 6 - get_distrib(FILE *inFile) 7 - { 8 - +#if 0 9 - struct stat sb; 1 + Disable imake autodetection for: 2 + - LinuxDistribution to avoid injection of /usr paths 3 + - gcc to avoid use uf /usr/bin/gcc 4 + 5 + https://github.com/NixOS/nixpkgs/issues/135337 6 + --- a/imake.c 7 + +++ b/imake.c 8 + @@ -1065,6 +1065,7 @@ get_distrib(FILE *inFile) 9 + fprintf (inFile, "%s\n", "#define LinuxWare 11"); 10 + fprintf (inFile, "%s\n", "#define LinuxYggdrasil 12"); 10 11 11 - static const char* suse = "/etc/SuSE-release"; 12 - @@ -1090,6 +1091,7 @@ 12 + +#if 0 /* disable system autodetection. Fall through to LinuxUnknown. */ 13 + # ifdef CROSSCOMPILE 14 + if (CrossCompiling) { 15 + fprintf (inFile, "%s\n", 16 + @@ -1090,6 +1091,7 @@ get_distrib(FILE *inFile) 13 17 * at the content of /etc/debian_version */ 14 18 return; 15 19 } 16 - +#endif 20 + +#endif 17 21 /* what's the definitive way to tell what any particular distribution is? */ 18 22 19 23 fprintf (inFile, "%s\n", "#define DefaultLinuxDistribution LinuxUnknown"); 20 - @@ -1337,6 +1339,7 @@ 24 + @@ -1337,6 +1339,7 @@ get_gcc_version(FILE *inFile, char *name) 21 25 static boolean 22 26 get_gcc(char *cmd) 23 27 { 24 - +#if 0 28 + +#if 0 /* disable gcc autodetection. Fall through to explicitly set. */ 25 29 struct stat sb; 26 30 static const char* gcc_path[] = { 27 31 #if defined(linux) || \ 28 - @@ -1385,6 +1388,9 @@ 32 + @@ -1385,6 +1388,9 @@ get_gcc(char *cmd) 29 33 } 30 34 } 31 35 return FALSE;
+5 -3
pkgs/tools/X11/xvkbd/default.nix
··· 13 13 buildInputs = [ libXt libXaw libXtst xorgproto libXi Xaw3d libXpm ]; 14 14 installTargets = [ "install" "install.man" ]; 15 15 makeFlags = [ 16 - "BINDIR=$(out)/bin" 17 - "XAPPLOADDIR=$(out)/etc/X11/app-defaults" 18 - "MANPATH=$(out)/man" 16 + "BINDIR=${placeholder "out"}/bin" 17 + "CONFDIR=${placeholder "out"}/etc/X11" 18 + "LIBDIR=${placeholder "out"}/lib/X11" 19 + "XAPPLOADDIR=${placeholder "out"}/etc/X11/app-defaults" 20 + "MANPATH=${placeholder "out"}/man" 19 21 ]; 20 22 21 23 meta = with lib; {