From unknown Tue Jun 17 01:30:15 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#54354 <54354@debbugs.gnu.org> To: bug#54354 <54354@debbugs.gnu.org> Subject: Status: [BUG] guix home: on foreign distro, ~/.bash_profile is not initialized Reply-To: bug#54354 <54354@debbugs.gnu.org> Date: Tue, 17 Jun 2025 08:30:15 +0000 retitle 54354 [BUG] guix home: on foreign distro, ~/.bash_profile is not in= itialized reassign 54354 guix submitter 54354 florhizome severity 54354 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Sat Mar 12 11:06:05 2022 Received: (at submit) by debbugs.gnu.org; 12 Mar 2022 16:06:05 +0000 Received: from localhost ([127.0.0.1]:40671 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nT4Fo-0005bK-7h for submit@debbugs.gnu.org; Sat, 12 Mar 2022 11:06:05 -0500 Received: from lists.gnu.org ([209.51.188.17]:43390) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nT1T8-0000o2-Jl for submit@debbugs.gnu.org; Sat, 12 Mar 2022 08:07:40 -0500 Received: from eggs.gnu.org ([209.51.188.92]:44336) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nT1T8-000338-FJ for bug-guix@gnu.org; Sat, 12 Mar 2022 08:07:38 -0500 Received: from mout02.posteo.de ([185.67.36.66]:59291) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nT1T4-00030Z-W6 for bug-guix@gnu.org; Sat, 12 Mar 2022 08:07:37 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 8B555240103 for ; Sat, 12 Mar 2022 14:07:31 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1647090451; bh=pX11BQvdMcTGEpOL1sQxPD3mp8jp7BM3Nc+nL7GqHNM=; h=From:To:Subject:Date:From; b=HYGr6dHKbpN2YvnIjlMtju3DG9lJh4omvNrrTkwYrNQ0x6Xp9KxZf39HIgYfOI8DS o/fUBYGXlX2JgBEdO9kt4u60M+NxvJOoJZIwVWV/MYP3EUzS2LhYR0T5tXmRaG2ukz HJgWKouqOCnS79Dy7UGks88A2d0R24JOraDPjI2fJm+Pj+qOaC3K7Mhz+zYIsgtvmM I7ZXEaj7dJ0Aqlcul9URiMW1tXRHrvjMgVwv4CaUG3Nt7sG3XYM/IkipkMmLFjoaHq rpSJBB+h/SdSLMruS1i2saI2MyQI4dylccHAyvhmqnypa2gLfi2k2tFEkw0lXNfR1w hJ7PqU4fY1OOA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4KG34L3pXKz6tmx for ; Sat, 12 Mar 2022 14:07:30 +0100 (CET) From: florhizome To: bug-guix@gnu.org Subject: [BUG] guix home: on foreign distro, ~/.bash_profile is not initialized Date: Sat, 12 Mar 2022 13:07:29 +0000 Message-ID: <878rtfjp4e.fsf@thinkpad-manjaro.mail-host-address-is-not-set> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=185.67.36.66; envelope-from=florhizome@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -31 X-Spam_score: -3.2 X-Spam_bar: --- X-Spam_report: (-3.2 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URI_DOTEDU=1.246 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Sat, 12 Mar 2022 11:06:02 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) --=-=-= Content-Type: text/plain Hi guix' ! I have been trying to use guix home on my foreign distro partition (manjaro); especially in order to set up additional profiles from there, but my .bash_profile generated by guix doesn't seem to be evaluated at all. To describe the actual issue finally: None of the things that should happen through .bash_profile seem to happen at the moment (it's just about different environment variables that will not be set up.), but after running bash --login in my terminal-emulator everything is as anticipated so my guess is that .bash_profile actually isn't evaluated at all after login. I'm happy to hear other suggestions and especially solutions. I will attach the file that I use for home configuration, as well as the current resulting .bashrc, .bash_profile and .profile files. I'm aware that there is duplicated code by the generated aliases in .bashrc and that the prompt customization for guix profiles added by the "guix-defaults?" field does not work due to other related code that comes afterwards but I'm not sure it's related to that main issue. I did the original set up using "guix home import" which seems to have improved since I tried last in december last year when the generated file didn't work at all. Manjaro has a lot of stuff in it's .bashrc that i didn't want to override, and maybe there are more cases of duplication there that I don't know about what harm they might introduce. Greetings, Florian --=-=-= Content-Type: text/plain Content-Disposition: attachment; filename=home-configuration.scm Content-Description: guix home declaration (use-modules (gnu home) (gnu packages) (gnu packages base) (gnu services) (guix gexp) (gnu home services shells)) (define %enable-extra-profiles (plain-file "enable-profiles" "for i in $GUIX_EXTRA_PROFILES/*; do profile=$i/$(basename \"$i\") if [ -f \"$profile\"/etc/profile ]; then GUIX_PROFILE=\"$profile\" . \"$GUIX_PROFILE\"/etc/profile fi unset profile done")) (home-environment (services (list (service home-bash-service-type (home-bash-configuration (environment-variables '(("GUIX_EXTRA_PROFILES" . "/home/flo/.extra-profiles") ;;("ALTERNATE_EDITOR" . "\"\"") ("EDITOR" . "\"emacsclient -nw -q\"") ("VISUAL" . "\"emacsclient -c -a \"\"\"") ("GIT_EDITOR" . "\"emacs -nw -q\""))) (aliases '(("cp" . "cp -i") ("df" . "df -h") ("egrep='egrep --colour" . "auto") ("fgrep='fgrep --colour" . "auto") ("free" . "free -m") ("grep='grep --colour" . "auto") ("ls='ls --color" . "auto") ("more" . "less") ("np" . "nano -w PKGBUILD"))) (bashrc (list (local-file "/home/flo/.config/guix/home/.bashrc" "bashrc"))) (bash-profile (list %enable-extra-profiles)) (bash-logout (list (local-file "/home/flo/.config/guix/home/.bash_logout" "bash_logout")))))))) --=-=-= Content-Type: text/plain Content-Disposition: attachment; filename=.profile Content-Description: resulting "~/.profile" HOME_ENVIRONMENT=$HOME/.guix-home . $HOME_ENVIRONMENT/setup-environment $HOME_ENVIRONMENT/on-first-login --=-=-= Content-Type: text/plain Content-Disposition: attachment; filename=.bashrc Content-Description: resulting "~/.bashrc" alias cp="cp -i" alias df="df -h" alias egrep='egrep --colour="auto" alias fgrep='fgrep --colour="auto" alias free="free -m" alias grep='grep --colour="auto" alias ls='ls --color="auto" alias more="less" alias np="nano -w PKGBUILD" # Bash initialization for interactive non-login shells and # for remote shells (info "(bash) Bash Startup Files"). # Export 'SHELL' to child processes. Programs such as 'screen' # honor it and otherwise use /bin/sh. export SHELL if [[ $- != *i* ]] then # We are being invoked from a non-interactive shell. If this # is an SSH session (as in "ssh host command"), source # /etc/profile so we get PATH and other essential variables. [[ -n "$SSH_CLIENT" ]] && source /etc/profile # Don't do anything else. return fi # Source the system-wide file. if [[ -e /etc/bashrc ]]; then source /etc/bashrc fi # Adjust the prompt depending on whether we're in 'guix environment'. if [ -n "$GUIX_ENVIRONMENT" ] then PS1='\u@\h \w [env]\$ ' else PS1='\u@\h \w\$ ' fi alias ls='ls -p --color=auto' alias ll='ls -l' alias grep='grep --color=auto' # # ~/.bashrc # [[ $- != *i* ]] && return colors() { local fgc bgc vals seq0 printf "Color escapes are %s\n" '\e[${value};...;${value}m' printf "Values 30..37 are \e[33mforeground colors\e[m\n" printf "Values 40..47 are \e[43mbackground colors\e[m\n" printf "Value 1 gives a \e[1mbold-faced look\e[m\n\n" # foreground colors for fgc in {30..37}; do # background colors for bgc in {40..47}; do fgc=${fgc#37} # white bgc=${bgc#40} # black vals="${fgc:+$fgc;}${bgc}" vals=${vals%%;} seq0="${vals:+\e[${vals}m}" printf " %-9s" "${seq0:-(default)}" printf " ${seq0}TEXT\e[m" printf " \e[${vals:+${vals+$vals;}}1mBOLD\e[m" done echo; echo done } [ -r /usr/share/bash-completion/bash_completion ] && . /usr/share/bash-completion/bash_completion # Change the window title of X terminals case ${TERM} in xterm*|rxvt*|Eterm*|aterm|kterm|gnome*|interix|konsole*) PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME%%.*}:${PWD/#$HOME/\~}\007"' ;; screen*) PROMPT_COMMAND='echo -ne "\033_${USER}@${HOSTNAME%%.*}:${PWD/#$HOME/\~}\033\\"' ;; esac use_color=true # Set colorful PS1 only on colorful terminals. # dircolors --print-database uses its own built-in database # instead of using /etc/DIR_COLORS. Try to use the external file # first to take advantage of user additions. Use internal bash # globbing instead of external grep binary. safe_term=${TERM//[^[:alnum:]]/?} # sanitize TERM match_lhs="" [[ -f ~/.dir_colors ]] && match_lhs="${match_lhs}$(<~/.dir_colors)" [[ -f /etc/DIR_COLORS ]] && match_lhs="${match_lhs}$(/dev/null \ && match_lhs=$(dircolors --print-database) [[ $'\n'${match_lhs} == *$'\n'"TERM "${safe_term}* ]] && use_color=true if ${use_color} ; then # Enable colors for ls, etc. Prefer ~/.dir_colors #64489 if type -P dircolors >/dev/null ; then if [[ -f ~/.dir_colors ]] ; then eval $(dircolors -b ~/.dir_colors) elif [[ -f /etc/DIR_COLORS ]] ; then eval $(dircolors -b /etc/DIR_COLORS) fi fi if [[ ${EUID} == 0 ]] ; then PS1='\[\033[01;31m\][\h\[\033[01;36m\] \W\[\033[01;31m\]]\$\[\033[00m\] ' else PS1='\[\033[01;32m\][\u@\h\[\033[01;37m\] \W\[\033[01;32m\]]\$\[\033[00m\] ' fi alias ls='ls --color=auto' alias grep='grep --colour=auto' alias egrep='egrep --colour=auto' alias fgrep='fgrep --colour=auto' else if [[ ${EUID} == 0 ]] ; then # show root@ when we don't have colors PS1='\u@\h \W \$ ' else PS1='\u@\h \w \$ ' fi fi unset use_color safe_term match_lhs sh alias cp="cp -i" # confirm before overwriting something alias df='df -h' # human-readable sizes alias free='free -m' # show sizes in MB alias np='nano -w PKGBUILD' alias more=less xhost +local:root > /dev/null 2>&1 complete -cf sudo # Bash won't get SIGWINCH if another process is in the foreground. # Enable checkwinsize so that bash will check the terminal size when # it regains control. #65623 # http://cnswww.cns.cwru.edu/~chet/bash/FAQ (E11) shopt -s checkwinsize shopt -s expand_aliases # export QT_SELECT=4 # Enable history appending instead of overwriting. #139609 shopt -s histappend # # # ex - archive extractor # # usage: ex ex () { if [ -f $1 ] ; then case $1 in *.tar.bz2) tar xjf $1 ;; *.tar.gz) tar xzf $1 ;; *.bz2) bunzip2 $1 ;; *.rar) unrar x $1 ;; *.gz) gunzip $1 ;; *.tar) tar xf $1 ;; *.tbz2) tar xjf $1 ;; *.tgz) tar xzf $1 ;; *.zip) unzip $1 ;; *.Z) uncompress $1;; *.7z) 7z x $1 ;; *) echo "'$1' cannot be extracted via ex()" ;; esac else echo "'$1' is not a valid file" fi } # BEGIN_KITTY_SHELL_INTEGRATION if test -n "$KITTY_INSTALLATION_DIR" -a -e "$KITTY_INSTALLATION_DIR/shell-integration/bash/kitty.bash"; then source "$KITTY_INSTALLATION_DIR/shell-integration/bash/kitty.bash"; fi # END_KITTY_SHELL_INTEGRATION --=-=-= Content-Type: text/plain Content-Disposition: attachment; filename=.bash_profile Content-Description: resulting "~/.bash_profile" file # Setups system and user profiles and related variables # /etc/profile will be sourced by bash automatically # Setups home environment profile if [ -f ~/.profile ]; then source ~/.profile; fi # Honor per-interactive-shell startup file if [ -f ~/.bashrc ]; then source ~/.bashrc; fi for i in $GUIX_EXTRA_PROFILES/*; do profile=$i/$(basename "$i") if [ -f "$profile"/etc/profile ]; then GUIX_PROFILE="$profile" . "$GUIX_PROFILE"/etc/profile fi unset profile done export GUIX_EXTRA_PROFILES=/home/flo/.extra-profiles export EDITOR="emacsclient -nw -q" export VISUAL="emacsclient -c -a """ export GIT_EDITOR="emacs -nw -q" --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Sat Mar 12 13:29:21 2022 Received: (at 54354) by debbugs.gnu.org; 12 Mar 2022 18:29:21 +0000 Received: from localhost ([127.0.0.1]:40817 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nT6US-0007L7-Uh for submit@debbugs.gnu.org; Sat, 12 Mar 2022 13:29:21 -0500 Received: from mail-ej1-f66.google.com ([209.85.218.66]:33684) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nT6UR-0007Kv-Mf for 54354@debbugs.gnu.org; Sat, 12 Mar 2022 13:29:20 -0500 Received: by mail-ej1-f66.google.com with SMTP id kt27so25799265ejb.0 for <54354@debbugs.gnu.org>; Sat, 12 Mar 2022 10:29:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:subject:from:to:date:in-reply-to:references:user-agent :mime-version:content-transfer-encoding; bh=eBqA+rVlwpzwItWdyp62SKFTCwJ78HdcopNqVv1ifIg=; b=EgNDCWfdvWSDrVXw4EqJUeHoBrgydA4x5j+sIWtdEhQ+utvZ1PkT4Adff3ClJJiXTi I8jvF7apxaahX74YLlaIjyB5eDUxYdrYQdwVlR7urQ0EBOyXhcvVabXZWSYla+ss2hZz LF3J6YOwJtkNXbu+uOBz9lfpeUs3Rr3RYVVAUX9pGkBYe661LsH+UZSn7ZHJr8vs78t1 2xKMQOiByq9gQi4pU26TP7V01B5BqEP4pQVOcu+2OtVgxTg9r5dXbsRRXSFd+qwPVfen Ccn83SSzma+m7yVMhrZeqq6Ukm2Lbfi5bonDL+FNi2I5Z6CWn8RgM/DvvNKWtdyrZUkP CxIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:subject:from:to:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=eBqA+rVlwpzwItWdyp62SKFTCwJ78HdcopNqVv1ifIg=; b=6cyywMuly7slqBflkptHmtaOwXn2RNZW0ZyxWCX+eSGpyXrDjSvMbfbUreSwpwvQpV 1frebDkHMkV0tW5rucwBbRP3PkUfqUlNlZ4TqdsDibDEFR1E4MXnNOg3NfU4xVHlxohV zgaF/WosXmRB1unUw/diUcJyV9FeXXc3SVTBac/mEk+6n3r/NgYYWE31qMURpHXoMJfS 1kpur3hqONdww4vliWWJ0aVnfIEhOwi3jOjDR79jiaT1D8h5bfp3Tc2KW6I6w0baMbyY re9x9GiaHAVFf4/kZoxF/XDWgaHN1FdrfkP0ygeuxLFUF5Lw5GpCmfZT08gDkwmYtgRc d/UQ== X-Gm-Message-State: AOAM531NX6PrGfESKlIPZyEB15tmIbDtAq2/m5ZyLpQjlODNHOcHbQTx e4CvqQzTpmulJrRquXAYpQk= X-Google-Smtp-Source: ABdhPJx8DJMtJUldqwQdzTcQDz/0oujHlWjS1wSy3/xfrpnmGSApNQ7ell6veb8N7Zs5d/5i7cmh3w== X-Received: by 2002:a17:907:9485:b0:6db:331:591e with SMTP id dm5-20020a170907948500b006db0331591emr12912647ejc.478.1647109753666; Sat, 12 Mar 2022 10:29:13 -0800 (PST) Received: from nijino.fritz.box (85-127-52-93.dsl.dynamic.surfer.at. [85.127.52.93]) by smtp.gmail.com with ESMTPSA id m25-20020a170906161900b006d43be5b95fsm4638539ejd.118.2022.03.12.10.29.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 12 Mar 2022 10:29:13 -0800 (PST) Message-ID: <37831ee70559c60fd1d0545b621b5cc485185f5f.camel@gmail.com> Subject: Re: [BUG] guix home: on foreign distro, ~/.bash_profile is not initialized From: Liliana Marie Prikler To: florhizome , 54354@debbugs.gnu.org Date: Sat, 12 Mar 2022 19:29:10 +0100 In-Reply-To: <878rtfjp4e.fsf@thinkpad-manjaro.mail-host-address-is-not-set> References: <878rtfjp4e.fsf@thinkpad-manjaro.mail-host-address-is-not-set> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.42.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 54354 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi Florian Am Samstag, dem 12.03.2022 um 13:07 +0000 schrieb florhizome: > > Hi guix' ! > I have been trying to use guix home on my foreign distro partition > (manjaro); especially in order to set up additional profiles from > there, but my .bash_profile generated by guix doesn't seem to be > evaluated at all. > > To describe the actual issue finally: None of the things that should > happen through .bash_profile seem to happen at the moment (it's just > about different environment variables that will not be set up.), but > after running bash --login in my terminal-emulator everything is as > anticipated so my guess is that .bash_profile actually isn't evaluated > at all after login. I'm happy to hear other suggestions and especially > solutions. This looks vaguely like a problem others (myself included) have experienced/are experiencing on Ubuntu. See [1] among others. Given that bash is not used for login, your environment-variables block has not effect. Now if you were to define that inside a variable, you could also write up a service that generates systemd unit overrides and add those definitions to it. I'm not sure how well-received such a service would be upstream given that we don't use systemd in Guix, but it's a point to start. Cheers [1] https://issues.guix.gnu.org/48300#7 From debbugs-submit-bounces@debbugs.gnu.org Sun Mar 20 11:09:33 2022 Received: (at 54354) by debbugs.gnu.org; 20 Mar 2022 15:09:33 +0000 Received: from localhost ([127.0.0.1]:34951 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nVxBU-0002LC-KS for submit@debbugs.gnu.org; Sun, 20 Mar 2022 11:09:33 -0400 Received: from mout01.posteo.de ([185.67.36.65]:37065) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nVwFO-0000o0-0c for 54354@debbugs.gnu.org; Sun, 20 Mar 2022 10:09:32 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id E894A240029 for <54354@debbugs.gnu.org>; Sun, 20 Mar 2022 15:09:23 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1647785363; bh=tDbhJqadLSG7i+y1VBbGThk2AQ7LvH7aS3sX6pLxd2o=; h=From:To:Subject:Date:From; b=cw8NbrHUcFo+mqaNfyp7tzQTc+fpbxTV865mkeVBPtsjBJSdpIEa4+OYW2D/R3jLO ycP7KgqUc4qQmIMdF0h8hg55D82Zddmi9yEouoFgTKnJe5tvhfPSEfwxQx1QOtmk36 lfdOTJZBcuCi3TeHf4OEcQ2ogEntY5vlAR6vy+Y8MHAKha/aGw4tJmVfbdKZG7wZMF 0l4Bo6rixXDhmJDFtblybi8xyNRTRA3jzcPMaRKa4twncGRdeSkd31F73Y9Eq095ju FN+6yDYCv4QnWNIyw5iCwIskD7jYXuLusur1nnu5RkIcjZmqlf2ogZxsT+PWrYL76l ful+mciUY86sw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4KM0430nQtz9rxS; Sun, 20 Mar 2022 15:09:23 +0100 (CET) From: florhizome To: Liliana Marie Prikler , 54354@debbugs.gnu.org Subject: Re: [BUG] guix home: on foreign distro, ~/.bash_profile is not initialized In-Reply-To: <37831ee70559c60fd1d0545b621b5cc485185f5f.camel@gmail.com> Date: Sun, 20 Mar 2022 14:09:22 +0000 Message-ID: <8735jcd8bx.fsf@thinkpad-manjaro.mail-host-address-is-not-set> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 54354 X-Mailman-Approved-At: Sun, 20 Mar 2022 11:09:31 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hi Liliana, Hm, well it doesn't seem like the exact same issue, but that thread is helpful. Could systemd/logind be made to use bash for login? For now I thou= ght maybe I can just write shepherd services to do that stuff for me, to stay in guix homes framework. But shepherd seems to have a problem starting up: /gnu/store/y85vzni5yc6lcb7qqhmlkifis9nzmm5l-shepherd.conf wird geladen. herd: Ausnahmefehler w=C3=A4hrend der Ausf=C3=BChrung von =C2=BBload=C2=AB = mit dem Dienst =C2=BBroot=C2=AB: In procedure fport_write: Eingabe-/Ausgabefehler If you don't speak german, that roughly translates to: loading /gnu/store/...-shepherd.conf herd: exception error during the execution of <> with the service <>: In procedure fport_write: i/o error I got the same error when reconfiguring with two differing simple service configurations (just start a program from a package) passed to shep= herd. In anyway I think it would be good to add to guix home's documentation that= some features might not work due to the login system of a foreign distro if we are sure of that? cheers Liliana Marie Prikler writes: > Hi Florian > > Am Samstag, dem 12.03.2022 um 13:07 +0000 schrieb florhizome: >>=20 >> Hi guix' ! >> I have been trying to use guix home on my foreign distro partition >> (manjaro); especially in order to set up additional profiles from >> there, but my .bash_profile generated by guix doesn't seem to be >> evaluated at all. >>=20 >> To describe the actual issue finally: None of the things that should >> happen through .bash_profile seem to happen at the moment (it's just >> about different environment variables that will not be set up.), but >> after running bash --login in my terminal-emulator everything is as >> anticipated so my guess is that .bash_profile actually isn't evaluated >> at all after login. I'm happy to hear other suggestions and especially >> solutions. > This looks vaguely like a problem others (myself included) have > experienced/are experiencing on Ubuntu. See [1] among others. > > Given that bash is not used for login, your environment-variables block > has not effect. Now if you were to define that inside a variable, you > could also write up a service that generates systemd unit overrides and > add those definitions to it. I'm not sure how well-received such a > service would be upstream given that we don't use systemd in Guix, but > it's a point to start. > > Cheers > > [1] https://issues.guix.gnu.org/48300#7 From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 18 04:48:00 2022 Received: (at 54354) by debbugs.gnu.org; 18 Oct 2022 08:48:00 +0000 Received: from localhost ([127.0.0.1]:51111 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1okiGW-00073i-3g for submit@debbugs.gnu.org; Tue, 18 Oct 2022 04:48:00 -0400 Received: from relay6-d.mail.gandi.net ([217.70.183.198]:36617) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1okiGT-00072q-Nd for 54354@debbugs.gnu.org; Tue, 18 Oct 2022 04:47:58 -0400 Received: (Authenticated sender: andrew@trop.in) by mail.gandi.net (Postfix) with ESMTPSA id 42F01C0010; Tue, 18 Oct 2022 08:47:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=trop.in; s=gm1; t=1666082871; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=f77CmlodREdxHa+GePl5qVs7+EOqvV1fYDvVLvpHKoI=; b=oZw2d0u4WuTj9fmpG5O9fitmQ/QS0rJIxWUZg0u80bI4bgj1uqoNlJ0Hxrw8X/QUHnVVRc aiFPS0VPxk50xjGS87QJJeS4NjQ2q80gQ/Bov278/i4IujOJcJGjLWzmp86DS6Wf9/eA4R 7ZDQmCUoDNiS5kNe73cSNT4p3rE5mk7BRPbAYVgDeFL2eBp1GEKib/i8k7/I4hU6mqcySJ M87tbL6jY5HdMBfCS0Mx5dhvCUoWFBxAuQMqsRETQuMzR/pfOAHnWLI/4NggbsTLq1Br8P WPeixZDt6uTAcnrrCqYV0nx5eDlxZvjAgCTO1kePTbYkyeJy+d7K9f0iDkQkaw== From: Andrew Tropin To: florhizome , Liliana Marie Prikler , 54354@debbugs.gnu.org Subject: Re: bug#54354: [BUG] guix home: on foreign distro, ~/.bash_profile is not initialized In-Reply-To: <8735jcd8bx.fsf@thinkpad-manjaro.mail-host-address-is-not-set> References: <878rtfjp4e.fsf@thinkpad-manjaro.mail-host-address-is-not-set> <8735jcd8bx.fsf@thinkpad-manjaro.mail-host-address-is-not-set> Date: Tue, 18 Oct 2022 12:47:45 +0400 Message-ID: <871qr5a572.fsf@trop.in> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 54354 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 2022-03-20 14:09, florhizome wrote: > Hi Liliana, > > Hm, well it doesn't seem like the exact same issue, but that thread is > helpful. Could systemd/logind be made to use bash for login? Login shell is usually controlled by /etc/passwd, so it shouldn't inerfer with systemd, elogind. > For now I thought maybe I can just write shepherd services to do > that stuff for me, to stay in guix homes framework. But shepherd seems > to have a problem starting up: > > /gnu/store/y85vzni5yc6lcb7qqhmlkifis9nzmm5l-shepherd.conf wird geladen. > herd: Ausnahmefehler w=C3=A4hrend der Ausf=C3=BChrung von =C2=BBload=C2= =AB mit dem Dienst =C2=BBroot=C2=AB: > In procedure fport_write: Eingabe-/Ausgabefehler > > If you don't speak german, that roughly translates to: > > loading /gnu/store/...-shepherd.conf > herd: exception error during the execution of <> with the service > <>: > In procedure fport_write: i/o error > > I got the same error when reconfiguring with two differing simple > service configurations (just start a program from a package) passed to sh= epherd. > In anyway I think it would be good to add to guix home's documentation th= at some features might not work > due to the login system of a foreign distro if we are sure of that? > There were a few fixes related to shepherd service, which probably fixes it. Can you confirm this? Or issue is still valid? Is the whole issue 54354 still valid? =2D-=20 Best regards, Andrew Tropin --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEKEGaxlA4dEDH6S/6IgjSCVjB3rAFAmNOaDIACgkQIgjSCVjB 3rDT5w//c0UpYYImC49ezMpYjUE9J4AmBpCYPVqXKaXA6gs7sAKHsx08jgJyljfM xNtt+yPlGQK5ZU0rc6eP3IyD4uV7XFHV3xm4tFegND6Wnww7AFt/Y01/ukApxA4F 2P7pd0aOcV/x+0av98NHOZY0t4qvo5VMw5jewf534kDDFuoj/Bs6mQjnj2B/FJo1 vcPMAhhxbcXMRhRnZTGCEGrn/rqAvRl0AUHMSWV8Hl6LipMdRJ/Fe40ak3MAZoxD kx4X1twHGY++q3X104DWDKyqmL52bBxw8nIf03YJYaYNgKgjt76I249gFPz0Zot6 M5Z785VEhm4Clv5ms/QOhV/s82TZuEmVPx+UZN28zu1jMPOAb1umBtyB8g8TXlm4 DVL1EIVHhzjWpIhjON3LNDi8rCVpJEmXZs1PnjSFnXkJCL7DmejFAaMiZZg9qhvq vbP6D4iswz1X49yV7rEXVXyZRRJMQYjDJ1H90soBSw7Jl3z3jcNQ2uAZGQhmboml TjY4Kl2/t9rR5szM0hA52ZcV5+U0Kq8SJCPXuktfBlp0bhWNMaVhHnOZtlkuyt/3 eC4lx1fL6ExGF3Vl52qrfwTfhNHRK+pEyMk/LuNVlAUe8bWB+EBxL96uapAYq+3t bSoSgyrJMNMpcC1DOs9ivdZOdmJbdKetXhZW36g08p+UDI3asYc= =+qUm -----END PGP SIGNATURE----- --=-=-=--