yocto.lists.yoctoproject.org archive mirror
 help / color / mirror / Atom feed
* [scarthgap] Setting image feature dev-pkgs bring ptest package of libgpiod
@ 2025-07-16 10:11 Jairo Mejia Aponte
  2025-07-16 10:21 ` [yocto] " Ross Burton
  0 siblings, 1 reply; 6+ messages in thread
From: Jairo Mejia Aponte @ 2025-07-16 10:11 UTC (permalink / raw)
  To: yocto

[-- Attachment #1: Type: text/plain, Size: 655 bytes --]

Hi all,

I have found while using *libgpiod* package from meta-oe that you get the ptest package when the IMAGE_FEATURE option *dev-pkgs* is enabled. This looks for me as a bug because it should only bring the normal and dev package of the *libgpiod*. I check if the dev package came with the ptest folder from do_install, but the packages split of the recipe looks fine to me.

I could not find in the recipe anything that could tell me why this is happening. I would like to know if someone has an idea how to disable this thing. I want to control which ptest packages are in my dev machine to reduce the time execution of the ptests.

Thank you

[-- Attachment #2: Type: text/html, Size: 838 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [yocto] [scarthgap] Setting image feature dev-pkgs bring ptest package of libgpiod
  2025-07-16 10:11 [scarthgap] Setting image feature dev-pkgs bring ptest package of libgpiod Jairo Mejia Aponte
@ 2025-07-16 10:21 ` Ross Burton
  2025-07-16 11:18   ` Jairo Mejia Aponte
  0 siblings, 1 reply; 6+ messages in thread
From: Ross Burton @ 2025-07-16 10:21 UTC (permalink / raw)
  To: yocto@lists.yoctoproject.org, jairo.mejiaaponte@belden.com

On 16 Jul 2025, at 11:11, Jairo Mejia Aponte via lists.yoctoproject.org <jairo.mejiaaponte=belden.com@lists.yoctoproject.org> wrote:
> 
> Hi all, 
>   I have found while using libgpiod package from meta-oe that you get the ptest package when the IMAGE_FEATURE option dev-pkgs is enabled. This looks for me as a bug because it should only bring the normal and dev package of the libgpiod. I check if the dev package came with the ptest folder from do_install, but the packages split of the recipe looks fine to me. 
>   I could not find in the recipe anything that could tell me why this is happening. I would like to know if someone has an idea how to disable this thing. I want to control which ptest packages are in my dev machine to reduce the time execution of the ptests. 

The easiest way to figure this out is to use the package manager to remove libgpiod-ptest package in the image. That should fail and tell you what the dependency is.

Ross

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [yocto] [scarthgap] Setting image feature dev-pkgs bring ptest package of libgpiod
  2025-07-16 10:21 ` [yocto] " Ross Burton
@ 2025-07-16 11:18   ` Jairo Mejia Aponte
  2025-07-16 12:02     ` Ross Burton
  0 siblings, 1 reply; 6+ messages in thread
From: Jairo Mejia Aponte @ 2025-07-16 11:18 UTC (permalink / raw)
  To: Ross Burton, yocto

[-- Attachment #1: Type: text/plain, Size: 454 bytes --]

Hi Ross,

Thank you for the quick answer.

> 
> The easiest way to figure this out is to use the package manager to remove
> libgpiod-ptest package in the image. That should fail and tell you what
> the dependency is.
> 

I double check the deploy-rpms folder and I do not have a ptest package from this recipe. I think that I do not fully follow, how exactly can I use the package manager to remove the libgpiod-ptest package from the image?

[-- Attachment #2: Type: text/html, Size: 589 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [yocto] [scarthgap] Setting image feature dev-pkgs bring ptest package of libgpiod
  2025-07-16 11:18   ` Jairo Mejia Aponte
@ 2025-07-16 12:02     ` Ross Burton
  2025-07-16 12:40       ` Jairo Mejia Aponte
  0 siblings, 1 reply; 6+ messages in thread
From: Ross Burton @ 2025-07-16 12:02 UTC (permalink / raw)
  To: jairo.mejiaaponte@belden.com; +Cc: yocto@lists.yoctoproject.org

On 16 Jul 2025, at 12:18, Jairo Mejia Aponte via Lists.Yoctoproject.Org <jairo.mejiaaponte=belden.com@lists.yoctoproject.org> wrote:
> 
> Hi Ross, 
>   Thank you for the quick answer.
>   The easiest way to figure this out is to use the package manager to remove libgpiod-ptest package in the image. That should fail and tell you what the dependency is.
>   I double check the deploy-rpms folder and I do not have a ptest package from this recipe. I think that I do not fully follow, how exactly can I use the package manager to remove the libgpiod-ptest package from the image? 

Now you’re giving contradictory statements: your image has the libgpiod-ptest package installed, but it doesn’t exist.

What package _exactly_ is being installed into your image, that you don’t want installed?

Ross

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [yocto] [scarthgap] Setting image feature dev-pkgs bring ptest package of libgpiod
  2025-07-16 12:02     ` Ross Burton
@ 2025-07-16 12:40       ` Jairo Mejia Aponte
  2025-07-16 12:46         ` Ross Burton
  0 siblings, 1 reply; 6+ messages in thread
From: Jairo Mejia Aponte @ 2025-07-16 12:40 UTC (permalink / raw)
  To: Ross Burton, yocto

[-- Attachment #1: Type: text/plain, Size: 1762 bytes --]

Hi,

I was looking the code in more deep and I found out that even though there is a ptest and ptest-dev defined on the recipe and the folders are created as such in package-split folder, at the end the package name *change* to a package that is named after a shared library that is added in the ptest package. This is the line that makes the RPM package to change the name:

FILES:${PN}-ptest += "${libdir}/libgpiosim.so.*"

This seems to trigger a change of name for the ptest package to the name of the library. Because the new package name contains the *-dev,* this is added when setting the *dev-pkgs* in the IMAGE_FEATURES. If I remove that line for the ptest, the name of the package is the ptest expected and it is not added to the image at the end.

This is how the directories looks like:

ls -l tmp/work/core2-64-poky-linux/libgpiod/2.1.2/packages-split
drwxr-xr-x libgpiod
drwxr-xr-x libgpiod-dbg
drwxr-xr-x libgpiod-dev
drwxr-xr-x libgpiod-doc
drwxr-xr-x libgpiod-locale
*drwxr-xr-x libgpiod-ptest*
*drwxr-xr-x libgpiod-ptest-dev*
.rw-r--r-- libgpiod-ptest.shlibdeps
drwxr-xr-x libgpiod-src
drwxr-xr-x libgpiod-staticdev
drwxr-xr-x libgpiod-tools
.rw-r--r-- libgpiod-tools.shlibdeps
.rw-r--r-- libgpiod.shlibdeps
drwxr-xr-x libgpiodcxx
.rw-r--r-- libgpiodcxx.shlibdeps

ls -l tmp/work/core2-64-poky-linux/libgpiod/2.1.2/deploy-rpms/core2_64
.rw-r--r-- libgpiod-dbg-2.1.2-r0.core2_64.rpm
.rw-r--r-- libgpiod-dev-2.1.2-r0.core2_64.rpm
.rw-r--r-- libgpiod-src-2.1.2-r0.core2_64.rpm
.rw-r--r-- libgpiod-tools-2.1.2-r0.core2_64.rpm
.rw-r--r-- libgpiod3-2.1.2-r0.core2_64.rpm
.rw-r--r-- libgpiodcxx2-2.1.2-r0.core2_64.rpm
*.rw-r--r-- libgpiosim-dev-2.1.2-r0.core2_64.rpm*
*.rw-r--r-- libgpiosim1-2.1.2-r0.core2_64.rpm*

[-- Attachment #2: Type: text/html, Size: 2160 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [yocto] [scarthgap] Setting image feature dev-pkgs bring ptest package of libgpiod
  2025-07-16 12:40       ` Jairo Mejia Aponte
@ 2025-07-16 12:46         ` Ross Burton
  0 siblings, 0 replies; 6+ messages in thread
From: Ross Burton @ 2025-07-16 12:46 UTC (permalink / raw)
  To: jairo.mejiaaponte@belden.com; +Cc: yocto@lists.yoctoproject.org

On 16 Jul 2025, at 13:40, Jairo Mejia Aponte via Lists.Yoctoproject.Org <jairo.mejiaaponte=belden.com@lists.yoctoproject.org> wrote:
> 
> Hi, 
>   I was looking the code in more deep and I found out that even though there is a ptest and ptest-dev defined on the recipe and the folders are created as such in package-split folder, at the end the package name change to a package that is named after a shared library that is added in the ptest package. This is the line that makes the RPM package to change the name: 
> 
> FILES:${PN}-ptest += "${libdir}/libgpiosim.so.*"
>   This seems to trigger a change of name for the ptest package to the name of the library. Because the new package name contains the -dev, this is added when setting the dev-pkgs in the IMAGE_FEATURES. If I remove that line for the ptest, the name of the package is the ptest expected and it is not added to the image at the end.

Looks like you need to upgrade, or backport some fixes from meta-openembedded, specifically:

commit 0718d6e84d59ac84d47e3093280fa5369bf4c435
Author: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Date:   Fri Dec 6 12:11:29 2024 +0100

    libgpiod: minimize intra-recipe dependencies for ptest

    Make the packaging a bit more fine-grained. Create separate packages for
    the libgpiosim library and gpio-manager configuration files. Make the
    ptest package run-time depend on only the gpio-manager config. This way,
    we don't pull the entire daemon infrastructure if all we want is to run
    its test suite.

    While at it: add GPIO udev rules to the gpio-manager config package.
    Currently they are in the main libgpiod package where they don't really
    belong.

    Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
    Signed-off-by: Khem Raj <raj.khem@gmail.com>


Ross

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2025-07-16 12:47 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-16 10:11 [scarthgap] Setting image feature dev-pkgs bring ptest package of libgpiod Jairo Mejia Aponte
2025-07-16 10:21 ` [yocto] " Ross Burton
2025-07-16 11:18   ` Jairo Mejia Aponte
2025-07-16 12:02     ` Ross Burton
2025-07-16 12:40       ` Jairo Mejia Aponte
2025-07-16 12:46         ` Ross Burton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).