some files is missing in nut-2.0.5 like hosts.conf, upsset.conf ...(during the install phase of emerging nut) this ebuild fix it. Reproducible: Always Steps to Reproduce: 1. emerge sys-power/nut 2. look at errors messages (files missing) during chown and chmod permissions changes. 3. Expected Results: chmod: ne peut accéder `/var/tmp/portage/sys-power/nut-2.0.5-r2/image//etc/nut/hosts.conf': Aucun fichier ou répertoire de ce type chmod: ne peut accéder `/var/tmp/portage/sys-power/nut-2.0.5-r2/image//etc/nut/upsset.conf': Aucun fichier ou répertoire de ce type chmod: ne peut accéder `/var/tmp/portage/sys-power/nut-2.0.5-r2/image//etc/nut/upsstats.html': Aucun fichier ou répertoire de ce type chmod: ne peut accéder `/var/tmp/portage/sys-power/nut-2.0.5-r2/image//etc/nut/upsstats-single.html': Aucun fichier ou répertoire de ce type chown: ne peut accéder `/var/tmp/portage/sys-power/nut-2.0.5-r2/image//etc/nut/hosts.conf': Aucun fichier ou répertoire de ce type chown: ne peut accéder `/var/tmp/portage/sys-power/nut-2.0.5-r2/image//etc/nut/upsset.conf': Aucun fichier ou répertoire de ce type chown: ne peut accéder `/var/tmp/portage/sys-power/nut-2.0.5-r2/image//etc/nut/upsstats.html': Aucun fichier ou répertoire de ce type chown: ne peut accéder `/var/tmp/portage/sys-power/nut-2.0.5-r2/image//etc/nut/upsstats-single.html': Aucun fichier ou répertoire de ce type Portage 2.1.3.9 (default-linux/amd64/2007.0, gcc-4.1.2, glibc-2.5-r4, 2.6.22-gentoo-r8 x86_64) ================================================================= System uname: 2.6.22-gentoo-r8 x86_64 Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz Timestamp of tree: Thu, 04 Oct 2007 07:50:01 +0000 distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.4 [enabled] app-shells/bash: 3.2_p17 dev-java/java-config: 1.3.7, 2.0.33-r1 dev-lang/python: 2.4.4-r5 dev-python/pycrypto: 2.0.1-r6 dev-util/ccache: 2.4-r7 sys-apps/baselayout: 1.12.9-r2 sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.61-r1 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 sys-devel/binutils: 2.17-r1 sys-devel/gcc-config: 1.3.16 sys-devel/libtool: 1.5.24 virtual/os-headers: 2.6.21 ACCEPT_KEYWORDS="amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=nocona -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/X11/xkb" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-march=nocona -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox" GENTOO_MIRRORS="http://mirror.ovh.net/gentoo-distfiles/ http://ftp.club-internet.fr/pub/mirrors/gentoo http://pandemonium.tiscali.de/pub/gentoo/ " LANG="fr_FR.UTF-8" LC_ALL="fr_FR.UTF-8" LINGUAS="fr" MAKEOPTS="-j5" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://192.168.253.54/gentoo-portage" USE="X a52 aac acl acpi alsa amd64 berkdb bitmap-fonts cli cracklib crypt cups dbus dri dvd encode exif fortran gdbm gif gpm gtk hal iconv ipv6 isdnlog ithreads java jpeg logrotate mad midi mmx mp3 mudflap ncurses nls nptl nptlonly ogg opengl openmp oss pam pcre perl png pppd python readline reflection sdl session spl sse sse2 ssl startup-notification tcpd threads tiff truetype truetype-fonts type1-fonts unicode usb v4l vorbis wxwindows x264 xml xorg xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" CAMERAS="ptp2" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="fr" USERLAND="GNU" VIDEO_CARDS="nv nvidia" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Created attachment 132573 [details] compilation and installation messages
Created attachment 132575 [details] ebuild with files permissions (files missing) fixed Look at NUT_PUBLIC_FILES list.
Please, attach a unified diff.
Created attachment 132583 [details] unified diff between nut-2.0.5-r2.ebuild and my sys-power/nut ebuild