* 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; 3+ 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] 3+ 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; 3+ 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] 3+ 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
0 siblings, 0 replies; 3+ 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] 3+ messages in thread
end of thread, other threads:[~2018-05-09 23:08 UTC | newest]
Thread overview: 3+ 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
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).