bbclass: fix spelling mistakes
PATCH 2/5 bbclass: fix spelling mistakes
Fix some spelling mistakes in bbclass files
--- meta/classes/allarch.bbclass | 2 +- meta/classes/archiver.bbclass | 2 +- meta/classes/buildhistory.bbclass | 2 +- meta/classes/chrpath.bbclass | 4 ++-- meta/classes/crosssdk.bbclass | 2 +- meta/classes/module-base.bbclass | 2 +- meta/classes/package.bbclass | 4 ++-- meta/classes/package_deb.bbclass | 2 +- meta/classes/siteinfo.bbclass | 2 +- meta/classes/spdx.bbclass | 2 +- meta/classes/tinderclient.bbclass | 2 +- meta/classes/update-alternatives.bbclass | 2 +- 12 files changed, 14 insertions(+), 14 deletions(-)
meta/classes/allarch.bbclass +1 -1
@@ -1,5 +1,5 @@ # -# This class is used for architecture independent recipes/data files (usally scripts) +# This class is used for architecture independent recipes/data files (usually scripts) # # Expand STAGING_DIR_HOST since for cross-canadian/native/nativesdk, this will
meta/classes/archiver.bbclass +1 -1
@@ -254,7 +254,7 @@ python do_unpack_and_patch() { ar_outdir = d.getVar('ARCHIVER_OUTDIR', True) d.setVar('WORKDIR', ar_outdir) - # The changed 'WORKDIR' also casued 'B' changed, create dir 'B' for the + # The changed 'WORKDIR' also caused 'B' changed, create dir 'B' for the # possibly requiring of the following tasks (such as some recipes's # do_patch required 'B' existed). bb.utils.mkdirhier(d.getVar('B', True))
meta/classes/buildhistory.bbclass +1 -1
@@ -24,7 +24,7 @@ sstate_install[vardepsexclude] += "buildhistory_emit_pkghistory" SSTATEPOSTINSTFUNCS[vardepvalueexclude] .= "| buildhistory_emit_pkghistory" # -# Write out metadata about this package for comparision when writing future packages +# Write out metadata about this package for comparison when writing future packages # python buildhistory_emit_pkghistory() { if not d.getVar('BB_CURRENTTASK', True) in ['packagedata', 'packagedata_setscene']:
meta/classes/chrpath.bbclass +2 -2
@@ -6,7 +6,7 @@ def process_file_linux(cmd, fpath, rootdir, baseprefix, tmpdir, d): p = sub.Popen([cmd, '-l', fpath],stdout=sub.PIPE,stderr=sub.PIPE) err, out = p.communicate() - # If returned succesfully, process stderr for results + # If returned successfully, process stderr for results if p.returncode != 0: return
@@ -45,7 +45,7 @@ def process_file_darwin(cmd, fpath, rootdir, baseprefix, tmpdir, d): p = sub.Popen([d.expand("${HOST_PREFIX}otool"), '-L', fpath],stdout=sub.PIPE,stderr=sub.PIPE) err, out = p.communicate() - # If returned succesfully, process stderr for results + # If returned successfully, process stderr for results if p.returncode != 0: return for l in err.split("\n"):
meta/classes/crosssdk.bbclass +1 -1
@@ -30,7 +30,7 @@ baselib = "lib" do_populate_sysroot[stamp-extra-info] = "" do_packagedata[stamp-extra-info] = "" -# Need to force this to ensure consitency accross architectures +# Need to force this to ensure consitency across architectures EXTRA_OECONF_GCC_FLOAT = "" USE_NLS = "no"
meta/classes/module-base.bbclass +1 -1
@@ -19,7 +19,7 @@ KERNEL_OBJECT_SUFFIX = ".ko" PACKAGE_ARCH = "${MACHINE_ARCH}" # Function to ensure the kernel scripts are created. Expected to -# be called before do_compile. See module.bbclass for an exmaple. +# be called before do_compile. See module.bbclass for an example. do_make_scripts() { unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS make CC="${KERNEL_CC}" LD="${KERNEL_LD}" AR="${KERNEL_AR}" \
meta/classes/package.bbclass +2 -2
@@ -1513,7 +1513,7 @@ python package_do_shlibs() { rpath = [] p = sub.Popen([d.expand("${HOST_PREFIX}otool"), '-l', file],stdout=sub.PIPE,stderr=sub.PIPE) err, out = p.communicate() - # If returned succesfully, process stderr for results + # If returned successfully, process stderr for results if p.returncode == 0: for l in err.split("\n"): l = l.strip()
@@ -1522,7 +1522,7 @@ python package_do_shlibs() { p = sub.Popen([d.expand("${HOST_PREFIX}otool"), '-L', file],stdout=sub.PIPE,stderr=sub.PIPE) err, out = p.communicate() - # If returned succesfully, process stderr for results + # If returned successfully, process stderr for results if p.returncode == 0: for l in err.split("\n"): l = l.strip()
meta/classes/package_deb.bbclass +1 -1
@@ -21,7 +21,7 @@ APT_ARGS = "${@['', '--no-install-recommends'][d.getVar("NO_RECOMMENDATIONS", Tr # INSTALL_BASEARCH_DEB - install base architecutre # INSTALL_ARCHS_DEB - list of available archs # INSTALL_PACKAGES_NORMAL_DEB - packages to be installed -# INSTALL_PACKAGES_ATTEMPTONLY_DEB - packages attemped to be installed only +# INSTALL_PACKAGES_ATTEMPTONLY_DEB - packages attempted to be installed only # INSTALL_PACKAGES_LINGUAS_DEB - additional packages for uclibc # INSTALL_TASK_DEB - task name
meta/classes/siteinfo.bbclass +1 -1
@@ -8,7 +8,7 @@ # # 'what' can be one of # * target: Returns the target name ("<arch>-<os>") -# * endianess: Return "be" for big endian targets, "le" for little endian +# * endianness: Return "be" for big endian targets, "le" for little endian # * bits: Returns the bit size of the target, either "32" or "64" # * libc: Returns the name of the c library used by the target #
meta/classes/spdx.bbclass +1 -1
@@ -232,7 +232,7 @@ def run_fossology(foss_command, full_spdx): # Package info package_info = {} if full_spdx: - # All mandatory, only one occurance + # All mandatory, only one occurrence package_info['PackageCopyrightText'] = re.findall('PackageCopyrightText: (.*?</text>)', foss_output, re.S)[0] package_info['PackageLicenseDeclared'] = re.findall('PackageLicenseDeclared: (.*)', foss_output)[0] package_info['PackageLicenseConcluded'] = re.findall('PackageLicenseConcluded: (.*)', foss_output)[0]
meta/classes/tinderclient.bbclass +1 -1
@@ -142,7 +142,7 @@ def tinder_send_http(d, status, _log): selector = url + "/xml/build_status.pl" - # now post it - in chunks of 10.000 charachters + # now post it - in chunks of 10.000 characters new_log = _log while len(new_log) > 0: content_type, body = tinder_format_http_post(d,status,new_log[0:18000])
meta/classes/update-alternatives.bbclass +1 -1
@@ -61,7 +61,7 @@ ALTERNATIVE_PRIORITY = "10" # We need special processing for vardeps because it can not work on -# modified flag values. So we agregate the flags into a new variable +# modified flag values. So we aggregate the flags into a new variable # and include that vairable in the set. UPDALTVARS = "ALTERNATIVE ALTERNATIVE_LINK_NAME ALTERNATIVE_TARGET ALTERNATIVE_PRIORITY"
Signature · 1 line
2.4.0
Hi Maxin,
I think the warning below " bb.warn" is incorrect, it should be " dirname" instead of " patch", see below:
http://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/meta/classes/spdx.bbclass (master)
def get_ver_code(dirname):
chksums = []
for f_dir, f in list_files(dirname):
hash = hash_file(os.path.join(dirname, f_dir, f)) if not hash is None:
chksums.append(hash)
else:
bb.warn("SPDX: Could not hash file: " + patch) <<< dirname
Could you please have a look at this as well?
Regrads
//Sona
Quoted 230 lines
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Maxin B. John
Sent: den 5 november 2015 16:48
To: [email protected]
Subject: [OE-core] [PATCH 2/5] bbclass: fix spelling mistakesFix some spelling mistakes in bbclass files
Signed-off-by Maxin B. John <[email protected]>--- meta/classes/allarch.bbclass | 2 +- meta/classes/archiver.bbclass | 2 +- meta/classes/buildhistory.bbclass | 2 +- meta/classes/chrpath.bbclass | 4 ++-- meta/classes/crosssdk.bbclass | 2 +- meta/classes/module-base.bbclass | 2 +- meta/classes/package.bbclass | 4 ++-- meta/classes/package_deb.bbclass | 2 +- meta/classes/siteinfo.bbclass | 2 +- meta/classes/spdx.bbclass | 2 +- meta/classes/tinderclient.bbclass | 2 +- meta/classes/update-alternatives.bbclass | 2 +- 12 files changed, 14 insertions(+), 14 deletions(-)meta/classes/allarch.bbclass index renamed from meta/classes/allarch.bbclass +0
-02fea7c0..3826643 100644
meta/classes/allarch.bbclass +2
-1@@ -1,5 +1,5 @@ # -# This class is used for architecture independent recipes/data files (usally scripts) +# This class is used for architecture independent recipes/data files +(usually scripts) # # Expand STAGING_DIR_HOST since for cross-canadian/native/nativesdk, thiswill diff --git a/meta/classes/archiver.bbclass b/meta/classes/archiver.bbclass index 41a552c..f4a34df 100644
meta/classes/archiver.bbclass +2
-1@@ -254,7 +254,7 @@ python do_unpack_and_patch() { ar_outdir = d.getVar('ARCHIVER_OUTDIR', True) d.setVar('WORKDIR', ar_outdir) - # The changed 'WORKDIR' also casued 'B' changed, create dir 'B' for the + # The changed 'WORKDIR' also caused 'B' changed, create dir 'B' for + the # possibly requiring of the following tasks (such as some recipes's # do_patch required 'B' existed). bb.utils.mkdirhier(d.getVar('B', True)) diff --gita/meta/classes/buildhistory.bbclass b/meta/classes/buildhistory.bbclass index 4db0441..c3da773 100644
meta/classes/buildhistory.bbclass +0
-0@@ -24,7 +24,7 @@ sstate_install[vardepsexclude] +="
buildhistory_emit_pkghistory"
SSTATEPOSTINSTFUNCS[vardepvalueexclude] .= "|buildhistory_emit_pkghistory"#
-# Write out metadata about this package for comparision when writing future packagesmeta/classes/buildhistory.bbclass +2
-0+# Write out metadata about this package for comparison when writing +future packages # python buildhistory_emit_pkghistory() { if not d.getVar('BB_CURRENTTASK', True) in ['packagedata','
packagedata_setscene']:meta/classes/chrpath.bbclass index renamed from meta/classes/chrpath.bbclass +0
-0e9160af..9c68855 100644
meta/classes/chrpath.bbclass +0
-0@@ -6,7 +6,7 @@ def process_file_linux(cmd, fpath, rootdir, baseprefix,tmpdir, d):
p =
sub.Popen([cmd, '-l', fpath],stdout=sub.PIPE,stderr=sub.PIPE)err, out =p.communicate()meta/classes/chrpath.bbclass +1
-1- # If returned succesfully, process stderr for results + # If returned successfully, process stderr for results if p.returncode != 0: return@@ -45,7 +45,7 @@ def process_file_darwin(cmd, fpath, rootdir, baseprefix,tmpdir, d):
p = sub.Popen([d.expand("${HOST_PREFIX}otool"), '-L',fpath],stdout=sub.PIPE,stderr=sub.PIPE)
err, out =p.communicate()meta/classes/chrpath.bbclass +1
-1- # If returned succesfully, process stderr for results + # If returned successfully, process stderr for results if p.returncode != 0: return for l in err.split("\n"):meta/classes/crosssdk.bbclass +1
-1@@ -30,7 +30,7 @@ baselib = "lib" do_populate_sysroot[stamp-extra-info] = "" do_packagedata[stamp-extra-info] = "" -# Need to force this to ensure consitency accross architectures +# Need to force this to ensure consitency across architectures EXTRA_OECONF_GCC_FLOAT = "" USE_NLS = "no"meta/classes/module- renamed from meta/classes/module-base.bbclass +0
-0base.bbclass
index 8be26c4..cdff0a5 100644meta/classes/module-base.bbclass +0
-0@@ -19,7 +19,7 @@ KERNEL_OBJECT_SUFFIX = ".ko" PACKAGE_ARCH = "${MACHINE_ARCH}" # Function to ensure the kernel scripts are created. Expected to -# be calledbefore
do_compile. See module.bbclass for an exmaple.meta/classes/module-base.bbclass +1
-0+# be called before do_compile. See module.bbclass for an example. do_make_scripts() { unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS make CC="${KERNEL_CC}" LD="${KERNEL_LD}" AR="${KERNEL_AR}" \meta/classes/package.bbclass +1
-1@@ -1513,7 +1513,7 @@ python package_do_shlibs() { rpath = [] p = sub.Popen([d.expand("${HOST_PREFIX}otool"), '-l', file],stdout=sub.PIPE,stderr=sub.PIPE) err, out = p.communicate() - # If returned succesfully, process stderr for results + # If returned successfully, process stderr for results if p.returncode == 0: for l in err.split("\n"):l = l.strip()meta/classes/package.bbclass +1
-1@@ -1522,7 +1522,7 @@ python package_do_shlibs() { p = sub.Popen([d.expand("${HOST_PREFIX}otool"), '-L', file],stdout=sub.PIPE,stderr=sub.PIPE) err, out = p.communicate() - # If returned succesfully, process stderr for results + # If returned successfully, process stderr for results if p.returncode == 0: for l in err.split("\n"):l = l.strip()meta/classes/package_deb.bbclass +0
-0@@ -21,7 +21,7 @@ APT_ARGS = "${@['', '--no-install-recommends'][d.getVar("NO_RECOMMENDATIONS", Tr #
INSTALL_BASEARCH_DEB- install base architecutre #INSTALL_ARCHS_DEB- list of available archs #INSTALL_PACKAGES_NORMAL_DEB- packages to be installed -#INSTALL_PACKAGES_ATTEMPTONLY_DEB- packages attemped to be installed only
+#INSTALL_PACKAGES_ATTEMPTONLY_DEB- packages attempted to be installed
+only
#INSTALL_PACKAGES_LINGUAS_DEB- additional packages for uclibc #INSTALL_TASK_DEB- task namemeta/classes/siteinfo.bbclass index renamed from meta/classes/siteinfo.bbclass +0
-09f6eac4..b715b6c 100644
meta/classes/siteinfo.bbclass +0
-0@@ -8,7 +8,7 @@ # # 'what' can be one of # * target: Returns the target name ("<arch>-<os>") -# * endianess: Return"be" for big endian targets, "le" for little endian
meta/classes/siteinfo.bbclass +2
-0+# * endianness: Return "be" for big endian targets, "le" for little +endian # * bits: Returns the bit size of the target, either "32" or "64" # * libc: Returns the name of the c library used by the target # diff --gita/meta/classes/spdx.bbclass b/meta/classes/spdx.bbclass index 454c53e..0c92765 100644
meta/classes/spdx.bbclass +1
-1@@ -232,7 +232,7 @@ def run_fossology(foss_command, full_spdx): # Package info package_info = {} if full_spdx: - # All mandatory, only one occurance + # All mandatory, only one occurrence package_info['PackageCopyrightText'] =
re.findall('PackageCopyrightText: (.*?</text>)', foss_output, re.S)[0]
package_info['PackageLicenseDeclared'] =re.findall('PackageLicenseDeclared: (.*)', foss_output)[0]
package_info['PackageLicenseConcluded'] =re.findall('PackageLicenseConcluded: (.*)', foss_output)[0] diff --git a/meta/classes/tinderclient.bbclass b/meta/classes/tinderclient.bbclass index 6984efd..2bc75fc 100644meta/classes/tinderclient.bbclass +1
-1@@ -142,7 +142,7 @@ def tinder_send_http(d, status, _log): selector = url + "/xml/build_status.pl" - # now post it - in chunks of 10.000 charachters + # now post it - in chunks of 10.000 characters new_log = _log while len(new_log) > 0: content_type, body =
tinder_format_http_post(d,status,new_log[0:18000])meta/classes/update- renamed from meta/classes/update-alternatives.bbclass +0
-0alternatives.bbclass
index a3c1657..825cc88 100644meta/classes/update-alternatives.bbclass +0
-0@@ -61,7 +61,7 @@ ALTERNATIVE_PRIORITY = "10" # We need special processing for vardeps because it can not work on -#modified flag values. So we agregate the flags into a new variable +# modified flag values. So we aggregate the flags into a new variable
# and include that vairable in the set. UPDALTVARS = "ALTERNATIVE ALTERNATIVE_LINK_NAME ALTERNATIVE_TARGET ALTERNATIVE_PRIORITY"--
2.4.0--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core
Hi Sona,
Quoted 14 lines · Sona Sarmadi
Hi Maxin,
I think the warning below " bb.warn" is incorrect, it should be " dirname" instead of " patch", see below:
http://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/meta/classes/spdx.bbclass (master)def
get_ver_code(dirname):
chksums = []
forf_dir, f inlist_files(dirname):
hash =hash_file(os.path.join(dirname, f_dir, f))if not hash is None:
chksums.append(hash)
else:
bb.warn("SPDX: Could not hash file: " + patch)<<< dirname
Quoted 1 line
Could you please have a look at this as well?
Sure, Thanks for spotting it :)
Quoted 12 lines
Regrads
//SonaQuoted 9 lines
-----Original Message-----
From: [email protected]
# We need special processing for vardeps because it can not work on -#
modified flag values. So we agregate the flags into a new variable +# modified flag values. So we aggregate the flags into a new variable# and include that vairable in the set. UPDALTVARS = "ALTERNATIVE ALTERNATIVE_LINK_NAME ALTERNATIVE_TARGET ALTERNATIVE_PRIORITY"
<snip>
Best Regards,
Maxin