<?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>1150</bug_id>
          
          <creation_ts>2011-06-09 08:54:44 +0000</creation_ts>
          <short_desc>realpath issue when building QT components</short_desc>
          <delta_ts>2011-06-09 14:07:33 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>6</classification_id>
          <classification>Yocto Project Subprojects</classification>
          <product>Pseudo</product>
          <component>pseudo</component>
          <version>1.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></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>master</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Mark Hatle">mark.hatle</reporter>
          <assigned_to name="Mark Hatle">mark.hatle</assigned_to>
          <cc>sgw</cc>
    
    <cc>yp.pseudo.watcher</cc>
    
    <cc>yp.watcher</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>14227</commentid>
    <comment_count>0</comment_count>
    <who name="Mark Hatle">mark.hatle</who>
    <bug_when>2011-06-09 08:54:44 +0000</bug_when>
    <thetext>The following is from an email exchange, taken with permission from the original report by Jani Uusi-Rantala:


I&apos;m working for a research project within Nokia where we&apos;re (among other
things) experimenting with the fruits of Yocto project. When
cross-compiling QtMobility within Yocto I noticed an interesting issue
with Pseudo. It was obvious that QDir::canonicalPath wasn&apos;t working as
expected which after further digging led to realisation that realpath
isn&apos;t working for the realpath(path, NULL) case at least. This broke all
of Qt&apos;s tools (qmake, moc) in certain use cases. I verified this to be
problem when PSEUDO_DISABLED is 1 with the attached trivial test case.


Compiling and running the test normally without pseudo (works fine):

uusirant@4fiw00588:~/tmp$ gcc test_realpath.c -o test_realpath
uusirant@4fiw00588:~/tmp$ ./test_realpath
Returned path: /usr
Expected.....: /usr


----
Here&apos;s how it looks with PSEUDO_DISABLED=0 (works fine):

uusirant@4fiw00588:~/tmp$ PSEUDO_DISABLED=0 ../pseudo-install/bin/pseudo
pseudo: Warning: PSEUDO_PREFIX unset, defaulting to
/home/uusirant/pseudo-install.
root@4fiw00588:~/tmp# gcc test_realpath.c -o test_realpath
root@4fiw00588:~/tmp# ./test_realpath
Returned path: /usr
Expected.....: /usr

---
And here&apos;s with PSEUDO_DISABLED=1 (realpath fails with EINVAL):

uusirant@4fiw00588:~/tmp$ PSEUDO_DISABLED=1 ../pseudo-install/bin/pseudo
pseudo: Warning: PSEUDO_PREFIX unset, defaulting to
/home/uusirant/pseudo-install.
uusirant@4fiw00588:~/tmp$ gcc test_realpath.c -o test_realpath
uusirant@4fiw00588:~/tmp$ ./test_realpath
realpath: Invalid argument</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14228</commentid>
    <comment_count>1</comment_count>
    <who name="Mark Hatle">mark.hatle</who>
    <bug_when>2011-06-09 08:55:36 +0000</bug_when>
    <thetext>Upstream author has confirmed the issue and a patch is pending.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14229</commentid>
    <comment_count>2</comment_count>
    <who name="Mark Hatle">mark.hatle</who>
    <bug_when>2011-06-09 09:43:47 +0000</bug_when>
    <thetext>Fixed:

http://git.yoctoproject.org/cgit/cgit.cgi/pseudo/commit/?id=c2f7c5ad8ef0f9c94a2a8382c109c8c6e16c8b18

Also verified by the original submitter.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>