The "skeleton" configuration files in /etc/nut (upsd.conf, upsd.users and upsmon.conf) are missing after installation. Reproducible: Always Steps to Reproduce: 1. emerge net-misc/nut 2. 3. Actual Results: Error messages: chown: failed to get attributes of `//etc/nut/upsd.conf': No such file or directory chown: failed to get attributes of `//etc/nut/upsd.users': No such file or directory chown: failed to get attributes of `//etc/nut/upsmon.conf': No such file or directory chmod: failed to get attributes of `//etc/nut/upsd.conf': No such file or directory chmod: failed to get attributes of `//etc/nut/upsd.users': No such file or directory chmod: failed to get attributes of `//etc/nut/upsmon.conf': No such file or directory Expected Results: The config files should have been installed. Portage 2.0.49-r15 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.4.20-gentoo-r8) ================================================================= System uname: 2.4.20-gentoo-r8 i686 AMD Duron(tm) Gentoo Base System version 1.4.3.12 distcc 2.11 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-O2 -march=athlon-xp -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-O2 -march=athlon-xp -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="sandbox ccache autoaddcvs" GENTOO_MIRRORS="ftp://trumpetti.atm.tut.fi/gentoo/ http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="x86 oss apm arts avi crypt encode foomaticdb gif gpm imlib jpeg libg++ mad mikmod mpeg ncurses nls oggvorbis pdflib png quicktime sdl spell svga truetype xml2 xmms xv zlib gdbm berkdb slang readline java libwww ssl perl python motif opengl mozilla 3dnow acpi cups emacs mmx pam sse tcpd usb X -gtk -gnome -qt -kde gtk2"
Created attachment 21153 [details, diff] Change ${ROOT} to ${D} Alright, this patchfile should fix it. Place the file in /usr/portage/net-misc/nut and apply with patch < nut-1.5.8.diff Devs, please apply this to the tree.
Ignore me, I haven't woken up yet. That patch doesn't fix anything. Looking into it harder.
Created attachment 21156 [details, diff] Sed magic to fix config, moved file permissions to src_install. s/asleep/awake/ Alright then. Somehow, install-conf was never called in the Makefile, resulting in the config files never getting installed. Some sed magic for that, and also to change head -1 to head -n1, no more errors from head. drivers.list no longer exists, removed that from dodoc call. Moved file permission changing to src_install, using the tools provided by portage. Devs, please commit this one to the tree, it's been thoroughly tested this time :) And committer, this should fix it for you. Apply instructions are identical.
fixed in CVS, partially based on your patch.