summaryrefslogtreecommitdiff
path: root/arm-unknown-riscos
diff options
context:
space:
mode:
Diffstat (limited to 'arm-unknown-riscos')
-rw-r--r--arm-unknown-riscos/recipes/patches/gcc4/python2.5.p11
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