* bitbake provided path does not contain path to git so fetch is stalled @ 2025-06-01 11:09 Sergey Kurdakov 2025-06-01 12:53 ` [yocto] " Sergey Kurdakov 0 siblings, 1 reply; 3+ messages in thread From: Sergey Kurdakov @ 2025-06-01 11:09 UTC (permalink / raw) To: yocto [-- Attachment #1: Type: text/plain, Size: 946 bytes --] Hello, I decided to give yocto scarthgap a spin at home with Ubuntu 24.02 (somehow it works at the same Ubuntu version at work computer, but cannot investigate at weekend, why it works there), first I had to add apparmor profile (due to ubuntu apparmor protection), as recommended in https://bugs.launchpad.net/ubuntu/+source/apparmor/+bug/2056555 ) then building an sample image started, but encountered strange behavior: git fetch would stuck. So I added -DDD option and observed, that git fetch is invoked with exported path, which does not contain path to git, if I ran git command in a separate console without bitbake provided path then git fetches sources (so git works), but if exported path is added as git fetcher does via bitbake I observe the same a command just hangs. My question is, how to enable so that bitbake invoked git also has regular path environmental variable being attached? Best regards Sergey [-- Attachment #2: Type: text/html, Size: 1269 bytes --] ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [yocto] bitbake provided path does not contain path to git so fetch is stalled 2025-06-01 11:09 bitbake provided path does not contain path to git so fetch is stalled Sergey Kurdakov @ 2025-06-01 12:53 ` Sergey Kurdakov 2025-06-01 14:29 ` Sergey Kurdakov 0 siblings, 1 reply; 3+ messages in thread From: Sergey Kurdakov @ 2025-06-01 12:53 UTC (permalink / raw) To: Sergey Kurdakov, yocto [-- Attachment #1: Type: text/plain, Size: 555 bytes --] Hello, to fix described problem of stalled fetch with bitbake on Ubuntu 24.02 I made a dirty fix in code git.py - ud.basecmd = d.getVar("FETCHCMD_git") or "git -c gc.autoDetach=false -c core.pager=cat -c safe.bareRepository=all" + ud.basecmd = d.getVar("FETCHCMD_git") or "/usr/bin/git -c gc.autoDetach=false -c core.pager=cat -c safe.bareRepository=all" so I just invoke git with full path, and bitbake now fetches sources, so indeed, the problem is about missing path in "export PATH=" when bitbake works on image Regards Sergey [-- Attachment #2: Type: text/html, Size: 1268 bytes --] ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [yocto] bitbake provided path does not contain path to git so fetch is stalled 2025-06-01 12:53 ` [yocto] " Sergey Kurdakov @ 2025-06-01 14:29 ` Sergey Kurdakov 0 siblings, 0 replies; 3+ messages in thread From: Sergey Kurdakov @ 2025-06-01 14:29 UTC (permalink / raw) To: Sergey Kurdakov, yocto [-- Attachment #1: Type: text/plain, Size: 478 bytes --] Hello, so seems I found a solution: completely delete poky build directory and start anew. somehow it works now. It looks like an attempt to use bitbake without apparmor profile in Ubuntu makes some changes in cache which prevents later proper functioning of bitbake. so the correct way to proceed is not to try bitbake without apparmor profile, and if there are problems after the try - just start from clean yocto, when apparmor profile is in place Regards Sergey [-- Attachment #2: Type: text/html, Size: 582 bytes --] ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-06-01 14:29 UTC | newest] Thread overview: 3+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2025-06-01 11:09 bitbake provided path does not contain path to git so fetch is stalled Sergey Kurdakov 2025-06-01 12:53 ` [yocto] " Sergey Kurdakov 2025-06-01 14:29 ` Sergey Kurdakov
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.