Bug 6002 - Makefile.in uses mktemp
Summary: Makefile.in uses mktemp
Status: RESOLVED FIXED
Alias: None
Product: uClibc
Classification: Unclassified
Component: Other (show other bugs)
Version: 0.9.33.3
Hardware: PC Linux
: P5 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-28 00:49 UTC by Jeffrey Walton
Modified: 2014-04-01 16:27 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jeffrey Walton 2013-02-28 00:49:56 UTC
Below is around line 170 in Makefile.in. I believe its preferred to use mkstemp with XXXXXX of at least 6. 

@$(disp_gen)
$(Q)set -e; \
tmp=`mktemp $(top_builddir)include/bits/sysnum.h.XXXXXX 2>/dev/null || true`; \
    [ -z "$$tmp" ] && tmp='$(top_builddir)include/bits/sysnum.h.new'; \
Comment 1 Bernhard Reutner-Fischer 2013-02-28 11:57:24 UTC
Just use .new unconditionally. Patch that does that is very welcome (nowadays we should not by racy against parallel attempts to generate the header so the whole thing is not needed anymore).

thanks,
Comment 2 Bernhard Reutner-Fischer 2014-04-01 16:27:28 UTC
call to mktemp was removed in 115577807b0c1d65b97255fe5336ac5c257da5a1