Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 188397 - ~x11-libs/qt-4.3.{0:0-r2,1} sed fails on *.pc files
Summary: ~x11-libs/qt-4.3.{0:0-r2,1} sed fails on *.pc files
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Qt Bug Alias
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-10 19:50 UTC by Rafał Mużyło
Modified: 2007-08-12 19:29 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rafał Mużyło 2007-08-10 19:50:10 UTC
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 "s:${S}/lib:${QTLIBDIR}:g" ${D}/${QTLIBDIR}/*.pc
sed -i -e "s:${S}/bin:${QTBINDIR}:g" ${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's gcc-4.2.0 related, it didn'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.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-08-10 19:59:04 UTC
Please, file a separate bug for the textrels, completely unrelated.
Comment 2 Rafał Mużyło 2007-08-10 20:39:01 UTC
Well, sed part probably affects at least all of 4.3.0, if not some of the earlier, cause I don't think this is a recent change in directory structure/*.pc.in
Comment 3 Caleb Tennis (RETIRED) gentoo-dev 2007-08-12 15:34:44 UTC
do you have a proposal for a fix?
Comment 4 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2007-08-12 18:20:02 UTC
(In reply to comment #3)
> do you have a proposal for a fix?

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

    # pkgconfig files refer to WORKDIR/bin as the moc and uic locations.  Fix:
    sed -i -e "s:${S}/bin:${QTBINDIR}:g" ${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 '${D}/${QTLIBDIR}/*.pc' with '${D}/${QTLIBDIR}/pkgconfig/*.pc'.
Comment 5 Caleb Tennis (RETIRED) gentoo-dev 2007-08-12 19:29:43 UTC
gotcha - should be fixed now.  thanks for the report.