All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alexandre Belloni <alexandre.belloni@bootlin.com>
To: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Cc: "openembedded-core@lists.openembedded.org"
	<openembedded-core@lists.openembedded.org>
Subject: Re: [OE-core] [PATCH] recipes, classes: Avoid adding extra whitespace to PACKAGESPLITFUNCS
Date: Thu, 12 Jan 2023 20:54:00 +0100	[thread overview]
Message-ID: <Y8BlWNDwloIpjRNH@mail.local> (raw)
In-Reply-To: <5cbe7b87dc2345daad1cc4cdd5bcece8@axis.com>

This was under testing for a while and I couldn't get a successful
build until today. I've now sent it to Richard.

On 12/01/2023 14:57:48+0000, Peter Kjellerstedt wrote:
> *ping*
> 
> //Peter
> 
> > -----Original Message-----
> > From: openembedded-core@lists.openembedded.org <openembedded-
> > core@lists.openembedded.org> On Behalf Of Peter Kjellerstedt
> > Sent: den 5 januari 2023 22:06
> > To: openembedded-core@lists.openembedded.org
> > Subject: [OE-core] [PATCH] recipes, classes: Avoid adding extra whitespace
> > to PACKAGESPLITFUNCS
> > 
> > This is a follow-up to commit 846ff49465 to remove the extra whitespace
> > that is no longer needed after converting :append and :prepend to += and
> > =+.
> > 
> > Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
> > ---
> >  meta/classes-recipe/kernel-module-split.bbclass               | 2 +-
> >  meta/classes-recipe/kernel.bbclass                            | 2 +-
> >  meta/classes-recipe/systemd.bbclass                           | 2 +-
> >  meta/classes-recipe/update-alternatives.bbclass               | 2 +-
> >  meta/classes-recipe/update-rc.d.bbclass                       | 4 ++--
> >  .../wpa-supplicant/wpa-supplicant_2.10.bb                     | 2 +-
> >  meta/recipes-devtools/perl/perl_5.36.0.bb                     | 2 +-
> >  meta/recipes-graphics/mesa/mesa.inc                           | 2 +-
> >  .../gstreamer/gstreamer1.0-plugins-license.inc                | 2 +-
> >  .../gstreamer/gstreamer1.0-plugins-packaging.inc              | 4 ++--
> >  meta/recipes-support/libevent/libevent_2.1.12.bb              | 2 +-
> >  11 files changed, 13 insertions(+), 13 deletions(-)
> > 
> > diff --git a/meta/classes-recipe/kernel-module-split.bbclass
> > b/meta/classes-recipe/kernel-module-split.bbclass
> > index 4943717487..50882c31a7 100644
> > --- a/meta/classes-recipe/kernel-module-split.bbclass
> > +++ b/meta/classes-recipe/kernel-module-split.bbclass
> > @@ -35,7 +35,7 @@ do_install:append() {
> >  }
> > 
> >  KERNEL_SPLIT_MODULES ?= "1"
> > -PACKAGESPLITFUNCS =+ "split_kernel_module_packages "
> > +PACKAGESPLITFUNCS =+ "split_kernel_module_packages"
> > 
> >  KERNEL_MODULES_META_PACKAGE ?= "${@ d.getVar("KERNEL_PACKAGE_NAME") or
> > "kernel" }-modules"
> > 
> > diff --git a/meta/classes-recipe/kernel.bbclass b/meta/classes-
> > recipe/kernel.bbclass
> > index c36632b0a7..bd3b6471c6 100644
> > --- a/meta/classes-recipe/kernel.bbclass
> > +++ b/meta/classes-recipe/kernel.bbclass
> > @@ -705,7 +705,7 @@ pkg_postinst:${KERNEL_PACKAGE_NAME}-base () {
> >  	fi
> >  }
> > 
> > -PACKAGESPLITFUNCS =+ "split_kernel_packages "
> > +PACKAGESPLITFUNCS =+ "split_kernel_packages"
> > 
> >  python split_kernel_packages () {
> >      do_split_packages(d, root='${nonarch_base_libdir}/firmware',
> > file_regex=r'^(.*)\.(bin|fw|cis|csp|dsp)$',
> > output_pattern='${KERNEL_PACKAGE_NAME}-firmware-%s', description='Firmware
> > for %s', recursive=True, extra_depends='')
> > diff --git a/meta/classes-recipe/systemd.bbclass b/meta/classes-
> > recipe/systemd.bbclass
> > index ae98043d29..f9c92e6c2a 100644
> > --- a/meta/classes-recipe/systemd.bbclass
> > +++ b/meta/classes-recipe/systemd.bbclass
> > @@ -205,7 +205,7 @@ python systemd_populate_packages() {
> >          systemd_check_services()
> >  }
> > 
> > -PACKAGESPLITFUNCS =+ "systemd_populate_packages "
> > +PACKAGESPLITFUNCS =+ "systemd_populate_packages"
> > 
> >  python rm_systemd_unitdir (){
> >      import shutil
> > diff --git a/meta/classes-recipe/update-alternatives.bbclass
> > b/meta/classes-recipe/update-alternatives.bbclass
> > index ec81763c89..55e0b954d6 100644
> > --- a/meta/classes-recipe/update-alternatives.bbclass
> > +++ b/meta/classes-recipe/update-alternatives.bbclass
> > @@ -265,7 +265,7 @@ def update_alternatives_alt_targets(d, pkg):
> > 
> >      return updates
> > 
> > -PACKAGESPLITFUNCS =+ "populate_packages_updatealternatives "
> > +PACKAGESPLITFUNCS =+ "populate_packages_updatealternatives"
> > 
> >  python populate_packages_updatealternatives () {
> >      if not update_alternatives_enabled(d):
> > diff --git a/meta/classes-recipe/update-rc.d.bbclass b/meta/classes-
> > recipe/update-rc.d.bbclass
> > index a61d2c62ab..a19e704741 100644
> > --- a/meta/classes-recipe/update-rc.d.bbclass
> > +++ b/meta/classes-recipe/update-rc.d.bbclass
> > @@ -68,8 +68,8 @@ python __anonymous() {
> >      update_rc_after_parse(d)
> >  }
> > 
> > -PACKAGESPLITFUNCS =+ "${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit',
> > 'populate_packages_updatercd ', '', d)}"
> > -PACKAGESPLITFUNCS:remove:class-nativesdk = "populate_packages_updatercd "
> > +PACKAGESPLITFUNCS =+ "${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit',
> > 'populate_packages_updatercd', '', d)}"
> > +PACKAGESPLITFUNCS:remove:class-nativesdk = "populate_packages_updatercd"
> > 
> >  populate_packages_updatercd[vardeps] += "updatercd_prerm updatercd_postrm
> > updatercd_postinst"
> >  populate_packages_updatercd[vardepsexclude] += "OVERRIDES"
> > diff --git a/meta/recipes-connectivity/wpa-supplicant/wpa-
> > supplicant_2.10.bb b/meta/recipes-connectivity/wpa-supplicant/wpa-
> > supplicant_2.10.bb
> > index 254cfd3f0c..46604045da 100644
> > --- a/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant_2.10.bb
> > +++ b/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant_2.10.bb
> > @@ -134,4 +134,4 @@ python split_wpa_supplicant_libs () {
> >          d.setVar('RRECOMMENDS:' + pn + '-plugins', '
> > '.join(split_packages))
> >          d.appendVar('RRECOMMENDS:' + pn + '-dbg', ' ' + '
> > '.join(split_dbg_packages))
> >  }
> > -PACKAGESPLITFUNCS += "split_wpa_supplicant_libs "
> > +PACKAGESPLITFUNCS += "split_wpa_supplicant_libs"
> > diff --git a/meta/recipes-devtools/perl/perl_5.36.0.bb b/meta/recipes-
> > devtools/perl/perl_5.36.0.bb
> > index 3458e6a5b0..4d8a919d1e 100644
> > --- a/meta/recipes-devtools/perl/perl_5.36.0.bb
> > +++ b/meta/recipes-devtools/perl/perl_5.36.0.bb
> > @@ -302,7 +302,7 @@ ALTERNATIVE_LINK_NAME[Thread.3] =
> > "${mandir}/man3/Thread.3"
> >  ALLOW_EMPTY:${PN}-modules = "1"
> >  PACKAGES += "${PN}-modules "
> > 
> > -PACKAGESPLITFUNCS =+ "split_perl_packages "
> > +PACKAGESPLITFUNCS =+ "split_perl_packages"
> > 
> >  python split_perl_packages () {
> >      libdir = d.expand('${libdir}/perl5/${PV}')
> > diff --git a/meta/recipes-graphics/mesa/mesa.inc b/meta/recipes-
> > graphics/mesa/mesa.inc
> > index 2535dd403d..77aa97069a 100644
> > --- a/meta/recipes-graphics/mesa/mesa.inc
> > +++ b/meta/recipes-graphics/mesa/mesa.inc
> > @@ -291,7 +291,7 @@ python mesa_populate_packages() {
> >      do_split_packages(d, pipe_drivers_root, r'^pipe_(.*)\.so$', 'mesa-
> > driver-pipe-%s', 'Mesa %s pipe driver', extra_depends='')
> >  }
> > 
> > -PACKAGESPLITFUNCS =+ "mesa_populate_packages "
> > +PACKAGESPLITFUNCS =+ "mesa_populate_packages"
> > 
> >  PACKAGES_DYNAMIC += "^mesa-driver-.*"
> >  PACKAGES_DYNAMIC:class-native = "^mesa-driver-.*-native"
> > diff --git a/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-
> > license.inc b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-
> > license.inc
> > index 03595e7d32..8b1c001111 100644
> > --- a/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-license.inc
> > +++ b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-license.inc
> > @@ -1,7 +1,7 @@
> >  # This .inc file contains functionality for automatically setting
> >  # the the license of all plugins according to the GSTREAMER_GPL.
> > 
> > -PACKAGESPLITFUNCS += " set_gstreamer_license "
> > +PACKAGESPLITFUNCS += "set_gstreamer_license"
> > 
> >  python set_gstreamer_license () {
> >      import oe.utils
> > diff --git a/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-
> > packaging.inc b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-
> > packaging.inc
> > index 837d5a1a62..d77aeed8a2 100644
> > --- a/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-packaging.inc
> > +++ b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-packaging.inc
> > @@ -9,8 +9,8 @@
> >  # Dynamically generate packages for all enabled plugins
> >  PACKAGES_DYNAMIC = "^${PN}-.* ^libgst.*"
> > 
> > -PACKAGESPLITFUNCS =+ " split_gstreamer10_packages "
> > -PACKAGESPLITFUNCS += " set_gstreamer10_metapkg_rdepends "
> > +PACKAGESPLITFUNCS =+ "split_gstreamer10_packages"
> > +PACKAGESPLITFUNCS += "set_gstreamer10_metapkg_rdepends"
> > 
> >  python split_gstreamer10_packages () {
> >      gst_libdir = d.expand('${libdir}/gstreamer-1.0')
> > diff --git a/meta/recipes-support/libevent/libevent_2.1.12.bb
> > b/meta/recipes-support/libevent/libevent_2.1.12.bb
> > index 88b81fd56e..25388fb4d7 100644
> > --- a/meta/recipes-support/libevent/libevent_2.1.12.bb
> > +++ b/meta/recipes-support/libevent/libevent_2.1.12.bb
> > @@ -41,7 +41,7 @@ PACKAGES_DYNAMIC = "^${PN}-.*$"
> >  python split_libevent_libs () {
> >      do_split_packages(d, '${libdir}', r'^libevent_([a-z]*)-.*\.so\..*',
> > '${PN}-%s', '${SUMMARY} (%s)', prepend=True, allow_links=True)
> >  }
> > -PACKAGESPLITFUNCS =+ "split_libevent_libs "
> > +PACKAGESPLITFUNCS =+ "split_libevent_libs"
> > 
> >  BBCLASSEXTEND = "native nativesdk"
> > 

> 
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#175798): https://lists.openembedded.org/g/openembedded-core/message/175798
> Mute This Topic: https://lists.openembedded.org/mt/96081294/3617179
> Group Owner: openembedded-core+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [alexandre.belloni@bootlin.com]
> -=-=-=-=-=-=-=-=-=-=-=-
> 


-- 
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com


      reply	other threads:[~2023-01-12 19:54 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <173785AB93CB2417.1583@lists.openembedded.org>
2023-01-12 14:57 ` [OE-core] [PATCH] recipes, classes: Avoid adding extra whitespace to PACKAGESPLITFUNCS Peter Kjellerstedt
2023-01-12 19:54   ` Alexandre Belloni [this message]

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=Y8BlWNDwloIpjRNH@mail.local \
    --to=alexandre.belloni@bootlin.com \
    --cc=openembedded-core@lists.openembedded.org \
    --cc=peter.kjellerstedt@axis.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 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.