Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 43094 - Leafnode-2.0.0_alpha20040206 is looking for config file in /etc/ instead of /etc/leafnode/
Summary: Leafnode-2.0.0_alpha20040206 is looking for config file in /etc/ instead of ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Gentoo Net-news project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-27 05:49 UTC by Rui Malheiro
Modified: 2004-06-28 15:55 UTC (History)
1 user (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 Rui Malheiro 2004-02-27 05:49:07 UTC
After emerging leafnode-2.0.0_alpha20040206, leafnode  is looking for the config file in /etc/ instead of /etc/leafnode/

Reproducible: Always
Steps to Reproduce:
1. emerge "=leafnode-2.0.0_alpha20040206"
2. leafnode
3.

Actual Results:  
# leafnode 
503 Server misconfiguration: cannot read configuration file. 
# tail /var/log/messages 
Feb 27 13:37:05 vincent leafnode[17556]: cannot open /etc/config: No such file 
or directory 
Feb 27 13:37:05 vincent leafnode[17556]: 503 Server misconfiguration: cannot 
read configuration file. 
 

Expected Results:  
leafnode should be looking for the config file in /etc/leafnode/config 

Workaround: 
Specify the config file on the command line. I'm using xinetd, so I added 
"server_args = -F /etc/leafnode/config" to /etc/xinetd.d/leafnode-nntp. 
 
Aditionaly, during the emerge the folowing files were (wrongly) installed 
into /etc/: 
>>> /etc/config.example 
>>> /etc/filters.example 
 
 
Portage 2.0.50-r1 (default-x86-1.4, gcc-3.3.3, glibc-2.3.3_pre20040117-r0, 
2.6.3) 
================================================================= 
System uname: 2.6.3 i686 Intel(R) Pentium(R) 4 CPU 2.53GHz 
Gentoo Base System version 1.4.3.13 
distcc 2.12.1 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) 
[disabled] 
Autoconf: sys-devel/autoconf-2.59-r3 
Automake: sys-devel/automake-1.8.2 
ACCEPT_KEYWORDS="x86 ~x86" 
AUTOCLEAN="yes" 
CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -msse -mmmx -funroll-loops 
-fprefetch-loop-arrays -pipe" 
CHOST="i686-pc-linux-gnu" 
COMPILER="gcc3" 
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" 
CXXFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -msse -mmmx -funroll-loops 
-fprefetch-loop-arrays -pipe" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="autoaddcvs ccache sandbox" 
GENTOO_MIRRORS="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="/usr/local/portage" 
SYNC="rsync://kandinsky.6mil.pt/gentoo-portage" 
USE="X alsa apm arts avi berkdb bonobo cdr crypt cups dv dvd encode foomaticdb 
gdbm gif gphoto2 gpm gstreamer guile imlib java jpeg kde ldap libg++ libwww 
linguas_pt mad mikmod mmx motif mozilla mpeg ncurses nls oggvorbis opengl oss 
pam pdflib perl png postgres pt pt_PT python qt quicktime radeon readline 
samba sdl slang spell sse ssl svga tcpd tiff truetype x86 xml2 xv zlib"
Comment 1 Torsten Veller (RETIRED) gentoo-dev 2004-02-29 01:48:49 UTC
You must add "--sysconfdir=/etc/leafnode" to econf() (see below for my suggested src_compile()).


- local myconf
- 
- # ------------------------------------------------------
- # Enabling IPv6.
- # ------------------------------------------------------
- # If this was misdetected, then run either
- #   env cf_cv_ipv6=no /bin/sh ./configure YOUR_OPTIONS
- # or
- #   env cf_cv_ipv6=yes /bin/sh ./configure YOUR_OPTIONS
- # (of course, you need to replace YOUR_OPTIONS)
- # ------------------------------------------------------
-
- use ipv6 && myconf="--with-ipv6" ||     export cf_cv_ipv6=no

  econf \
+ `use_enable ipv6 IPv6` \
+ --sysconfdir=/etc/leafnode \
+ --enable-runas-user=news \
+ --enable-spooldir=/var/spool/news || die "econf failed"
- --with-runas-user=news --with-spooldir="/var/spool/news" \
- ${myconf} || die "./configure failed"
Comment 2 Seemant Kulleen (RETIRED) gentoo-dev 2004-06-05 22:13:40 UTC
punting these to you, Thomas, since you have some history with this package.
Comment 3 Sven Wegener gentoo-dev 2004-06-28 15:55:56 UTC
I just added leafnode-2.0.0_alpha20040513 to portage. This should fix this issue. Thanks for reporting.