{"thread":{"id":"32788","subject":"[PATCH 0/1] Introduce new build variables INSTALL_MODE_EXECUTABLE and INSTALL_MODE_DATA.","startedAt":"2013-01-31T02:08:29Z","lastAt":"2013-01-31T02:08:29Z","messageCount":1,"participants":["TJ"],"isPatch":true,"patchVersion":1,"patchTotal":1},"messages":[{"id":"208330","messageId":"5109D21D.8010701@iam.tj","threadId":"32788","inReplyTo":null,"subject":"[PATCH 0/1] Introduce new build variables INSTALL_MODE_EXECUTABLE and INSTALL_MODE_DATA.","fromName":"TJ","fromEmail":"git@iam.tj","sentAt":"2013-01-31T02:08:29Z","receivedAt":"2013-01-31T02:08:29Z","isPatch":true,"sender":{"key":"git@iam.tj","avatar":null},"body":"During a build/install cycle of the current HEAD whilst attempting to identify the cause of a bug in\ngit version 1.8.0.3 whilst doing:\n\nGIT_CURL_VERBOSE=1 git clone -v https://git01.codeplex.com/typescript\n\n* GnuTLS recv error (-9): A TLS packet with unexpected length was received.\n* Closing connection #0\nerror: RPC failed; result=56, HTTP code = 200\n\nI hit a local install failure whilst installing to the prefix /usr/local/ where the $(INSTALL)\ncommand reported a Permission Denied error.\n\nThis was due to the $(INSTALL) modes being 755/644 but the file-system modes being 775/664.\nIn this case ownership and permissions are:\n\n$ ls -ald /usr/local\ndrwxrwxr-x 13 root adm 4096 Sep 26 04:16 /usr/local\n\nUsers belonging to the 'adm' group have permission to install local packages.\n\nThe fix I've implemented is to convert the hard-coded 755/644 modes to variables which can\nbe over-ridden on the make command-line if necessary.\n"}]}