All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jaipaul Cheernam <jaipaul.cheernam@est.tech>
To: openembedded-core@lists.openembedded.org
Cc: Jaipaul Cheernam <jaipaul.cheernam@est.tech>
Subject: [PATCH 1/5] classes-global: fix trailing whitespace
Date: Thu, 13 Aug 2026 21:16:11 +0200	[thread overview]
Message-ID: <20260813191615.34122-2-jaipaul.cheernam@est.tech> (raw)
In-Reply-To: <20260813191615.34122-1-jaipaul.cheernam@est.tech>

Fix trailing whitespace in classes-global bbclass files to resolve
bitbake parsing warnings.

Signed-off-by: Jaipaul Cheernam <jaipaul.cheernam@est.tech>
---
 meta/classes-global/base.bbclass        |  2 +-
 meta/classes-global/buildstats.bbclass  | 10 +++++-----
 meta/classes-global/debian.bbclass      |  2 +-
 meta/classes-global/devshell.bbclass    |  2 +-
 meta/classes-global/logging.bbclass     |  4 ++--
 meta/classes-global/packagedata.bbclass |  4 ++--
 meta/classes-global/sanity.bbclass      | 16 ++++++++--------
 7 files changed, 20 insertions(+), 20 deletions(-)

diff --git a/meta/classes-global/base.bbclass b/meta/classes-global/base.bbclass
index 5177179d57..5b4996a1e0 100644
--- a/meta/classes-global/base.bbclass
+++ b/meta/classes-global/base.bbclass
@@ -346,7 +346,7 @@ python base_eventhandler() {
         #
         # If we have multiple providers of virtual/X and a PREFERRED_PROVIDER_virtual/X is set
         # skip parsing for all the other providers which will mean they get uninstalled from the
-        # sysroot since they're now "unreachable". This makes switching virtual/kernel work in 
+        # sysroot since they're now "unreachable". This makes switching virtual/kernel work in
         # particular.
         #
         pn = d.getVar('PN')
diff --git a/meta/classes-global/buildstats.bbclass b/meta/classes-global/buildstats.bbclass
index fe64789e10..b97f2fd939 100644
--- a/meta/classes-global/buildstats.bbclass
+++ b/meta/classes-global/buildstats.bbclass
@@ -24,11 +24,11 @@ def get_process_cputime(pid):
     import resource
     with open("/proc/%d/stat" % pid, "r") as f:
         fields = f.readline().rstrip().split()
-    stats = { 
+    stats = {
         'utime'  : fields[13],
-        'stime'  : fields[14], 
-        'cutime' : fields[15], 
-        'cstime' : fields[16],  
+        'stime'  : fields[14],
+        'cutime' : fields[15],
+        'cstime' : fields[16],
     }
     iostats = {}
     if os.path.isfile("/proc/%d/io" % pid):
@@ -161,7 +161,7 @@ def write_host_data(logfile, e, d, type):
             bb.warn("buildstats: Collecting host data failed. BB_HEARTBEAT_EVENT interval not enough to run the specified commands. Increase value of BB_HEARTBEAT_EVENT in conf/local.conf.")
             return
 
-    # set the environment variables 
+    # set the environment variables
     path = d.getVar("PATH")
     opath = d.getVar("BB_ORIGENV", False).getVar("PATH")
     ospath = os.environ['PATH']
diff --git a/meta/classes-global/debian.bbclass b/meta/classes-global/debian.bbclass
index e2a129d028..aa866f523d 100644
--- a/meta/classes-global/debian.bbclass
+++ b/meta/classes-global/debian.bbclass
@@ -127,7 +127,7 @@ python debian_package_name_hook () {
             add_rprovides(orig_pkg, d)
 
     # reversed sort is needed when some package is substring of another
-    # ie in ncurses we get without reverse sort: 
+    # ie in ncurses we get without reverse sort:
     # DEBUG: LIBNAMES: pkgname libtic5 devname libtic pkg ncurses-libtic orig_pkg ncurses-libtic debian_pn None newpkg libtic5
     # and later
     # DEBUG: LIBNAMES: pkgname libtic5 devname libtic pkg ncurses-libticw orig_pkg ncurses-libtic debian_pn None newpkg libticw
diff --git a/meta/classes-global/devshell.bbclass b/meta/classes-global/devshell.bbclass
index 4c23049cf0..1c9eb25696 100644
--- a/meta/classes-global/devshell.bbclass
+++ b/meta/classes-global/devshell.bbclass
@@ -39,7 +39,7 @@ python () {
        # can't manipulate the environment and variables here yet (see YOCTO #4795)
        d.setVarFlag("do_devshell", "manualfakeroot", "1")
        d.delVarFlag("do_devshell", "fakeroot")
-} 
+}
 
 def pydevshell(d):
 
diff --git a/meta/classes-global/logging.bbclass b/meta/classes-global/logging.bbclass
index 136f1e1733..d5ff58fa2f 100644
--- a/meta/classes-global/logging.bbclass
+++ b/meta/classes-global/logging.bbclass
@@ -22,7 +22,7 @@ bbplain() {
 	fi
 }
 
-# Notify the user of a noteworthy condition. 
+# Notify the user of a noteworthy condition.
 # Output: logs
 bbnote() {
 	if [ -p ${LOGFIFO} ] ; then
@@ -99,7 +99,7 @@ bbdebug() {
 	if [ $# -lt 2 ]; then
 		bbfatal "$USAGE"
 	fi
-	
+
 	# Strip off the debug level and ensure it is an integer
 	DBGLVL=$1; shift
 	NONDIGITS=$(echo "$DBGLVL" | tr -d "[:digit:]")
diff --git a/meta/classes-global/packagedata.bbclass b/meta/classes-global/packagedata.bbclass
index 9f72c01d77..748cbe18bf 100644
--- a/meta/classes-global/packagedata.bbclass
+++ b/meta/classes-global/packagedata.bbclass
@@ -8,8 +8,8 @@ python read_subpackage_metadata () {
     import oe.packagedata
 
     vars = {
-        "PN" : d.getVar('PN'), 
-        "PE" : d.getVar('PE'), 
+        "PN" : d.getVar('PN'),
+        "PE" : d.getVar('PE'),
         "PV" : d.getVar('PV'),
         "PR" : d.getVar('PR'),
     }
diff --git a/meta/classes-global/sanity.bbclass b/meta/classes-global/sanity.bbclass
index 9514e7d218..05906d0db2 100644
--- a/meta/classes-global/sanity.bbclass
+++ b/meta/classes-global/sanity.bbclass
@@ -11,7 +11,7 @@
 SANITY_REQUIRED_UTILITIES ?= "patch diffstat git bzip2 tar \
     gzip gawk chrpath wget cpio perl file which"
 
-# Functions added to this variable MUST throw a NotImplementedError exception unless 
+# Functions added to this variable MUST throw a NotImplementedError exception unless
 # they successfully changed the config version in the config file. Exceptions
 # are used since exec_func doesn't handle return values.
 BBLAYERS_CONF_UPDATE_FUNCS += " \
@@ -28,13 +28,13 @@ python oecore_update_localconf() {
     current_conf  = d.getVar('CONF_VERSION')
     conf_version =  d.getVar('LOCALCONF_VERSION')
 
-    failmsg = """Your version of local.conf was generated from an older/newer version of 
-local.conf.sample and there have been updates made to this file. Please compare the two 
+    failmsg = """Your version of local.conf was generated from an older/newer version of
+local.conf.sample and there have been updates made to this file. Please compare the two
 files and merge any changes before continuing.
 
 Matching the version numbers will remove this message.
 
-\"${SANITY_DIFF_TOOL} conf/local.conf ${SANITY_LOCALCONF_SAMPLE}\" 
+\"${SANITY_DIFF_TOOL} conf/local.conf ${SANITY_LOCALCONF_SAMPLE}\"
 
 is a good way to visualise the changes."""
     failmsg = d.expand(failmsg)
@@ -48,13 +48,13 @@ python oecore_update_siteconf() {
     current_sconf = d.getVar('SCONF_VERSION')
     sconf_version = d.getVar('SITE_CONF_VERSION')
 
-    failmsg = """Your version of site.conf was generated from an older version of 
-site.conf.sample and there have been updates made to this file. Please compare the two 
+    failmsg = """Your version of site.conf was generated from an older version of
+site.conf.sample and there have been updates made to this file. Please compare the two
 files and merge any changes before continuing.
 
 Matching the version numbers will remove this message.
 
-\"${SANITY_DIFF_TOOL} conf/site.conf ${SANITY_SITECONF_SAMPLE}\" 
+\"${SANITY_DIFF_TOOL} conf/site.conf ${SANITY_SITECONF_SAMPLE}\"
 
 is a good way to visualise the changes."""
     failmsg = d.expand(failmsg)
@@ -71,7 +71,7 @@ python oecore_update_bblayers() {
 
     failmsg = """Your version of bblayers.conf has the wrong LCONF_VERSION (has ${LCONF_VERSION}, expecting ${LAYER_CONF_VERSION}).
 Please compare your file against bblayers.conf.sample and merge any changes before continuing.
-"${SANITY_DIFF_TOOL} conf/bblayers.conf ${SANITY_BBLAYERCONF_SAMPLE}" 
+"${SANITY_DIFF_TOOL} conf/bblayers.conf ${SANITY_BBLAYERCONF_SAMPLE}"
 
 is a good way to visualise the changes."""
     failmsg = d.expand(failmsg)


  reply	other threads:[~2026-08-13 19:16 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-13 19:16 [PATCH 0/5] meta: fix trailing whitespace across classes, conf and recipes Jaipaul Cheernam
2026-08-13 19:16 ` Jaipaul Cheernam [this message]
2026-08-13 19:16 ` [PATCH 2/5] classes-recipe: fix trailing whitespace Jaipaul Cheernam
2026-08-13 19:16 ` [PATCH 3/5] classes: " Jaipaul Cheernam
2026-08-13 19:16 ` [PATCH 4/5] conf: " Jaipaul Cheernam
2026-08-13 19:16 ` [PATCH 5/5] recipes: " Jaipaul Cheernam
2026-08-15  7:05 ` [OE-core] [PATCH 0/5] meta: fix trailing whitespace across classes, conf and recipes Mathieu Dubois-Briand
2026-08-15  9:45   ` Richard Purdie
2026-08-15 14:55     ` Jaipaul Cheernam

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=20260813191615.34122-2-jaipaul.cheernam@est.tech \
    --to=jaipaul.cheernam@est.tech \
    --cc=openembedded-core@lists.openembedded.org \
    /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.