| Summary: | net-im/twinkle (w/ USE=speex) needs >=media-libs/speex-1.2_beta2 w/ USE=wideband | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | David Watzke <david> |
| Component: | [OLD] Library | Assignee: | Daniel Black (RETIRED) <dragonheart> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | dschridde+gentoobugs, jokey |
| Priority: | High | ||
| Version: | 2007.0 | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Attachments: |
Patched ebuild.
Version check with speex now. Updated with speex check. |
||
|
Description
David Watzke
2007-08-29 12:29:06 UTC
diff twinkle-1.1* -u
--- twinkle-1.1.ebuild 2007-07-23 10:37:51.000000000 +0100
+++ twinkle-1.1-r1.ebuild 2007-09-02 01:54:25.000000000 +0100
@@ -27,6 +27,13 @@
DEPEND="${RDEPEND}
dev-util/pkgconfig"
+pkg_setup() {
+ if ! built_with_use media-libs/speex wideband; then
+ eerror "You need to build media-libs/speex with USE=wideband enabled."
+ die "Speex w/o wideband-support detected."
+ fi
+}
+
src_unpack() {
unpack ${A}
cd "${S}"
Created attachment 129810 [details]
Patched ebuild.
Add the detection part. Twinkle twinkles now:).
AFAIK this will fail with older speex versions without wideband flag. Created attachment 129830 [details]
Version check with speex now.
Speex-1.2* is required in this ebuild. I haven't tested the 1.1 serious, so I make it a requirement rather than an option.
OMG. First of all, if you want to depend on speex 1.2*, you should do it in the DEPEND variable. Second: it's nonsense! It works fine with older versions. Use something like: if has_version '>=media-libs/speex-1.2_beta2' && ! built_with_use 'media-libs/speex' wideband; then eerror "You need to build media-libs/speex with USE=wideband" die "Speex without wideband-support detected." fi Created attachment 129831 [details]
Updated with speex check.
Sorry, I am new to ebuild. Thanks for the information.
~x86 is used by most of my friends and I assume it is the same as in other places. People who use twinkle tends to be desktop users and most of them use ~x86. So their speex are updated to 1.2*. That's why I didn't tested the 1.1 serious, and I mentioned it too.
Anyway, I updated and hope it works.
Yeah, but speex 1.2_beta2 is new in here, twinkle 1.1 has been there for a longer time, so I used it with older speex (running ~amd64). Anyway, I suppose that wideband flag will be present from now (1.2_beta2) on, so I don't get why did you changed has_version '>=media-libs/speex-1.2_beta2' as I proposed to '=media-libs/speex-1.2*'. I am not familiar with the version expression. So I chose one I understand and it should work for this minor release(speex 1.2*). *** Bug 191288 has been marked as a duplicate of this bug. *** thanks David and William. David - please keep the dramatic language out of bug reports. It just sounds rude. Helpful polite well explained suggestions are the way to go. (In reply to comment #10) > David - please keep the dramatic language out of bug reports. It just sounds > rude. Helpful polite well explained suggestions are the way to go. Sure, I'm sorry (William). It won't happen again. *** Bug 192515 has been marked as a duplicate of this bug. *** |