Package: ocsinventory-agent Version: 1:1.0.1-1 Severity: serious Tags: patch Justification: Fails to install/upgrade.
Hello Pierre, Gonéri. Failure to install: | mktemp: cannot create temp file /tmp/ocsinv.XXXX: Invalid argument | dpkg: error processing ocsinventory-agent (--configure): | subprocess post-installation script returned error exit status 1 | Errors were encountered while processing: | ocsinventory-agent | E: Sub-process /usr/bin/dpkg returned an error code (1) (Some vimists? “debian/:” is a strange file. :p) The attached patch fixed it for me. Mraw, KiBi. -- System Information: Debian Release: squeeze/sid APT prefers unstable APT policy: (500, 'unstable') Architecture: amd64 (x86_64) Kernel: Linux 2.6.28-rc9-kibi (SMP w/2 CPU cores) Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages ocsinventory-agent depends on: ii debconf [debconf-2.0] 1.5.26 Debian configuration management sy ii libcompress-zlib-perl 2.015-1 Perl module for creation and manip ii libnet-ip-perl 1.25-2 Perl extension for manipulating IP ii libnet-ssleay-perl 1.35-2 Perl module for Secure Sockets Lay ii libproc-daemon-perl 0.03-2 Run Perl program as a daemon proce ii libwww-perl 5.825-1 WWW client/server library for Perl ii libxml-simple-perl 2.18-1 Perl module for reading and writin ii perl 5.10.0-19 Larry Wall's Practical Extraction ii po-debconf 1.0.15 manage translated Debconf template ii ucf 3.0018 Update Configuration File: preserv ocsinventory-agent recommends no packages. Versions of packages ocsinventory-agent suggests: ii dmidecode 2.9-1 Dump Desktop Management Interface ii nmap 4.68-1 The Network Mapper ii pciutils 1:3.1.2-2 Linux PCI Utilities -- debconf information excluded
--- a/debian/: +++ b/debian/: @@ -50,7 +50,7 @@ case "$1" in TAG="$RET" # Creating local sample config - TMPFILE=`mktemp /tmp/ocsinv.XXXX` + TMPFILE=`mktemp /tmp/ocsinv.XXXXXXXX` if [ -n "$SERVER" ]; then echo "server=$SERVER" >> $TMPFILE fi --- a/debian/ocsinventory-agent.postinst +++ b/debian/ocsinventory-agent.postinst @@ -50,7 +50,7 @@ case "$1" in TAG="$RET" # Creating local sample config - TMPFILE=`mktemp /tmp/ocsinv.XXXX` + TMPFILE=`mktemp /tmp/ocsinv.XXXXXXXX` if [ -n "$SERVER" ]; then echo "server=$SERVER" >> $TMPFILE fi