all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Pierre Neidhardt <ambrevar@gmail.com>
To: Ricardo Wurmus <rekado@elephly.net>
Cc: guix-devel@gnu.org
Subject: Re: next browser (was: Packaging a free Firefox)
Date: Thu, 24 May 2018 18:44:47 +0200	[thread overview]
Message-ID: <87vabdq9z4.fsf@gmail.com> (raw)
In-Reply-To: <87sh6hax0j.fsf@elephly.net>

[-- Attachment #1: Type: text/plain, Size: 1412 bytes --]


Ricardo Wurmus <rekado@elephly.net> writes:

> It is sometimes possible to patch the sources by replacing the library
> name with the full path of the library.  Have you tried that?

You are right.  I think what we need here is to patch all the cffi
packages.
For instance, sqlite3-lib contains the following lines:

--8<---------------cut here---------------start------------->8---
(define-foreign-library sqlite3-lib
  (:darwin (:default "libsqlite3"))
  (:unix (:or "libsqlite3.so.0" "libsqlite3.so"))
  (t (:or (:default "libsqlite3") (:default "sqlite3"))))
--8<---------------cut here---------------end--------------->8---

Patching with the full path should work.  I'll see what I can do.

Maybe we should think of a function to do that automatically for all
cffi packages.  Not sure how doable that'd be.

> Another option is to wrap the executable in LD_LIBRARY_PATH, although
> that should only be a last resort.
>
>> GuixSD has LIBRARY_PATH=~/.guix-profile/lib, can we use that?
>
> LIBRARY_PATH is only set when you have gcc-toolchain installed.  I don’t
> have this variable.  It is also not applicable here: it is used by the
> compiler at build time when linking applications.

So to what would you wrap it?  The full path of the required libs?  E.g.

LD_LIBRARY_PATH=/gnu/store/sdin91pj2w7m5avvb6vykh6haq8q2ni0-sqlite-3.21.0/lib/:...

-- 
Pierre Neidhardt

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

  reply	other threads:[~2018-05-24 16:44 UTC|newest]

Thread overview: 79+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-05-02 21:06 Packaging a free Firefox Clément Lassieur
2018-05-02 21:10 ` Clément Lassieur
2018-05-03  5:00   ` Nils Gillmann
2018-05-03  5:06     ` Nils Gillmann
2018-05-03  5:09     ` Pierre Neidhardt
2018-05-03 14:29       ` next browser (was: Packaging a free Firefox) Jack Hill
2018-05-03 14:35         ` Pierre Neidhardt
2018-05-03 20:23           ` Jack Hill
2018-05-04  3:36             ` Andy Patterson
2018-05-09 16:45               ` Pierre Neidhardt
     [not found]                 ` <20180510020041.1e8b3956@uwaterloo.ca>
     [not found]                   ` <87d0y3hije.fsf@gmail.com>
2018-05-10 14:04                     ` ajpatter
2018-05-10 14:36                       ` Pierre Neidhardt
2018-05-11  5:00                         ` Andy Patterson
2018-05-19 19:26                           ` Pierre Neidhardt
2018-05-24  9:53                             ` Ricardo Wurmus
2018-05-24 14:18                               ` Pierre Neidhardt
2018-05-24 15:33                                 ` Ricardo Wurmus
2018-05-24 16:44                                   ` Pierre Neidhardt [this message]
2018-05-24 20:37                                     ` Ricardo Wurmus
     [not found]                     ` <87bmdnhhu8.fsf@gmail.com>
2018-05-10 14:04                       ` ajpatter
2018-05-03  6:06 ` Packaging a free Firefox Chris Marusich
2018-05-03  9:53   ` Pjotr Prins
2018-05-03 10:56     ` Mathieu Othacehe
2018-05-11 14:54     ` Pjotr Prins
2018-05-03 17:59   ` Mike Gerwitz
2018-05-04 14:24     ` Pjotr Prins
2018-05-04 16:07       ` Nils Gillmann
2018-05-04 16:27       ` Mike Gerwitz
2018-05-05 12:26         ` Pjotr Prins
2018-05-15  7:10       ` Pjotr Prins
2018-05-15  8:57         ` Ludovic Courtès
2018-05-15 10:13           ` Gábor Boskovits
2018-05-16 17:27             ` Mark H Weaver
2018-05-15 16:35           ` Mike Gerwitz
2018-05-17 11:28             ` Ludovic Courtès
2018-05-03 19:07   ` Mark H Weaver
2018-05-03 20:45   ` Clément Lassieur
2018-05-12 13:28     ` Clément Lassieur
2018-05-05 22:06 ` Adonay Felipe Nogueira
2018-05-06  1:24   ` Mike Gerwitz
2018-05-06  6:01     ` Nils Gillmann
2018-05-06 13:58       ` Mike Gerwitz
2018-05-06 16:35         ` Hartmut Goebel
2018-05-06  9:48     ` Hartmut Goebel
2018-05-06 12:53       ` Pjotr Prins
2018-05-16 15:44         ` Katherine Cox-Buday
2018-05-16 16:10           ` Tonton
2018-05-16 17:56             ` Katherine Cox-Buday
2018-05-17 11:34               ` Ludovic Courtès
2018-05-17 13:47                 ` Nils Gillmann
2018-05-17 15:10                   ` Christopher Lemmer Webber
2018-05-17 15:29                     ` Nils Gillmann
2018-05-17 17:57                       ` Christopher Lemmer Webber
2018-05-18  4:14                         ` Pjotr Prins
2018-05-21  4:58                           ` Pjotr Prins
2018-05-21 20:07                             ` Mark H Weaver
2018-05-22  4:18                               ` Pjotr Prins
2018-05-22 19:05                                 ` Mark H Weaver
2018-07-31  1:51                               ` Pjotr Prins
2018-08-01  0:58                                 ` Mark H Weaver
2018-05-21 20:09                           ` Mark H Weaver
2018-05-22  3:55                             ` Alex Vong
2018-05-18  5:19                 ` Mike Gerwitz
2018-05-18  4:25             ` Pjotr Prins
2018-05-16 19:07           ` Christopher Lemmer Webber
2018-05-16 19:54           ` Oleg Pykhalov
2018-05-16 20:50             ` Katherine Cox-Buday
2018-05-17  1:26           ` Mark H Weaver
2018-05-17  8:21             ` Thorsten Wilms
2018-05-17 11:36             ` Katherine Cox-Buday
2018-05-06 14:05       ` Mike Gerwitz
2018-05-06 15:32         ` Pjotr Prins
2018-05-06 16:33         ` Hartmut Goebel
2018-05-07  0:36           ` Mike Gerwitz
2018-05-07  6:42             ` jah
2018-05-07 16:30           ` Ludovic Courtès
2018-05-08  8:36             ` Pjotr Prins
2018-05-08  0:06           ` Mark H Weaver
2018-05-08  0:20       ` Mark H Weaver

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87vabdq9z4.fsf@gmail.com \
    --to=ambrevar@gmail.com \
    --cc=guix-devel@gnu.org \
    --cc=rekado@elephly.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.