Skip to content

Hacking instructions don't work #1043

Closed as not planned
Closed as not planned

Description

@DamienCassou

In http://nixos.org/nix/manual/#chap-hacking, the instructions to start working on the project don't work for me (I'm on NixOS unstable).

[projects/nix]$ echo $SHLVL 
2

[projects/nix]$ ./dev-shell 

[projects/nix]$ echo $SHLVL 
3

[projects/nix]$ ./bootstrap.sh 
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force 
autoreconf: configure.ac: tracing
autoreconf: configure.ac: not using Libtool
autoreconf: running: /nix/store/h099siq2ikphfccwafydzr467vkc3jq7-autoconf-2.69/bin/autoconf --force
autoreconf: running: /nix/store/h099siq2ikphfccwafydzr467vkc3jq7-autoconf-2.69/bin/autoheader --force
autoreconf: configure.ac: not using Automake
autoreconf: Leaving directory `.'

[projects/nix]$ configurePhase
configurePhase: command not found

Activity

  1. domenkozar commented on Aug 28, 2016

    @domenkozar
    Member
  2. shlevy commented on Aug 28, 2016

    @shlevy
    Member

    This works fine for me, against NixOS/nixpkgs@c5cbda2 (release-16.03) and NixOS/nixpkgs@ed0eb59 (master).

  3. DamienCassou commented on Aug 28, 2016

    @DamienCassou
    Author

    @shlevy can it be related to nix-community/emacs2nix#23 ?

  4. shlevy commented on Aug 29, 2016

    @shlevy
    Member

    No idea, sorry

  5. danbst commented on Sep 1, 2016

    @danbst
    Contributor

    [projects/nix]$ echo $SHLVL
    2

    Can you reproduce this without extra shell layer?

    Also, your prompt text didn't change, but I have this

    danbst@jolly ~/nix$ ./dev-shell
    
    [nix-shell:~/nix]$ 
    

    Maybe you have some magic in .bashrc?

  6. DamienCassou commented on Sep 2, 2016

    @DamienCassou
    Author

    I removed by ~/.bashrc. The gnome-terminal seems to always start at level 2, no idea why. If I switch to a tty, I have a level of 1 but the problem persists. Also, the prompt doesn't change.

  7. shlevy commented on Sep 2, 2016

    @shlevy
    Member

    @DamienCassou Do you have a bash_profile? Can you share your configuration.nix? I suspect this is some kind of weird interaction with your shell configuration but it's hard to tell what it might be

  8. DamienCassou commented on Sep 2, 2016

    @DamienCassou
    Author
  9. shlevy commented on Sep 2, 2016

    @shlevy
    Member

    @DamienCassou Can you paste the output printed when you run bash -x (ideally from a vty, just to reduce confounders)

  10. DamienCassou commented on Sep 2, 2016

    @DamienCassou
    Author

    @shlevy what do you mean by vty? How can I copy/paste the output of bash -x from a tty? I tried redirections, but this didn't work. When done from gnome-terminal, the output contains many many things that are not printed from a tty.

  11. shlevy commented on Sep 2, 2016

    @shlevy
    Member

    Can you try in screen/tmux with a suitable scrollback? Again otherwise in a tty.

  12. DamienCassou commented on Sep 2, 2016

    @DamienCassou
    Author

    @shlevy I found something interesting. ./dev-shell starts to work (i.e., the prompt is changed to nix-shell:[...]) as soon as I turn program.bash.enableCompletion off. If I turn it back on, it fails again. I reproduced that many times.

    Here is the output of bash -x from gnome-terminal with bash completion off and removed ~/.bashrc.

    $ bash -x
    + '[' -n '' -o -n '' ']'
    + __ETC_BASHRC_SOURCED=1
    + '[' -z 1 ']'
    + '[' -n '\s-\v\$ ' ']'
    + shopt -s checkwinsize
    + set +h
    + '[' xterm-256color '!=' dumb -o -n '' ']'
    + PROMPT_COLOR='1;31m'
    + let 1000
    + PROMPT_COLOR='1;32m'
    + PS1='\n\[\033[1;32m\][\u@\h:\w]\$\[\033[0m\] '
    + test xterm-256color = xterm
    + alias 'l=ls -alh'
    + alias 'll=ls -l'
    + alias 'ls=ls --color=tty'
    + test -f /etc/bashrc.local
    
  13. shlevy commented on Sep 2, 2016

    @shlevy
    Member

    Hmm, I have enableCompletion too. What packages have anything in $profile/etc/bash_completion.d and $profile/share/bash-completion/completions, where $profile=/run/current-system or ~/.nix-profile?

  14. hedning commented on Sep 6, 2016

    @hedning

    Sounds exactly like #976, I'm guessing nix-shell -A etc. doesn't work either if you have completion on? #1034 should probably fix it.

  15. DamienCassou commented on Sep 8, 2016

    @DamienCassou
    Author

    @shlevy nothing in /run/current-system. In ~/.nix-profile: dconf, subversion, git, password-store, backintime-common, bash-completion.

    @hedning how can I apply this patch on top of NixOS please?

  16. stale commented on Feb 15, 2021

    @stale

    I marked this as stale due to inactivity. → More info

  17. stale commented on May 2, 2022

    @stale

    I closed this issue due to inactivity. → More info

  18. tomberek commented on Aug 13, 2026

    @tomberek
    Contributor

    Closing as stale. Re-open if needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions