<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>13732</bug_id>
          
          <creation_ts>2020-01-10 21:07:02 +0000</creation_ts>
          <short_desc>eSDK: getting error &quot;xmlcatalog: not found&quot; installing SDK</short_desc>
          <delta_ts>2020-10-05 08:13:26 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>Meta-yocto</product>
          <component>meta-yocto</component>
          <version>3.0.1</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>Backport to 3.0.2</status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>3.2 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>anon2313</reporter>
          <assigned_to name="Chen Qi">Qi.Chen</assigned_to>
          <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>randy.macleod</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>86021</commentid>
    <comment_count>0</comment_count>
    <who name="">anon2313</who>
    <bug_when>2020-01-10 21:07:02 +0000</bug_when>
    <thetext>I receive the same failure trying to install the eSDK as described in this email.
https://www.mail-archive.com/yocto@yoctoproject.org/msg45415.html

From that email:
Exception: subprocess.CalledProcessError: Command 
&apos;/workdir/sdk/rpi/tmp/sysroots/x86_64/usr/bin/postinst-docbook-xsl-stylesheets-native-xmlcatalog&apos;
 returned non-zero exit status 127.

Subprocess output:
/workdir/sdk/rpi/tmp/sysroots/x86_64/usr/bin/postinst-docbook-xsl-stylesheets-native-xmlcatalog:
 5: 
/workdir/sdk/rpi/tmp/sysroots/x86_64/usr/bin/postinst-docbook-xsl-stylesheets-native-xmlcatalog:
 xmlcatalog: not found
/workdir/sdk/rpi/tmp/sysroots/x86_64/usr/bin/postinst-docbook-xsl-stylesheets-native-xmlcatalog:
 8: 
/workdir/sdk/rpi/tmp/sysroots/x86_64/usr/bin/postinst-docbook-xsl-stylesheets-native-xmlcatalog:
 xmlcatalog: not found

When I try to install the eSDK built by populate_sdk_ext and install it I get the same error.

In the shell I was using to run the install script it shows that it does know how to run xmlcatalog.

i7-lab-sff:/swdev/XXX/dev/mesa$ which xmlcatalog
/swdev/XXX/dev/simple_sdk/tmp/sysroots/x86_64/usr/bin/xmlcatalog

I am currently trying to build a stock Poky image and eSDK to see if the errors comes from the layers I am using.  I don&apos;t recall having this issue with the regular SDK.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86024</commentid>
    <comment_count>1</comment_count>
    <who name="">anon2313</who>
    <bug_when>2020-01-10 23:12:04 +0000</bug_when>
    <thetext>I haven&apos;t tracked it down.  The only layer I am using is the one that defines our distro.  It does tweak the standard poky distro by changing the name.  I&apos;ll try to provide more information when I have a chance.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86025</commentid>
    <comment_count>2</comment_count>
    <who name="">anon2313</who>
    <bug_when>2020-01-11 14:29:41 +0000</bug_when>
    <thetext>Also the problem doesn&apos;t happen with every eSDK that I&apos;ve tried building using my layer.  So far it has been just one of the images that is loosely based of off core-image-x11. Building and installing an eSDK for core-image-x11 doesn&apos;t have this error.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86042</commentid>
    <comment_count>3</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2020-01-16 15:39:41 +0000</bug_when>
    <thetext>Do you have extended documentation enabled as a DISTRO_FEATURE?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86167</commentid>
    <comment_count>4</comment_count>
    <who name="">anon2313</who>
    <bug_when>2020-01-29 21:38:03 +0000</bug_when>
    <thetext>No, I tweaked POKY_DEFAULT_DISTRO_FEATURES. 

# Override standard features in poky based distros
POKY_DEFAULT_DISTRO_FEATURES = &quot;largefile opengl multiarch x11&quot;

Then it looks like it resolves to:

DISTRO_FEATURES=&quot;acl alsa argp bluetooth ext2 ipv4 ipv6 largefile pcmcia usbgadget usbhost wifi xattr nfs zeroconf pci 3g nfc x11 largefile opengl multiarch x11 pulseaudio sysvinit gobject-introspection-data&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86184</commentid>
    <comment_count>5</comment_count>
    <who name="">anon2313</who>
    <bug_when>2020-01-30 14:16:54 +0000</bug_when>
    <thetext>It seems to be an intermittent issue for me. I started to use the buildhistory log.  When I first tried building the eSDK it failed.  I made some minor changes to one of my applications.  Then I built the SDK for that and it was fine.  Then I built the eSDK and it worked.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86185</commentid>
    <comment_count>6</comment_count>
    <who name="">anon2313</who>
    <bug_when>2020-01-30 14:38:21 +0000</bug_when>
    <thetext>My apologies.  I confused myself because I ran into an error with building the eSDK. Even when the eSDK can be built it has the &quot;xmlcatalog: not found&quot; error.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88255</commentid>
    <comment_count>7</comment_count>
    <who name="Chen Qi">Qi.Chen</who>
    <bug_when>2020-09-28 18:38:11 +0000</bug_when>
    <thetext>This has been fixed by the following commit.

commit fdee2d49fc9139ff7e0b5a8b1b6476224540ca57
Author: Alexander Kanavin &lt;alex.kanavin@gmail.com&gt;
Date:   Mon Jun 8 09:46:59 2020 +0200

    build-sysroots: add sysroot paths with native binaries to PATH
    
    staging_populate_sysroot_dir() collects postinsts from the sysroot
    and executes them. These postinsts, in turn, may call binaries that
    are only available from the sysroot. This works fine with recipe-specific
    sysroots, as all necessary paths are already in PATH, but breaks down
    in this recipe which imitates the old global sysroot way but doesn&apos;t adjust
    the PATH to include the binary paths from global sysroot.
    
    To reproduce the failure:
    
    $ bitbake docbook-xml-dtd4-native
    $ bitbake -c build_native_sysroot build-sysroots</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>