Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 923018 - net-mail/mailutils-3.15: guile bindings don't work out of the box. (guile-2.2, stable)
Summary: net-mail/mailutils-3.15: guile bindings don't work out of the box. (guile-2.2...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: Eray Aslan
: 923017 (view as bug list)
Depends on:
Reported: 2024-01-27 12:45 UTC by Bastien Rissoan
Modified: 2024-01-29 22:11 UTC (History)
1 user (show)

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

My custom "mailutils.scm" (mail-utils.scm,1.42 KB, text/x-scheme)
2024-01-27 12:46 UTC, Bastien Rissoan
The original "mailutil.scm" (mailutils.scm,1.90 KB, text/x-scheme)
2024-01-27 12:47 UTC, Bastien Rissoan
emerge --info mailutils (mailutils-log,18.57 KB, text/plain)
2024-01-27 12:48 UTC, Bastien Rissoan

Note You need to log in before you can comment on or make changes to this bug.
Description Bastien Rissoan 2024-01-27 12:45:59 UTC
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 Bastien Rissoan 2024-01-27 12:46:36 UTC
Created attachment 883247 [details]
My custom "mailutils.scm"
Comment 2 Bastien Rissoan 2024-01-27 12:47:38 UTC
Created attachment 883248 [details]
The original "mailutil.scm"
Comment 3 Bastien Rissoan 2024-01-27 12:48:40 UTC
Created attachment 883249 [details]
emerge --info mailutils
Comment 4 Jonas Stein gentoo-dev 2024-01-27 23:31:00 UTC
*** Bug 923017 has been marked as a duplicate of this bug. ***