Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 34174 - missing config files in nut-1.5.8
Summary: missing config files in nut-1.5.8
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Robin Johnson
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-23 04:33 UTC by Markku Kolkka
Modified: 2003-11-23 15:52 UTC (History)
1 user (show)

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


Attachments
Change ${ROOT} to ${D} (nut-1.5.8.diff,553 bytes, patch)
2003-11-23 08:49 UTC, Tony Vroon (RETIRED)
Details | Diff
Sed magic to fix config, moved file permissions to src_install. (nut-1.5.8.ebuild.diff,1.15 KB, patch)
2003-11-23 09:19 UTC, Tony Vroon (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Markku Kolkka 2003-11-23 04:33:58 UTC
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"
Comment 1 Tony Vroon (RETIRED) gentoo-dev 2003-11-23 08:49:23 UTC
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.
Comment 2 Tony Vroon (RETIRED) gentoo-dev 2003-11-23 08:54:55 UTC
Ignore me, I haven't woken up yet. That patch doesn't fix anything.
Looking into it harder.
Comment 3 Tony Vroon (RETIRED) gentoo-dev 2003-11-23 09:19:05 UTC
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.
Comment 4 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-11-23 15:52:06 UTC
fixed in CVS, partially based on your patch.