From 36fe5b800b1bab4374f0f864e369bbf60084e0ff Mon Sep 17 00:00:00 2001 From: John-Mark Bell Date: Wed, 7 Nov 2012 23:03:23 +0000 Subject: Dirty hack to make GCCSDK build with Python2.5 --- arm-unknown-riscos/recipes/patches/gcc4/python2.5.p | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 arm-unknown-riscos/recipes/patches/gcc4/python2.5.p (limited to 'arm-unknown-riscos') diff --git a/arm-unknown-riscos/recipes/patches/gcc4/python2.5.p b/arm-unknown-riscos/recipes/patches/gcc4/python2.5.p new file mode 100644 index 0000000..457009e --- /dev/null +++ b/arm-unknown-riscos/recipes/patches/gcc4/python2.5.p @@ -0,0 +1,11 @@ +--- scripts/do-patch-and-copy.old 2012-11-06 23:18:20.000000000 +0000 ++++ scripts/do-patch-and-copy 2012-11-06 23:18:54.000000000 +0000 +@@ -36,7 +36,7 @@ + # lndir has the advantage to be way more quicker and it is also very easy + # to create relative symbolic links which is nicer when we create a source + # snapshot for publication. +- FILESRELTODSTDIR=`python -c "import os.path; print os.path.relpath('${FILESDIR}','${DSTDIR}')"` ++ FILESRELTODSTDIR=`python -c "import os.path; prefix = os.path.commonprefix([ '${FILESDIR}', '${DSTDIR}' ]); print '/'.join([ '/'.join([ '..' for _ in '${DSTDIR}'[len(prefix):].split('/') ]), '${FILESDIR}'[len(prefix):] ]);"` + pushd $DSTDIR/.. > /dev/null + lndir -silent $FILESRELTODSTDIR $DSTDIR + popd > /dev/null -- cgit v1.2.3