<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>188397</bug_id>
          
          <creation_ts>2007-08-10 19:50 0000</creation_ts>
          <short_desc>~x11-libs/qt-4.3.{0:0-r2,1} sed fails on *.pc files</short_desc>
          <delta_ts>2007-08-12 19:29:43 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Ebuilds</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>galtgendo@o2.pl</reporter>
          <assigned_to>qt@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>galtgendo@o2.pl</who>
            <bug_when>2007-08-10 19:50:10 0000</bug_when>
            <thetext>Ebuild issue may affect previous too.
The issue:
sed: nie można odczytać /var/tmp/portage/x11-libs/qt-4.3.0-r2/image///usr/lib/qt
4/*.pc: Nie ma takiego pliku ani katalogu (twice) at the end of install phase
caused by:
sed -i -e &quot;s:${S}/lib:${QTLIBDIR}:g&quot; ${D}/${QTLIBDIR}/*.pc
sed -i -e &quot;s:${S}/bin:${QTBINDIR}:g&quot; ${D}/${QTLIBDIR}/*.pc
failing -- this causes
QtAssistantClient.pc
QtDBus.pc
QtTest.pc
QtXml.pc
to have /var/tmp/portage related content.
TEXTREL is something different:
I checked my portage logs and unless it&apos;s gcc-4.2.0 related, it didn&apos;t affect qt-4.3.0, but it does affect qt-4.3.0-r2 and qt-4.3.1
TEXTREL usr/lib/qt4/libQtScript.so.4.3.0
TEXTREL usr/lib/qt4/libQtOpenGL.so.4.3.0
TEXTREL usr/lib/qt4/libQtDBus.so.4.3.0

logs:
qt-4.3.0:20070707-011126
qt-4.3.0-r2:20070804-054613 
qt-4.3.1:20070810-033039

There were a few of 
warning: dereferencing type-punned pointer will break strict-aliasing rules
but those are probably harmless.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jakub@gentoo.org</who>
            <bug_when>2007-08-10 19:59:04 0000</bug_when>
            <thetext>Please, file a separate bug for the textrels, completely unrelated.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>galtgendo@o2.pl</who>
            <bug_when>2007-08-10 20:39:01 0000</bug_when>
            <thetext>Well, sed part probably affects at least all of 4.3.0, if not some of the earlier, cause I don&apos;t think this is a recent change in directory structure/*.pc.in</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>caleb@gentoo.org</who>
            <bug_when>2007-08-12 15:34:44 0000</bug_when>
            <thetext>do you have a proposal for a fix?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>arfrever@gentoo.org</who>
            <bug_when>2007-08-12 18:20:02 0000</bug_when>
            <thetext>(In reply to comment #3)
&gt; do you have a proposal for a fix?

Lines 246-253 of qt-4.3.1.ebuild:
-------------------------------------------------------------------------------
    sed -i -e &quot;s:${S}/lib:${QTLIBDIR}:g&quot; ${D}/${QTLIBDIR}/*.pc

    # pkgconfig files refer to WORKDIR/bin as the moc and uic locations.  Fix:
    sed -i -e &quot;s:${S}/bin:${QTBINDIR}:g&quot; ${D}/${QTLIBDIR}/*.pc

    # Move .pc files into the pkgconfig directory
    dodir ${QTPCDIR}
    mv ${D}/${QTLIBDIR}/pkgconfig/*.pc ${D}/${QTPCDIR}
-------------------------------------------------------------------------------

My proposal is to replace all &apos;${D}/${QTLIBDIR}/*.pc&apos; with &apos;${D}/${QTLIBDIR}/pkgconfig/*.pc&apos;.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>caleb@gentoo.org</who>
            <bug_when>2007-08-12 19:29:43 0000</bug_when>
            <thetext>gotcha - should be fixed now.  thanks for the report.</thetext>
          </long_desc>
      
    </bug>

</bugzilla>