{"action":"created","issue":{"url":"https://api.github.com/repos/NixOS/nixpkgs/issues/13047","repository_url":"https://api.github.com/repos/NixOS/nixpkgs","labels_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/13047/labels{/name}","comments_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/13047/comments","events_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/13047/events","html_url":"https://github.com/NixOS/nixpkgs/issues/13047","id":134079404,"number":13047,"title":"gettextWithExpat isn't compatible with git","user":{"login":"volhovM","id":5604643,"avatar_url":"https://avatars.githubusercontent.com/u/5604643?v=3","gravatar_id":"","url":"https://api.github.com/users/volhovM","html_url":"https://github.com/volhovM","followers_url":"https://api.github.com/users/volhovM/followers","following_url":"https://api.github.com/users/volhovM/following{/other_user}","gists_url":"https://api.github.com/users/volhovM/gists{/gist_id}","starred_url":"https://api.github.com/users/volhovM/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/volhovM/subscriptions","organizations_url":"https://api.github.com/users/volhovM/orgs","repos_url":"https://api.github.com/users/volhovM/repos","events_url":"https://api.github.com/users/volhovM/events{/privacy}","received_events_url":"https://api.github.com/users/volhovM/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/NixOS/nixpkgs/labels/0.kind:%20bug","name":"0.kind: bug","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-02-16T19:46:11Z","updated_at":"2016-02-16T20:45:07Z","closed_at":null,"body":"Here's how it's possible to reproduce it:\r\n\r\n1. Install both `gettextWithExpat` and `git` package using nix-env or\r\ndeclaration in `configuration.nix`. I've tried different git versions,\r\nall them work this way. Not sure about `gettextWithExpat` versions, but\r\nI'm using 0.19.6 with `nixos-unstable` channel on my system.\r\n2. cd into any git repository directory\r\n3. Run `git rebase` or `git stash` with any arguments (except options,\r\n`--help` works well). Git will do nothing and return code 0.\r\n\r\nHere's an illustration of how it works:\r\n```\r\n[volhovm@avishai:~/code]$ mkdir testGit\r\n[volhovm@avishai:~/code]$ cd testGit/\r\n[volhovm@avishai:~/code/testGit]$ git init\r\nInitialized empty Git repository in /home/volhovm/code/testGit/.git/\r\n[volhovm@avishai:~/code/testGit]$ nix-env -q\r\ngettext-expat-gettext-0.19.6\r\ngit-minimal-2.7.0\r\n#other stuff\r\n[volhovm@avishai:~/code/testGit]$ git rebase asoehuasnotuehsoathueao\r\n[volhovm@avishai:~/code/testGit]$ echo $?\r\n0\r\n[volhovm@avishai:~/code/testGit]$ git stash asoehuasnoteu\r\n[volhovm@avishai:~/code/testGit]$ echo $?\r\n0\r\n[volhovm@avishai:~/code/testGit]$ nix-env -e gettext-expat-gettext\r\nuninstalling ‘gettext-expat-gettext-0.19.6’\r\n[volhovm@avishai:~/code/testGit]$ git rebase aoeuaoeuaoe\r\nfatal: Needed a single revision\r\ninvalid upstream aoeuaoeuaoe\r\n[volhovm@avishai:~/code/testGit]$ echo $?\r\n1\r\n[volhovm@avishai:~/code/testGit]$ git stash aoeuaoeuaeo\r\nusage: git stash list [<options>]\r\n   or: git stash show [<stash>]\r\n   or: git stash drop [-q|--quiet] [<stash>]\r\n   or: git stash ( pop | apply ) [--index] [-q|--quiet] [<stash>]\r\n   or: git stash branch <branchname> [<stash>]\r\n   or: git stash [save [--patch] [-k|--[no-]keep-index] [-q|--quiet]\r\n                       [-u|--include-untracked] [-a|--all] [<message>]]\r\n   or: git stash clear\r\n[volhovm@avishai:~/code/testGit]$ echo $?\r\n1\r\n```\r\n\r\nI used strace to discover what's going on and it appeared that `git rebase aoeuaoeuaoeu` with and without `gettextWithExpat` installed gives almost identical output (differs in addresses only), except for the last ~6 lines, which are:\r\n\r\nWith `gettextExpat` installed:\r\n```\r\nread(4, \"\", 1)                          = 0\r\nclose(4)                                = 0\r\nwait4(13438, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 13438\r\n--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=13438,\r\nsi_uid=1000, si_status=0, si_utime=0, si_stime=0} ---\r\nexit_group(0)                           = ?\r\n+++ exited with 0 +++\r\n```\r\n\r\nWithout:\r\n```\r\nread(4, \"\", 1)                          = 0\r\nclose(4)                                = 0\r\nwait4(13271, fatal: Needed a single revision\r\ninvalid upstream aoeuaoeu\r\n[{WIFEXITED(s) && WEXITSTATUS(s) == 1}], 0, NULL) = 13271\r\n--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=13271,\r\nsi_uid=1000, si_status=1, si_utime=0, si_stime=0} ---\r\nexit_group(1)                           = ?\r\n+++ exited with 1 +++\r\n```"},"comment":{"url":"https://api.github.com/repos/NixOS/nixpkgs/issues/comments/184868210","html_url":"https://github.com/NixOS/nixpkgs/issues/13047#issuecomment-184868210","issue_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/13047","id":184868210,"user":{"login":"zimbatm","id":3248,"avatar_url":"https://avatars.githubusercontent.com/u/3248?v=3","gravatar_id":"","url":"https://api.github.com/users/zimbatm","html_url":"https://github.com/zimbatm","followers_url":"https://api.github.com/users/zimbatm/followers","following_url":"https://api.github.com/users/zimbatm/following{/other_user}","gists_url":"https://api.github.com/users/zimbatm/gists{/gist_id}","starred_url":"https://api.github.com/users/zimbatm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zimbatm/subscriptions","organizations_url":"https://api.github.com/users/zimbatm/orgs","repos_url":"https://api.github.com/users/zimbatm/repos","events_url":"https://api.github.com/users/zimbatm/events{/privacy}","received_events_url":"https://api.github.com/users/zimbatm/received_events","type":"User","site_admin":false},"created_at":"2016-02-16T20:45:06Z","updated_at":"2016-02-16T20:45:06Z","body":"Got a fix in progress"}}