Skip to contentSkip to conversation

cargo patching git path

OE-core Frédéric Martinsons 1 participant 2 messages Apr 13, 2023 – Apr 14, 2023 2 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

By the way, it was way simpler to update my cargo to 1.68.2 and I confirm the patching still works like a charm.

Quoted 77 lines · Frederic Martinsons via lists.openembedded.org

Hello,

Since I didn't manage to make any progress on the reproducibility issue of zvariant (https://bugzilla.yoctoproject.org/show_bug.cgi?id=15090) i decided to try another rust project to see their reproducibility state.

I went with zbus (https://github.com/zeenix/zbus) which use zvariant (because one of my hypothesis is that zvariant was not aimed to be build standalone) and I came into another issue which is the subject of this mail. I cannot make the zbus recipe to be built:

| error: failed to get glib as a dependency of package zvariant v3.12.0 (/home/jenkins/yocto-poky-master/poky/build/tmp/work/core2-64-poky-linux/zbus/3.11.0-r0/git/zvariant)

|
| Caused by:
|   failed to load source for dependency `glib`
|
| Caused by:
|   Unable to update https://github.com/gtk-rs/glib?rev=c9ee583cea0
|
| Caused by:
|   can't checkout from 'https://github.com/gtk-rs/glib': you are in the

offline mode (--offline)

I looked at the patching process of cargo_common.class and it is correctly applied and the cargo config file contains the following content:

[patch."https://github.com/gtk-rs/glib"]
glib = { path = "/home/jenkins/yocto-poky-master/poky/build/tmp/work/core2-64-poky-linux/zbus/3.11.0-r0/glib" }
glib-macros = { path = "/home/jenkins/yocto-poky-master/poky/build/tmp/work/core2-64-poky-linux/zbus/3.11.0-r0/glib-macros" }

[patch."https://github.com/gtk-rs/sys"]
glib-sys = { path = "/home/jenkins/yocto-poky-master/poky/build/tmp/work/core2-64-poky-linux/zbus/3.11.0-r0/glib-sys" }
gobject-sys = { path = "/home/jenkins/yocto-poky-master/poky/build/tmp/work/core2-64-poky-linux/zbus/3.11.0-r0/gobject-sys" }

I first think about what @Alex Kiernan <[email protected]> said on its commit message (
https://git.openembedded.org/openembedded-core/commit/?id=684a8af41c5bb70db68e75f72bdc4c9b09630810)
about patching not working with virtual manifest since the zbus project use of this.

But I managed to make this patching work with the zbus project locally (by the way I notified the upstream about that:
https://github.com/rust-lang/cargo/issues/4934).

I cannot understand why this does not work under yocto despite the correct cargo config file for patching.

On my ubuntu, I used cargo 1.67.1 and oe has 1.68.2, will try a downgrade but I feel that this is not the issue.

Any ideas ?

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#179974):
https://lists.openembedded.org/g/openembedded-core/message/179974
Mute This Topic: https://lists.openembedded.org/mt/98238501/6213388
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

A message that is not in the archive (sent off-list or not yet received): [email protected]

#3 lore raw

I opened a dedicated ticket (
https://bugzilla.yoctoproject.org/show_bug.cgi?id=15104) for this issue.

Quoted 88 lines · Frederic Martinsons via lists.openembedded.org

By the way, it was way simpler to update my cargo to 1.68.2 and I confirm the patching still works like a charm.

Quoted 54 lines · Frederic Martinsons via lists.openembedded.org

Hello,

Since I didn't manage to make any progress on the reproducibility issue of zvariant (https://bugzilla.yoctoproject.org/show_bug.cgi?id=15090) i decided to try another rust project to see their reproducibility state.

I went with zbus (https://github.com/zeenix/zbus) which use zvariant (because one of my hypothesis is that zvariant was not aimed to be build standalone) and I came into another issue which is the subject of this mail. I cannot make the zbus recipe to be built:

| error: failed to get glib as a dependency of package `zvariant
v3.12.0 (/home/jenkins/yocto-poky-master/poky/build/tmp/work/core2-64-poky-linux/zbus/3.11.0-r0/git/zvariant)`

|
| Caused by:
|   failed to load source for dependency `glib`
|
| Caused by:
|   Unable to update https://github.com/gtk-rs/glib?rev=c9ee583cea0
|
| Caused by:
|   can't checkout from 'https://github.com/gtk-rs/glib': you are in the

offline mode (--offline)

I looked at the patching process of cargo_common.class and it is correctly applied and the cargo config file contains the following content:

[patch."https://github.com/gtk-rs/glib"]
glib = { path = "/home/jenkins/yocto-poky-master/poky/build/tmp/work/core2-64-poky-linux/zbus/3.11.0-r0/glib" }
glib-macros = { path = "/home/jenkins/yocto-poky-master/poky/build/tmp/work/core2-64-poky-linux/zbus/3.11.0-r0/glib-macros" }

[patch."https://github.com/gtk-rs/sys"]
glib-sys = { path = "/home/jenkins/yocto-poky-master/poky/build/tmp/work/core2-64-poky-linux/zbus/3.11.0-r0/glib-sys" }
gobject-sys = { path = "/home/jenkins/yocto-poky-master/poky/build/tmp/work/core2-64-poky-linux/zbus/3.11.0-r0/gobject-sys" }

I first think about what @Alex Kiernan <[email protected]> said on its commit message (
https://git.openembedded.org/openembedded-core/commit/?id=684a8af41c5bb70db68e75f72bdc4c9b09630810)
about patching not working with virtual manifest since the zbus project use of this.

But I managed to make this patching work with the zbus project locally (by the way I notified the upstream about that:
https://github.com/rust-lang/cargo/issues/4934).

Quoted 16 lines

I cannot understand why this does not work under yocto despite the correct cargo config file for patching.

On my ubuntu, I used cargo 1.67.1 and oe has 1.68.2, will try a downgrade but I feel that this is not the issue.

Any ideas ?

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#179975):
https://lists.openembedded.org/g/openembedded-core/message/179975
Mute This Topic: https://lists.openembedded.org/mt/98238501/6213388
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-