all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Font installed in non-default profile doesn't appear.
@ 2018-05-09  0:04 George Clemmer
  2018-05-09 17:34 ` Alex Kost
  0 siblings, 1 reply; 8+ messages in thread
From: George Clemmer @ 2018-05-09  0:04 UTC (permalink / raw)
  To: help-guix

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

In a "headless" vm-image (sysi29.scm, attached), "font-dejavu" installed
by manifest (attached) into the "empty" default profile ...

'guix package -m manifest'

... appears in the emacs 'M-x menu-set-font' choice box. But it doesn't
appear with the same manifest installed in the "foo" profile ...

'guix package -p foo -m manifest'

... and run this way ...

source foo/etc/profile

emacs $@ --eval="(let ((guix-env \"foo\")) (when (and guix-env (require
(quote guix-emacs) nil t)) (guix-emacs-autoload-packages guix-env)))"

IIUC it shouldn't make a difference, but I also tried 'fc-cache -f'
before emacs to no effect.

Am I missing something?

TIA - George

PS: For details please see
default profile >> test0.sh.log 
    foo profile >> test.sh.log


[-- Attachment #2: manifest --]
[-- Type: application/octet-stream, Size: 362 bytes --]

;;; -*-Scheme-*-
;;; manifest
(define usr-packages
  '(
    "aspell"
    "aspell-dict-en"
    "emacs"
    "emacs-debbugs"
    "emacs-guix"
    "font-dejavu"
    "fontconfig"
    "git"
    "info-reader"
    "isync"
    "magit"
    "make"
    "man-db"
    "mu"
    "nss-certs"; isync req
    ))
(use-modules (gnu packages))
(specifications->manifest usr-packages)

[-- Attachment #3: sysi29.scm --]
[-- Type: application/octet-stream, Size: 1807 bytes --]

;; -*-Scheme-*-
;;; minimal 'guix system vm-image' config ~ sys.scm
(define sys-packages
  '(
    "cups"
    "git"
    "glibc-utf8-locales"
    "nss-certs"
    "openssh"
    "screen"
    ))
(use-modules (gnu))
(use-modules (gnu packages))
(use-modules (gnu system nss))
(use-service-modules
 avahi
 networking ; dhcp-client-service
 ssh ; openssh-service-type
 )
(define %my-services
  (modify-services %base-services
    (guix-service-type config =>
		       (guix-configuration
			(inherit config)
			(substitute-urls (list "http://g1.local:8080"
					       "https://hydra.gnu.org"))))))
(operating-system
  (host-name "sysi29")
  (timezone "America/New_York")
  (locale "en_US.utf8")
  (bootloader (grub-configuration (target "/dev/sda")))
  (file-systems (cons (file-system
			(device "g1sd")
			(title 'label)
			(mount-point "/")
			(type "ext4"))
		      %base-file-systems))
  (users (cons*
	  (user-account
	   (name "g1")
	   (group "users")
	   (supplementary-groups '("wheel"))
	   (home-directory "/home/g1"))
	  (user-account
	   (name "al")
	   (group "users")
	   (supplementary-groups '("wheel"))
	   (home-directory "/home/al"))
	  %base-user-accounts))
  (packages (append (map specification->package sys-packages)
		    %base-packages))
  (services (cons*
	     (dhcp-client-service)
	     (service openssh-service-type
		      (openssh-configuration
		       (x11-forwarding? #t)
		       (permit-root-login #t)
		       (allow-empty-passwords? #t)
		       (authorized-keys
			`(
			  ("g1" ,(local-file "glc.pub"))
			  ("al" ,(local-file "glc.pub"))
			  ("root" ,(local-file "glc.pub"))))))
	     (avahi-service)
	     (ntp-service)
	     (extra-special-file "/etc/gen/sysi29.scm"
				 (local-file "sysi29.scm"))
	     %my-services))
  (name-service-switch %mdns-host-lookup-nss))

[-- Attachment #4: test0.sh.log --]
[-- Type: application/octet-stream, Size: 1677 bytes --]

nemo:~ $ ssh g1@sysi29.local
Last login: Tue May  8 19:04:33 2018 from fe80::1859:7246:9720:20aa%eth0
g1@sysi29 [/run/current-system/profile]~$ ./test0.sh
+ cd
+ echo /home/g1
/home/g1
+ echo

+ guix package -I
+ echo

+ cat manifest
;;; -*-Scheme-*-
;;; manifest
(define usr-packages
  '(
    "aspell"
    "aspell-dict-en"
    "emacs"
    "emacs-debbugs"
    "emacs-guix"
    "font-dejavu"
    "fontconfig"
    "git"
    "info-reader"
    "isync"
    "magit"
    "make"
    "man-db"
    "mu"
    "nss-certs"; isync req
    ))
(use-modules (gnu packages))
(specifications->manifest usr-packages)
+ echo

+ guix package -m manifest
installing new manifest from 'manifest' with 15 entries
15 packages in profile
The following environment variable definitions may be needed:
   export PATH="/home/g1/.guix-profile/bin:/home/g1/.guix-profile/sbin${PATH:+:}$PATH"
   export ASPELL_DICT_DIR="/home/g1/.guix-profile/lib/aspell"
   export GIT_SSL_CAINFO="/home/g1/.guix-profile/etc/ssl/certs/ca-certificates.crt"
   export GIT_EXEC_PATH="/home/g1/.guix-profile/libexec/git-core"
guix package: warning: Consider running 'guix pull' followed by
'guix package -u' to get up-to-date packages and security updates.

+ echo

+ emacs

** (emacs-25-3:27591): WARNING **: Error retrieving accessibility bus address: org.freedesktop.DBus.Error.ServiceUnknown: The name org.a11y.Bus was not provided by any .service files

(emacs-25-3:27591): Gtk-WARNING **: Could not find the icon 'list-remove-symbolic-ltr'. The 'hicolor' theme
was not found either, perhaps you need to install it.
You can get a copy from:
	http://icon-theme.freedesktop.org/releases
g1@sysi29 [/run/current-system/profile]~$ 

[-- Attachment #5: test.sh.log --]
[-- Type: application/octet-stream, Size: 3722 bytes --]

nemo:~ $ ssh g1@sysi29.local
Last login: Tue May  8 19:00:48 2018 from fe80::1859:7246:9720:20aa%eth0
g1@sysi29 [/run/current-system/profile]~$ ./test.sh
+ cd
+ echo /home/g1
/home/g1
+ echo

+ guix package -I
+ echo

+ guix package -p foo -I
+ echo

+ cat manifest
;;; -*-Scheme-*-
;;; manifest
(define usr-packages
  '(
    "aspell"
    "aspell-dict-en"
    "emacs"
    "emacs-debbugs"
    "emacs-guix"
    "font-dejavu"
    "fontconfig"
    "git"
    "info-reader"
    "isync"
    "magit"
    "make"
    "man-db"
    "mu"
    "nss-certs"; isync req
    ))
(use-modules (gnu packages))
(specifications->manifest usr-packages)
+ echo

+ guix package -p foo -m manifest
installing new manifest from 'manifest' with 15 entries
15 packages in profile
The following environment variable definitions may be needed:
   export PATH="foo/bin:foo/sbin${PATH:+:}$PATH"
   export ASPELL_DICT_DIR="foo/lib/aspell"
   export INFOPATH="foo/share/info${INFOPATH:+:}$INFOPATH"
   export GIT_SSL_CAINFO="foo/etc/ssl/certs/ca-certificates.crt"
   export GIT_EXEC_PATH="foo/libexec/git-core"
   export MANPATH="foo/share/man${MANPATH:+:}$MANPATH"
guix package: warning: Consider running 'guix pull' followed by
'guix package -u' to get up-to-date packages and security updates.

+ echo

+ source foo/etc/profile
++ export PATH=/gnu/store/qcx68bahsqd3n7pb8asr1fakwj7fzyyx-profile/bin:/gnu/store/qcx68bahsqd3n7pb8asr1fakwj7fzyyx-profile/sbin:/home/g1/bin:/home/g1/.guix-profile/bin:/run/setuid-programs:/run/current-system/profile/bin:/run/current-system/profile/sbin
++ PATH=/gnu/store/qcx68bahsqd3n7pb8asr1fakwj7fzyyx-profile/bin:/gnu/store/qcx68bahsqd3n7pb8asr1fakwj7fzyyx-profile/sbin:/home/g1/bin:/home/g1/.guix-profile/bin:/run/setuid-programs:/run/current-system/profile/bin:/run/current-system/profile/sbin
++ export ASPELL_DICT_DIR=/gnu/store/qcx68bahsqd3n7pb8asr1fakwj7fzyyx-profile/lib/aspell
++ ASPELL_DICT_DIR=/gnu/store/qcx68bahsqd3n7pb8asr1fakwj7fzyyx-profile/lib/aspell
++ export INFOPATH=/gnu/store/qcx68bahsqd3n7pb8asr1fakwj7fzyyx-profile/share/info:/run/current-system/profile/share/info:/home/g1/.guix-profile/share/info:/run/current-system/profile/share/info
++ INFOPATH=/gnu/store/qcx68bahsqd3n7pb8asr1fakwj7fzyyx-profile/share/info:/run/current-system/profile/share/info:/home/g1/.guix-profile/share/info:/run/current-system/profile/share/info
++ export GIT_SSL_CAINFO=/gnu/store/qcx68bahsqd3n7pb8asr1fakwj7fzyyx-profile/etc/ssl/certs/ca-certificates.crt
++ GIT_SSL_CAINFO=/gnu/store/qcx68bahsqd3n7pb8asr1fakwj7fzyyx-profile/etc/ssl/certs/ca-certificates.crt
++ export GIT_EXEC_PATH=/gnu/store/qcx68bahsqd3n7pb8asr1fakwj7fzyyx-profile/libexec/git-core
++ GIT_EXEC_PATH=/gnu/store/qcx68bahsqd3n7pb8asr1fakwj7fzyyx-profile/libexec/git-core
++ export MANPATH=/gnu/store/qcx68bahsqd3n7pb8asr1fakwj7fzyyx-profile/share/man:/run/current-system/profile/share/man:/home/g1/.guix-profile/share/man:/run/current-system/profile/share/man
++ MANPATH=/gnu/store/qcx68bahsqd3n7pb8asr1fakwj7fzyyx-profile/share/man:/run/current-system/profile/share/man:/home/g1/.guix-profile/share/man:/run/current-system/profile/share/man
+ echo

+ exec emacs '--eval=(let ((guix-env "foo")) (when (and guix-env (require (quote guix-emacs) nil t)) (guix-emacs-autoload-packages guix-env)))'

** (emacs-25-3:27536): WARNING **: Error retrieving accessibility bus address: org.freedesktop.DBus.Error.ServiceUnknown: The name org.a11y.Bus was not provided by any .service files

(emacs-25-3:27536): Gtk-WARNING **: Could not find the icon 'list-remove-symbolic-ltr'. The 'hicolor' theme
was not found either, perhaps you need to install it.
You can get a copy from:
	http://icon-theme.freedesktop.org/releases
g1@sysi29 [/run/current-system/profile]~$ 

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Font installed in non-default profile doesn't appear.
  2018-05-09  0:04 Font installed in non-default profile doesn't appear George Clemmer
@ 2018-05-09 17:34 ` Alex Kost
  2018-05-09 23:07   ` George Clemmer
  0 siblings, 1 reply; 8+ messages in thread
From: Alex Kost @ 2018-05-09 17:34 UTC (permalink / raw)
  To: George Clemmer; +Cc: help-guix

Hello George,

George Clemmer (2018-05-08 20:04 -0400) wrote:

> In a "headless" vm-image (sysi29.scm, attached), "font-dejavu" installed
> by manifest (attached) into the "empty" default profile ...
>
> 'guix package -m manifest'
>
> ... appears in the emacs 'M-x menu-set-font' choice box. But it doesn't
> appear with the same manifest installed in the "foo" profile ...

To make fonts available from a non-standard profile I added the
following line into my "~/config/fontconfig/fonts.conf":

  <dir>~/path-to-my-profile/share/fonts</dir>

-- 
Alex

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Font installed in non-default profile doesn't appear.
  2018-05-09 17:34 ` Alex Kost
@ 2018-05-09 23:07   ` George Clemmer
  2018-05-10 15:56     ` bug#31403: " George Clemmer
  0 siblings, 1 reply; 8+ messages in thread
From: George Clemmer @ 2018-05-09 23:07 UTC (permalink / raw)
  To: Alex Kost; +Cc: help-guix


Alex Kost <alezost@gmail.com> writes:

> Hello George,
>
> George Clemmer (2018-05-08 20:04 -0400) wrote:
>
>> In a "headless" vm-image (sysi29.scm, attached), "font-dejavu" installed
>> by manifest (attached) into the "empty" default profile ...
>>
>> 'guix package -m manifest'
>>
>> ... appears in the emacs 'M-x menu-set-font' choice box. But it doesn't
>> appear with the same manifest installed in the "foo" profile ...
>
> To make fonts available from a non-standard profile I added the
> following line into my "~/config/fontconfig/fonts.conf":
>
>   <dir>~/path-to-my-profile/share/fonts</dir>

Thank you Alex!

On the chance it might be useful to someone else, this ...

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<!-- /etc/fonts/fonts.conf file to configure system font access -->
<fontconfig>
<dir>~/path-to-my-profile/share/fonts</dir>
</fontconfig>

... in "~/.config/fontconfig/fonts.conf" worked for me ;-)

^ permalink raw reply	[flat|nested] 8+ messages in thread

* bug#31403: Font installed in non-default profile doesn't appear.
  2018-05-09 23:07   ` George Clemmer
@ 2018-05-10 15:56     ` George Clemmer
  2020-10-05  5:46       ` Maxim Cournoyer
  2022-11-18 14:18       ` Maxim Cournoyer
  0 siblings, 2 replies; 8+ messages in thread
From: George Clemmer @ 2018-05-10 15:56 UTC (permalink / raw)
  To: 31403


George Clemmer <myglc2@gmail.com> writes:

> Alex Kost <alezost@gmail.com> writes:
>
>> Hello George,
>>
>> George Clemmer (2018-05-08 20:04 -0400) wrote:
>>
>>> In a "headless" vm-image (sysi29.scm, attached), "font-dejavu" installed
>>> by manifest (attached) into the "empty" default profile ...
>>>
>>> 'guix package -m manifest'
>>>
>>> ... appears in the emacs 'M-x menu-set-font' choice box. But it doesn't
>>> appear with the same manifest installed in the "foo" profile ...
>>
>> To make fonts available from a non-standard profile I added the
>> following line into my "~/config/fontconfig/fonts.conf":
>>
>>   <dir>~/path-to-my-profile/share/fonts</dir>
>
> Thank you Alex!
>
> On the chance it might be useful to someone else, this ...
>
> <?xml version="1.0"?>
> <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
> <!-- /etc/fonts/fonts.conf file to configure system font access -->
> <fontconfig>
> <dir>~/path-to-my-profile/share/fonts</dir>
> </fontconfig>
>
> ... in "~/.config/fontconfig/fonts.conf" worked for me ;-)

Given that this works, ISTM this can be fixed by placing ...

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<!-- /etc/fonts/fonts.conf file to configure system font access -->
<fontconfig>
<dir>share/fonts</dir>
</fontconfig>

... in "/etc/fonts/fonts.conf".

WDYT? - George

^ permalink raw reply	[flat|nested] 8+ messages in thread

* bug#31403: Font installed in non-default profile doesn't appear.
  2018-05-10 15:56     ` bug#31403: " George Clemmer
@ 2020-10-05  5:46       ` Maxim Cournoyer
  2021-09-13  2:29         ` Sarah Morgensen
  2022-11-18 14:18       ` Maxim Cournoyer
  1 sibling, 1 reply; 8+ messages in thread
From: Maxim Cournoyer @ 2020-10-05  5:46 UTC (permalink / raw)
  To: George Clemmer; +Cc: 31403

merge 31403 22138
thanks

Hello,

George Clemmer <myglc2@gmail.com> writes:

> George Clemmer <myglc2@gmail.com> writes:
>
>> Alex Kost <alezost@gmail.com> writes:
>>
>>> Hello George,
>>>
>>> George Clemmer (2018-05-08 20:04 -0400) wrote:
>>>
>>>> In a "headless" vm-image (sysi29.scm, attached), "font-dejavu" installed
>>>> by manifest (attached) into the "empty" default profile ...
>>>>
>>>> 'guix package -m manifest'
>>>>
>>>> ... appears in the emacs 'M-x menu-set-font' choice box. But it doesn't
>>>> appear with the same manifest installed in the "foo" profile ...

Assuming you run Emacs in that foo profile and don't see the font,
that's probably because XDG_DATA_DIRS is unset in that other profile.
glib is one of the package setting that variable.

I'm merging this bug with 22138, which would fix the root cause.

Thanks,

Maxim




^ permalink raw reply	[flat|nested] 8+ messages in thread

* bug#31403: Font installed in non-default profile doesn't appear.
  2020-10-05  5:46       ` Maxim Cournoyer
@ 2021-09-13  2:29         ` Sarah Morgensen
  2021-09-15  4:04           ` Maxim Cournoyer
  0 siblings, 1 reply; 8+ messages in thread
From: Sarah Morgensen @ 2021-09-13  2:29 UTC (permalink / raw)
  To: Maxim Cournoyer; +Cc: 31403

Maxim Cournoyer <maxim.cournoyer@gmail.com> writes:
>>>> George Clemmer (2018-05-08 20:04 -0400) wrote:
>>>>
>>>>> In a "headless" vm-image (sysi29.scm, attached), "font-dejavu" installed
>>>>> by manifest (attached) into the "empty" default profile ...
>>>>>
>>>>> 'guix package -m manifest'
>>>>>
>>>>> ... appears in the emacs 'M-x menu-set-font' choice box. But it doesn't
>>>>> appear with the same manifest installed in the "foo" profile ...
>
> Assuming you run Emacs in that foo profile and don't see the font,
> that's probably because XDG_DATA_DIRS is unset in that other profile.
> glib is one of the package setting that variable.
>
> I'm merging this bug with 22138, which would fix the root cause.

Will this be fixed by #50358?  If so, could you close this when that is
merged?

Thanks,

--
Sarah




^ permalink raw reply	[flat|nested] 8+ messages in thread

* bug#31403: Font installed in non-default profile doesn't appear.
  2021-09-13  2:29         ` Sarah Morgensen
@ 2021-09-15  4:04           ` Maxim Cournoyer
  0 siblings, 0 replies; 8+ messages in thread
From: Maxim Cournoyer @ 2021-09-15  4:04 UTC (permalink / raw)
  To: Sarah Morgensen; +Cc: 31403

Hi!

Sarah Morgensen <iskarian@mgsn.dev> writes:

> Maxim Cournoyer <maxim.cournoyer@gmail.com> writes:
>>>>> George Clemmer (2018-05-08 20:04 -0400) wrote:
>>>>>
>>>>>> In a "headless" vm-image (sysi29.scm, attached), "font-dejavu" installed
>>>>>> by manifest (attached) into the "empty" default profile ...
>>>>>>
>>>>>> 'guix package -m manifest'
>>>>>>
>>>>>> ... appears in the emacs 'M-x menu-set-font' choice box. But it doesn't
>>>>>> appear with the same manifest installed in the "foo" profile ...
>>
>> Assuming you run Emacs in that foo profile and don't see the font,
>> that's probably because XDG_DATA_DIRS is unset in that other profile.
>> glib is one of the package setting that variable.
>>
>> I'm merging this bug with 22138, which would fix the root cause.
>
> Will this be fixed by #50358?  If so, could you close this when that is
> merged?

The above statement turned out to be untrue at the time; fontconfig used
to not honor XDG_DATA_DIRS.  That's now the case with the newest
fontconfig release, if XDG_DATA_DIRS is set (which probably won't -- due
to 22138), Emacs should be able to discover fonts in a different profile
than the user or system profiles.

Maxim




^ permalink raw reply	[flat|nested] 8+ messages in thread

* bug#31403: Font installed in non-default profile doesn't appear.
  2018-05-10 15:56     ` bug#31403: " George Clemmer
  2020-10-05  5:46       ` Maxim Cournoyer
@ 2022-11-18 14:18       ` Maxim Cournoyer
  1 sibling, 0 replies; 8+ messages in thread
From: Maxim Cournoyer @ 2022-11-18 14:18 UTC (permalink / raw)
  To: George Clemmer; +Cc: 31403-done

Hi,

George Clemmer <myglc2@gmail.com> writes:

> George Clemmer <myglc2@gmail.com> writes:
>
>> Alex Kost <alezost@gmail.com> writes:
>>
>>> Hello George,
>>>
>>> George Clemmer (2018-05-08 20:04 -0400) wrote:
>>>
>>>> In a "headless" vm-image (sysi29.scm, attached), "font-dejavu" installed
>>>> by manifest (attached) into the "empty" default profile ...
>>>>
>>>> 'guix package -m manifest'
>>>>
>>>> ... appears in the emacs 'M-x menu-set-font' choice box. But it doesn't
>>>> appear with the same manifest installed in the "foo" profile ...
>>>
>>> To make fonts available from a non-standard profile I added the
>>> following line into my "~/config/fontconfig/fonts.conf":
>>>
>>>   <dir>~/path-to-my-profile/share/fonts</dir>
>>
>> Thank you Alex!
>>
>> On the chance it might be useful to someone else, this ...
>>
>> <?xml version="1.0"?>
>> <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
>> <!-- /etc/fonts/fonts.conf file to configure system font access -->
>> <fontconfig>
>> <dir>~/path-to-my-profile/share/fonts</dir>
>> </fontconfig>
>>
>> ... in "~/.config/fontconfig/fonts.conf" worked for me ;-)
>
> Given that this works, ISTM this can be fixed by placing ...
>
> <?xml version="1.0"?>
> <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
> <!-- /etc/fonts/fonts.conf file to configure system font access -->
> <fontconfig>
> <dir>share/fonts</dir>
> </fontconfig>
>
> ... in "/etc/fonts/fonts.conf".
>
> WDYT? - George

What was this bug about exactly?  Having fonts installed to arbitrary
profiles usable by the system?  If so, I think that's out of scope.
Note that installing fonts to a profile where XDG_DATA_DIRS is set
should now be discoverable by fontconfig.

I'm closing the issue, but feel free to reopen it if I missed something.

-- 
Thanks,
Maxim




^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2022-11-18 14:19 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-05-09  0:04 Font installed in non-default profile doesn't appear George Clemmer
2018-05-09 17:34 ` Alex Kost
2018-05-09 23:07   ` George Clemmer
2018-05-10 15:56     ` bug#31403: " George Clemmer
2020-10-05  5:46       ` Maxim Cournoyer
2021-09-13  2:29         ` Sarah Morgensen
2021-09-15  4:04           ` Maxim Cournoyer
2022-11-18 14:18       ` Maxim Cournoyer

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.