ports/math/atlas/files/patch-tmpnamleak
Thierry Thomas dbbffaebd4 math/atlas: upgrade to 3.10.3
The development iof ATLAS seems stalled, but some people still use it:
upgrade it to the latest stable version, to support some more platforms.

Changelog available from
<https://sourceforge.net/projects/math-atlas/files/Stable/3.10.3/ChangeLog/download>.

Next step: resurrect atlas-devel and upgrade it to the latest "unstable
release", 3.11.41, dated 2018-10-05…
2022-12-15 17:22:25 +01:00

32 lines
971 B
Text

--- bin/atlas_install.c.orig 2016-07-28 19:42:59 UTC
+++ bin/atlas_install.c
@@ -1191,6 +1191,7 @@ void GoToTown(int ARCHDEF, int L1DEF, int TuneLA)
fprintf(stdout, "ATLAS install complete. Examine \n");
fprintf(stdout, "ATLAS/bin/<arch>/INSTALL_LOG/SUMMARY.LOG for details.\n");
fclose(fpsum);
+ remove(tnam);
PrintBanner("INSTALL_LOG/SUMMARY.LOG", 0, 0, 0, 0);
}
--- tune/sysinfo/emit_buildinfo.c.orig 2016-07-28 19:43:20 UTC
+++ tune/sysinfo/emit_buildinfo.c
@@ -53,7 +53,10 @@ char *CmndResults(char *cmnd)
sprintf(ln, "%s > %s\n", cmnd, tnam);
fprintf(stderr, "system: %s", ln);
if (!system(ln)) return(tnam);
- else return(NULL);
+ else {
+ remove(tnam);
+ return(NULL);
+ }
}
void FixString(char *ln)
@@ -98,6 +101,7 @@ int CmndOneLine(char *cmnd, char *ln)
assert(fp);
if (!fgets(ln, 512, fp)) ln[0] = '\0';
fclose(fp);
+ remove(tnam);
return(0);
}
else ln[0] = '\0';