public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
From: Henning Schild <henning.schild@siemens.com>
To: Anton Mikanovich <amikan@ilbers.de>
Cc: isar-users@googlegroups.com
Subject: Re: [PATCH] linux-module: Obtain package names without version
Date: Tue, 6 Apr 2021 09:10:51 +0200	[thread overview]
Message-ID: <20210406091051.35578318@md1za8fc.ad001.siemens.net> (raw)
In-Reply-To: <20210402120545.65324-1-amikan@ilbers.de>

Am Fri,  2 Apr 2021 15:05:45 +0300
schrieb Anton Mikanovich <amikan@ilbers.de>:

> Add filtering out of package version for KERNEL_DEP variable.
> This allow to obtain package names even in case of version syntax:
> Depends: linux-headers-5.7.0-3-armmp (= 5.7.17-1)
> 
> This will fix following error when building example-module-armmp for
> debian-bullseye:
> 
> dpkg-query: error: --listfiles needs a valid package name but
> '(=' is not: illegal package name in specifier '(=': must start with
> an alphanumeric character
> 
> Signed-off-by: Anton Mikanovich <amikan@ilbers.de>
> ---
>  meta/recipes-kernel/linux-module/module.inc | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/meta/recipes-kernel/linux-module/module.inc
> b/meta/recipes-kernel/linux-module/module.inc index 47b9b71..419786b
> 100644 --- a/meta/recipes-kernel/linux-module/module.inc
> +++ b/meta/recipes-kernel/linux-module/module.inc
> @@ -41,7 +41,8 @@ dpkg_runbuild_prepend() {
>          # Debian kernels install that folder indirectly via a
> dependency. KERNEL_DEP=$(dpkg -s --root=${BUILDCHROOT_DIR}
> linux-headers-${KERNEL_NAME} | \ grep "^Depends: .*linux-headers-" | \

dpkg-query -W -f '${Depends}' linux-headers-${KERNEL_NAME}

> -                     sed 's/.*\(linux-headers-[^,]*\).*/\1/')
> +                     sed 's/.*\(linux-headers-[^,]*\).*/\1/' | \
> +                     sed 's/([^)]*)//g')
>          export KDIR=$(dpkg -L --root=${BUILDCHROOT_DIR}
> ${KERNEL_DEP} | \ grep "/lib/modules/.*/build")
>      fi


  reply	other threads:[~2021-04-06  7:14 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-02 12:05 Anton Mikanovich
2021-04-06  7:10 ` Henning Schild [this message]
2021-04-08  9:48   ` Anton Mikanovich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210406091051.35578318@md1za8fc.ad001.siemens.net \
    --to=henning.schild@siemens.com \
    --cc=amikan@ilbers.de \
    --cc=isar-users@googlegroups.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox