root zsh to bash

2019-03-19 Thread mikadoZero
I am trying to switch the root user from zsh to bash.

The relevant part of my system configuration is:

  (users (cons (user-account
  (name "guix")
  (group "users")
  (supplementary-groups '("wheel" "netdev" "audio"))
  (home-directory "/home/guix"))
   %base-user-accounts))

Reconfiguring and rebooting does not switch the shell for root.

The root user's shell is still zsh.  I know it is the zsh by it's prompt
string.

zsh is not listed as a package in the system configuration or the root
user's manifest.

`which zsh`
zsh not found

The line for root in /etc/passwd end with the shell:

/gnu/store/ia34lsanp33vaf32yhw2nnpnm2pc2g1y-zsh-5.6.2/bin/zsh

Any ideas of how I can get the root user's shell switched from zsh to
bash?



Re: 14.1 Building from Git

2019-03-19 Thread Tobias Geerinckx-Rice

mikadoZero,

(Probably) not a solution to your problem, I'm afraid, but:

mikadoZero wrote:
I did copy the suggested exports that were output when I ran 
`guix

package --manifest=manifest.scm` into .zprofile and they were:


Guix does *not* suggest copying these into shell initialisation 
files, and you should remove the ones you've added.


Kind regards,

T G-R



Re: 14.1 Building from Git

2019-03-19 Thread Ricardo Wurmus


mikadoZero  writes:

> I did copy the suggested exports that were output when I ran `guix
> package --manifest=manifest.scm` into .zprofile and they were:

I suggest to not do this and to add this snippet instead:

export GUIX_PROFILE="$HOME/.guix-profile"
source $GUIX_PROFILE/etc/profile

> I commented out all of the above export of environment variables in
> .zprofile and ran `guix environment --pure guix` then ran `printenv` but
> that has not changed the order.  /root/.guix-profile directories are
> still first.

“guix environment --pure” spawns a sub-shell.  You need to ensure that
for sub-shells the variables are not set — this is currently not the
case as evidenced by printenv.  I don’t know about what files zsh reads
under what conditions, so I cannot recommend a way around this.

You could also try to use Bash instead.

--
Ricardo




Re: 14.1 Building from Git

2019-03-19 Thread mikadoZero


Leo Famulari writes:

> On Mon, Mar 18, 2019 at 03:05:05PM -0400, mikadoZero wrote:
>> I get an error when I run `./configure --localstatedir=/var/guix/db` it
>
> It should be '--localstatedir=/var'

Thank you.
I am now using this:

`./configure --localstatedir=/var`

But I am still getting the same error.



Re: 14.1 Building from Git

2019-03-19 Thread mikadoZero


Ricardo Wurmus writes:
> ...
>> ACLOCAL_PATH=/root/.guix-profile/share/aclocal:/run/current-system/profile/share/acl
>> ocal:/gnu/store/kjmqpchkfy8rvv19jvd14q40shm9fk2p-profile/share/aclocal
>
> Why are /root/.guix-profile directories first?  Are setting these
> variables in some shell initialization files?
>
>> GUILE_LOAD_PATH=/run/current-system/profile/share/guile/site/2.2:/gnu/store/kjmqpchk
>> fy8rvv19jvd14q40shm9fk2p-profile/share/guile/site/2.2
>
> Same here.

I am using zsh.  I only have .zprofile and .zshrc as zsh configuration
files.  I have already commented out all the export of environment
variables from .zshrc to get `./bootstrap` to finish.

I did copy the suggested exports that were output when I ran `guix
package --manifest=manifest.scm` into .zprofile and they were:

export PATH="/root/.guix-profile/bin:/root/.guix-profile/sbin${PATH:+:}$PATH"
export CPATH="/root/.guix-profile/include${CPATH:+:}$CPATH"
export LIBRARY_PATH="/root/.guix-profile/lib${LIBRARY_PATH:+:}$LIBRARY_PATH"
export 
GHC_PACKAGE_PATH="/root/.guix-profile/lib/ghc-8.4.3/package.conf.d${GHC_PACKAGE_PATH:+:}$GHC_PACKAGE_PATH"
   
export ASPELL_DICT_DIR="/root/.guix-profile/lib/aspell"
export GIT_SSL_CAINFO="/root/.guix-profile/etc/ssl/certs/ca-certificates.crt"
export GIT_EXEC_PATH="/root/.guix-profile/libexec/git-core"
export SSL_CERT_DIR="/root/.guix-profile/etc/ssl/certs"
export SSL_CERT_FILE="/root/.guix-profile/etc/ssl/certs/ca-certificates.crt"
export 
ACLOCAL_PATH="/root/.guix-profile/share/aclocal${ACLOCAL_PATH:+:}$ACLOCAL_PATH"
export CURL_CA_BUNDLE="/root/.guix-profile/etc/ssl/certs/ca-certificates.crt"


I commented out all of the above export of environment variables in
.zprofile and ran `guix environment --pure guix` then ran `printenv` but
that has not changed the order.  /root/.guix-profile directories are
still first.


Then if I continue with:

`./bootstrap`
`./configure --localstatdir=/var`

I still get the same error message.


I had been using the root user.  I tried with a non root user and got
the same error message after running:

`guix environment --pure guix`
`./bootstrap`
`./configure --localstatdir=/var`

With that non root user `printenv` outputs:

TERM=eterm-color
HOME=/home/guix
USER=guix
LOGNAME=guix
PKG_CONFIG_PATH=/gnu/store/kjmqpchkfy8rvv19jvd14q40shm9fk2p-profile/lib/pkgconfig
ACLOCAL_PATH=/home/guix/.guix-profile/share/aclocal:/gnu/store/kjmqpchkfy8rvv19jvd14
q40shm9fk2p-profile/share/aclocal   
   
INFOPATH=/home/guix/.config/guix/current/share/info:/home/guix/.guix-profile/share/i
nfo:/run/current-system/profile/share/info:/home/guix/.guix-profile/share/info:/run/
current-system/profile/share/info   
   
C_INCLUDE_PATH=/gnu/store/kjmqpchkfy8rvv19jvd14q40shm9fk2p-profile/include
CPLUS_INCLUDE_PATH=/gnu/store/kjmqpchkfy8rvv19jvd14q40shm9fk2p-profile/include
LIBRARY_PATH=/home/guix/.guix-profile/lib:/gnu/store/kjmqpchkfy8rvv19jvd14q40shm9fk2
p-profile/lib   
   
GUIX_LOCPATH=/gnu/store/kjmqpchkfy8rvv19jvd14q40shm9fk2p-profile/lib/locale
GUILE_LOAD_PATH=/run/current-system/profile/share/guile/site/2.2:/gnu/store/kjmqpchk
fy8rvv19jvd14q40shm9fk2p-profile/share/guile/site/2.2   
   
GUILE_LOAD_COMPILED_PATH=/run/current-system/profile/lib/guile/2.2/site-ccache:/gnu/
store/kjmqpchkfy8rvv19jvd14q40shm9fk2p-profile/lib/guile/2.2/site-ccache
   
GUIX_ENVIRONMENT=/gnu/store/kjmqpchkfy8rvv19jvd14q40shm9fk2p-profile
SHLVL=1
PWD=/home/guix/u/guix/guix
OLDPWD=/home/guix/u/guix/guix
MANPATH=/run/current-system/profile/share/man:/home/guix/.guix-profile/share/man:/ru
n/current-system/profile/share/man  
   
XDG_DATA_DIRS=/home/guix/.guix-profile/share:/run/current-system/profile/share
XDG_CONFIG_DIRS=/home/guix/.guix-profile/etc/xdg:/run/current-system/profile/etc/xdg
XCURSOR_PATH=/home/guix/.icons:/home/guix/.guix-profile/share/icons:/run/current-sys
tem/profile/share/icons 
   
PATH=/run/setuid-programs:/home/guix/.config/guix/current/bin:/home/guix/.guix-profi
le/bin:/home/guix/.guix-profile/sbin:/run/current-system/profile/bin:/run/current-sy
stem/profile/sbin   
   
BASH_LOADABLES_PATH=/run/current-system/profile/lib/bash
CPATH=/home/guix/.guix-profile/include
GHC_PACKAGE_PATH=/home/guix/.guix-profile/lib/ghc-8.4.3/package.conf.d
ASPELL_DICT_DIR=/home/guix/.guix-profile/lib/aspell
GIT_SSL_CAINFO=/home/guix/.guix-profile/etc/ssl/certs/ca-certificates.crt
GIT_EXEC_PATH=/home/guix/.guix-profile/libexec/git-core
SSL_CERT_DIR=/home/guix/.guix-profile/etc/ssl/certs
SSL_CERT_FILE=/home/guix/.guix-profile/etc/ssl/certs/ca-certificates.crt
CURL_CA_BUNDLE=/home/guix/.guix-profile/etc/ssl/certs/ca-certificates.crt