Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 47376 - net-www/middleman-2.0.1: Default config copied to wrong directory
Summary: net-www/middleman-2.0.1: Default config copied to wrong directory
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Gentoo Web Application Packages Maintainers
Depends on:
Reported: 2004-04-09 12:51 UTC by Malte S. Stretz
Modified: 2004-06-26 18:10 UTC (History)
2 users (show)

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


Note You need to log in before you can comment on or make changes to this bug.
Description Malte S. Stretz 2004-04-09 12:51:25 UTC
I just emerged middleman and the config files were copied to /etc/mman/mman/{config,section}.xml (one subdir too much).

Reproducible: Always
Steps to Reproduce:
1. emerge middleman
2. ls /etc/mman
Actual Results:  
total 1 
drwxr-xr-x    2 root     root          112 Apr  9 22:34 mman 

Expected Results:  
total 108 
-rw-r--r--    1 root     root        43376 Apr  9 22:34 config.xml 
-rw-r--r--    1 root     root        63041 Apr  9 22:34 section.xml 

Portage 2.0.50-r3 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 
System uname: 2.6.3-gentoo-r1 i686 mobile AMD Athlon(tm) XP 1900+ 
Gentoo Base System version 
distcc 2.12.1 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) 
ccache version 2.3 [enabled] 
Autoconf: sys-devel/autoconf-2.58-r1 
Automake: sys-devel/automake-1.8.3 
CFLAGS="-mcpu=athlon-xp -O2 -pipe" 
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/kde/cvs/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" 
CXXFLAGS="-mcpu=athlon-xp -O2 -pipe" 
FEATURES="autoaddcvs ccache sandbox" 
PORTDIR_OVERLAY="/root/.portage/overlay /home/mss/.portage/mortage" 
USE="3dnow X aalib aavm acl acpi acpi4linux alsa apache2 apm arts avi berkdb 
cdr crypt cups curl directfb dnd dvd encode esd ethereal faad fam fbcon flac 
foomaticdb freetype gdbm geoip gif gphoto2 gpm gps gstreamer gtk gtk2 guile 
imagemagick imap imlib ipv6 jabber java jpeg kde ldap libg++ libwww mad 
maildir mmx mng motif mozilla moznocompose moznoirc mpeg nas ncurses nls odbc 
oggvorbis opengl pam pcap pcmcia pdflib perl png pnp python qt quicktime 
readline regexp samba sasl scanner sdl slang slp socks5 spell sse ssl stroke 
svga tcltk tcpd tetex tiff transcode truetype trusted type1 uml usagi usb wmf 
x86 xchattext xinerama xml2 xmms xv zlib"
Comment 1 Sebastian Siewior 2004-04-19 13:53:29 UTC
fix it the following way:
edit /etc/init.d/mman, add
 [ "${SECTION}" != "" ] && myopts="${myopts} -s ${SECTION}"

after the {LOGLEVEL} line 32

to /etc/conf.d/mman

and move config.xml & section.xml from /etc/mman/mman/ to /etc/mman/ (1 directory up)
Comment 2 Stuart Herbert (RETIRED) gentoo-dev 2004-04-23 10:41:00 UTC
Package: net-www/middleman-2.0.1-r1

I've committed a fix for this bug.  It should appear on your local rsync mirror in about an hour.  Could you test it please, and let me know if it works for you or not?

Many thanks,
Comment 3 solar (RETIRED) gentoo-dev 2004-04-23 11:31:09 UTC
Thanks Stuart.

Dear Readers.
I've talked with jasonmc and he has infomed me of his plans to 
discontinue supporting middle-man as an OSS project.

I've requested that I be giving admin privs at the sourceforge site so 
that the project may not totally die off (security fixes or whatever).
Anyway case in point middle-man is in maintenance only mode now.
Comment 4 Sebastian Siewior 2004-04-23 12:19:30 UTC
You still didnt apply the patch to make the program start:
diff -ru old/conf.d/mman new/conf.d/mman
--- old/conf.d/mman     2004-04-23 21:11:38.959730608 +0200
+++ new/conf.d/mman     2004-04-23 21:11:30.405031120 +0200
@@ -4,3 +4,4 @@
diff -ru old/init.d/mman new/init.d/mman
--- old/init.d/mman     2004-04-23 21:12:11.060850496 +0200
+++ new/init.d/mman     2004-04-23 21:12:03.268035184 +0200
@@ -29,6 +29,7 @@
        [ "${CONFIG}" != ""  ] && myopts="${myopts} -c ${CONFIG}"
        [ "${LOGFILE}"  != "" ] && myopts="${myopts} -l ${LOGFILE}"
        [ "${LOGLEVEL}" != "" ] && myopts="${myopts} -d ${LOGLEVEL}"
+       [ "${SECTION}" != "" ] && myopts="${myopts} -s ${SECTION}"
        ebegin "Starting mman"
        start-stop-daemon --start --quiet --exec /usr/bin/mman -- ${myopts}
i you dont do, you get

Delancey init.d # ./mman start
 * Starting mman...
section file option missing                                                                                                                                                 [ !! ]

Delancey init.d # 
due to missing section settings in the start script.
Comment 5 Stuart Herbert (RETIRED) gentoo-dev 2004-04-23 12:48:10 UTC
Sorry - it's been a long day.

I've added your patch to the init.d file, and it should be appearing on an rsync mirror near you in about an hour.  Let me know if I've got it right this time, and if there's anything else I've missed ;-)

Best regards,
Comment 6 Sebastian Siewior 2004-04-23 13:55:40 UTC
great, you almost finished :)

just add


to the /etc/conf.d/mman and your work is complete after a long day :)
Comment 7 Stuart Herbert (RETIRED) gentoo-dev 2004-04-23 15:11:01 UTC
Done.  Thank you for testing this ;-)

Best regards,
Comment 8 Stuart Herbert (RETIRED) gentoo-dev 2004-06-26 17:41:50 UTC
Closing old bug
Comment 9 solar (RETIRED) gentoo-dev 2004-06-26 18:10:23 UTC
thanks stu