From 6e3a29802906685ef7964ab2caa16f51ad1d4da3 Mon Sep 17 00:00:00 2001 From: "http://joeyh.name/" Date: Thu, 3 Jul 2014 20:10:41 +0000 Subject: [PATCH] Added a comment --- ..._b41666c032aeb2d0de35023328391edb._comment | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 doc/bugs/Android_fails_on_Google_Nexus_10_Jellybean/comment_1_b41666c032aeb2d0de35023328391edb._comment diff --git a/doc/bugs/Android_fails_on_Google_Nexus_10_Jellybean/comment_1_b41666c032aeb2d0de35023328391edb._comment b/doc/bugs/Android_fails_on_Google_Nexus_10_Jellybean/comment_1_b41666c032aeb2d0de35023328391edb._comment new file mode 100644 index 0000000000..cc0fcf30e4 --- /dev/null +++ b/doc/bugs/Android_fails_on_Google_Nexus_10_Jellybean/comment_1_b41666c032aeb2d0de35023328391edb._comment @@ -0,0 +1,25 @@ +[[!comment format=mdwn + username="http://joeyh.name/" + ip="209.250.56.55" + subject="comment 1" + date="2014-07-03T20:10:41Z" + content=""" +This is not an installation problem; the /data/app-lib message is a red herring. + +Is /sdcard/mediashare a directory that already existed? If so, perhaps it's some \"mediashare\" thing that has a even more crippled filesystem than usual. Seems possible, but I don't know. Want to rule it out.. + +The actual failure seems to be when git tries to write to its config.lock file, and changes its permissions. This is a recent change in git, commit daa22c6f8da466bd7a438f1bc27375fd737ffcf3, \"config: preserve config file permissions on edits\". + +[[!language C \"\"\" ++ if (fchmod(fd, st.st_mode & 07777) < 0) { ++ error(\"fchmod on %s failed: %s\", ++ lock->filename, strerror(errno)); ++ ret = CONFIG_NO_WRITE; ++ goto out_free; ++ } +\"\"\"]] + +This seems utterly innocuous; the config file has some mode, and this just sets that same mode back (excluding some high bit flags). But Android goes out of its way to make /sdcard the most craptacular filesystem in use on any Linux system, so I'm not really surprised that it might just refuse all fchmod even when it's a no-op. (This is the only fchmod call currently in git.) + +I've patched the bundled git to work around this. Will be a while until there is an updated autobuild.. +"""]]