I wanted to apply some patches on qt-3.3.8b so I compiled qt myself using the build script in official DVD. But I found there is some error in the script and can't compile qt correctly.
After reading some docs about BLFS, I fixed script and can compile qt in /tmp dir.
Below is my patch
Code:
--- /mnt/dvd/source/l/qt/qt.SlackBuild 2008-02-29 07:51:27.000000000 +0800
+++ /home/build/qt/qt.SlackBuild 2008-05-28 20:27:31.000000000 +0800
@@ -42,19 +42,22 @@
SLKCFLAGS="-O2"
fi
-#cd $TMP
+cd $TMP
# I have *many* times tried building this package in /tmp, and it always
# ends up with a "/tmp" directory embedded in some wrong place. Hopefully
# the next time I see this comment I'll remember that and not make the
# same mistake again just for the sake of doing things "right" (but having
# the package come out wrong...)
#rm -rf ${PKGNAM}-${VERSION}
-cd /usr/lib
+#cd /usr/lib
rm -rf qt qt-3.*
tar xjvf $CWD/qt-x11-free-$VERSION.tar.bz2 || exit 1
mv qt-x11-free-$VERSION qt
cd qt
+export LD_LIBRARY_PATH=$PWD/lib:$LD_LIBRARY_PATH
+export PATH=$PWD/bin:$PATH
+
if [ $ARCH = "i486" ]; then
zcat $CWD/qt.x86.cflags.diff.gz | patch -p1 || exit 1
fi
@@ -62,6 +65,24 @@
zcat $CWD/qt-x11.diff.gz | patch -p1 || exit 1
zcat $CWD/qt.mysql.h.diff.gz | patch -p1 || exit 1
# Make sure ownerships and permissions are sane:
chown -R root:root .
find . -perm 666 -exec chmod 644 {} \;
@@ -105,7 +126,7 @@
# We're using '-i' to work around a bug where the build tries to strip html files.
# Build the important stuff:
-make -j5 -i symlinks sub-src sub-tools || exit 1
+make -j5 symlinks sub-src sub-tools || exit 1
make install INSTALL_ROOT=$PKG || exit 1
# The infamous qt -> qt-${VERSION} link that lets us cheat on the QTDIR ;-)