upx: do_fetch: Bitbake Fetcher Error:,FetchError('Submodule refers to the parent repository.
Hi!
On Kirkstone, since Kirkstone 4.0.5 (commit 189a6d452e3037c9e94ccdf6af38359fc6058064, https://git.yoctoproject.org/poky/commit/?h=kirkstone&id=189a6d452e3037c9e94ccdf6af38359fc6058064) the added check gives me
ERROR: upx-3.96+AUTOINC+4e1ae22a1a-r0 do_fetch: Bitbake Fetcher Error:
FetchError('Submodule refers to the parent repository. This will cause deadlock situation in current version of Bitbake.Consider using git fetcher instead.', None)
(I noticed that latest master is identical with latest kirkstone.)
I'm experimenting with using git:// instead of gitsm:// and adding a suggested solution if found searching for documentation on how to migitate this
do_configure:prepend() {
cd ${WORKDIR}/git
git submodule update --init --recursive
}but I've not yet been able to make things work. Since I'm no power user when it comes to Yocto magic perhaps someone already knows what would be the best way forward on this (if I'm on the wrong path)?
BR,
/Joakim
Quoted 13 lines · Joakim Roubert
Hi!
On Kirkstone, since Kirkstone 4.0.5 (commit
189a6d452e3037c9e94ccdf6af38359fc6058064,
https://git.yoctoproject.org/poky/commit/?h=kirkstone&id=189a6d452e3037c9e94ccdf6af38359fc6058064)
the added check gives meERROR: upx-3.96+AUTOINC+4e1ae22a1a-r0
do_fetch: Bitbake Fetcher Error:
FetchError('Submodule refers to the parent repository. This will cause deadlock situation in current version of Bitbake.Consider using git fetcher instead.', None)
Quoted 4 lines
(I noticed that latest master is identical with latest kirkstone.) I'm experimenting with using
git://instead of gitsm:// and adding a suggested solution if found searching for documentation on how to migitate this
There's been some serious re-writing of the repository, which is generally speaking a no-no.
The hash we were previously using is completely gone. But then again, we are using a branch called "devel", so history re-writing could be expected.
The fix is not really about the fetcher, but using a different git hash.
I've bumped the recipe locally, and our one patch can also be dropped, as it has been merged.
That being said, I'm now running into cmake build issues, which I'm working through.
I'll continue to plug away at it in the background today, and with any luck can have it working again shortly (I'm terrible with cmake).
Bruce
Quoted 15 lines
do_configure:prepend() { cd ${WORKDIR}/git git submodule update --init --recursive }but I've not yet been able to make things work. Since I'm no power user when it comes to Yocto magic perhaps someone already knows what would be the best way forward on this (if I'm on the wrong path)?
BR,
/Joakim
Quoted 8 lines
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#7720): https://lists.yoctoproject.org/g/meta-virtualization/message/7720
Mute This Topic: https://lists.yoctoproject.org/mt/95382316/1050810
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-virtualization/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
--
- Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end
- "Use the force Harry" - Gandalf, Star Trek II
Quoted 29 lines · Bruce Ashfield via lists.yoctoproject.org
Quoted 13 lines · Joakim Roubert
Hi!
On Kirkstone, since Kirkstone 4.0.5 (commit
189a6d452e3037c9e94ccdf6af38359fc6058064,
https://git.yoctoproject.org/poky/commit/?h=kirkstone&id=189a6d452e3037c9e94ccdf6af38359fc6058064)
the added check gives meERROR: upx-3.96+AUTOINC+4e1ae22a1a-r0
do_fetch: Bitbake Fetcher Error:
FetchError('Submodule refers to the parent repository. This will cause deadlock situation in current version of Bitbake.Consider using git fetcher instead.', None)Quoted 4 lines
(I noticed that latest master is identical with latest kirkstone.) I'm experimenting with using
git://instead of gitsm:// and adding a suggested solution if found searching for documentation on how to migitate thisThere's been some serious re-writing of the repository, which is generally speaking a no-no.
The hash we were previously using is completely gone. But then again, we are using a branch called "devel", so history re-writing could be expected.
The fix is not really about the fetcher, but using a different git hash.
Quoted 9 lines
I've bumped the recipe locally, and our one patch can also be dropped, as it has been merged.
That being said, I'm now running into cmake build issues, which I'm working through.
I'll continue to plug away at it in the background today, and with any luck can have it working again shortly (I'm terrible with cmake).
I did have some luck, and I pushed a proposed fix to master-next.
Have a look, and see if it fixes the build for you.
Bruce
Quoted 34 lines
Bruce
Quoted 6 lines
do_configure:prepend() { cd ${WORKDIR}/git git submodule update --init --recursive }Quoted 11 lines
but I've not yet been able to make things work. Since I'm no power user when it comes to Yocto magic perhaps someone already knows what would be the best way forward on this (if I'm on the wrong path)?
BR,
/Joakim
--
- Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end
- "Use the force Harry" - Gandalf, Star Trek II-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#7721): https://lists.yoctoproject.org/g/meta-virtualization/message/7721
Mute This Topic: https://lists.yoctoproject.org/mt/95382316/1050810
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-virtualization/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Signature · 3 lines
- Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end - "Use the force Harry" - Gandalf, Star Trek II
Quoted 4 lines · Bruce Ashfield
I did have some luck, and I pushed a proposed fix to master-next.
Have a look, and see if it fixes the build for you.
Thanks a lot; I tried it out immediately.
It will, however, give me the same gitsm error:
ERROR: upx-3.96+AUTOINC+8d1a98e03b-r0 do_fetch: Fetcher failure: Submodule refers to the parent repository. This will cause deadlock situation in current version of Bitbake.Consider using git fetcher instead.
BR,
/Joakim
Quoted 3 lines · Joakim Roubert
Thanks a lot; I tried it out immediately.
It will, however, give me the same gitsm error:
[...]
By using the git fetcher instead of the gitsm one and explicitly add the submodules (whth the corresponding commits) in the recipe as per the attached patch (on latest master-next that has your latest fixes), upx will build properly here again.
BR,
/Joakim
From a49e1cd59e05e23db65f2846feeafcc69cba4543 Mon Sep 17 00:00:00 2001
From: Joakim Roubert <[email protected]>
Date: Fri, 2 Dec 2022 11:25:15 +0100
Subject: [PATCH] upx: Use git fetcher instead of gitsm
The current upx will trigger the Bitbake Fetcher Error added in Kirkstone 4.0.5 189a6d452e3037c9e94ccdf6af38359fc6058064 commit. This patch replaces gitsm with git and explicitly adds the git submodules with the corresponding commits.
--- recipes-extended/upx/upx_git.bb | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-)
recipes-extended/upx/upx_git.bb +11 -2
@@ -1,8 +1,17 @@ HOMEPAGE = "http://upx.sourceforge.net" SUMMARY = "Ultimate executable compressor." -SRCREV = "8d1a98e03bf281b2cee459b6c27347e56d13c6a8" -SRC_URI = "gitsm://github.com/upx/upx;branch=devel;protocol=https \ +SRCREV_upx = "8d1a98e03bf281b2cee459b6c27347e56d13c6a8" +SRCREV_vendor_doctest = "666e648b68fda2deb141a1fe93e3fd1e2795dd0f" +SRCREV_vendor_lzma_sdk = "9ebf8f468c689d83504e6c08c6bc26c4a1cf180f" +SRCREV_vendor_ucl = "4b58d592199dc1e5db691e1a54fb0e5e9af0ecaf" +SRCREV_vendor_zlib = "2a5b338eb173a701ed179e951d4c390e75e8d4c7" +SRCREV_FORMAT = "upx" +SRC_URI = "git://github.com/upx/upx;name=upx;branch=devel;protocol=https \ + git://github.com/upx/upx-vendor-doctest;name=vendor_doctest;subdir=git/vendor/doctest;branch=upx-vendor;protocol=https \ + git://github.com/upx/upx-vendor-lzma-sdk;name=vendor_lzma_sdk;subdir=git/vendor/lzma-sdk;branch=upx-vendor;protocol=https \ + git://github.com/upx/upx-vendor-ucl;name=vendor_ucl;subdir=git/vendor/ucl;branch=upx-vendor;protocol=https \ + git://github.com/upx/upx-vendor-zlib;name=vendor_zlib;subdir=git/vendor/zlib;branch=upx-vendor;protocol=https \ " LICENSE = "GPL-2.0-only"
Signature · 1 line
2.30.2
Quoted 5 lines · Joakim Roubert
Quoted 3 lines · Bruce Ashfield
I did have some luck, and I pushed a proposed fix to master-next.
Quoted 9 lines
Quoted 1 line
Have a look, and see if it fixes the build for you.
Thanks a lot; I tried it out immediately.
It will, however, give me the same gitsm error:ERROR: upx-3.96+AUTOINC+8d1a98e03b-r0
do_fetch: Fetcher failure:
Submodule refers to the parent repository. This will cause deadlock situation in current version of Bitbake.Consider using git fetcher instead.
I don't see this on my up to date master build (I'm always following tip).
Let me dig in a bit more.
That being said, I've written multiple recipes like your follow up patch, and I do prefer the clarity of everything being directly in the SRC_URI.
Bruce
Quoted 4 lines
BR,
/Joakim
Signature · 3 lines
- Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end - "Use the force Harry" - Gandalf, Star Trek II
Quoted 17 lines · Bruce Ashfield via lists.yoctoproject.org
Quoted 5 lines · Joakim Roubert
Quoted 3 lines · Bruce Ashfield
I did have some luck, and I pushed a proposed fix to master-next.
Quoted 9 lines
Quoted 1 line
Have a look, and see if it fixes the build for you.
Thanks a lot; I tried it out immediately.
It will, however, give me the same gitsm error:ERROR: upx-3.96+AUTOINC+8d1a98e03b-r0
do_fetch: Fetcher failure:
Submodule refers to the parent repository. This will cause deadlock situation in current version of Bitbake.Consider using git fetcher instead.
Quoted 8 lines
I don't see this on my up to date master build (I'm always following tip).
Let me dig in a bit more.
That being said, I've written multiple recipes like your follow up patch, and I do prefer the clarity of everything being directly in the
SRC_URI.
I still can't reproduce the issue here, but everything still works with your patch on top .. so I've added it to the queue on master-next.
Bruce
Quoted 21 lines
Bruce
Quoted 4 lines
BR,
/Joakim
--
- Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end
- "Use the force Harry" - Gandalf, Star Trek II-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#7731): https://lists.yoctoproject.org/g/meta-virtualization/message/7731
Mute This Topic: https://lists.yoctoproject.org/mt/95382316/1050810
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-virtualization/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Signature · 3 lines
- Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end - "Use the force Harry" - Gandalf, Star Trek II
Quoted 4 lines · Bruce Ashfield
That being said, I've written multiple recipes like your follow up patch, and I do prefer the clarity of everything being directly in the
SRC_URI.
Excellent!
Quoted 4 lines · Bruce Ashfield
I still can't reproduce the issue here, but everything still works with your patch on top .. so I've added it to the queue on master-next.
Do you think it could be allowed to reach the kirkstone branch too?
BR,
/Joakim
Signature · 7 lines
Joakim Roubert Senior Engineer Axis Communications AB Emdalavägen 14, SE-223 69 Lund, Sweden Tel: +46 46 272 18 00, Tel (direct): +46 46 272 27 48 Fax: +46 46 13 61 30, www.axis.com
Quoted 9 lines · Joakim Roubert
Quoted 4 lines · Bruce Ashfield
That being said, I've written multiple recipes like your follow up patch, and I do prefer the clarity of everything being directly in the
SRC_URI.Excellent!
Quoted 8 lines
Quoted 4 lines · Bruce Ashfield
I still can't reproduce the issue here, but everything still works with your patch on top .. so I've added it to the queue on master-next.
Do you think it could be allowed to reach the kirkstone branch too?
I can do the cherry picks once I get master-next -> master ... which is hopefully very soon.
Bruce
Quoted 21 lines
BR,
/Joakim
--
Joakim Roubert
Senior EngineerAxis Communications AB
Emdalavägen 14, SE-223 69 Lund, Sweden
Tel: +46 46 272 18 00, Tel (direct): +46 46 272 27 48
Fax: +46 46 13 61 30, www.axis.com-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#7737): https://lists.yoctoproject.org/g/meta-virtualization/message/7737
Mute This Topic: https://lists.yoctoproject.org/mt/95382316/1050810
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-virtualization/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Signature · 3 lines
- Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end - "Use the force Harry" - Gandalf, Star Trek II
Quoted 3 lines · Bruce Ashfield
I can do the cherry picks once I get master-next -> master ... which is hopefully very soon.
Excellent, thanks a lot!
BR,
/Joakim