From: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
To: Maxime Devos <maximedevos@telenet.be>
Cc: Liliana Marie Prikler <liliana.prikler@ist.tugraz.at>,
52727@debbugs.gnu.org
Subject: bug#52727: When logged as user, GUILE_LOAD_COMPILED_PATH points to the system cache instead of the user cache
Date: Thu, 23 Dec 2021 08:31:15 +0100 [thread overview]
Message-ID: <20211223083115.5bd27816@primary_laptop> (raw)
In-Reply-To: <ba240a0fae1d2f3a2e5cee0ca428171b7f0ef496.camel@telenet.be>
[-- Attachment #1.1: Type: text/plain, Size: 1096 bytes --]
On Wed, 22 Dec 2021 11:29:29 +0100
Maxime Devos <maximedevos@telenet.be> wrote:
> Liliana Marie Prikler schreef op wo 22-12-2021 om 08:57 [+0100]:
> > For the record, guile has been a part of the system profile since
> > %base-packages were first defined, so if your load paths break,
> > there is probably a larger issue at hand. In this particular case,
> > your local guix profile ought to shadow anything that's in
> > /run/current- system, so I don't really get how the ABI match is
> > triggered. Perhaps you might want to debug that in a REPL.
>
> Maybe the system guix has a package module that does not exist in the
> user guix, so guix tries to load the system package module instead of
> the non-existing user package module?
In my system.scm (I attached it) I do have a package (fdm-git) that
doesn't exist elsewhere (because I need a patch that is upstream but
not in an fdm release yet).
Right now I can't test without fdm-git because when doing guix
system reconfigure, it tries to build guix but its tests fails. I'll
bugreport about that.
Denis.
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.2: j9anw5swkxfy7x2amcf7bxr0mfd1y14d-configuration.scm --]
[-- Type: text/x-scheme, Size: 11100 bytes --]
;; Copyright (C) 2021 Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
;;
;; This program is free software: you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation, either version 3 of the License, or
;; (at your option) any later version.
;;
;; This program is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
;; GNU General Public License for more details.
;;
;; You should have received a copy of the GNU General Public License
;; along with this program. If not, see <https://www.gnu.org/licenses/>.
(use-modules
(gnu)
(gnu system mapped-devices)
(gnu system nss)
(guix build-system gnu)
(guix git-download)
((guix licenses) #:prefix license:)
(guix packages))
(use-package-modules
admin
android
audio
autotools
base
bash
bison
bootloaders
certs
commencement
compression
cryptsetup
databases
disk
display-managers
emacs
emacs-xyz
file
flashing-tools
freedesktop
gnome
gnupg
linux
mail
mpd
networking
ncurses
package-management
patchutils
pulseaudio
python
rsync
screen
ssh
terminals
tls
tor
version-control
video
vim
virtualization
web
web-browsers
wm
xdisorg
xfce
xorg)
(use-service-modules
databases
desktop
mail
networking
sound
virtualization
xorg)
(define-public fdm-git
(package
(name "fdm-git")
(version "2.0+25")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/nicm/fdm")
(commit "c245d210a5b0049f48c78e40af44d2889ecf217f")))
(file-name (git-file-name name version))
(sha256
(base32 "06al4rs11c859zwfqknicn31nz66w1g73bsb61463dk12q06pwy7"))))
(build-system gnu-build-system)
(inputs
`(("tdb" ,tdb)
("openssl" ,openssl)
("zlib" ,zlib)))
(native-inputs
`(("autoconf" ,autoconf)
("automake" ,automake)
("bison-3.6" ,bison-3.6)))
(home-page "https://github.com/nicm/fdm")
(synopsis "Mail Retrieval Agent (MRA) and Mail Delivery Agent (MDA)")
(description "fdm is a program designed to fetch mail from POP3
or IMAP servers, or receive local mail from stdin, and
deliver it in various ways.")
(license
;; Why point to a source file? Well, all the individual files have a
;; copy of this license in their headers, but there's no seprate file
;; with that information.
(license:non-copyleft
"https://github.com/nicm/fdm/blob/master/command.c"))))
(define %lvm-vg
(list
(mapped-device
(source (uuid "fd8d9fd8-56a5-4c61-9f6e-35371ff964f0"))
(target "internal-cleartext")
(type luks-device-mapping))
(mapped-device
(source "primary_laptop")
(targets (list "primary_laptop-guix32"))
(type lvm-device-mapping))))
(define %guix32-rootfs
(file-system
(device "/dev/mapper/primary_laptop-guix32")
(mount-point "/")
(type "ext4")
(dependencies %lvm-vg)))
(define %parabola32-rootfs
(file-system
(mount-point "/srv/distros/parabola32")
(device "/dev/mapper/primary_laptop-parabola32")
(type "ext4")
(dependencies %lvm-vg)
(create-mount-point? #t)
(mount-may-fail? #t)))
(define (parabola32-bind-mount path)
(file-system
(mount-point path)
(device (string-append "/srv/distros/parabola32" path))
(type "none")
(dependencies (list %parabola32-rootfs))
(flags '(bind-mount))
(create-mount-point? #t)
(mount-may-fail? #t)))
(operating-system
(host-name "primary_laptop")
(timezone "Europe/Paris")
(locale "en_US.utf8")
(kernel-arguments (append (list
"iomem=relaxed"
"modprobe.blacklist=pcspkr"
"quiet")))
(initrd-modules (cons "i915" %base-initrd-modules))
(keyboard-layout (keyboard-layout "us" "altgr-intl"))
(bootloader (bootloader-configuration (bootloader (bootloader
(inherit grub-bootloader)
(installer #~(const #t))))
(keyboard-layout keyboard-layout)))
(mapped-devices %lvm-vg)
(file-systems (append (list
%guix32-rootfs
%parabola32-rootfs
(parabola32-bind-mount "/home/gnutoo")
(parabola32-bind-mount "/root")
(parabola32-bind-mount "/etc/ssh/ssh_config")
(parabola32-bind-mount "/etc/gitconfig")
(parabola32-bind-mount "/etc/git/")
(parabola32-bind-mount "/etc/wpa_supplicant/")
(parabola32-bind-mount "/srv/http/")
(parabola32-bind-mount "/srv/kiwix/")
(parabola32-bind-mount "/usr/local/bin/")
(parabola32-bind-mount "/var/lib/postgres/"))
%base-file-systems))
(users (cons*
(user-account
(name "gnutoo")
(uid 1000)
(group "gnutoo")
(supplementary-groups '("wheel" "netdev" "audio" "video")))
(user-account
(name "postgres")
(uid 88)
(group "postgres")
(comment "PostgreSQL user")
(home-directory "/var/lib/postgres")
(shell (file-append bash "/bin/bash"))
(system? #t))
%base-user-accounts))
(groups (cons*
(user-group
(name "gnutoo")
(id 1000))
(user-group
(name "postgres")
(id 88)
(system? #t))
%base-groups))
(hosts-file (local-file "etc/hosts"))
(packages (append (list
alsa-utils
adb
abootimg
android-udev-rules
autoconf
automake
bash-completion
bemenu
claws-mail
cryptsetup
ddrescue
dosfstools
dovecot
elogind
emacs
fastboot
fdm-git
file
flashrom
fluxbox
gnu-make
guix
gcc-toolchain
gdm
git
glibc ;; for the utilities
gnupg
grub
heimdall
htop
;; kiwix-tools
libtool
links
lvm2
lzip
meld
midori
mkbootimg
mpd
mpd-mpc
mplayer
myrepos
nbd
ncurses
net-tools
netcat-openbsd
nss-certs
openssh
picocom
pinentry
pulseaudio
python
ponymix
redshift
rsync
screen
sshfs
strace
sway
terminator
tor
udisks
vim
virt-manager
vlc
waybar
wayland
wpa-supplicant
xauth
xfce4-screensaver
xfce4-session
xf86-input-keyboard
xf86-input-libinput
xf86-video-intel
xinit
xorg-server
xrandr)
%base-packages))
(services (append (list
(dovecot-service #:config
(dovecot-configuration
(mail-location "maildir:~/.local/Maildir")
(listen '("127.0.0.1"))))
(service alsa-service-type)
(service dhcp-client-service-type)
(service elogind-service-type)
(service gdm-service-type
(gdm-configuration
(debug? #t)
;; (wayland? #t)
))
(service libvirt-service-type
(libvirt-configuration))
(service postgresql-service-type
(postgresql-configuration
(postgresql postgresql-13.3)
(data-directory "/var/lib/postgres/data")
(config-file
(postgresql-config-file
(hba-file
(plain-file
"pg_hba.conf"
(string-append
"# TYPE DATABASE USER ADDRESS\n"
" local all all trust\n")))
(extra-config
'(("max_connections" 100)
("shared_buffers" "128 MB")
("dynamic_shared_memory_type" "posix")
("max_wal_size" "1 GB")
("min_wal_size" "80 MB")
("log_timezone" "Europe/Paris")
("datestyle" "iso, dmy")
("timezone" "Europe/Paris")
("lc_messages" "en_US.UTF-8")
("lc_monetary" "en_US.UTF-8")
("lc_numeric" "en_US.UTF-8")
("lc_time" "fr_FR.UTF-8")
("default_text_search_config"
"pg_catalog.english")))))))
(service pulseaudio-service-type)
(service tor-service-type
(tor-configuration))
(udisks-service)
(service xfce-desktop-service-type))
%base-services)))
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next prev parent reply other threads:[~2021-12-23 8:01 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-12-22 0:16 bug#52727: When logged as user, GUILE_LOAD_COMPILED_PATH points to the system cache instead of the user cache Denis 'GNUtoo' Carikli
2021-12-22 7:57 ` Liliana Marie Prikler
2021-12-22 10:29 ` Maxime Devos
2021-12-23 7:31 ` Denis 'GNUtoo' Carikli [this message]
2021-12-23 8:22 ` Liliana Marie Prikler
2021-12-22 10:32 ` Maxime Devos
2021-12-22 11:03 ` Liliana Marie Prikler
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=20211223083115.5bd27816@primary_laptop \
--to=gnutoo@cyberdimension.org \
--cc=52727@debbugs.gnu.org \
--cc=liliana.prikler@ist.tugraz.at \
--cc=maximedevos@telenet.be \
/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.