gcc-4.5.inc/gcc-svn.inc: Dont do the sourcedir move dance.
authorKhem Raj <raj.khem@gmail.com>
Mon, 13 Dec 2010 07:30:15 +0000 (23:30 -0800)
committerKhem Raj <raj.khem@gmail.com>
Mon, 13 Dec 2010 07:30:15 +0000 (23:30 -0800)
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>
recipes/gcc/gcc-4.5.inc
recipes/gcc/gcc-svn.inc

index 512bc17..df462e0 100644 (file)
@@ -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 \
index 468f62b..f4b6509 100644 (file)
@@ -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 "