Bug 15663 - quilt not in OE-shell PATH
Summary: quilt not in OE-shell PATH
Status: RESOLVED NOTABUG
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: Scripts and Tools (show other bugs)
Version: 5.99
Hardware: x86 x86_64
: Medium+ enhancement
Target Milestone: 5.2 M2
Assignee: Christos Gavros
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2024-11-26 16:57 UTC by Mehmet Bulut
Modified: 2024-12-02 13:10 UTC (History)
4 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: Don't know


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mehmet Bulut 2024-11-26 16:57:19 UTC
While trying to generate a patch using quilt in a devtool modify session, I noticed that quilt is not in PATH. I could locate quilt in recipe-sysroot-native and execute it but it would be much more convenient if it was in PATH.

Steps to reproduce:
1. Start an OE-shell
2. run the command 'quilt'

Expected behavior:
quilt can be executed successfully

Observed behavior:
quilt cannot be found
Comment 1 Christos Gavros 2024-11-29 20:30:39 UTC
Hi Mehmet,

I tried to reproduce the behaviour you are describing.
I am using ubuntu 22.04 as host machine where quilt (0.66) is already installed.

So I followed the next steps in the host machine to modify helloworld recipe:
-Switch to poky directory
-Source oe-init-build-env
-devtool modify helloworld
-Switch to the ../build/workspace/sources/helloworld/oe-local-files
-quilt new fix1.patch
-quilt add helloworld.c
-Making changes in helloworld.c
-quilt refresh

I didn’t notice any issue.

Can you explain further how can I reproduce the issue?

* Please bear with me , I am a newcomer :)

Br
Christos
Comment 2 Richard Purdie 2024-11-30 00:05:34 UTC
I think there is a bit of confusion here on my part, sorry. I was reading "Start an OE-shell" as being a devhell in recipe context. I think instead this refers to the "oe-init-build-env" command?

"devtool modify" doesn't create or drop you into a subshell so it is still in the main/parent context, not any specific recipe. Tools such as quilt are installed per recipe in ${WORKDIR}/recipe-sysroot-native via dependency so they can't be available in the parent context.

As such I'm not sure we can make quilt available in the original build context. 

Whether we could have some simple command to place the user into the recipe context could be something to explore but also a lot more of a complex project.
Comment 3 Mehmet Bulut 2024-11-30 00:44:27 UTC
Thx for looking into this Christos and thx for your comment Richard.

As Richard pointed out, this originated from a misunderstanding between the two of us (which I seem to have caused by "inventing" the term OE-shell).

I agree that it's not worth the hassle pursuing this further and suggest closing the ticket.

Apologies again for the confusion and have a good time everyone!
Comment 4 Christos Gavros 2024-11-30 06:57:57 UTC
hi

no worries at all :) !
Comment 5 Richard Purdie 2024-12-02 13:10:24 UTC
Resolving as disucssed