Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 265294 - Failed to install app-backup/amanda-2.6.0_p2-r4 at pkg_postinst: Variable setting file ... should exist
Summary: Failed to install app-backup/amanda-2.6.0_p2-r4 at pkg_postinst: Variable set...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: App-Backup Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-07 12:17 UTC by Martin Stockinger
Modified: 2009-04-10 07:40 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Stockinger 2009-04-07 12:17:50 UTC
Get following error when emerging amanda-2.6.0_p2-r4:

 * 
 * ERROR: app-backup/amanda-2.6.0_p2-r4 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called pkg_postinst
 *             environment, line 2582:  Called die
 * The specific snippet of code:
 *       [ ! -f "${aux}" ] && die "Variable setting file (${aux}) should exist!";
 *  The die message:
 *   Variable setting file (///usr/share/amanda/tmpenv-97amanda) should exist!


Reproducible: Always




cat /etc/env.d/97amanda 
# These settings are what was present in the environment when this
# Amanda was compiled.  Changing anything below this comment will
# have no effect on your application, but it merely exists to
# preserve them for your next emerge of Amanda
AMANDA_CONFIG_NAME=taeglich
AMANDA_DBGDIR=/var/spool/amanda/tmp
AMANDA_DBMODE=text
AMANDA_GROUP_GID=162
AMANDA_GROUP_NAME=backup
AMANDA_MAX_TAPE_BLOCK_KB=512
AMANDA_PORTS=''
AMANDA_PORTS_BOTH=''
AMANDA_PORTS_TCP=''
AMANDA_PORTS_UDP=''
AMANDA_SERVER=uhu.bayerwald-fenster.de
AMANDA_SERVER_INDEX=uhu.bayerwald-fenster.de
AMANDA_SERVER_TAPE=uhu.bayerwald-fenster.de
AMANDA_TAR=/bin/tar
AMANDA_TAR_LISTDIR=/var/spool/amanda/tar-lists
AMANDA_TMPDIR=/var/spool/amanda/tmp
AMANDA_USER_GROUPS=backup
AMANDA_USER_HOMEDIR=/var/spool/amanda
AMANDA_USER_NAME=amanda
AMANDA_USER_SH=/bin/false
AMANDA_USER_UID=737


emerge --info
Portage 2.1.6.7 (default/linux/x86/2008.0/desktop, gcc-4.1.2, glibc-2.8_p20080602-r1, 2.6.27-gentoo-r8 i686)
=================================================================
System uname: Linux-2.6.27-gentoo-r8-i686-AMD_Athlon-tm-_X2_Dual_Core_Processor_BE-2350-with-glibc2.0
Timestamp of tree: Mon, 06 Apr 2009 23:45:01 +0000
distcc 3.0 i686-pc-linux-gnu [disabled]
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7-r1, 2.1.7
dev-lang/python:     2.5.2-r7
dev-python/pycrypto: 2.0.1-r8
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib/fax /usr/lib/xemacs/xemacs-packages/lisp/debug/gdbsrc.el /var/lib/hsqldb /var/spool/fax/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=i686 -fomit-frame-pointer"
DISTDIR="/mount/portage_distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps y"
FEATURES="ccache collision-protect distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch usersandbox"
GENTOO_MIRRORS="ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo"
LANG="C"
LDFLAGS="-Wl,-O1"
LINGUAS="de"
MAKEOPTS="-j2"
PKGDIR="/mount/portage_packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/mount/portage"
PORTDIR_OVERLAY="/usr/local/overlays/local /global/common/gentoo_overlay"
SYNC="rsync://rsync-gentoo/gentoo-portage"
USE="X Xaw3d a52 acl acpi alsa apache2 asf athena automount bash-completion berkdb branding buffysize bzip2 cairo cdparanoia cdr chroot cleartype cli cracklib crypt cups dbus divx4linux dri dvd dvdr dvdread emacs emboss encode erandom evo exif fam faxonly fbcon ffmpeg firefox flac font-server gdbm gif gnome gnome-keyring gphoto2 gpm gstreamer gtk hal hbci i8x0 iconv idea idn imap informix ipv6 isdnlog java javascript jbig jpeg jpeg2k kerberos kpathsea ldap libnotify logrotate lzw mad maildir mbox midi mikmod mime mmx motif mozbranding moznocompose moznoirc moznomail mozsvg mozxmlterm mp3 mpeg mplayer mudflap ncurses nfs nis nls no-old-linux nodrm nosendmail nptl nptlonly nsplugin oci8-instant-client ogg opengl openmp oracle overlays pam pcf pcre pda pdf perl png ppds pppd procmail psf python qt3 qt3support qt4 quicktime quotas readline reflection samba sasl sdl sensord session slp spell spl sse sse2 ssl startup-notification svg svga sysfs syslog tcpd threadsafe tiff tools transcode truetype unicode urandom usb userlocales vim-syntax vorbis win32codecs wmf x86 xine xml xorg xprint xulrunner xv zlib" ALSA_CARDS="hda_intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_alias authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex asis cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_ftp proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" USERLAND="GNU" VIDEO_CARDS="vesa vga fbdev intel nvidia nv"
Unset:  CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Joe Breuer 2009-04-10 07:33:03 UTC
Seconded. This appears to be related to the following two lines being commented out in src_install():

        #mkdir -p "${D}"/${MYINSTTMPDIR} || die
        #cp "${TMPENVFILE}" "${D}"/${TMPINSTENVFILE} || die

Which causes pkg_postinst() to abort with the error above, as this file cannot be found when pkg_postinst is run.

My scenario is an upgrade from 2.5.1p3.
Comment 2 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2009-04-10 07:40:40 UTC
fixed, sorry.