<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Build error after changing PACKAGE_CLASSES to package_debERROR: linux-imx-4.14.62-r0 do_package_write_deb: Error executing a python function in exec_python_func() autogenerated: in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Build-error-after-changing-PACKAGE-CLASSES-to-package-debERROR/m-p/889235#M134557</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Srinivasan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV class=""&gt;&lt;P&gt;&lt;CODE&gt;package_deb&lt;/CODE&gt; is where the packaging machinery for deb packages is stored, it's not something you'd inherit in a recipe but should be listed in &lt;CODE&gt;PACKAGE_CLASSES&lt;/CODE&gt;.&lt;/P&gt;&lt;P&gt;When you put a &lt;CODE&gt;.deb&lt;/CODE&gt; in a &lt;CODE&gt;SRC_URI&lt;/CODE&gt; the fetcher will try to unpack it so you can access the contents: the assumption is that you're going to repack the contents as a native Yocto recipe.&lt;/P&gt;&lt;P&gt;If that's what you want to do, then first you'll need to fix the unpack logic (in &lt;CODE&gt;bitbake/lib/bb/fetch2/__init__.py&lt;/CODE&gt;) to handle &lt;CODE&gt;.deb&lt;/CODE&gt;s with xz-compressed data. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The alternative would be to use their deb directly but I don't recommend that as it's likely the dependencies don't match. The best long-term solution would be to build it from source directly instead of attempting to use a package for another distro.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Jan 2019 18:20:28 GMT</pubDate>
    <dc:creator>Bio_TICFSL</dc:creator>
    <dc:date>2019-01-22T18:20:28Z</dc:date>
    <item>
      <title>Build error after changing PACKAGE_CLASSES to package_debERROR: linux-imx-4.14.62-r0 do_package_write_deb: Error executing a python function in exec_python_func() autogenerated:</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Build-error-after-changing-PACKAGE-CLASSES-to-package-debERROR/m-p/889234#M134556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear NXP Community experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am seeing the below error after changing the package_classes from "rpm" to "deb" as below, when I am trying to add freescale meta layers to my custom yocto distribution&lt;BR /&gt; &lt;BR /&gt;Could you please do the needful by providing some inputs in resolving the below issue?&lt;/P&gt;&lt;P&gt;Logs:&lt;BR /&gt;WARNING: Host distribution "ubuntu-18.04" has not been validated with this version of the build system; you may possibly experience unexpected failures. It is recommended that you use a tested distribution.&lt;BR /&gt;Parsing recipes: 100% |#############################################################################################################################################################################################################################################| Time: 0:00:15&lt;BR /&gt;Parsing of 2304 .bb files complete (0 cached, 2304 parsed). 3210 targets, 385 skipped, 6 masked, 0 errors.&lt;BR /&gt;NOTE: Resolving any missing task queue dependencies&lt;BR /&gt; &lt;BR /&gt;Build Configuration:&lt;BR /&gt;BB_VERSION = "1.38.0"&lt;BR /&gt;BUILD_SYS = "x86_64-linux"&lt;BR /&gt;NATIVELSBSTRING = "ubuntu-18.04"&lt;BR /&gt;TARGET_SYS = "aarch64-poky-linux"&lt;BR /&gt;MACHINE = "imx8mmevk"&lt;BR /&gt;DISTRO = "CustomOS"&lt;BR /&gt;DISTRO_VERSION = "1.0.8"&lt;BR /&gt;TUNE_FEATURES = "aarch64"&lt;BR /&gt;TARGET_FPU = ""&lt;BR /&gt;meta-traktor-imx8 = "master:525bab5e576c2f0f1242cd1e6b546859c856441a"&lt;BR /&gt;meta-traktor = "sumo:b91788da6bd52485faa85bb19bc7a9a1ddf2ee5d"&lt;BR /&gt;meta-qt5 = "qt-5.11:ff6127ddd318d422f595295d1c189a86b3032873"&lt;BR /&gt;meta-customos = "sumo:8a14b16e4049051e29009e67afa63bfac5ddb26e"&lt;BR /&gt;meta-freescale = "master:525bab5e576c2f0f1242cd1e6b546859c856441a"&lt;BR /&gt;meta &lt;BR /&gt;meta-poky = "sumo:623b77885051174d0e05198843e739110977bd18"&lt;BR /&gt;meta-oe &lt;BR /&gt;meta-python &lt;BR /&gt;meta-networking = "sumo:8760facba1bceb299b3613b8955621ddaa3d4c3f"&lt;BR /&gt;meta-bsp &lt;BR /&gt;meta-sdk = "master:525bab5e576c2f0f1242cd1e6b546859c856441a"&lt;BR /&gt; &lt;BR /&gt;Initialising tasks: 100% |##########################################################################################################################################################################################################################################| Time: 0:00:05&lt;BR /&gt;NOTE: Executing SetScene Tasks&lt;BR /&gt;NOTE: Executing RunQueue Tasks&lt;BR /&gt;ERROR: linux-imx-4.14.62-r0 do_package_write_deb: Error executing a python function in exec_python_func() autogenerated:&lt;BR /&gt; &lt;BR /&gt;The stack trace of python calls that resulted in this exception/failure was:&lt;BR /&gt;File: 'exec_python_func() autogenerated', lineno: 2, function: &amp;lt;module&amp;gt;&lt;BR /&gt; 0001:&lt;BR /&gt; *** 0002:do_package_deb(d)&lt;BR /&gt; 0003:&lt;BR /&gt;File: '/home/srinishanmugam/custombuild_test/customos/sources/poky/meta/classes/package_deb.bbclass', lineno: 102, function: do_package_deb&lt;BR /&gt; 0098:&lt;BR /&gt; 0099: os.chdir(oldcwd)&lt;BR /&gt; 0100:&lt;BR /&gt; 0101: if error:&lt;BR /&gt; *** 0102: raise error&lt;BR /&gt; 0103:}&lt;BR /&gt; 0104:do_package_deb[vardeps] += "deb_write_pkg"&lt;BR /&gt; 0105:do_package_deb[vardepsexclude] = "BB_NUMBER_THREADS"&lt;BR /&gt; 0106:&lt;BR /&gt;Exception: subprocess.CalledProcessError: Command 'PATH="/home/srinishanmugam/custombuild_test/customos/build/tmp/sysroots-uninative/x86_64-linux/usr/bin:/home/srinishanmugam/custombuild_test/customos/sources/poky/scripts:/home/srinishanmugam/custombuild_test/customos/build/tmp/work/imx8mmevk-poky-linux/linux-imx/4.14.62-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux:/home/srinishanmugam/custombuild_test/customos/build/tmp/work/imx8mmevk-poky-linux/linux-imx/4.14.62-r0/recipe-sysroot/usr/bin/crossscripts:/home/srinishanmugam/custombuild_test/customos/build/tmp/work/imx8mmevk-poky-linux/linux-imx/4.14.62-r0/recipe-sysroot-native/usr/sbin:/home/srinishanmugam/custombuild_test/customos/build/tmp/work/imx8mmevk-poky-linux/linux-imx/4.14.62-r0/recipe-sysroot-native/usr/bin:/home/srinishanmugam/custombuild_test/customos/build/tmp/work/imx8mmevk-poky-linux/linux-imx/4.14.62-r0/recipe-sysroot-native/sbin:/home/srinishanmugam/custombuild_test/customos/build/tmp/work/imx8mmevk-poky-linux/linux-imx/4.14.62-r0/recipe-sysroot-native/bin:/home/srinishanmugam/custombuild_test/customos/sources/poky/bitbake/bin:/home/srinishanmugam/custombuild_test/customos/build/tmp/hosttools" dpkg-deb -b /home/srinishanmugam/custombuild_test/customos/build/tmp/work/imx8mmevk-poky-linux/linux-imx/4.14.62-r0/packages-split/kernel-module-snd-usbmidi-lib-4.14.62-imx_4.14.62_1.0.0_beta+g1907fe4c3287 /home/srinishanmugam/custombuild_test/customos/build/tmp/work/imx8mmevk-poky-linux/linux-imx/4.14.62-r0/deploy-debs/imx8mmevk' returned non-zero exit status 2.&lt;BR /&gt; &lt;BR /&gt;Subprocess output:&lt;BR /&gt;dpkg-deb: error: package name has characters that aren't lowercase alphanums or '-+.'&lt;BR /&gt; &lt;BR /&gt;ERROR: linux-imx-4.14.62-r0 do_package_write_deb: Function failed: do_package_deb&lt;BR /&gt;ERROR: Logfile of failure stored in: /home/srinishanmugam/custombuild_test/customos/build/tmp/work/imx8mmevk-poky-linux/linux-imx/4.14.62-r0/temp/log.do_package_write_deb.31568&lt;BR /&gt;ERROR: Task (/home/srinishanmugam/custombuild_test/customos/sources/meta-fsl-bsp-release/imx/meta-bsp/recipes-kernel/linux/linux-imx_4.14.62.bb:do_package_write_deb) failed with exit code '1'&lt;BR /&gt;NOTE: Tasks Summary: Attempted 3614 tasks of which 3104 didn't need to be rerun and 1 failed.&lt;BR /&gt; &lt;BR /&gt;Summary: 1 task failed:&lt;BR /&gt; /home/srinishanmugam/custombuild_test/customos/sources/meta-fsl-bsp-release/imx/meta-bsp/recipes-kernel/linux/linux-imx_4.14.62.bb:do_package_write_deb&lt;/P&gt;&lt;DIV class="" style="color: #222222; background-color: #ffffff; font-size: small;"&gt;&lt;SPAN style="font-family: 'comic sans ms', sans-serif;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="" style="color: #222222; background-color: #ffffff; font-size: small;"&gt;&lt;SPAN style="font-family: 'comic sans ms', sans-serif;"&gt;Many Thanks in advance&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jan 2019 13:43:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Build-error-after-changing-PACKAGE-CLASSES-to-package-debERROR/m-p/889234#M134556</guid>
      <dc:creator>srini_shanmugam</dc:creator>
      <dc:date>2019-01-21T13:43:29Z</dc:date>
    </item>
    <item>
      <title>Re: Build error after changing PACKAGE_CLASSES to package_debERROR: linux-imx-4.14.62-r0 do_package_write_deb: Error executing a python function in exec_python_func() autogenerated:</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Build-error-after-changing-PACKAGE-CLASSES-to-package-debERROR/m-p/889235#M134557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Srinivasan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV class=""&gt;&lt;P&gt;&lt;CODE&gt;package_deb&lt;/CODE&gt; is where the packaging machinery for deb packages is stored, it's not something you'd inherit in a recipe but should be listed in &lt;CODE&gt;PACKAGE_CLASSES&lt;/CODE&gt;.&lt;/P&gt;&lt;P&gt;When you put a &lt;CODE&gt;.deb&lt;/CODE&gt; in a &lt;CODE&gt;SRC_URI&lt;/CODE&gt; the fetcher will try to unpack it so you can access the contents: the assumption is that you're going to repack the contents as a native Yocto recipe.&lt;/P&gt;&lt;P&gt;If that's what you want to do, then first you'll need to fix the unpack logic (in &lt;CODE&gt;bitbake/lib/bb/fetch2/__init__.py&lt;/CODE&gt;) to handle &lt;CODE&gt;.deb&lt;/CODE&gt;s with xz-compressed data. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The alternative would be to use their deb directly but I don't recommend that as it's likely the dependencies don't match. The best long-term solution would be to build it from source directly instead of attempting to use a package for another distro.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jan 2019 18:20:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Build-error-after-changing-PACKAGE-CLASSES-to-package-debERROR/m-p/889235#M134557</guid>
      <dc:creator>Bio_TICFSL</dc:creator>
      <dc:date>2019-01-22T18:20:28Z</dc:date>
    </item>
  </channel>
</rss>

