diff options
author | Khem Raj <raj.khem@gmail.com> | 2010-12-12 23:30:15 -0800 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2010-12-12 23:30:15 -0800 |
commit | 2c8570552549da2e11428d08b2bc08849cac39b1 (patch) | |
tree | c5d695b748ae88984511dc4b78bc834cb1998acb /recipes/gcc | |
parent | 61c8f6dca9422edcb477c81bbcfd1a3b1490eb59 (diff) | |
download | openembedded-2c8570552549da2e11428d08b2bc08849cac39b1.tar.gz |
gcc-4.5.inc/gcc-svn.inc: Dont do the sourcedir move dance.
In some cases the rename_srcdir ended up moving the sourcedir
as a sub-directory under gcc-4.5 which was not intended actually
it is intended to be renamed and not moved. Which was seen recently
where people complained about a patch not being applied to gcc-4.5
even though patch was not changed. The reason was the srcdir was
moved instead of renaming. This could happen if target dir already
existed.
Anyway so we get rid of this dance completely. So nip the evil
in the bud
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'recipes/gcc')
-rw-r--r-- | recipes/gcc/gcc-4.5.inc | 7 | ||||
-rw-r--r-- | recipes/gcc/gcc-svn.inc | 10 |
2 files changed, 4 insertions, 13 deletions
diff --git a/recipes/gcc/gcc-4.5.inc b/recipes/gcc/gcc-4.5.inc index 512bc1750c..df462e0cda 100644 --- a/recipes/gcc/gcc-4.5.inc +++ b/recipes/gcc/gcc-4.5.inc @@ -145,13 +145,8 @@ SRC_URI_append_mips64el = " file://mips64-nomultilib.patch " # Language Overrides FORTRAN = "" JAVA = "" -rename_srcdir (){ - mv ${WORKDIR}/${BRANCH} ${WORKDIR}/gcc-${PV} -} -do_unpack_append() { - bb.build.exec_func('rename_srcdir', d) -} +S = "${WORKDIR}/${BRANCH}" EXTRA_OECONF_BASE = " --enable-lto \ --enable-libssp \ diff --git a/recipes/gcc/gcc-svn.inc b/recipes/gcc/gcc-svn.inc index 468f62b1f9..f4b65090fd 100644 --- a/recipes/gcc/gcc-svn.inc +++ b/recipes/gcc/gcc-svn.inc @@ -8,12 +8,13 @@ require gcc-common.inc DEPENDS = "mpfr gmp libmpc" NATIVEDEPS = "mpfr-native gmp-native libmpc-native" +BRANCH = "trunk" BINV = "4.6.0" PV = "4.6+svnr${SRCPV}" FILESPATHPKG .= ":gcc-svn" -SRC_URI = "svn://gcc.gnu.org/svn/gcc;module=trunk \ +SRC_URI = "svn://gcc.gnu.org/svn/gcc;module=${BRANCH} \ file://gcc-4.3.1-ARCH_FLAGS_FOR_TARGET.patch \ file://100-uclibc-conf.patch \ file://gcc-uclibc-locale-ctype_touplow_t.patch \ @@ -32,13 +33,8 @@ EXTRA_OECONF_BASE = " --enable-libssp \ EXTRA_OECONF_INITIAL = "--disable-libmudflap --disable-libgomp --disable-libssp --enable-decimal-float=no" EXTRA_OECONF_INTERMEDIATE = "--disable-libmudflap --disable-libgomp --disable-libssp" -rename_srcdir (){ - mv ${WORKDIR}/trunk ${WORKDIR}/gcc-${PV} -} +S = ${WORKDIR}/${BRANCH} -do_unpack_append() { - bb.build.exec_func('rename_srcdir', d) -} EXTRA_OECONF_append_linux-uclibc = " --disable-decimal-float " EXTRA_OECONF_append_linux-uclibceabi = " --disable-decimal-float " EXTRA_OECONF_append_linux-uclibcspe = " --disable-decimal-float " |