Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 203092 - media-sound/timidity++-2.13.2-r6 initscript doesn't work
Summary: media-sound/timidity++-2.13.2-r6 initscript doesn't work
Status: RESOLVED DUPLICATE of bug 204727
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Sound Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-12-22 21:59 UTC by Ariel Poliak
Modified: 2009-05-12 15:20 UTC (History)
5 users (show)

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


Attachments
my local.start (local.start,482 bytes, text/plain)
2007-12-22 21:59 UTC, Ariel Poliak
Details
my local.stop (local.stop,316 bytes, text/plain)
2007-12-22 22:00 UTC, Ariel Poliak
Details
my timidity startup service script (timidity,697 bytes, text/plain)
2007-12-22 22:00 UTC, Ariel Poliak
Details
my syndaemon startup service script (syndaemon,440 bytes, text/plain)
2007-12-22 22:01 UTC, Ariel Poliak
Details
timidity configuration (timidity,912 bytes, text/plain)
2007-12-22 22:02 UTC, Ariel Poliak
Details
syndaemon configuration (syndaemon,368 bytes, text/plain)
2007-12-22 22:02 UTC, Ariel Poliak
Details
Patch to correct bad timidity.cfg-r1 file (timidity++-2.13.2-files_timidity.cfg-r1.patch,313 bytes, patch)
2008-02-10 00:59 UTC, Rafal Lalik
Details | Diff
Patch to repair timidity user group assigment (timidity++-2.13.2-userdir.patch,372 bytes, patch)
2008-02-10 01:09 UTC, Rafal Lalik
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ariel Poliak 2007-12-22 21:59:09 UTC
In my system, the syndaemon and timidity startup services fail to start.
portageq reports the following:
`portageq owners / /etc/init.d/syndaemon`
x11-drivers/synaptics-0.14.6
        /etc/init.d/syndaemon
`portageq owners / /etc/init.d/timidity`
media-sound/timidity++-2.13.2-r6
        /etc/init.d/timidity

However, when I put the start() and stop() parts in /etc/conf.d/local.start and /etc/conf.d/local.stop respectively, the services start without a problem.

I saw other bugs related to this, and attempted to implement their solutions to no avail. 

I Will post /etc/init.d/{timidity,syndaemon}, /etc/conf.d/{timidity,syndaemon,local.{start,stop}} as attachments.

Is there anything else that would be required to troubleshoot this?
Comment 1 Ariel Poliak 2007-12-22 21:59:54 UTC
Created attachment 139132 [details]
my local.start
Comment 2 Ariel Poliak 2007-12-22 22:00:18 UTC
Created attachment 139133 [details]
my local.stop
Comment 3 Ariel Poliak 2007-12-22 22:00:48 UTC
Created attachment 139135 [details]
my timidity startup service script
Comment 4 Ariel Poliak 2007-12-22 22:01:15 UTC
Created attachment 139136 [details]
my syndaemon startup service script
Comment 5 Ariel Poliak 2007-12-22 22:02:09 UTC
Created attachment 139138 [details]
timidity configuration
Comment 6 Ariel Poliak 2007-12-22 22:02:27 UTC
Created attachment 139140 [details]
syndaemon configuration
Comment 7 Jakub Moc (RETIRED) gentoo-dev 2007-12-22 22:31:36 UTC
Please stop mixing different issues into one bug. We have Bug 37767 for x11-drivers/synaptics and the thing will never work from an initscript as it needs running X.

You also neglected to post emerge --info output like the bug page told you.
Comment 8 Ariel Poliak 2007-12-23 07:37:26 UTC
I apologize about not including `emerge --info`... used the advanced form for the first time and forgot about that... here it is:
Portage 2.1.4_rc11 (default-linux/x86/2007.0/desktop, gcc-4.2.2, glibc-2.7-r1, 2.6.23-gentoo-r4 i686)
=================================================================
System uname: 2.6.23-gentoo-r4 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz
Timestamp of tree: Sat, 22 Dec 2007 00:16:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.1.3
dev-lang/python:     2.5.1-r4
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.10-r5
sys-apps/sandbox:    1.2.18.1-r2
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.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.23-r2
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /opt/openjms/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=pentium4 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS=""
FEATURES="distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://www.gtlib.gatech.edu/pub/gentoo                 ftp://mirror.iawnet.sandia.gov/pub/gentoo/                 http://open-systems.ufl.edu/mirrors/gentoo                 http://prometheus.cs.wmich.edu/gentoo                 http://mirror.usu.edu/mirrors/gentoo/                 ftp://mirror.usu.edu/mirrors/gentoo/                 ftp://lug.mtu.edu/gentoo                 http://mirror.mcs.anl.gov/pub/gentoo/                 ftp://mirror.mcs.anl.gov/pub/gentoo/                 http://gentoo.mirrors.easynews.com/linux/gentoo/                 http://gentoo.cites.uiuc.edu/pub/gentoo/                 ftp://gentoo.cites.uiuc.edu/pub/gentoo/ "
LINGUAS="en_US es_AR en es"
MAKEOPTS="-j3"
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://rsync.namerica.gentoo.org/gentoo-portage"
USE="3ds 7zip S3TC X X509 Xaw3d a52 aac aalib acct ace acl acpi addbookmarks additions administrator adns afs agg aim akode alac alias alsa amarok amazon amd amr animgif ao aotuv aqua_theme ares arts artworkextra asm aspnet2 async audacious audiofile autoipd automount autoreplace avahi background bash-completion battery bcmath beagle berkdb bigpatch binary-drivers binfilter bitmap-fonts bittorrent bl blender-game bluetooth bonjour bookmarks branding bzip2 cairo cal3d calendar caps carbone_theme cardbus ccache cdaudio cdda cddb cdf cdinstall cdio cdparanoia cdr cdrom cdsound child-protection chipcard chm cisco clamav cli clock-screen cmdsubmenu cmucl colordiff compress config_wizard connectionstatus console contactnotes cpio cpudetection cpufreq cpulimit cracklib crciprec crypt cscope css ctype cups curl curlwrappers cursors cvs daap dar32 dar64 dbus dc1394 dedicated depth32 device-mapper dga dhcp dia dict disk-partition divx djbfft djvu dmi dnd dolby-record-switch dom4j domain-aware domainkeys doomsday dpmod dri dts dv dvbplayer dvd dvdnav dvdr dvdread dvi dynamicplugin eap-tls ecc editor eds emboss emerald emf emoticon emovix enca encode enscript eolconv epiphany erandom escreen esd etwin evo excel exif extensions extra-cardsets extraicons extramodules faillog fam fame fasttrack fat fax fbcon fbcondecor fbdev fbsplash festival ffmpeg finger firefox fits fix-connected-rt flac flash flatfile flexresp2 fltk fluidsynth fmod font-server fontconfig foomaticdb force-cgi-redirect fortran fping freetts ftp fuse fusion gadu galago gcj gd gdbm gdl gdm gedit general ggi gif gimp gimpprint glade glgd glib glibc-compat20 glitz glsa glut gmail gmedia gmttria gnet gnokii gnome gnome-print gnuplot gnutella gnutls gocr gphoto2 gpm gps grace grammar graphviz gre groupwise gs gsf gsm gssapi gstreamer gtk gtkhtml gtkspell gzip gzip-el h323 hacking hal hash hbci hddtemp hesiod hfs high-ints highlight history howl howl-compat html http httpd hub hyperestraier hyperwave-api ibam ical icecast icon icons iconv icp icq id3 id3tag idea idle idn ieee1394 ifp ilbc image imagemagick imap imlib immqt-bc imq inherit-graph inifile injection inkjar inline innodb insecure-savers interpreter ipod iptv ipv6 irc irda irman irmc isdnlog iso14755 italk jabber jack jack-tmpfs jad jai java java5 javacomm javamail javascript jbig jce jfs jikes jingle jms john joystick jpeg jpeg2k jpgraph jrtplib jsapi jumpplay junit jython kcal kde kdeenablefinal kdepim kdm kerberos key-screen keyring keyscrub kipi krb4 l7filter ladspa lame lapack largeterminal lash latex lcd lcms ldap ldap-sasl libburn libcaca libdsk libsamplerate libsexy libwww lights live lm_sensors log4j login-watch logitech-mouse logrotate lua lyrics lzo lzw mad mail maildir maps markdown math matroska maya-shaderlibrary mbox mbrola mcal md5sum mdb mdnsresponder-compat memlimit menubar mew mhash midi mikmod mime mimencode ming mixer mjpeg mmap mmkeys mmx mmxext mng mod_irc mod_muc mod_pubsub modplug mono motif mounts-check mozdevelop mozembed mp2 mp3 mp4 mp4live mpd mpeg mpeg2 mpi mplayer mschap msdav msn mtp mudflap multiuser musepack music musicbrainz mysqli na_dd na_icons nas nat nautilus ncurses neXt net netboot nethack netmeeting netpbm network new-login nextaw nfs nis nls nntp nocd noepg nowlistening nptl nptlonly nsplugin ntfs ntlm ntp numarray nut nuv nvram oav obex objc++ objc-gc ocrad offensive office ogg openal opendoc openexr openft opengl openmp openntpd openssl opensslcrypt openstreetmap oscar oss overlays padlock pam pam_chroot pam_timestamp paste64 pcap pcapnav pcmcia pcntl pcre pda pdf perfprofiling perl physfs player plugin plugins pmu png pnm polling pop portaudio posix postproc postscript povray ppds pppd prediction prelude preview-latex print ps pvr pysolcards python qdbm qmax qq qsa qt3 qt3support qt4 query-browser quicktime quotes radio radius rar rc5 rdesktop react readline real realmedia recode reflection regex reiser4 reiserfs remix replytolist resolvconf restrict-javascript rfkill rle roe rotor rplay rpm rss rtc rtsp samba sametime scanner schedule screen scripting sdk sdl sdl-image sdl-sound sdlaudio seamless-hbars sensord server session sftp sguil sharedext sharedmem shorten shout sid signatures silc silvercity skey skins slang slp smime smp sms sndfile snmp snortsam sockets socks5 softfax sound sounds sourcecaps sourceview speech speedo speex spell spl sql sqlite sqlite3 srt sse sse2 ssl startup-notification staticsocket statistics stats stlport stream stroke subject-rewrite submenu subtitles subversion suidcheck svg svga svgz swat symlink sysfs syslog szip tagwriting talkfilters tcl tcpd tcpmd5 tcpwrapper tcsim tesseract tetex text texteffect textures tftp tga tgif themes theora thesaurus threads thunderbird tidy tiff timestats timidity tivo tk tlen tntc tokenizer toolbar toolkit-scroll-bars tools tordns tos totem transcode translator transmitter trayicon truetype truetype-fonts tv_check twinserial twolame type1-fonts udpfromto unicode unzip upnp usb userfiles utempter uuencode v4l v4l2 vcd vcdx vdr vhosts videos vidix vim vim-pager vim-with-x visual visualization vlm vnc vncviewer voice vorbis vorbis-psy wav wavpack web webdav webinterface webpresence wifi win32codecs winbind winpopup wireshark wma wmf wmp wordperfect wxwindows x11vnc x264 x86 xanim xattr xcb xcf xchatdccserver xcomposite xext xface xforms xfs xft xgetdefault xhtml xine xinerama xml xmlreader xmlrpc xmlwriter xorg xosd xpm xrandr xscreensaver xsettings xskatcards xsl xterm xulrunner xv xvid xvmc xvnc yaepg yahoo yp yv12 zeroconf zip zlib zvbi" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="synaptics mouse keyboard logitech evdev vmmouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_US es_AR en es" USERLAND="GNU" VIDEO_CARDS="radeon"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 9 Rafał Mużyło 2008-01-01 02:18:33 UTC
I've got a hunch, that his emerge --info doesn't really matter.
I recently noticed this problem too. timidity seemed to start in default, but a moment later its status was stopped again.
I extracted this command from /etc/init.d and /etc/conf.d:
start-stop-daemon --start --background --chuid timidity:nobody --make-pidfile --pidfile /var/run/timidity.pid --exec /usr/bin/timidity -- -iA -B2,8 -iA -Os -EFreverb=1 -c /usr/share/timidity/timidity.cfg;
echo $? added at the end reported 0, as it should, but timidity still stopped shortly after. So, I removed --background and got following output:
~/.timidity/current/timidity.cfg: Permission denied
~/.timidity/current/timidity.cfg: Permission denied
timidity: Can't read any configuration file.
Please check /usr/share/timidity/timidity.cfg
so it seems timidity doesn't like to be run by a user with no home dir (was run by root before), but as the point of this was to add security, somebody will probably have to patch timidity to work with those settings.
Comment 10 Rafal Lalik 2008-02-10 00:59:23 UTC
Created attachment 143072 [details, diff]
Patch to correct bad timidity.cfg-r1 file

I have found solution for this problem, but i can not say it is SOLVED.

The problem with runnig timidity relat to wrong /etc/timidity.cfg file. In this file entry "dir ~/.timidity" is before "dir /usr/share/timidity" what is wrong because next entry "source current/timidity.cfg" relat to last dir entry (as I suppose, maybe I am wrong).

My simply patch correct this error. :-]
Comment 11 Rafal Lalik 2008-02-10 01:09:27 UTC
Created attachment 143073 [details, diff]
Patch to repair timidity user group assigment

Second problem which i found after patched the config file was with privileges to use audio devices. I can't understand why user timidity who has audio group as a default, cannot use audio device. I don't know is it problem with my Gentoo or not, but this simply patch repair this problem on my machine. I just added user timidity to additional group which is... audio group. I know, it looks funny but it works.

Maybe my emerge --info will help with this strange problem:

# emerge --info
Portage 2.1.4.1 (default-linux/amd64/2007.0, gcc-4.2.2, glibc-2.7-r1, 2.6.24-gentoo x86_64)
=================================================================
System uname: 2.6.24-gentoo x86_64 Intel(R) Core(TM)2 Duo CPU T7500 @ 2.20GHz
Timestamp of tree: Sat, 09 Feb 2008 15:30:06 +0000
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.4
dev-lang/python:     2.5.1-r5
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.5, 1.6.3, 1.7.9-r1, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.24
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=nocona -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks logs metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="pl_PL.UTF-8"
LC_ALL="pl_PL.UTF-8"
LINGUAS="pl en"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acl acm acpi alsa amd64 apm bash-completion berkdb bitmap-fonts cli cracklib crypt cups dbus dell dri fortran gdbm gpm hal iconv isdnlog jpeg kde kerberos laptop lm_sensors midi mmx mmxext mudflap ncurses nls nptl nptlonly nsplugin ntpl ntplonly nvidia opengl openmp pam pcre pdf perl pmu png pppd python qt3 qt3support qt4 readline reflection session slang spl sse sse2 ssl ssse3 svg tcpd truetype-fonts type1-fonts unicode vim-syntax xcomposite xinerama xorg xvmc zlib" ALSA_CARDS="hda-intel" 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" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="pl en" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


I hope i could help you with timidity++ problems.

Have fun with MIDI and sorry for my weak english ;-]
Comment 12 Rafał Mużyło 2008-02-20 16:21:18 UTC
Fix from comment 10 seems to work.
Haven't run into problem from comment 11, but that could be a result of my attempts to fix the problem, cause I added user timidity to a few groups.
Comment 13 Vytautas Jakutis 2008-04-03 13:52:50 UTC
there's my solution:
1) add user "timidity" to group "pulse-access"
2) in "/etc/init.d/timidity" change "timidity:nobody" to "timidity:audio"
3) in "/etc/timidity.cfg" move "dir ~/.timidity" above "dir /usr/share/timidity"
Comment 14 Christian Gmeiner 2008-07-04 06:02:37 UTC
there's my solution:

1) in "/etc/init.d/timidity" remove "timidity:nobody" part
Comment 15 Rafał Mużyło 2008-07-04 18:48:46 UTC
That's a non-solution, cause the whole point of this exercise
was to run timidity as non-root.
Comment 16 Simone Scanzoni 2008-12-26 18:07:35 UTC
Same problem here with media-sound/timidity++-2.13.2-r7.
I tried to solve it by myself before looking here and I found the same "solution" as Vytautas Jakutis, without adding user "timidity" to group "pulse-access".
From a quick look in the manpages it seemed to me that changing the order of the dir statements makes Timidity use the global configuration before the user's one.
Comment 17 Stéphane Bisinger 2009-02-16 07:30:10 UTC
Commenting the line which loads the user config (wouldn't work anyway since timidity is running as timidity user) and loading it with group audio instead of nobody works for me too. It's weird because timidity user is in the audio group...
Comment 18 quazgar 2009-03-12 17:34:34 UTC
Hmm, could bug #256233 be a duplicate of this one? Or maybe just a specific aspect.
Comment 19 Clemmitt M. Sigler 2009-04-04 15:11:16 UTC
(In reply to comment #18)
> Hmm, could bug #256233 be a duplicate of this one? Or maybe just a specific
> aspect.

Hi,

I've been bitten by this bug for quite a while (seemed to happen with upgrade from 2.13.2-r5 to 2.13.2-r7 on 6 Dec 2008).  Now I'm working with audio again and need to get this fixed.  I've found that two patches were needed:

1.) Patch to timidity.cfg from Comment #10 above (attachment 143072 [details, diff]);
2.) Patch to /etc/init.d/timidity from Bug #256233 (in the #1 comment for that bug) to make the start-stop-daemon command use "--chuid timidity:audio" as the correct uid:gid for the process.

With those two minor fixes, this now WFM.  HTH.

Clemmitt
Comment 20 Samuli Suominen (RETIRED) gentoo-dev 2009-05-12 15:20:13 UTC
This should be fixed with -r8, seems like a almost-dupe to 

*** This bug has been marked as a duplicate of bug 204727 ***