* Fw: Inquiry and Proposal: Method to Identify Package Containing a Specific Binary [not found] <xhZK8E4f1CnnMzyvih8DWjZYUqf7fpE_8KolmZp0UKSabooljodh4TxTDefDuDZ09uBEhbx_4mlIEyr3y_c6zYZqL39W5d9w_vhIb5aGrQs=@protonmail.com> @ 2024-07-03 6:02 ` Chris 2024-07-03 7:39 ` [yocto] " Khem Raj 2024-07-03 8:27 ` Mike Looijmans 0 siblings, 2 replies; 5+ messages in thread From: Chris @ 2024-07-03 6:02 UTC (permalink / raw) To: yocto@lists.yoctoproject.org Sent from Proton Mail Android -------- Original Message -------- On 7/3/24 07:57, Chris <christopher.weronski@protonmail.com> wrote: > Dear Yocto Community, > > I am reaching out to inquire whether there currently exists a method within the Yocto Project to identify which package contains a specific binary. Recently, I encountered a situation where I needed the sfdisk utility. Initially, I installed the util-linux package, assuming it included sfdisk. However, I later discovered that I needed to install util-linux-sfdisk to obtain the utility, after searching the mailing list archives. A similar situation occurred when searching for the package that contained the mkfs.ext4 utility. Eventually I discovered it was the e2fsprogs package, however I feel searching could be improved. > > If there is no existing method to easily determine which package provides a specific binary, I would like to propose the development of such a tool. This tool would greatly assist in adding dependencies to recipes, making the process less cumbersome and reducing the likelihood of similar issues. > > Additionally, if creating such a tool is not feasible, I suggest adding a "Provides" section to the recipe pages on the OpenEmbedded Layer Index (e.g., https://layers.openembedded.org/layerindex/recipe/XYZ). This section would list the binaries that each package installs, helping users quickly ascertain whether a given binary is included in a package. > > I believe these enhancements would significantly improve the efficiency of the Yocto Project for all users. I welcome any feedback or discussion on this matter and look forward to your thoughts. > > Thank you for your time and consideration. > > Best regards, > Chris > Sent from Proton Mail Android ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [yocto] Fw: Inquiry and Proposal: Method to Identify Package Containing a Specific Binary 2024-07-03 6:02 ` Fw: Inquiry and Proposal: Method to Identify Package Containing a Specific Binary Chris @ 2024-07-03 7:39 ` Khem Raj 2024-07-03 7:56 ` Alexandre Belloni 2024-07-03 8:27 ` Mike Looijmans 1 sibling, 1 reply; 5+ messages in thread From: Khem Raj @ 2024-07-03 7:39 UTC (permalink / raw) To: yocto, christopher.weronski on build system oe-pkgdata-util find-path "*/sfdisk" or something like that might be worth exploring On Tue, Jul 2, 2024 at 11:03 PM Chris via lists.yoctoproject.org <christopher.weronski=protonmail.com@lists.yoctoproject.org> wrote: > > > > Sent from Proton Mail Android > > > -------- Original Message -------- > On 7/3/24 07:57, Chris <christopher.weronski@protonmail.com> wrote: > > > Dear Yocto Community, > > > > I am reaching out to inquire whether there currently exists a method within the Yocto Project to identify which package contains a specific binary. Recently, I encountered a situation where I needed the sfdisk utility. Initially, I installed the util-linux package, assuming it included sfdisk. However, I later discovered that I needed to install util-linux-sfdisk to obtain the utility, after searching the mailing list archives. A similar situation occurred when searching for the package that contained the mkfs.ext4 utility. Eventually I discovered it was the e2fsprogs package, however I feel searching could be improved. > > > > If there is no existing method to easily determine which package provides a specific binary, I would like to propose the development of such a tool. This tool would greatly assist in adding dependencies to recipes, making the process less cumbersome and reducing the likelihood of similar issues. > > > > Additionally, if creating such a tool is not feasible, I suggest adding a "Provides" section to the recipe pages on the OpenEmbedded Layer Index (e.g., https://layers.openembedded.org/layerindex/recipe/XYZ). This section would list the binaries that each package installs, helping users quickly ascertain whether a given binary is included in a package. > > > > I believe these enhancements would significantly improve the efficiency of the Yocto Project for all users. I welcome any feedback or discussion on this matter and look forward to your thoughts. > > > > Thank you for your time and consideration. > > > > Best regards, > > Chris > > Sent from Proton Mail Android > > -=-=-=-=-=-=-=-=-=-=-=- > Links: You receive all messages sent to this group. > You automatically follow any topics you start or reply to. > View/Reply Online (#63431): https://lists.yoctoproject.org/g/yocto/message/63431 > Mute This Topic: https://lists.yoctoproject.org/mt/107015160/1997914 > Group Owner: yocto+owner@lists.yoctoproject.org > Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [raj.khem@gmail.com] > -=-=-=-=-=-=-=-=-=-=-=- > ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [yocto] Fw: Inquiry and Proposal: Method to Identify Package Containing a Specific Binary 2024-07-03 7:39 ` [yocto] " Khem Raj @ 2024-07-03 7:56 ` Alexandre Belloni 0 siblings, 0 replies; 5+ messages in thread From: Alexandre Belloni @ 2024-07-03 7:56 UTC (permalink / raw) To: yocto, raj.khem; +Cc: christopher.weronski On 03/07/2024 00:39:15-0700, Khem Raj wrote: > on build system > > oe-pkgdata-util find-path "*/sfdisk" > > or something like that might be worth exploring But this only works when the package has been built which will not be the case until you know which package to build. > > On Tue, Jul 2, 2024 at 11:03 PM Chris via lists.yoctoproject.org > <christopher.weronski=protonmail.com@lists.yoctoproject.org> wrote: > > > > > > > > Sent from Proton Mail Android > > > > > > -------- Original Message -------- > > On 7/3/24 07:57, Chris <christopher.weronski@protonmail.com> wrote: > > > > > Dear Yocto Community, > > > > > > I am reaching out to inquire whether there currently exists a method within the Yocto Project to identify which package contains a specific binary. Recently, I encountered a situation where I needed the sfdisk utility. Initially, I installed the util-linux package, assuming it included sfdisk. However, I later discovered that I needed to install util-linux-sfdisk to obtain the utility, after searching the mailing list archives. A similar situation occurred when searching for the package that contained the mkfs.ext4 utility. Eventually I discovered it was the e2fsprogs package, however I feel searching could be improved. > > > > > > If there is no existing method to easily determine which package provides a specific binary, I would like to propose the development of such a tool. This tool would greatly assist in adding dependencies to recipes, making the process less cumbersome and reducing the likelihood of similar issues. > > > > > > Additionally, if creating such a tool is not feasible, I suggest adding a "Provides" section to the recipe pages on the OpenEmbedded Layer Index (e.g., https://layers.openembedded.org/layerindex/recipe/XYZ). This section would list the binaries that each package installs, helping users quickly ascertain whether a given binary is included in a package. > > > > > > I believe these enhancements would significantly improve the efficiency of the Yocto Project for all users. I welcome any feedback or discussion on this matter and look forward to your thoughts. > > > > > > Thank you for your time and consideration. > > > > > > Best regards, > > > Chris > > > Sent from Proton Mail Android > > > > > > > > -=-=-=-=-=-=-=-=-=-=-=- > Links: You receive all messages sent to this group. > View/Reply Online (#63432): https://lists.yoctoproject.org/g/yocto/message/63432 > Mute This Topic: https://lists.yoctoproject.org/mt/107015160/3617179 > Group Owner: yocto+owner@lists.yoctoproject.org > Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [alexandre.belloni@bootlin.com] > -=-=-=-=-=-=-=-=-=-=-=- > -- Alexandre Belloni, co-owner and COO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [yocto] Fw: Inquiry and Proposal: Method to Identify Package Containing a Specific Binary 2024-07-03 6:02 ` Fw: Inquiry and Proposal: Method to Identify Package Containing a Specific Binary Chris 2024-07-03 7:39 ` [yocto] " Khem Raj @ 2024-07-03 8:27 ` Mike Looijmans 2024-07-03 8:41 ` Mikko Rapeli 1 sibling, 1 reply; 5+ messages in thread From: Mike Looijmans @ 2024-07-03 8:27 UTC (permalink / raw) To: yocto, christopher.weronski On 03-07-2024 08:02, Chris via lists.yoctoproject.org wrote: >> Dear Yocto Community, >> >> I am reaching out to inquire whether there currently exists a method within the Yocto Project to identify which package contains a specific binary. Recently, I encountered a situation where I needed the sfdisk utility. Initially, I installed the util-linux package, assuming it included sfdisk. However, I later discovered that I needed to install util-linux-sfdisk to obtain the utility, after searching the mailing list archives. A similar situation occurred when searching for the package that contained the mkfs.ext4 utility. Eventually I discovered it was the e2fsprogs package, however I feel searching could be improved. >> Been there, done that, yeah. >> If there is no existing method to easily determine which package provides a specific binary, I would like to propose the development of such a tool. This tool would greatly assist in adding dependencies to recipes, making the process less cumbersome and reducing the likelihood of similar issues. >> >> Additionally, if creating such a tool is not feasible, I suggest adding a "Provides" section to the recipe pages on the OpenEmbedded Layer Index (e.g., https://layers.openembedded.org/layerindex/recipe/XYZ). This section would list the binaries that each package installs, helping users quickly ascertain whether a given binary is included in a package. >> It's not feasible to create such a tool. The list of binaries a package creates often depends on package configuration, machine and distro capabilities and other things. >> I believe these enhancements would significantly improve the efficiency of the Yocto Project for all users. I welcome any feedback or discussion on this matter and look forward to your thoughts. >> My solution is usually to run "apt search" on my desktop PC and use the output as a hint to find the package that provides it. That works for fdisk and mkfs and tools like that. What would be possible is that if someone did build "world", one could publish the resulting package databases for other people to search. That wouldn't solve everything for everyone, but it would at least help find most of the common things. M. ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [yocto] Fw: Inquiry and Proposal: Method to Identify Package Containing a Specific Binary 2024-07-03 8:27 ` Mike Looijmans @ 2024-07-03 8:41 ` Mikko Rapeli 0 siblings, 0 replies; 5+ messages in thread From: Mikko Rapeli @ 2024-07-03 8:41 UTC (permalink / raw) To: yocto, mike.looijmans; +Cc: christopher.weronski Hi, On Wed, Jul 03, 2024 at 10:27:58AM +0200, Mike Looijmans via lists.yoctoproject.org wrote: > On 03-07-2024 08:02, Chris via lists.yoctoproject.org wrote: > > > Dear Yocto Community, > > > I am reaching out to inquire whether there currently exists a method within the Yocto Project to identify which package contains a specific binary. Recently, I encountered a situation where I needed the sfdisk utility. Initially, I installed the util-linux package, assuming it included sfdisk. However, I later discovered that I needed to install util-linux-sfdisk to obtain the utility, after searching the mailing list archives. A similar situation occurred when searching for the package that contained the mkfs.ext4 utility. Eventually I discovered it was the e2fsprogs package, however I feel searching could be improved. > > Been there, done that, yeah. Ditto. > > > If there is no existing method to easily determine which package provides a specific binary, I would like to propose the development of such a tool. This tool would greatly assist in adding dependencies to recipes, making the process less cumbersome and reducing the likelihood of similar issues. > > > Additionally, if creating such a tool is not feasible, I suggest adding a "Provides" section to the recipe pages on the OpenEmbedded Layer Index (e.g., https://layers.openembedded.org/layerindex/recipe/XYZ). This section would list the binaries that each package installs, helping users quickly ascertain whether a given binary is included in a package. > > It's not feasible to create such a tool. The list of binaries a package > creates often depends on package configuration, machine and distro > capabilities and other things. > > > > > I believe these enhancements would significantly improve the efficiency of the Yocto Project for all users. I welcome any feedback or discussion on this matter and look forward to your thoughts. > > My solution is usually to run "apt search" on my desktop PC and use the > output as a hint to find the package that provides it. That works for fdisk > and mkfs and tools like that. > > What would be possible is that if someone did build "world", one could > publish the resulting package databases for other people to search. That > wouldn't solve everything for everyone, but it would at least help find most > of the common things. Except even a world build does not help since it does not enable all possible distro and machine features and packageconfig flags (how to even discover all available machine and distro features, packageconfig flags with bitbake?), and rarely has the exact same set of meta layers which users would have for the non-trivial product configs. Also the search needs to cover binaries, shared libraries, header files, config files etc. In practice I search the Internet, check Debian/Ubuntu, use buildhistory with yocto builds and git grep there, check layer index for clues. For the record, I don't think desktop distros solve this problem well. No-one controls the binary file namespace so there is also overlap. Some of the overlap is visible as preferred provider tweaks which gives hints but also easily confuses new users. Cheers, -Mikko ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2024-07-03 8:41 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <xhZK8E4f1CnnMzyvih8DWjZYUqf7fpE_8KolmZp0UKSabooljodh4TxTDefDuDZ09uBEhbx_4mlIEyr3y_c6zYZqL39W5d9w_vhIb5aGrQs=@protonmail.com>
2024-07-03 6:02 ` Fw: Inquiry and Proposal: Method to Identify Package Containing a Specific Binary Chris
2024-07-03 7:39 ` [yocto] " Khem Raj
2024-07-03 7:56 ` Alexandre Belloni
2024-07-03 8:27 ` Mike Looijmans
2024-07-03 8:41 ` Mikko Rapeli
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.