ruby: do not clone the spec repo in do_configure
There is potential issue to clone repo in do_configure, so move it to SRC_URI then it will be cloned in do_fetch, and also set the correct SRCREV. Story: 2008204 Task: 40988 Change-Id: I6f7a01cdf2df93edb2d4a29cc8dbcc6e17b38763 Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
This commit is contained in:
parent
066a5c6994
commit
e878d8d0d0
@ -4,12 +4,13 @@ inherit openssl10
|
||||
|
||||
DEPENDS += " libnsl2"
|
||||
|
||||
# file://ruby-CVE-2017-9226.patch # Not applicable
|
||||
SRCREV = "1a828cad2d559e2ff55a5f01cc5de217b9c9bc2b"
|
||||
|
||||
SRC_URI += " \
|
||||
file://ruby-CVE-2017-9228.patch \
|
||||
file://ext.socket.extmk.patch \
|
||||
"
|
||||
# file://run-ptest
|
||||
git://github.com/ruby/spec.git;protocol=https;rev=${SRCREV};destsuffix=spec/rubyspec \
|
||||
file://ruby-CVE-2017-9228.patch \
|
||||
file://ext.socket.extmk.patch \
|
||||
"
|
||||
|
||||
SRC_URI[md5sum] = "05db49992d01731fee023cad09bb4e52"
|
||||
SRC_URI[sha256sum] = "8690bd6b4949c333b3919755c4e48885dbfed6fd055fe9ef89930bde0d2376f8"
|
||||
@ -26,7 +27,6 @@ PACKAGECONFIG[valgrind] = "--with-valgrind=yes, --with-valgrind=no, valgrind"
|
||||
|
||||
EXTRA_AUTORECONF += "--exclude=aclocal"
|
||||
|
||||
# --disable-versioned-paths
|
||||
EXTRA_OECONF ?= " "
|
||||
EXTRA_OECONF = "\
|
||||
--disable-install-doc \
|
||||
@ -43,7 +43,7 @@ EXTRA_OEMAKE = " \
|
||||
do_configure_prepend() {
|
||||
cd ${S}
|
||||
rm -rf spec/rubyspec
|
||||
git clone git://github.com/ruby/rubyspec.git spec/rubyspec
|
||||
cp -rf ${WORKDIR}/spec ${S}
|
||||
cd ${B}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user