diff options
author | John-Mark Bell <jmb@netsurf-browser.org> | 2012-11-07 23:03:23 +0000 |
---|---|---|
committer | John-Mark Bell <jmb@netsurf-browser.org> | 2012-11-07 23:03:23 +0000 |
commit | 36fe5b800b1bab4374f0f864e369bbf60084e0ff (patch) | |
tree | e0e4257ece0bfbfb9a78121e4580b68bbdda801a /arm-unknown-riscos/recipes/patches/gcc4/python2.5.p | |
parent | a4cb4ea883bf60bbf9e8465b80f0a4075ae914be (diff) | |
download | toolchains-36fe5b800b1bab4374f0f864e369bbf60084e0ff.tar.gz toolchains-36fe5b800b1bab4374f0f864e369bbf60084e0ff.tar.bz2 |
Dirty hack to make GCCSDK build with Python2.5
Diffstat (limited to 'arm-unknown-riscos/recipes/patches/gcc4/python2.5.p')
-rw-r--r-- | arm-unknown-riscos/recipes/patches/gcc4/python2.5.p | 11 |
1 files changed, 11 insertions, 0 deletions
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 |