Re : integrate bluez with ISAR

14 views
Skip to first unread message

Balasubramanian Sundaram

unread,
Nov 10, 2022, 7:38:00 AM11/10/22
to isar-...@googlegroups.com
 Hi Team,

Iam using ISAR build system i'm trying to integrate bluez but iam getting following error 
image.png
and this is my bb file for it anything is missing
image.png

Thanks & Regards
--
Balasubramanian Sundaram 
Firmware Engineer |  Sanmina Tech services |  India, Chennai  |  Desk: +91 044 61309865

CONFIDENTIALITY
This e-mail message and any attachments thereto, is intended only for use by the addressee(s) named herein and may contain legally privileged and/or confidential information. If you are not the intended recipient of this e-mail message, you are hereby notified that any dissemination, distribution or copying of this e-mail message, and any attachments thereto, is strictly prohibited. If you have received this e-mail message in error, please immediately notify the sender and permanently delete the original and any copies of this email and any prints thereof.
ABSENT AN EXPRESS STATEMENT TO THE CONTRARY HEREINABOVE, THIS E-MAIL IS NOT INTENDED AS A SUBSTITUTE FOR A WRITING. Notwithstanding the Uniform Electronic Transactions Act or the applicability of any other law of similar substance and effect, absent an express statement to the contrary hereinabove, this e-mail message its contents, and any attachments hereto are not intended to represent an offer or acceptance to enter into a contract and are not otherwise intended to bind the sender, Sanmina Corporation (or any of its subsidiaries), or any other person or entity.

Schaffner, Tobias

unread,
Nov 10, 2022, 8:36:04 AM11/10/22
to Balasubramanian Sundaram, isar-users
On 10.11.22 13:37, 'Balasubramanian Sundaram' via isar-users wrote:
>  Hi Team,
>
> Iam using ISAR build system i'm trying to integrate bluez but iam
> getting following error
> image.png
> and this is my bb file for it anything is missing
> image.png
>
> Thanks & Regards

Hello Balasubramanian,

you do not have to create a package if you just want to install bluez
from the repositories.

All you have to do is add it to IMAGE_PREINSTALL as Anton already explained.

You just have to add the following line:
IMAGE_PREINSTALL += "bluez"

Where you put it depends on your project. You could add it to your image
definition in recipes-core/images or to your machine config. But I would
recommend that you create a new layer for your project that uses the
isar-cip-core layer.

This project may be a good reference:
https://github.com/siemens/meta-iot2050

All the best!

> --
> Balasubramanian Sundaram
> Firmware Engineer |  Sanmina Tech services |  India, Chennai  |  Desk:
> +91 044 61309865
>
> CONFIDENTIALITY
> This e-mail message and any attachments thereto, is intended only for
> use by the addressee(s) named herein and may contain legally privileged
> and/or confidential information. If you are not the intended recipient
> of this e-mail message, you are hereby notified that any dissemination,
> distribution or copying of this e-mail message, and any attachments
> thereto, is strictly prohibited. If you have received this e-mail
> message in error, please immediately notify the sender and permanently
> delete the original and any copies of this email and any prints thereof.
> ABSENT AN EXPRESS STATEMENT TO THE CONTRARY HEREINABOVE, THIS E-MAIL IS
> NOT INTENDED AS A SUBSTITUTE FOR A WRITING. Notwithstanding the Uniform
> Electronic Transactions Act or the applicability of any other law of
> similar substance and effect, absent an express statement to the
> contrary hereinabove, this e-mail message its contents, and any
> attachments hereto are not intended to represent an offer or acceptance
> to enter into a contract and are not otherwise intended to bind the
> sender, Sanmina Corporation (or any of its subsidiaries), or any other
> person or entity.
>
> --
> 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 isar-users+...@googlegroups.com
> <mailto:isar-users+...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/isar-users/CAMxE6KnVtJAumY7YiwVX5xUi%2BHGVjogz4qatrMyNh3ZJEYZBYg%40mail.gmail.com <https://groups.google.com/d/msgid/isar-users/CAMxE6KnVtJAumY7YiwVX5xUi%2BHGVjogz4qatrMyNh3ZJEYZBYg%40mail.gmail.com?utm_medium=email&utm_source=footer>.

Roberto A. Foglietta

unread,
Nov 10, 2022, 8:39:04 AM11/10/22
to Schaffner, Tobias, Balasubramanian Sundaram, isar-users
On Thu, 10 Nov 2022 at 14:36, Schaffner, Tobias
<tobias.s...@siemens.com> wrote:
>
> On 10.11.22 13:37, 'Balasubramanian Sundaram' via isar-users wrote:
> > Hi Team,
> >
> > Iam using ISAR build system i'm trying to integrate bluez but iam
> > getting following error
> > image.png
> > and this is my bb file for it anything is missing
> > image.png
> >
> > Thanks & Regards
>
> Hello Balasubramanian,
>
> you do not have to create a package if you just want to install bluez
> from the repositories.
>
> All you have to do is add it to IMAGE_PREINSTALL as Anton already explained.
>
> You just have to add the following line:
> IMAGE_PREINSTALL += "bluez"

Considering your .bb recipe this one:

IMAGE_PREINSTALL += "bluez texinfo"

Best Regards, R-

Jan Kiszka

unread,
Nov 10, 2022, 11:12:15 AM11/10/22
to Balasubramanian Sundaram, isar-...@googlegroups.com
On 10.11.22 13:37, 'Balasubramanian Sundaram' via isar-users wrote:
>  Hi Team,
>
> Iam using ISAR build system i'm trying to integrate bluez but iam
> getting following error 
> image.png
> and this is my bb file for it anything is missing
> image.png

I think this question was raised elsewhere already, but it is very
essential: WHY do you want to fork bluez away from Debian mainline? You
will inherit maintenance and testing efforts that can be critical,
specifically for product development. If you have a bug report against
bluez or the Debian package, file that first. Ideally, the issue will be
resolved and the new package will be available before you are done with
rebuilding your own one.

Jan

PS: Please share logs, not screenshots, whenever technically possible
(like in this case).

--
Siemens AG, Technology
Competence Center Embedded Linux

Balasubramanian Sundaram

unread,
Nov 11, 2022, 2:32:30 AM11/11/22
to Jan Kiszka, isar-...@googlegroups.com
Hi Jan 

Still It is not getting included in isar 

WARNING: bluez-1.0-r0 do_fetch: Failed to fetch URL https://sources.debian.org/patches/bluez/5.55-3.1/, attempting MIRRORS if available
ERROR: bluez-1.0-r0 do_fetch: Fetcher failure for URL: 'https://sources.debian.org/patches/bluez/5.55-3.1/'. The fetch command returned success for url https://sources.debian.org/patches/bluez/5.55-3.1/ but /work/build/downloads/sources.debian.org.patches.bluez.5.55-3.1. doesn't exist?!
ERROR: bluez-1.0-r0 do_fetch: Fetcher failure for URL: 'https://sources.debian.org/patches/bluez/5.55-3.1/'. Unable to fetch URL from any source.
ERROR: Logfile of failure stored in: /work/build/tmp/work/cip-core-buster-armhf/bluez/1.0-r0/temp/log.do_fetch.917
ERROR: Task (/repo/recipes-core/bluez/bluez.bb:do_fetch) failed with exit code '1'
NOTE: Tasks Summary: Attempted 20 tasks of which 19 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
  /repo/recipes-core/bluez/bluez.bb:do_fetch
Summary: There was 1 WARNING message shown.
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
builder@05bb7ca9f421:/work/build$


Is there anything to change in the .bb file

# This software is a part of ISAR.
# Copyright (c) Siemens AG, 2019
#
# SPDX-License-Identifier: MIT

inherit dpkg

# This will fetch and unpack the sources from upstream Debian.
# Note that you can also choose a version but have to pick the exact one
# i.e. "apt://bluez".
# You may also select the desired release in case multiples are configured and
# you do want to pin the version: "apt://hello/buster".
#SRC_URI = "apt://bluez-5.50"
SRC_URI = "https://sources.debian.org/patches/bluez/5.55-3.1/"





MAINTAINER = "isar-users <isar-...@googlegroups.com>"
#CHANGELOG_V = "<orig-version>+isar"

DEB_BUILD_OPTIONS += "${@ 'nocheck' if d.getVar('ISAR_CROSS_COMPILE', True) == '1' else '' }"

do_prepare_build() {
deb_add_changelog
# this seems to be a build dep missing in the upstream control file
if ! grep texinfo ${S}/debian/control; then
sed -i -e 's/Build-Depends:/Build-Depends: texinfo,/g' ${S}/debian/control
fi


can you give any file to need to do exact changes for including the bluez

Regards

Uladzimir Bely

unread,
Nov 11, 2022, 2:52:50 AM11/11/22
to Balasubramanian Sundaram, isar-...@googlegroups.com
In mail from пятница, 11 ноября 2022 г. 10:32:18 +03 user 'Balasubramanian
Sundaram' via isar-users wrote:
> Hi Jan
>
> *Still It is not getting included in isar*
>
> WARNING: bluez-1.0-r0 do_fetch: Failed to fetch URL
> https://sources.debian.org/patches/bluez/5.55-3.1/, attempting MIRRORS if
> available
> ERROR: bluez-1.0-r0 do_fetch: Fetcher failure for URL: '
> https://sources.debian.org/patches/bluez/5.55-3.1/'. The fetch command
> returned success for url https://sources.debian.org/patches/bluez/5.55-3.1/
> but /work/build/downloads/sources.debian.org.patches.bluez.5.55-3.1.
> doesn't exist?!
> ERROR: bluez-1.0-r0 do_fetch: Fetcher failure for URL: '
> https://sources.debian.org/patches/bluez/5.55-3.1/'. Unable to fetch URL
> from any source.
> ERROR: Logfile of failure stored in:
> /work/build/tmp/work/cip-core-buster-armhf/bluez/1.0-r0/temp/log.do_fetch.91
> 7 ERROR: Task (/repo/recipes-core/bluez/bluez.bb:do_fetch) failed with exit
> code '1'
> NOTE: Tasks Summary: Attempted 20 tasks of which 19 didn't need to be rerun
> and 1 failed.
>
> Summary: 1 task failed:
> /repo/recipes-core/bluez/bluez.bb:do_fetch
> Summary: There was 1 WARNING message shown.
> Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
> builder@05bb7ca9f421:/work/build$
>
>
> *Is there anything to change in the .bb file*
>
> # This software is a part of ISAR.
> # Copyright (c) Siemens AG, 2019
> #
> # SPDX-License-Identifier: MIT
>
> inherit dpkg
>
> # This will fetch and unpack the sources from upstream Debian.
> # Note that you can also choose a version but have to pick the exact one
> # i.e. "apt://bluez".
> # You may also select the desired release in case multiples are configured
> and
> # you do want to pin the version: "apt://hello/buster".
> #SRC_URI = "apt://bluez-5.50"
> SRC_URI = "https://sources.debian.org/patches/bluez/5.55-3.1/"
>
>
>
>
>
> MAINTAINER = "isar-users <isar-...@googlegroups.com>"
> #CHANGELOG_V = "<orig-version>+isar"
>
> DEB_BUILD_OPTIONS += "${@ 'nocheck' if d.getVar('ISAR_CROSS_COMPILE', True)
> == '1' else '' }"
>
> do_prepare_build() {
> deb_add_changelog
> # this seems to be a build dep missing in the upstream control file
> if ! grep texinfo ${S}/debian/control; then
> sed -i -e 's/Build-Depends:/Build-Depends: texinfo,/g' ${S}/debian/control
> fi
> }
>
>
> can you give any file to need to do exact changes for including the bluez
>

You don't need your own recipe for blues (except you want to add some stuff
and maintain it by your own).

Just install Debian package via IMAGE_PREINSTALL in your `local.conf` (or in
image recipe or somewhere else, depending on your project structure).
Reply all
Reply to author
Forward
0 new messages