Summary: | dev-libs/m17n-lib-1.6.3 has an automagic app-i18n/anthy dependency | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Maxim Kammerer <mk> |
Component: | [OLD] Library | Assignee: | CJK Team <cjk> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | 424427 | ||
Bug Blocks: | |||
Attachments: |
m17n-lib-1.6.3.ebuild.patch
m17n-lib-1.6.3.ebuild.patch dev-libs:m17n-lib-1.6.3-r1:20120611-115550.log |
Description
Maxim Kammerer
2012-05-22 20:47:55 UTC
Created attachment 313311 [details, diff]
m17n-lib-1.6.3.ebuild.patch
Created attachment 313313 [details, diff]
m17n-lib-1.6.3.ebuild.patch
m17n-lib's code has fine #ifdef HAVE_FOO .. #endif, however most of them lack --with-foo options.
This patch add such options to pump dependencies. Maybe some of these flags can be dropped and force its dependencies.
I tested the patches with all USE flags disabled. libmimx-anthy.so is still built, but it doesn't link against anthy: # ldd /usr/lib/m17n/1.0/libmimx-anthy.so linux-gate.so.1 => (0xf77da000) libc.so.6 => /lib/libc.so.6 (0xf7660000) /lib/ld-linux.so.2 (0xf77db000) Created attachment 314973 [details]
dev-libs:m17n-lib-1.6.3-r1:20120611-115550.log
(In reply to comment #3) > I tested the patches with all USE flags disabled. libmimx-anthy.so is still > built, but it doesn't link against anthy: > > # ldd /usr/lib/m17n/1.0/libmimx-anthy.so > linux-gate.so.1 => (0xf77da000) > libc.so.6 => /lib/libc.so.6 (0xf7660000) > /lib/ld-linux.so.2 (0xf77db000) This is expected result. example/mimx-anthy.c has #ifdef HAVE_ANTHY ... #else ... #endif. If HAVE_ANTHY not defined, the functions in the libraries are replaced with just "return NULL;" code. Patch added to the tree. There is a typo in the ebuild: "--without-friidi", although it doesn't seem to influence anything with USE=-X. (In reply to comment #7) > There is a typo in the ebuild: "--without-friidi", although it doesn't seem > to influence anything with USE=-X. Fixed. |