Srinuvasan Arjunan <
srinuv...@gmail.com>, Mittwoch, 24. April 2024 10:03:
On Wed, Apr 24, 2024 at 12:57 PM Schmidt, Adriaan <mailto:
adriaan...@siemens.com> wrote:
Hi Srinu,
> Hi Adriaan,
>
> Actually this is not my use cases but same intention, originally my use case is am going to install the copyright file based on the selection of LICENSE variable which is configured in the recipe , this selection of copyright file i introduced in debianize.bbclass file, when we build the images it is not building successfully, we faced build error in prebuilt-deb recipe.
>
> Your suggestion only works with the overrides variable not for others, but my use case is based on the user configure LICENSE in the recipe, it should pick the appropriate copyright file and install it in the debian package.
I'm not sure I understand this.
The idea behind the dpkg-prebuilt class is to take existing (usually 3rd-party) packages as-is and "inject" them into the Isar build. So when you say "install a copyright file in the debian package", does that mean you unpack, modify, and then re-pack the package? That's not what dpkg-prebuilt is for.
However, if you really want to use your original expression:
> SRC_URI:append = " ${@ 'file://example-prebuilt_1.0.0-0_bullseye.deb' if d.getVar('BASE_DISTRO_CODENAME') == 'bullseye' else 'file://example-prebuilt_1.0.0-0_all.deb' }"
I believe this breaks because it contains spaces, and then calling split() on the un-expanded variable (as we do in dpkg-prebuilt) just creates chaos.
You should be able to work around this:
TEMPORARY = "${@ 'file://example-prebuilt_1.0.0-0_bullseye.deb' if d.getVar('BASE_DISTRO_CODENAME') == 'bullseye' else 'file://example-prebuilt_1.0.0-0_all.deb' }"
SRC_URI:append = " ${TEMPORARY}"
Again, I don't understand the use case.
It seems to me that you're dealing with sources that don't have license information, and that you are trying to "fix" this by attaching a license in the Isar build.
IMO the license is an essential part of the source, and should not come via the "side-channel" of the Isar image/integration build.
Adriaan
Signed-off-by: Felix Moessbauer <mailto:
mailto:
felix.mo...@siemens.com>
---
I assume that this is still valid?
Adriaan
> Signed-off-by: Srinuvasan A <mailto:
mailto:
srinuv...@siemens.com>
> ---
> meta/classes/dpkg-prebuilt.bbclass | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/meta/classes/dpkg-prebuilt.bbclass b/meta/classes/dpkg-
> prebuilt.bbclass
> index 8135fc81..1ee1147c 100644
> --- a/meta/classes/dpkg-prebuilt.bbclass
> +++ b/meta/classes/dpkg-prebuilt.bbclass
> @@ -7,7 +7,7 @@ inherit dpkg-base
>
> python do_unpack:prepend() {
> # enforce unpack=false
> - src_uri = (d.getVar('SRC_URI', False) or '').split()
> + src_uri = (d.getVar('SRC_URI') or '').split()
> if len(src_uri) == 0:
> return
> def ensure_unpack_false(uri):
> --
> 2.34.1
>
> --
> You received this message because you are subscribed to the Google Groups
> "isar-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to mailto:
mailto:
isar-users%252Buns...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to mailto:
mailto:
isar-users%252Buns...@googlegroups.com.