Bug#862166: tmperamental: support TMP, TEMP, TEMPDIR and program-specific variables

2018-06-09 Thread Paul Wise
On Tue, 2018-06-05 at 19:29 +0200, Jakub Wilk wrote:

> TMPDIR is specified by POSIX; the other variable names are non-standard. 
> If a program supports TMP or TEMP or ... but not TMPDIR, then that's a 
> bug that should be fixed.

Some of them are standard on non-POSIX platforms like Windows.

> libtmperamental wouldn't be able to catch such bugs if these 
> non-standard variables were set.

I think the best solution here would be for tmperamental to set each
variable to a different directory and then warn about use of each of
the directories for non-POSIX variables, with an option to also blow up
for uses of the non-POSIX variables.

-- 
bye,
pabs

https://wiki.debian.org/PaulWise


signature.asc
Description: This is a digitally signed message part


Bug#862166: tmperamental: support TMP, TEMP, TEMPDIR and program-specific variables

2018-06-05 Thread Jakub Wilk

* Paul Wise , 2017-05-09, 18:20:
tmperamental only supports TMPDIR but there are various programs 
throughout Debian that only support TMP, TEMP, TEMPDIR, TEST_TMPDIR or 
variables specific to one program (such as MAGICK_TMPDIR).


I don't think this is a good idea.

TMPDIR is specified by POSIX; the other variable names are non-standard. 
If a program supports TMP or TEMP or ... but not TMPDIR, then that's a 
bug that should be fixed.


libtmperamental wouldn't be able to catch such bugs if these 
non-standard variables were set.


But then, README says: "... by setting TMPDIR and **friends**, ..." 
(emphasis mine), so perhaps Paul T. has a different opinion on this 
subject.


--
Jakub Wilk



Bug#862166: tmperamental: support TMP, TEMP, TEMPDIR and program-specific variables

2017-05-09 Thread Paul Wise
Package: tmperamental
Version: 1.0
Severity: wishlist
File: /usr/bin/tmperamental
Usertags: tmp

tmperamental only supports TMPDIR but there are various programs
throughout Debian that only support TMP, TEMP, TEMPDIR, TEST_TMPDIR or
variables specific to one program (such as MAGICK_TMPDIR). It would be
great if tmperamental could also set all of the above variables and
possibly some of the variables that can be found in this codesearch:

https://codesearch.debian.net/search?q=%28getenv|env\[%29.*%28TE%3FMP%28DIR%29%3F_|_TE%3FMP%28DIR%29%3F%29

$ egrep 'TE?MP' /usr/bin/tmperamental  
TMPDIR=${TMPDIR:-$HOME/tmp}
export TMPDIR

-- System Information:
Debian Release: 9.0
  APT prefers testing-debug
  APT policy: (900, 'testing-debug'), (900, 'testing'), (860, 
'testing-proposed-updates'), (850, 'buildd-testing-proposed-updates'), (800, 
'unstable-debug'), (800, 'unstable'), (790, 'buildd-unstable'), (700, 
'experimental-debug'), (700, 'experimental'), (690, 'buildd-experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 4.9.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_AU.utf8, LC_CTYPE=en_AU.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages tmperamental depends on:
ii  libc6  2.24-10

tmperamental recommends no packages.

tmperamental suggests no packages.

-- no debconf information

-- 
bye,
pabs

https://wiki.debian.org/PaulWise


signature.asc
Description: This is a digitally signed message part