Skip to contentSkip to conversation

libgit2: Update to v1.0.0

PATCH In review Alistair 2 participants 5 messages Apr 24, 2020 – Apr 25, 2020

lore
Share & tools
lore

Alistair

author
#0 lore raw

PATCH 1/1 libgit2: Update to v1.0.0

---
 .../libgit2/{libgit2_0.28.4.bb => libgit2_1.0.0.bb}         | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
 rename meta-oe/recipes-support/libgit2/{libgit2_0.28.4.bb => libgit2_1.0.0.bb} (64%)
meta-oe/recipes-support/libgit2/libgit2_1.0.0.bb renamed from meta-oe/recipes-support/libgit2/libgit2_0.28.4.bb +3 -3
similarity index 64%
rename from meta-oe/recipes-support/libgit2/libgit2_0.28.4.bb
rename to meta-oe/recipes-support/libgit2/libgit2_1.0.0.bb
index 9b9c19104..fd26a0fe9 100644
@@ -1,12 +1,12 @@
 SUMMARY = "the Git linkable library"
 HOMEPAGE = "http://libgit2.github.com/"
 LICENSE = "GPL-2.0-with-GCC-exception & MIT"
-LIC_FILES_CHKSUM = "file://COPYING;md5=3f2cd5d3cccd71d62066ba619614592b"
+LIC_FILES_CHKSUM = "file://COPYING;md5=5b002a195fb7ea2d8d583f07eaff3a8e"
 
 DEPENDS = "curl openssl zlib libssh2 libgcrypt"
 
-SRC_URI = "git://github.com/libgit2/libgit2.git;branch=maint/v0.28"
-SRCREV = "106a5f27586504ea371528191f0ea3aac2ad432b"
+SRC_URI = "git://github.com/libgit2/libgit2.git;branch=maint/v1.0"
+SRCREV = "7d3c7057f0e774aecd6fc4ef8333e69e5c4873e0"
 
 S = "${WORKDIR}/git"
 
Signature · 1 line
2.26.0
#1 lore raw

This update has some issues

Fails on qemux86/clang
https://errors.yoctoproject.org/Errors/Details/407382/

for glibc/musl there is another failure which is caused by this

https://errors.yoctoproject.org/Errors/Details/407386/

Quoted 34 lines · Alistair
---
 .../libgit2/{libgit2_0.28.4.bb => libgit2_1.0.0.bb}         | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
 rename meta-oe/recipes-support/libgit2/{libgit2_0.28.4.bb => libgit2_1.0.0.bb} (64%)
meta-oe/recipes-support/libgit2/libgit2_1.0.0.bb renamed from meta-oe/recipes-support/libgit2/libgit2_0.28.4.bb +3 -4
similarity index 64%
rename from meta-oe/recipes-support/libgit2/libgit2_0.28.4.bb
rename to meta-oe/recipes-support/libgit2/libgit2_1.0.0.bb
index 9b9c19104..fd26a0fe9 100644
@@ -1,12 +1,12 @@
 SUMMARY = "the Git linkable library"
 HOMEPAGE = "http://libgit2.github.com/"
 LICENSE = "GPL-2.0-with-GCC-exception & MIT"
-LIC_FILES_CHKSUM = "file://COPYING;md5=3f2cd5d3cccd71d62066ba619614592b"
+LIC_FILES_CHKSUM = "file://COPYING;md5=5b002a195fb7ea2d8d583f07eaff3a8e"
 
 DEPENDS = "curl openssl zlib libssh2 libgcrypt"
 
-SRC_URI = "git://github.com/libgit2/libgit2.git;branch=maint/v0.28"
-SRCREV = "106a5f27586504ea371528191f0ea3aac2ad432b"
+SRC_URI = "git://github.com/libgit2/libgit2.git;branch=maint/v1.0"
+SRCREV = "7d3c7057f0e774aecd6fc4ef8333e69e5c4873e0"
 
 S = "${WORKDIR}/git"
 
--

2.26.0

author
#2 lore raw
Quoted 4 lines · Khem Raj

This update has some issues

Fails on qemux86/clang
https://errors.yoctoproject.org/Errors/Details/407382/

I tried to reproduce this with:

MACHINE=qemux86 TOOLCHAIN="clang" bitbake libgit2

but it build for me. What am I missing?

Quoted 4 lines

for glibc/musl there is another failure which is caused by this

https://errors.yoctoproject.org/Errors/Details/407386/

I have a patch for this. I'll send it out with v2.

Alistair

Quoted 39 lines · Alistair
Quoted 34 lines

---
.../libgit2/{libgit2_0.28.4.bb => libgit2_1.0.0.bb} | 6 +++---

1 file changed, 3 insertions(+), 3 deletions(-)

rename meta-oe/recipes-support/libgit2/{libgit2_0.28.4.bb => libgit2_1.0.0.bb} (64%)

meta-oe/recipes-support/libgit2/libgit2_1.0.0.bb renamed from meta-oe/recipes-support/libgit2/libgit2_0.28.4.bb +0 -0
similarity index 64%
rename from meta-oe/recipes-support/libgit2/libgit2_0.28.4.bb
rename to meta-oe/recipes-support/libgit2/libgit2_1.0.0.bb
index 9b9c19104..fd26a0fe9 100644
@@ -1,12 +1,12 @@

SUMMARY = "the Git linkable library"
HOMEPAGE = "http://libgit2.github.com/"
LICENSE = "GPL-2.0-with-GCC-exception & MIT"

meta-oe/recipes-support/libgit2/libgit2_1.0.0.bb renamed from meta-oe/recipes-support/libgit2/libgit2_0.28.4.bb +1 -1
-LIC_FILES_CHKSUM = "file://COPYING;md5=3f2cd5d3cccd71d62066ba619614592b"
+LIC_FILES_CHKSUM = "file://COPYING;md5=5b002a195fb7ea2d8d583f07eaff3a8e"

DEPENDS = "curl openssl zlib libssh2 libgcrypt"

meta-oe/recipes-support/libgit2/libgit2_1.0.0.bb renamed from meta-oe/recipes-support/libgit2/libgit2_0.28.4.bb +2 -2
-SRC_URI = "git://github.com/libgit2/libgit2.git;branch=maint/v0.28"
-SRCREV = "106a5f27586504ea371528191f0ea3aac2ad432b"
+SRC_URI = "git://github.com/libgit2/libgit2.git;branch=maint/v1.0"
+SRCREV = "7d3c7057f0e774aecd6fc4ef8333e69e5c4873e0"

S = "${WORKDIR}/git"

--
2.26.0

#3 lore raw
Quoted 9 lines · Alistair
Quoted 4 lines · Khem Raj

This update has some issues

Fails on qemux86/clang
https://errors.yoctoproject.org/Errors/Details/407382/

I tried to reproduce this with:

MACHINE=qemux86 TOOLCHAIN="clang" bitbake libgit2

I think you need meta-clang in layer mix. and then set TOOLCHAIN = "clang" in local.conf, I will try to see as well, it seems its finding a library in native sysroot :( which should otherwise be in target sysroot

and the reason is that its happily adding libraries in linker cmdline. So something is in CMakefile which is not differentiating native sysroot from target sysroot.

-Wl,-rpath,TOPDIR/build/tmp/work/core2-32-yoe-linux/libgit2/1.0.0-r0/recipe-sysroot-native/usr/lib
...

TOPDIR/build/tmp/work/core2-32-yoe-linux/libgit2/1.0.0-r0/recipe-sysroot-native/usr/lib/libpcre.so
TOPDIR/build/tmp/work/core2-32-yoe-linux/libgit2/1.0.0-r0/recipe-sysroot-native/usr/lib/libpcreposix.so

...

core2-32-yoe-linux/libgit2/1.0.0-r0/recipe-sysroot-native/usr/lib/libpcre.so:
error adding symbols: file in wrong format

Quoted 10 lines

but it build for me. What am I missing?

Quoted 4 lines

for glibc/musl there is another failure which is caused by this

https://errors.yoctoproject.org/Errors/Details/407386/

I have a patch for this. I'll send it out with v2.

OK

Quoted 43 lines

Alistair

Quoted 41 lines · Alistair
Quoted 34 lines

---
.../libgit2/{libgit2_0.28.4.bb => libgit2_1.0.0.bb} | 6 +++---

1 file changed, 3 insertions(+), 3 deletions(-)

rename meta-oe/recipes-support/libgit2/{libgit2_0.28.4.bb => libgit2_1.0.0.bb} (64%)

meta-oe/recipes-support/libgit2/libgit2_1.0.0.bb renamed from meta-oe/recipes-support/libgit2/libgit2_0.28.4.bb +0 -0
similarity index 64%
rename from meta-oe/recipes-support/libgit2/libgit2_0.28.4.bb
rename to meta-oe/recipes-support/libgit2/libgit2_1.0.0.bb
index 9b9c19104..fd26a0fe9 100644
@@ -1,12 +1,12 @@

SUMMARY = "the Git linkable library"
HOMEPAGE = "http://libgit2.github.com/"
LICENSE = "GPL-2.0-with-GCC-exception & MIT"

meta-oe/recipes-support/libgit2/libgit2_1.0.0.bb renamed from meta-oe/recipes-support/libgit2/libgit2_0.28.4.bb +1 -1
-LIC_FILES_CHKSUM = "file://COPYING;md5=3f2cd5d3cccd71d62066ba619614592b"
+LIC_FILES_CHKSUM = "file://COPYING;md5=5b002a195fb7ea2d8d583f07eaff3a8e"

DEPENDS = "curl openssl zlib libssh2 libgcrypt"

meta-oe/recipes-support/libgit2/libgit2_1.0.0.bb renamed from meta-oe/recipes-support/libgit2/libgit2_0.28.4.bb +2 -2
-SRC_URI = "git://github.com/libgit2/libgit2.git;branch=maint/v0.28"
-SRCREV = "106a5f27586504ea371528191f0ea3aac2ad432b"
+SRC_URI = "git://github.com/libgit2/libgit2.git;branch=maint/v1.0"
+SRCREV = "7d3c7057f0e774aecd6fc4ef8333e69e5c4873e0"

S = "${WORKDIR}/git"

--
2.26.0

author
#4 lore raw
Quoted 9 lines · Khem Raj
Quoted 6 lines · Alistair
Quoted 4 lines · Khem Raj

This update has some issues

Fails on qemux86/clang
https://errors.yoctoproject.org/Errors/Details/407382/

Quoted 7 lines
Quoted 3 lines

I tried to reproduce this with:

MACHINE=qemux86 TOOLCHAIN="clang" bitbake libgit2

I think you need meta-clang in layer mix. and then set TOOLCHAIN = "clang" in local.conf, I will try to see as well, it seems its finding a library in native sysroot :( which should otherwise be in target sysroot

Yep, I checked and I have meta-clang and set TOOLCHAIN.

Quoted 4 lines

and the reason is that its happily adding libraries in linker cmdline. So something is in CMakefile which is not differentiating native sysroot from target sysroot.

Is it possible the build wasn't clean before hand? In my testing I saw some linker issues which was fixed by cleaning the build files.

Quoted 4 lines

-Wl,-rpath,TOPDIR/build/tmp/work/core2-32-yoe-linux/libgit2/1.0.0-r0/recipe-sysroot-native/usr/lib
...

Quoted 8 lines

TOPDIR/build/tmp/work/core2-32-yoe-linux/libgit2/1.0.0-r0/recipe-sysroot-native/usr/lib/libpcre.so TOPDIR/build/tmp/work/core2-32-yoe-linux/libgit2/1.0.0-r0/recipe-sysroot-native/usr/lib/libpcreposix.so

...

core2-32-yoe-linux/libgit2/1.0.0-r0/recipe-sysroot-native/usr/lib/libpcre.so:
error adding symbols: file in wrong format

I don't see the error and I'm not really sure what to do.

Alistair

Quoted 64 lines
Quoted 11 lines

but it build for me. What am I missing?

Quoted 4 lines

for glibc/musl there is another failure which is caused by this

https://errors.yoctoproject.org/Errors/Details/407386/

I have a patch for this. I'll send it out with v2.

OK

Quoted 43 lines

Alistair

Quoted 41 lines · Alistair
Quoted 34 lines

---
.../libgit2/{libgit2_0.28.4.bb => libgit2_1.0.0.bb} | 6 +++---

1 file changed, 3 insertions(+), 3 deletions(-)

rename meta-oe/recipes-support/libgit2/{libgit2_0.28.4.bb => libgit2_1.0.0.bb} (64%)

meta-oe/recipes-support/libgit2/libgit2_1.0.0.bb renamed from meta-oe/recipes-support/libgit2/libgit2_0.28.4.bb +0 -0
similarity index 64%
rename from meta-oe/recipes-support/libgit2/libgit2_0.28.4.bb
rename to meta-oe/recipes-support/libgit2/libgit2_1.0.0.bb
index 9b9c19104..fd26a0fe9 100644
@@ -1,12 +1,12 @@

SUMMARY = "the Git linkable library"
HOMEPAGE = "http://libgit2.github.com/"
LICENSE = "GPL-2.0-with-GCC-exception & MIT"

meta-oe/recipes-support/libgit2/libgit2_1.0.0.bb renamed from meta-oe/recipes-support/libgit2/libgit2_0.28.4.bb +1 -1
-LIC_FILES_CHKSUM = "file://COPYING;md5=3f2cd5d3cccd71d62066ba619614592b"
+LIC_FILES_CHKSUM = "file://COPYING;md5=5b002a195fb7ea2d8d583f07eaff3a8e"

DEPENDS = "curl openssl zlib libssh2 libgcrypt"

meta-oe/recipes-support/libgit2/libgit2_1.0.0.bb renamed from meta-oe/recipes-support/libgit2/libgit2_0.28.4.bb +2 -2
-SRC_URI = "git://github.com/libgit2/libgit2.git;branch=maint/v0.28"
-SRCREV = "106a5f27586504ea371528191f0ea3aac2ad432b"
+SRC_URI = "git://github.com/libgit2/libgit2.git;branch=maint/v1.0"
+SRCREV = "7d3c7057f0e774aecd6fc4ef8333e69e5c4873e0"

S = "${WORKDIR}/git"

--
2.26.0

*Attachments:*
* signature.asc