[OE-core] [master, jethro][PATCH 0/1] Make devtool handle read-only .git/hooks directories

Peter Kjellerstedt peter.kjellerstedt at axis.com
Wed Jan 27 14:39:51 UTC 2016


When running "devtool extract <recipe> <dir>", it failed for us if the
recipe contained any patches. This was due to devtools modification of
the commit-msg and applypatch-msg Git hooks.

We have a bit unusal setup where .git/hooks is a symbolic link to a
directory in /usr/share, which means that it is not writable by the
user. This of course caused devtool to fail when it tried to modify
the hooks.

The solution provided here temporarily moves away the .git/hooks
directory (or link) instead, which should be safe since the .git
directory should be writable.

We also need this applied to Jethro. Do I need to supply a separate
patch for that?

//Peter

The following changes since commit 3d2c0f5902cacf9d8544bf263b51ef0dd1a7218c:

  cmake: update to 3.4.2 (2016-01-26 22:49:40 +0000)

are available in the git repository at:

  git://git.yoctoproject.org/poky-contrib pkj/devtool_hooks
  http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=pkj/devtool_hooks

Peter Kjellerstedt (1):
  lib/oe/patch: Make GitApplyTree._applypatch() support read-only
    .git/hooks

 meta/lib/oe/patch.py | 26 ++++++++++++--------------
 1 file changed, 12 insertions(+), 14 deletions(-)

-- 
2.1.0




More information about the Openembedded-core mailing list