Message-Id: <201206041815.q54IFPZs020297@delorie.com> From: Juan Manuel Guerrero To: djgpp-announce AT delorie DOT com Subject: ANNOUNCE: release 2 of DJGPP port of mktemp 1.7 uploaded. Date: Sat, 2 Jun 2012 02:53:31 +0200 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline This is release 2 of the port of mktemp 1.7 to MSDOS/DJGPP. Mktemp is a simple utility designed to make temporary file handling in shells scripts be safe and simple. It is compatible with the one that comes with coreutils. Because a port of GNU coreutils is not available but certain test suites require a mktemp program to create their temporary output files this tool has been ported. If the "-t" flag is used or implied then only the TMPDIR environment variable will be evaluated to determinate where the temporary file or directory shall be stored. Neither TMP nor TEMP will be honored any more as it used to be with this flag in the previous release of this port. This will avoid that POSIX centric scripts break when they try to unset TMPDIR to allow for another prefix or path to store the temporary file. The new DJGPP specific "-T" flag will provide the old behaviour. Because the old port shall be considered as brocken I have decided to remove it. DJGPP specific changes. ======================= - The default template pattern that is used to create the default file name is chosen at run time depending on if LFN support is available or not. If LFN is available the default template "tmp.XXXXXXXXXX" will be used, if not then the shorter template "tpXXXXXX.XXX" will be used. It should be noted that the program generates its own pattern for the default file name and do not use neither the mkstemp() nor mktemp() functions of libc and their use is not supported. - The tool can handle slash and backslash as directory separator. - By default, only the TMPDIR environment variable will be evaluated to determinate which directory shall be used to store the file. If the variable is not set or the directory can be accessed, the current working directory will be used as temporary file name prefix. This is to avoid breaking POSIX centric scripts in GNU packages that do not know anything about DOS specific environment variables like TMP or TEMP. - If the new DJGPP specific "-T" flag is passed, the environment variables TMPDIR, TMP and TEMP will be evaluated in that order to determinate which default directory shall be used to store the file. If no one of the variables is set or no one of the directories can be accessed, the current working directory will be used as temporary file name prefix. - To build the package you will need LFN support. I do not see any reason to waste my time trying to make the sources 8.3 clean. Please read the docs and man pages to become familiar with the program options. As usual all changes I have done to the sources are documented in the /djgpp/diffs file. The port has been compiled using stock djdev203 (patchlevel 2) and consists of the two packages that can be downloaded from ftp.delorie.com and mirrors as (timestamp 2012-05-31): Mktemp 1.7 binary and man format documentation: ftp://ftp.delorie.com/pub/djgpp/current/v2tk/mktmp17br2.zip Mktemp 1.7 source: ftp://ftp.delorie.com/pub/djgpp/current/v2tk/mktmp17sr2.zip The binaries have been produced a second time using the stock version of djdev204 beta library. This package is available at ftp.delorie.com and mirrors as (timestamp 2012-05-31): Mktemp 1.7 binary and man format documentation: ftp://ftp.delorie.com/pub/djgpp/beta/v2tk/mktmp17br2.zip Send mktemp specific bug reports to . Send suggestions and bug reports concerning the DJGPP port to comp.os.msdos.djgpp or . If you are not sure if the failure is really a mktemp failure or a djgpp specific failure, report it here and *not* to . The author is not aware of what I have done. Enjoy. Guerrero, Juan Manuel