From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Daniel Skinner Newsgroups: gmane.lisp.guile.user Subject: what are conventions for foreign libraries via guix Date: Mon, 27 Nov 2023 17:56:18 -0600 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34164"; mail-complaints-to="usenet@ciao.gmane.io" To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Tue Nov 28 00:56:59 2023 Return-path: Envelope-to: guile-user@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1r7lTG-0008kR-Oy for guile-user@m.gmane-mx.org; Tue, 28 Nov 2023 00:56:58 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r7lSs-00072a-Sf; Mon, 27 Nov 2023 18:56:34 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r7lSr-00072O-TD for guile-user@gnu.org; Mon, 27 Nov 2023 18:56:33 -0500 Original-Received: from mail-pj1-x102a.google.com ([2607:f8b0:4864:20::102a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1r7lSp-0005cl-Qg for guile-user@gnu.org; Mon, 27 Nov 2023 18:56:33 -0500 Original-Received: by mail-pj1-x102a.google.com with SMTP id 98e67ed59e1d1-2856437b584so3481089a91.3 for ; Mon, 27 Nov 2023 15:56:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dasa-cc.20230601.gappssmtp.com; s=20230601; t=1701129389; x=1701734189; darn=gnu.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=yg2pcIQoYdaLVQTK12CTLhSoAhGFBeiWW/mLVwbAk/8=; b=fUr6DL2msNYbB9Jp3cASIkogCnc9BVW5GoVp98U3It/fUhEjXhs2QZ1qERm2lW6n9d 3NMGuajdyS+bojIr42WRpk/4SeQibnTl0PqY4AssE+JP4mO3aVuL45tSouAsUQZr9Jlm XQfH0kk2Mg6JdaGDyo/hIf0TJoPlAqVt5uE9FMsssZ7nit0hRendjkbs5Q66vbvWLNE3 ROBmARuZ8OapFXEHsoLilbchVuIeXs7akgIfVwv+RMEbMU1J1a82cl54b8aaLXH02fIg 9zyIEzTJ3enaUooZTydDF9d6y6kjMFIQuRQcC6Qdlwps4ta4u0WeVaJwi33UVm0SoFiE cexA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701129389; x=1701734189; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=yg2pcIQoYdaLVQTK12CTLhSoAhGFBeiWW/mLVwbAk/8=; b=tecsSLon8jsVGEk/i4aSM22POaJ00dh2EhfXO10qaxkzBizRSc1KFrJk/hNzX7IXNP lp7ENywhfXqhUU1twDQl29rVGXiSObgZg2jRLJbo79au+HMna8sHEcBNuPt+NZu3ls+J JVLHArszJR+0LtrS287B2gYHKghZmSFcD5qRjc7TdA1YrNoZyhiHlYQIxrQ6AkTSO4pq DtLGg42clGQ+rCELjPp+fw1X0RZGMbBPDjj3nJI+GklvU/6pHvG/GgIyWLrlR90V/DoA P1025nqVd6zCx5xlq7kn6ufagWMTJKCKrfswgJe86P9QQte29MDffHvp1vg0hiehBUQm F6Jw== X-Gm-Message-State: AOJu0YyzIXfFkpuqaE7VS0gfc3mRH0YvTgVgCpZujcszB98gPkVbbaVi SW3P8pgEqkgrEkwGA7ufdVXB4XHiL2ynVYsOQz3SoyGArvX8AUn8 X-Google-Smtp-Source: AGHT+IHrRIwlIWu48UGQ06Dlaprd+CdHMbWOgf178og78KhhlIKHyH1zBziO3omkL1/JA55TwM5o4O6mZXdMCOsWey0= X-Received: by 2002:a17:90b:1a91:b0:285:9804:5437 with SMTP id ng17-20020a17090b1a9100b0028598045437mr11578286pjb.26.1701129389301; Mon, 27 Nov 2023 15:56:29 -0800 (PST) Received-SPF: pass client-ip=2607:f8b0:4864:20::102a; envelope-from=daniel@dasa.cc; helo=mail-pj1-x102a.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Original-Sender: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.lisp.guile.user:19328 Archived-At: Hi all, I'm new to guile/scheme and wanted to play with ffi. I'm using guile through guix on foreign distro and strictly only interested in libraries installed via guix; what's the recommended way to load .so files? For example, if I install guile and glfw via guix and attempt to use foreign-library-function, then this fails unless I set LD_LIBRARY_PATH=$LIBRARY_PATH where $LIBRARY_PATH was set by guix profile. But I want to export something global for login shell which may have mixed environment (being a foreign distro) for the sake of emacs and geiser so was looking at GUILE_EXTENSIONS_PATH but it seemed like that's more appropriate for per project settings that might bundle a compilable extension? Just wondering what people normally do as I was sort of just expecting guile via guix to automatically find libs installed via guix. Thanks, Daniel