summaryrefslogtreecommitdiff
path: root/scripts/functions
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2009-01-05 20:37:03 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2009-01-05 20:37:03 (GMT)
commite3c489be386e4d4282f43c2df315f60c17c9b911 (patch)
treedb672cc24ec32427d592cbaa63e107cb43464703 /scripts/functions
parent31cc00829e91ecc45b99fccdb51ebcb2f924229a (diff)
Fix C library addons extraction:
- renaming the dircetory in CT_ExtratAndPatch is wrong: - patches against the C library addons may be build against the short *or* long name... :-( - symlink is more robust, even if less nice - renaming the directory _after_ CT_ExtractAndPatch is too late: - if patches are against the short name, and we renamed too the long name, patches don't apply - so we'll never reach the point where we rename /trunk/scripts/build/libc/glibc.sh | 1 0 1 0 - /trunk/scripts/build/libc/eglibc.sh | 1 0 1 0 - /trunk/scripts/functions | 2 1 1 0 +- 3 files changed, 1 insertion(+), 3 deletions(-)
Diffstat (limited to 'scripts/functions')
-rw-r--r--scripts/functions2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/functions b/scripts/functions
index 81015ff..203fd4e 100644
--- a/scripts/functions
+++ b/scripts/functions
@@ -599,7 +599,7 @@ CT_ExtractAndPatch() {
.tar) base=$(tar tf "${full_file}" |head -n 1 |cut -d / -f 1 || true);;
esac
CT_TestOrAbort "There was a problem when extracting '${file}'" -d "${base}" -o "${base}" != "${file}"
- mv "${base}" "${file}"
+ ln -s "${base}" "${file}"
fi
# Kludge: outside this function, we wouldn't know if we had just extracted