Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 923017 - net-mails/mailutils-3.15(stable): guile bindings don't work out of the box. (guile-2.2, stable)
Summary: net-mails/mailutils-3.15(stable): guile bindings don't work out of the box. (...
Status: RESOLVED DUPLICATE of bug 923018
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-01-27 12:43 UTC by Bastien Rissoan
Modified: 2024-01-27 23:31 UTC (History)
1 user (show)

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


Attachments
The module "mailutils.scm", how I rewrote it to make it function, and the output of "portage --info" (mailutils-log,21.31 KB, text/plain)
2024-01-27 12:43 UTC, Bastien Rissoan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bastien Rissoan 2024-01-27 12:43:55 UTC
Created attachment 883246 [details]
The module "mailutils.scm", how I rewrote it to make it function, and the output of "portage --info"

Hi,
I recently compiled the stable version of mailutils with "guile" use flags.
Loading the mailutils module from guile fails out of the box.

Here is why:
The guile module is installed in "/usr/share/guile/site/2.2/mailutils/mailutils/mailutils.scm".
The piece of scheme code "only" loads C-libraries: either the environment variable "MAILUTILS_SCM_LIBRARY_ROOT" is set, and it looks in this directory, expecting a specific structure (for example: "libproto/mh/libmu_mh"; otherwise it looks for a file called "libguile-mailutils-v-${V}" in "/lib/64".

Portage installed all the required libraries (.so files) on "/lib/64", at the top level, and there is no "libguile-mailutils-v-${V}", so "mailutils.scm" fails.

As a workaround, I rewrote "mailutils.scm" so that it points to the actual location of the libraries of my system, and I can use the module as expected.
Comment 1 Jonas Stein gentoo-dev 2024-01-27 23:31:00 UTC

*** This bug has been marked as a duplicate of bug 923018 ***