diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2021-04-28 20:21:43 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2021-04-28 20:21:43 +0100 |
commit | 40aaaa64e86ba6710bbeb31c4615a6ce80e75e11 (patch) | |
tree | 758c221bad35c9288d0bd6df9c7dfc226728e52c /x11-misc/imake/files | |
parent | 8d5dbd847cbc704a6a06405856e94b461011afe3 (diff) |
gentoo resync : 28.04.2021
Diffstat (limited to 'x11-misc/imake/files')
-rw-r--r-- | x11-misc/imake/files/imake-1.0.8-cpp-args.patch | 18 | ||||
-rw-r--r-- | x11-misc/imake/files/imake-1.0.8-no-get-gcc.patch | 37 | ||||
-rw-r--r-- | x11-misc/imake/files/imake-1.0.8-respect-LD.patch | 15 | ||||
-rw-r--r-- | x11-misc/imake/files/imake-1.0.8-xmkmf-pass-cc-ld.patch | 15 |
4 files changed, 85 insertions, 0 deletions
diff --git a/x11-misc/imake/files/imake-1.0.8-cpp-args.patch b/x11-misc/imake/files/imake-1.0.8-cpp-args.patch new file mode 100644 index 000000000000..4fb382b0a19c --- /dev/null +++ b/x11-misc/imake/files/imake-1.0.8-cpp-args.patch @@ -0,0 +1,18 @@ +Copy code from IMAKEINCLUDE to IMAKECPP to handle arguments +such as -E. Lets IMAKECPP=$(tc-getCPP) be usable. +--- a/imake.c ++++ b/imake.c +@@ -532,6 +532,12 @@ + } + } +- if ((p = getenv("IMAKECPP"))) ++ if ((p = getenv("IMAKECPP"))) { + cpp = p; ++ for (; *p; p++) ++ if (*p == ' ') { ++ *p++ = '\0'; ++ AddCppArg(p); ++ } ++ } + if ((p = getenv("IMAKEMAKE"))) + make_argv[0] = p; diff --git a/x11-misc/imake/files/imake-1.0.8-no-get-gcc.patch b/x11-misc/imake/files/imake-1.0.8-no-get-gcc.patch new file mode 100644 index 000000000000..155200461157 --- /dev/null +++ b/x11-misc/imake/files/imake-1.0.8-no-get-gcc.patch @@ -0,0 +1,37 @@ +If /usr/bin/cc exists then get_gcc() is always true on Linux (and many +others), but will fail in the event it's missing (-native-symlinks). + +get_gcc_version does not execute gcc and merely sets defines, so +call it without using get_gcc(). Validity of using NULL should be +verified if there's ever a new version. +--- a/imake.c ++++ b/imake.c +@@ -1341,4 +1341,5 @@ + #endif + ++#if defined CROSSCOMPILE + static boolean + get_gcc(char *cmd) +@@ -1394,5 +1395,4 @@ + } + +-#ifdef CROSSCOMPILE + static void + get_gcc_incdir(FILE *inFile, char* name) +@@ -1640,12 +1640,14 @@ + # endif + { ++# if defined CROSSCOMPILE + char name[PATH_MAX]; + if (get_gcc(name)) { + get_gcc_version (inFile,name); +-# if defined CROSSCOMPILE + if (sys != emx) + get_gcc_incdir(inFile,name); +-# endif + } ++# else ++ get_gcc_version(inFile,NULL); ++# endif + } + # endif diff --git a/x11-misc/imake/files/imake-1.0.8-respect-LD.patch b/x11-misc/imake/files/imake-1.0.8-respect-LD.patch new file mode 100644 index 000000000000..a53808625c95 --- /dev/null +++ b/x11-misc/imake/files/imake-1.0.8-respect-LD.patch @@ -0,0 +1,15 @@ +Use LD env if available, other tests already do similar for CC. +https://bugs.gentoo.org/729630 +--- a/imake.c ++++ b/imake.c +@@ -1110,5 +1110,9 @@ + signed char c; + int ldmajor, ldminor; +- const char *ld = "ld -v"; ++ char ld[PATH_MAX]; ++ const char *ldenv; ++ if (!(ldenv = getenv("LD"))) ++ ldenv = "ld"; ++ snprintf(ld, PATH_MAX, "%s -v", ldenv); + + # ifdef CROSSCOMPILE diff --git a/x11-misc/imake/files/imake-1.0.8-xmkmf-pass-cc-ld.patch b/x11-misc/imake/files/imake-1.0.8-xmkmf-pass-cc-ld.patch new file mode 100644 index 000000000000..a27c1ac04ba0 --- /dev/null +++ b/x11-misc/imake/files/imake-1.0.8-xmkmf-pass-cc-ld.patch @@ -0,0 +1,15 @@ +Makefile calls imake again but with ignored CC/LD. +Passing only if set rather than use defaults. +--- a/xmkmf.cpp ++++ b/xmkmf.cpp +@@ -56,7 +56,7 @@ + echo "make Makefiles" && +- make Makefiles && ++ make ${CC:+CC="$CC"} ${LD:+LD="$LD"} Makefiles && + echo "make includes" && +- make includes && ++ make ${CC:+CC="$CC"} ${LD:+LD="$LD"} includes && + echo "make depend" && +- make depend ++ make ${CC:+CC="$CC"} ${LD:+LD="$LD"} depend + ;; |