<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html lang="en">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<title>
GitLab
</title>
<style>img {
max-width: 100%; height: auto;
}
</style>
</head>
<body>
<div class="content">
<div style="">
<p dir="auto"><a href="https://gitlab.com/mbakke" data-user="1902895" data-reference-type="user" data-container="body" data-placement="bottom" class="gfm gfm-project_member" title="Marius Bakke">@mbakke</a> I have tried to strictly follow the guile.m4 patterns. The macro defines distinct variable to be used by application:</p>
<pre class="code highlight js-syntax-highlight plaintext" lang="plaintext" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">GUILE_SITE</span>
<span id="LC2" class="line" lang="plaintext">GUILE_SITE_CCACHE</span>
<span id="LC3" class="line" lang="plaintext">GUILE_EXTENSION</span></code></pre>
<p dir="auto">There is no default, there is no convention, there is no fallback nor assumption, all are taken from guile package using pkg-config (in recent version) or by executing guile (in older version).</p>
<p dir="auto">I do not think gnutls should make any assumption of the structure if upstream does not.</p>
<p dir="auto">The version component within the path is important only if you install the files into guile directories, as if you install it in custom location you need to configure guile to search in that location in any case. I would have understood if the pattern of guile.m4 was to detect all available guile packages installed in the system and use all to build the package, however, only one is installed. This means that a package such as gnutls cannot be <em>easily</em> installed while supporting multiple versions.</p>
<p dir="auto">So I do not think that the version component is required for custom location. However, you can use the guile macros in order to have this easily, by using something like:</p>
<pre class="code highlight js-syntax-highlight plaintext" lang="plaintext" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> ...</span>
<span id="LC2" class="line" lang="plaintext"> --with-guile-site-dir='/opt/share/guile/$(GUILE_EFFECTIVE_VERSION)' \</span>
<span id="LC3" class="line" lang="plaintext"> --with-guile-site-cache='$(guilemoduledir)/site-ccache' \</span>
<span id="LC4" class="line" lang="plaintext"> --with-guile-extensions='$(guilemoduledir)/extensions' \</span>
<span id="LC5" class="line" lang="plaintext"> ...</span></code></pre>
<p dir="auto">What do you think?</p>
</div>
</div>
<div class="footer" style="margin-top: 10px;">
<p style="font-size: small; color: #777;">
—
<br>
Reply to this email directly or <a href="https://gitlab.com/gnutls/gnutls/merge_requests/968#note_159013347">view it on GitLab</a>.
<br>
You're receiving this email because of your account on gitlab.com.
If you'd like to receive fewer emails, you can
<a href="https://gitlab.com/sent_notifications/b9aac79d215c81b44e940cca7dde3238/unsubscribe">unsubscribe</a>
from this thread or
adjust your notification settings.
<script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","action":{"@type":"ViewAction","name":"View Merge request","url":"https://gitlab.com/gnutls/gnutls/merge_requests/968#note_159013347"}}</script>
</p>
</div>
</body>
</html>