Em 21-06-2015 08:53, Fernando de Oliveira escreveu:
Em 20-06-2015 16:54, Bruce Dubbs escreveu:
Fernando de Oliveira wrote:
2. Fix "removal of references to the build directory"
Not 100% sure about point 2:
This part here is problematic.
sed -e "s:$PWD/qtbase:$QT5PREFIX/lib/qt5:g" \
-i $QT5PREFIX/lib/qt5/mkspecs/modules/qt_lib_bootstrap_private.pri &&
This cannot be correct, because there is no $QT5PREFIX/lib/qt5.
However, the old command, worked fine before, and should also work fine now:
find $QT5PREFIX -name qt_lib_bootstrap_private.pri \
-exec sed -i -e "s:$PWD/qtbase:/$QT5PREFIX/lib/:g" {} \; &&
where I have replaced QT5DIR by QT5PREFIX.
find $QT5PREFIX/lib/lib{qgsttools_p,Qt5*}.prl -exec sed -i -r \
'/^QMAKE_PRL_BUILD_DIR/d;s/(QMAKE_PRL_LIBS =).*/\1/' {} \;
The old form of this one is
find $QT5PREFIX -name \*.prl \
-exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' {} \; &&
which I prefer.
*Didn't test* commands above.
*Tested* in a DESTDIR build what follows.
and
for file in 3Support CLucene Core DBus Declarative DesignerComponents \
Designer Gui Help Multimedia Network OpenGL Script \
ScriptTools Sql Svg Test UiTools WebKit XmlPatterns Xml
phonon; do
[ -e $QT4PREFIX/lib/libQt${file}.prl ] &&
sed -r '/^QMAKE_PRL_BUILD_DIR/d;s/(QMAKE_PRL_LIBS =).*/\1/' \
-i $QT4PREFIX/lib/libQt${file}.prl
done
unset fileA\
Here, too, I prefer the older one, for the perl command, which I still
need to understand, so, more educational:
for file in `basename -a -s .prl $QT4PREFIX/lib/lib*.prl`; do
sed -r -e '/^QMAKE_PRL_BUILD_DIR/d' \
-e 's/(QMAKE_PRL_LIBS =).*/\1/' \
-i $QT4PREFIX/lib/${file}.prl
perl -pi -e "s, -L$PWD/?\S+,,g" $QT4PREFIX/lib/pkgconfig/${file##lib}.pc
done
However, I could not see any effect of the perl command.
$ for file in `basename -a -s .prl lib/lib*.prl`; do
> perl -pi -e "s, -L$PWD/?\S+,,g" lib/pkgconfig/${file##lib}.pc
> done; unset file
$ diff -Naur lib.orig lib/
$
--
[]s,
Fernando
--
http://lists.linuxfromscratch.org/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page