luajit: advance SRCREV to fix two CVE's

Fix CVE-2020-15890 and CVE-2020-24372.

Also change PV format because the reference to 2.1.0-beta3
was already far behind the SRCREV.  Now, base PV on a tag
and date of SRCREV commit if it is later.  Sort order is
2.1.0~beta3 -> 2.1.0~beta-yymmdd -> 2.1.0 -> 2.1.0-yymmdd.

Signed-off-by: Joe Slater <joe.slater@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Slater, Joseph
2020-09-14 13:18:07 -07:00
committed by Khem Raj
parent ab05d6522f
commit 433d887dbf
@@ -3,13 +3,15 @@ LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=d739bb9250a55c124a545b588fd76771" LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=d739bb9250a55c124a545b588fd76771"
HOMEPAGE = "http://luajit.org" HOMEPAGE = "http://luajit.org"
PV = "2.1.0~beta3"
SRCREV = "0ad60ccbc3768fa8e3e726858adf261950edbc22"
SRC_URI = "git://luajit.org/git/luajit-2.0.git;protocol=http;branch=v2.1 \ SRC_URI = "git://luajit.org/git/luajit-2.0.git;protocol=http;branch=v2.1 \
file://0001-Do-not-strip-automatically-this-leaves-the-stripping.patch \ file://0001-Do-not-strip-automatically-this-leaves-the-stripping.patch \
file://clang.patch \ file://clang.patch \
" "
# Set PV to a version tag and date associated with SRCREV if it is later.
PV = "2.1.0~beta3-200809"
SRCREV = "94d4abcca966df2cc423e821bcacd04898f73117"
S = "${WORKDIR}/git" S = "${WORKDIR}/git"
inherit pkgconfig binconfig siteinfo inherit pkgconfig binconfig siteinfo