<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>30595</bug_id>
          
          <creation_ts>2014-12-23 17:58:07 +0300</creation_ts>
          <short_desc>many scripts want &quot;tempfile&quot; instead of &quot;mktemp&quot;</short_desc>
          <delta_ts>2018-12-29 05:38:52 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>coreutils</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ivan Zakharyaschev">imz</reporter>
          <assigned_to name="placeholder@altlinux.org">placeholder</assigned_to>
          <cc>glebfm</cc>
    
    <cc>ldv</cc>
    
    <cc>placeholder</cc>
    
    <cc>vt</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>149426</commentid>
    <comment_count>0</comment_count>
    <who name="Ivan Zakharyaschev">imz</who>
    <bug_when>2014-12-23 17:58:07 +0300</bug_when>
    <thetext>coreutils-8.21-alt1

I met several scripts which want &quot;tempfile&quot;. Perhaps, a convenience compatibility wrapper around &quot;mktemp&quot; could be provided to make using such scripts easy.

For example, /usr/bin/cpif from http://ftp.de.debian.org/debian/pool/main/n/noweb/noweb_2.11b-8_i386.deb or http://www.cs.tufts.edu/~nr/noweb/nowebm-2.11a-2.i386.rpm from http://www.cs.tufts.edu/~nr/noweb/ :

new=$(tempfile)
trap &apos;rm -f $new; exit 1&apos; 1 2 15	# clean up files

....

Probably, &quot;tempfile&quot; is a Debian convention.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>177051</commentid>
    <comment_count>1</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2018-12-29 05:38:52 +0300</bug_when>
    <thetext>According to https://manpages.debian.org/jessie/debianutils/tempfile.1.en.html
tempfile has already been deprecated in Debian at the time when this request was submitted.

I don&apos;t think we really need this deprecated utility.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>