Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 149329

Summary: media-tv/mythtv should use elog instead of mixing echo and einfo
Product: Gentoo Linux Reporter: cazzantonio <alpiturchi>
Component: New packagesAssignee: Doug Goldstein (RETIRED) <cardoe>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description cazzantonio 2006-09-27 11:05:01 UTC
mythtv ebuild (all versions) does not save einfo correclty in the elog logs.
This is because crucial informations are echoed to the console through the "echo" command instead of "einfo" (which is logged by elog).
This is not a terrible bug but is a very annoying thing if you relay on elog to read the einfo printed by emerge.

this is an exemple:
pkg_postinst() {
        if ! use backendonly; then
                echo    ###who cares for this line? the problem is below
                einfo "Want mythfrontend to start automatically? Run the following:"
                echo "crontab -e -u mythtv"  #### this is a line that doesn't get logged
                einfo "Add add the following:"
                echo "* * * * * /usr/bin/runmythfe &"  ##### another one
        fi
        echo
        einfo "To always have MythBackend running and available run the following:"
        echo "rc-update add mythbackend default"  #another
        echo
        ewarn "Your recordings folder must be owned by the user 'mythtv' now"
        echo "chown -R mythtv /path/to/store"  #idem
}

I hope there are no other ebuilds that behave this way... If I'll find some of them I'll let you know ;-)
Comment 1 Steve Dibb (RETIRED) gentoo-dev 2006-09-30 05:52:06 UTC
Thanks, fixed in CVS