mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-09-30 13:12:48 +00:00
gnulib: Do not use git operations to install the sources
git operations have started to fail with errors like
| fatal: unsafe repository ('/mnt/b/yoe/master/build/tmp/work/riscv64-yoe-linux-musl/gnulib/2018-03-07.03-r0/git' is owned by someon
e else)
| To add an exception for this directory, call:
|
| git config --global --add safe.directory /mnt/b/yoe/master/build/tmp/work/riscv64-yoe-linux-musl/gnulib/2018-03-07.03-r0/git
This is after git has fixed a CVE in 2.35+ see [1]
[1] https://github.com/actions/checkout/issues/760
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
parent
5288d38ee6
commit
6892fc010a
@ -13,18 +13,15 @@ LICENSE = "LGPL-2.0-or-later"
|
|||||||
LIC_FILES_CHKSUM = "file://COPYING;md5=56a22a6e5bcce45e2c8ac184f81412b5"
|
LIC_FILES_CHKSUM = "file://COPYING;md5=56a22a6e5bcce45e2c8ac184f81412b5"
|
||||||
SRCREV = "0d6e3307bbdb8df4d56043d5f373eeeffe4cbef3"
|
SRCREV = "0d6e3307bbdb8df4d56043d5f373eeeffe4cbef3"
|
||||||
|
|
||||||
SRC_URI = "git://git.sv.gnu.org/gnulib.git;branch=master \
|
SRC_URI = "git://git.savannah.gnu.org/git/gnulib.git;branch=master \
|
||||||
"
|
"
|
||||||
|
|
||||||
S = "${WORKDIR}/git"
|
S = "${WORKDIR}/git"
|
||||||
|
|
||||||
inherit utils
|
|
||||||
|
|
||||||
do_install () {
|
do_install () {
|
||||||
cd ${S}
|
install -d ${D}/${datadir}/gnulib
|
||||||
check_git_config
|
cp --no-preserve=ownership --recursive ${S}/* ${D}/${datadir}/gnulib/
|
||||||
git checkout master
|
cp --no-preserve=ownership --recursive ${S}/.git ${D}/${datadir}/gnulib/
|
||||||
git clone ${S} ${D}/${datadir}/gnulib
|
|
||||||
}
|
}
|
||||||
|
|
||||||
do_patch[noexec] = "1"
|
do_patch[noexec] = "1"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user