| Bug#: 142203 | Product: Gentoo Linux | Version: 2006.0 | Platform: All |
| OS/Version: Linux | Status: RESOLVED | Severity: major | Priority: P1 |
| Resolution: FIXED | Assigned To: media-video@gentoo.org | Reported By: jakub@gentoo.org | |
| Component: Ebuilds | |||
| URL: | |||
| Summary: media-video/ogmrip spooky pkg_setup() | |||
| Keywords: | |||
| Status Whiteboard: | |||
| Opened: 2006-07-30 11:09 0000 | |||
| Description: | Opened: 2006-07-30 11:09 0000 |
<snip>
pkg_setup() {
if ! which mencoder > /dev/null 2>&1; then
eerror "Unable to find mencoder in the PATH. You need mencoder
to use OGMRip."
eerror "Please, add encode to your USE flags and emerge mplayer
again."
die "Unable to find mencoder in the PATH. You need mencoder to
use OGMRip."
fi
if ! mencoder -ovc help 2> /dev/null | grep -q "^ *xvid *- .*$"; then
echo
eerror "Mplayer is not build with XviD support. OGMRip requires
XviD support in mplayer."
eerror "Please, add xvid to your USE flags and emerge mplayer
again."
die "Mplayer is not build with XviD support. OGMRip requires
XviD support in mplayer."
fi
}
</snip>
Err...
1/ mplayer is in RDEPEND, why would one miss mencoder? What are you after here?
2/ Use built_with_use check from eutils eclass, perhaps?
Created an attachment (id=93074) [details]
ogmrip-0.9.0-r2.ebuild.diff
- fix pkg_setup()
- add quoting
- do not dodoc COPYING INSTALL
Created an attachment (id=94473) [details]
An updated version of the patch
Added this to ogmrip-0.9.0-r1.ebuild.