Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 261155 - net-mail/mailutils-1.2 fails with dev-libs/fribidi-0.19.1 due to missing fribidi_wcwidth
Summary: net-mail/mailutils-1.2 fails with dev-libs/fribidi-0.19.1 due to missing frib...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Net-Mail Packages
URL: http://fribidi.org/
Whiteboard:
Keywords:
: 277589 (view as bug list)
Depends on:
Blocks: 260320
  Show dependency tree
 
Reported: 2009-03-04 11:59 UTC by Martin von Gagern
Modified: 2010-01-24 20:05 UTC (History)
2 users (show)

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


Attachments
Changes to mailutils-1.2.ebuild (bug261155a.patch,896 bytes, patch)
2009-03-04 12:23 UTC, Martin von Gagern
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Martin von Gagern 2009-03-04 11:59:54 UTC
common.o: In function `puts_bidi':
/var/tmp/portage/net-mail/mailutils-1.2/work/mailutils-1.2/frm/common.c:173: undefined reference to `fribidi_wcwidth'

The ebuild doesn't mention fribidi as a dependency, but the code in that file directly depends on fribidi. It seems that fribidi support is autodetected by the configure script. There is a --without-fribidi switch, so maybe the ebuild should pass $(use_with bidi fribidi) to configure, and add bidi to IUSE of course.

fribidi_wcwidth is present in fribidi 0.10.x, but seems to be still missing in 0.19.1. Despite the fact that the fribidi homepage (http://fribidi.org/) states that 0.19.1 "is supposed to be fully API/ABI compatible with the 0.10 series", the TODO file for the 0.19.x series (fribidi2 module) contains an item "Implement fribidi_wcwidth()?" in its "Before release" section.

As I assume that different fribidi versions won't be easily installed at the same time, due to conflicting header file locations, slotting fribidi doesn't seem to make a lot of sense. So bidi support in mailutils seems to be mutually exclusive with having fribidi 0.19.x installed. I'll try to patch the mailutils makefile to express this.

A quick look at the mailutils git repository indicates that the reference to fribidi_wcwidth is still present in current code, so bumping to mailutils 2.0 as requested by bug #252749 is not going to resolve this issue here.
Comment 1 Martin von Gagern 2009-03-04 12:23:36 UTC
Created attachment 183878 [details, diff]
Changes to mailutils-1.2.ebuild

This patch changes the mailutils-1.2 ebuild to handle the bidi USE flag. If enabled, the package will depend on <dev-libs/fribidi-0.19, i.e. I make no assumptions as to what future version will be likely to include fribidi_wcwidth again. Once such a version turns up, the dependency can be changed appropriately.
Comment 2 Diego Elio Pettenò (RETIRED) gentoo-dev 2009-12-29 14:12:24 UTC
*** Bug 277589 has been marked as a duplicate of this bug. ***
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2010-01-24 20:05:36 UTC
Thanks for reporting. 2.1 seems to build fine against both old and new fribidi, so I only needed to add USE=bidi to the ebuild without version restrictions.