[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: next browser (was: Packaging a free Firefox)
From: |
Pierre Neidhardt |
Subject: |
Re: next browser (was: Packaging a free Firefox) |
Date: |
Thu, 24 May 2018 16:18:28 +0200 |
User-agent: |
mu4e 1.0; emacs 26.1 |
Ricardo Wurmus <address@hidden> writes:
>> The main issue is with cffi: it does not find the libraries installed by
>> Guix.
> […]
>
> I don’t understand this. Should it load any libraries that the user may
> have installed? Or do you only refer to a specific set of libraries
> that is known at build time?
Sorry for the confusing report, I suppose it needs more details: cffi is
the "common foreign function interface" for Common Lisp. It allows for
writing bindings to libraries written in different languages (mostly C
as far as I understand).
http://common-lisp.net/project/cffi
cffi-based projects like Next load libraries at runtime (in
this case .so files). No special provision is taken for finding those
libaries, or at least nothing I could spot from the source code. I
understand that it relies on system calls. But while
dlopen("libsqlite3.so") works in C, cffi fails to load "libsqlite3.so",
unless we specify an appropriate LD_LIBRARY_PATH.
I'm not quite sure how applications find libraries on GuixSD.
>> --8<---------------cut here---------------start------------->8---
>> LISP?=sbcl
>>
>> build-gtk:
>> $(LISP) \
>> --eval '(ql:quickload :cffi)' \
>> --eval '(push (format nil "~a/.guix-profile/lib/" (uiop:getenv
>> "HOME")) cffi:*foreign-library-directories*)' \
>> ## Rest is as usual.
>> --load next.asd \
>> --eval '(ql:quickload :next/gtk)' \
>> --eval '(asdf:make :next/gtk)' \
>> --eval '(quit)'
>> --8<---------------cut here---------------end--------------->8---
>
> This would not be good, because packages can be installed in different
> profiles, not only in the user’s home directory.
Indeed, but I don't know a better solution. Any idea how to do this
properly?
GuixSD has LIBRARY_PATH=~/.guix-profile/lib, can we use that?
--
Pierre Neidhardt
signature.asc
Description: PGP signature
- Re: next browser (was: Packaging a free Firefox), (continued)
- Re: next browser (was: Packaging a free Firefox), Pierre Neidhardt, 2018/05/03
- Re: next browser (was: Packaging a free Firefox), Jack Hill, 2018/05/03
- Re: next browser (was: Packaging a free Firefox), Andy Patterson, 2018/05/04
- Re: next browser (was: Packaging a free Firefox), Pierre Neidhardt, 2018/05/09
- Message not available
- Message not available
- Message not available
- Re: next browser (was: Packaging a free Firefox), ajpatter, 2018/05/10
- Message not available
- Message not available
- Re: next browser (was: Packaging a free Firefox), ajpatter, 2018/05/10
- Re: next browser (was: Packaging a free Firefox), Pierre Neidhardt, 2018/05/10
- Re: next browser (was: Packaging a free Firefox), Andy Patterson, 2018/05/11
- Re: next browser (was: Packaging a free Firefox), Pierre Neidhardt, 2018/05/19
- Re: next browser (was: Packaging a free Firefox), Ricardo Wurmus, 2018/05/24
- Re: next browser (was: Packaging a free Firefox),
Pierre Neidhardt <=
- Re: next browser (was: Packaging a free Firefox), Ricardo Wurmus, 2018/05/24
- Re: next browser (was: Packaging a free Firefox), Pierre Neidhardt, 2018/05/24
- Re: next browser (was: Packaging a free Firefox), Ricardo Wurmus, 2018/05/24
Re: Packaging a free Firefox, Chris Marusich, 2018/05/03