[Pkg-gmagick-im-team] Bug#791460: convert: ignores TMP TMPDIR TEMP TEMPDIR environment variables
Paul Wise
pabs at debian.org
Sun Jul 5 07:12:57 UTC 2015
Package: imagemagick-6.q16
Version: 8:6.8.9.9-5
Severity: normal
File: /usr/lib/x86_64-linux-gnu/ImageMagick-6.8.9/bin-Q16/convert
Usertags: tmp
I request packages to use a different directory for temporary files via
the TMP TMPDIR TEMP TEMPDIR environment variables but convert ignores
them in favour of /tmp. Here is an example of reproducing this:
pabs at chianamo ~ $ env | egrep 'TE?MP'
TMPDIR=/home/pabs/tmp
TEMP=/home/pabs/tmp
TEMPDIR=/home/pabs/tmp
TMP=/home/pabs/tmp
pabs at chianamo ~ $ wget -q http://www.spi-inc.org/treasurer/SPI_reimbursement_request.pdf
pabs at chianamo ~ $ strace -F -f -e trace=process,file convert SPI_reimbursement_request.pdf SPI_reimbursement_request.png 2>&1 | grep /tmp/
open("/tmp/magick-2763XXXXXXWYNn4x", O_RDWR|O_CREAT|O_EXCL, 0600) = 4
unlink("/tmp/magick-2763XXXXXXWYNn4x") = 0
open("/tmp/magick-2763XXXXXXOeir6c", O_RDWR|O_CREAT|O_EXCL, 0600) = 4
unlink("/tmp/magick-2763XXXXXXOeir6c") = 0
open("/tmp/magick-2763fBAQXiv9qz8R", O_RDWR|O_CREAT|O_EXCL, 0600) = 4
unlink("/tmp/magick-2763fBAQXiv9qz8R") = 0
unlink("/tmp/magick-2763fBAQXiv9qz8R.cache") = -1 ENOENT (No such file or directory)
unlink("/tmp/magick-2763fBAQXiv9qz8R") = -1 ENOENT (No such file or directory)
symlink("/home/pabs/SPI_reimbursement_request.pdf", "/tmp/magick-2763fBAQXiv9qz8R") = 0
open("/tmp/magick-2763cbdqvArxIsbx", O_RDWR|O_CREAT|O_EXCL, 0600) = 3
open("/tmp/magick-2763ifRghPez0Cec", O_RDWR|O_CREAT|O_EXCL, 0600) = 3
unlink("/tmp/magick-2763ifRghPez0Cec") = 0
unlink("/tmp/magick-2763ifRghPez0Cec.cache") = -1 ENOENT (No such file or directory)
unlink("/tmp/magick-2763ifRghPez0Cec") = -1 ENOENT (No such file or directory)
...
-- System Information:
Debian Release: stretch/sid
APT prefers testing
APT policy: (900, 'testing'), (860, 'testing-proposed-updates'), (850, 'buildd-testing-proposed-updates'), (800, 'unstable'), (790, 'buildd-unstable'), (700, 'experimental'), (690, 'buildd-experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 4.0.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 imagemagick-6.q16 depends on:
ii hicolor-icon-theme 0.13-1
ii libc6 2.19-18
ii libmagickcore-6.q16-2 8:6.8.9.9-5
ii libmagickwand-6.q16-2 8:6.8.9.9-5
Versions of packages imagemagick-6.q16 recommends:
ii ghostscript 9.06~dfsg-2
ii libmagickcore-6.q16-2-extra 8:6.8.9.9-5
ii netpbm 2:10.0-15.2
Versions of packages imagemagick-6.q16 suggests:
pn autotrace <none>
pn cups-bsd | lpr | lprng <none>
ii curl 7.43.0-1
pn enscript <none>
pn ffmpeg <none>
ii gimp 2.8.14-1+b1
pn gnuplot <none>
pn grads <none>
ii graphviz 2.38.0-9
ii groff-base 1.22.3-1
pn hp2xx <none>
pn html2ps <none>
pn imagemagick-doc <none>
pn libwmf-bin <none>
ii mplayer2 [mplayer] 2.0-728-g2c378c7-4+b1
pn povray <none>
pn radiance <none>
ii sane-utils 1.0.24-13
pn texlive-base-bin <none>
pn transfig <none>
pn ufraw-batch <none>
ii xdg-utils 1.1.0~rc1+git20111210-7.4
-- no debconf information
--
bye,
pabs
https://wiki.debian.org/PaulWise
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part
URL: <http://lists.alioth.debian.org/pipermail/pkg-gmagick-im-team/attachments/20150705/f976390a/attachment.sig>
More information about the Pkg-gmagick-im-team
mailing list