Bug 544473

Summary: enchant must not provide /usr/lib/libenchant.so
Product: [Fedora] Fedora Reporter: Adam Miller <maxamillion>
Component: enchantAssignee: Marc Maurer <uwog>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 12CC: bugs.michael, uwog
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-01-04 23:03:59 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
patch for midori 0.2.1 none

Description Adam Miller 2009-12-04 23:49:08 UTC
Description of problem:
enchant package does not provide /usr/lib/libenchant.so only enchant-devel does

Version-Release number of selected component (if applicable):
enchant-1.5.0-3.fc12.i686

Comment 1 Marc Maurer 2009-12-05 11:26:49 UTC
Fixed in rawhide (/me wonders where the RAWHIDE bz state went...)

Comment 2 Michael Schwendt 2009-12-11 19:48:47 UTC
What is the background for this request?

It is wrong for that symlink to be put into the base "enchant" package.

Comment 3 Adam Miller 2009-12-12 19:03:44 UTC
Without the libenchant.so in the enchant package, the in line spell checking in Midori 0.2.1 does not work.

Comment 4 Michael Schwendt 2009-12-12 19:41:10 UTC
Created attachment 377916 [details]
patch for midori 0.2.1

Then that's a bug in Midori 0.2.1 as it ought to open libenchant.so.1 instead, because it is made for a specific API, and libenchant.so.1 is the current interface provided in Fedora.

libenchant.so is just a symlink used at build-time (for linking with -lenchant). It is not even guaranteed that it points at libenchant.so.1 at run-time, as enchant-devel is an optional package and an alternative package (imagine enchant2-devel e.g.) may link libenchant.so to libenchant.so.2, which may be incompatible.

Comment 5 Adam Miller 2009-12-13 22:35:31 UTC
static GList*
midori_preferences_get_spell_languages (void)
{
 //  <SNIP>

   if (!enchant_broker_list_dicts && g_module_supported ())
   {
       GModule* module;
       if (!(module = g_module_open ("libenchant.so", G_MODULE_BIND_LOCAL)))
           return NULL;

// <SNIP>


Verified as a bug in midori, I will work with upstream to fix this and then push a new update out. Many thanks to those who helped with this and I apologize for time lost.

Closing as NOTABUG.

Comment 6 Michael Schwendt 2009-12-14 08:35:55 UTC
Reopening as long as enchant needs to revert the change.

Comment 7 Michael Schwendt 2010-01-04 23:03:59 UTC
Reverted in enchant-1_5_0-5_fc13.