summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFathi Boudra <fabo@debian.org>2008-03-04 07:18:29 +0000
committerFathi Boudra <fabo@debian.org>2008-03-04 07:18:29 +0000
commitd5dad30a2a90c8b61fc8c1f78ad779835d65672a (patch)
treee07587716f618f30f95caf23b6faac87da0b558e
parentbedcbb93de1d2c201467998ccb58d42b471fd694 (diff)
downloadqt4-x11-d5dad30a2a90c8b61fc8c1f78ad779835d65672a.tar.gz
Re-introduce link_prl previously removed by patch 01_qmake_for_debian
Remove LDFLAGS from rules as it isn't honored. Replaced patch 09_qmake_lflags_as-needed. Ready for PART2: split Qt4
-rw-r--r--debian/changelog7
-rw-r--r--debian/patches/01_qmake_for_debian.diff16
-rw-r--r--debian/patches/01_qmake_for_debian_with_link_prl.diff17
-rw-r--r--debian/patches/09_qmake_lflags_as-needed.diff11
-rw-r--r--debian/patches/series4
-rwxr-xr-xdebian/rules3
6 files changed, 17 insertions, 41 deletions
diff --git a/debian/changelog b/debian/changelog
index a06194e..481fca0 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -6,10 +6,11 @@ qt4-x11 (4.4.0~beta1-1) experimental; urgency=low
libpam0g-dev, libreadline5-dev, libxslt1-dev.
* Update rules:
* Disable DEB_INSTALL_CHANGELOGS_ALL.
- * Add DEB_DH_SHLIBDEPS_ARGS workaround for WebKit.
* Enable WebKit and XmlPatterns.
* Enable exceptions. It is a dependency to XmlPatterns module.
- * Refresh Debian patches.
+ * Refresh Debian patches:
+ * Re-introduce link_prl.
+ * Add patch to set --as-needed flag.
* Refresh qt-copy patches: 0167, 0172, 0178, 0180, 0191, 0192, 0195, 0203,
0209 and 0210.
* Add qt-copy patches: 0214, 0215 and 0216.
@@ -26,8 +27,6 @@ qt4-x11 (4.4.0~beta1-1) experimental; urgency=low
* Add packages: libqt4-dbus, libqt4-webkit and libqt4-xmlpatterns.
* Move QtDBus module from libqt4-core in libqt4-dbus package.
- * Experimental test to re-introduce link_prl.
-
-- Fathi Boudra <fabo@debian.org> Sat, 01 Mar 2008 18:31:24 +0100
qt4-x11 (4.3.4-1) unstable; urgency=low
diff --git a/debian/patches/01_qmake_for_debian.diff b/debian/patches/01_qmake_for_debian.diff
index 8004369..d03f635 100644
--- a/debian/patches/01_qmake_for_debian.diff
+++ b/debian/patches/01_qmake_for_debian.diff
@@ -1,7 +1,6 @@
author: Brian Nelson <pyro@debian.org>
-Ensures qmake generates Makefiles that use the -qt4 tools and that use
-recursively link against all indirectly-used libraries.
+Ensures qmake generates Makefiles that use the -qt4 tools.
--- a/mkspecs/common/linux.conf
+++ b/mkspecs/common/linux.conf
@@ -16,16 +15,3 @@ recursively link against all indirectly-used libraries.
QMAKE_AR = ar cqs
QMAKE_OBJCOPY = objcopy
---- a/mkspecs/linux-g++/qmake.conf
-+++ b/mkspecs/linux-g++/qmake.conf
-@@ -4,8 +4,9 @@
-
- MAKEFILE_GENERATOR = UNIX
- TEMPLATE = app
--CONFIG += qt warn_on release incremental link_prl
-+CONFIG += qt warn_on release incremental
- QT += core gui
-+DEFINES += QT_SHARED
- QMAKE_INCREMENTAL_STYLE = sublib
-
- include(../common/g++.conf)
diff --git a/debian/patches/01_qmake_for_debian_with_link_prl.diff b/debian/patches/01_qmake_for_debian_with_link_prl.diff
deleted file mode 100644
index d03f635..0000000
--- a/debian/patches/01_qmake_for_debian_with_link_prl.diff
+++ /dev/null
@@ -1,17 +0,0 @@
-author: Brian Nelson <pyro@debian.org>
-
-Ensures qmake generates Makefiles that use the -qt4 tools.
-
---- a/mkspecs/common/linux.conf
-+++ b/mkspecs/common/linux.conf
-@@ -23,8 +23,8 @@
- QMAKE_LIBS_OPENGL_QT = -lGL
- QMAKE_LIBS_THREAD = -lpthread
-
--QMAKE_MOC = $$[QT_INSTALL_BINS]/moc
--QMAKE_UIC = $$[QT_INSTALL_BINS]/uic
-+QMAKE_MOC = $$[QT_INSTALL_BINS]/moc-qt4
-+QMAKE_UIC = $$[QT_INSTALL_BINS]/uic-qt4
-
- QMAKE_AR = ar cqs
- QMAKE_OBJCOPY = objcopy
diff --git a/debian/patches/09_qmake_lflags_as-needed.diff b/debian/patches/09_qmake_lflags_as-needed.diff
new file mode 100644
index 0000000..9247e11
--- /dev/null
+++ b/debian/patches/09_qmake_lflags_as-needed.diff
@@ -0,0 +1,11 @@
+--- a/configure
++++ b/configure
+@@ -497,6 +497,8 @@
+ rm -f "$outpath/config.tests/.qmake.cache"
+ cp "$QMAKE_VARS_FILE" "$outpath/config.tests/.qmake.cache"
+
++QMakeVar add QMAKE_LFLAGS -Wl,--as-needed
++
+ QMakeVar add styles "cde mac motif plastique cleanlooks windows"
+ QMakeVar add decorations "default windows styled"
+ QMakeVar add gfx-drivers "linuxfb"
diff --git a/debian/patches/series b/debian/patches/series
index c46c580..02caf2e 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -14,14 +14,14 @@
0216-allow-isystem-for-headers.diff
# debian patches
-# 01_qmake_for_debian.diff
-01_qmake_for_debian_with_link_prl.diff
+01_qmake_for_debian.diff
03_launch_moc-qt4.diff
04_launch_uic-qt4.diff
05_append_qt4_target.diff
06_qtdemo_destdir.diff
07_trust_dpkg-arch_over_uname-m.diff
08_load_ssl.diff
+09_qmake_lflags_as-needed.diff
10_config_tests_fixes.diff
20_mips_atomic_ops.diff
40_alpha_ice.diff
diff --git a/debian/rules b/debian/rules
index ff48d0e..f6b9284 100755
--- a/debian/rules
+++ b/debian/rules
@@ -2,7 +2,6 @@
export QTDIR := $(shell pwd)
export PATH := $(QTDIR)/bin:$(PATH)
-export LDFLAGS := -Wl,--no-undefined -Wl,--as-needed
QTVERSION := $(shell ls changes-* | cut -f2 -d '-')
CURRENTVERSION := $(shell head -1 debian/changelog | sed 's/[^(]*(\([^)]*\)).*/\1/')
@@ -35,8 +34,6 @@ ifeq ($(DEB_HOST_ARCH),arm)
EXTRA_CONFIGURE_OPTS += -DQT_QLOCALE_USES_FCVT
endif
-DEB_CONFIGURE_SCRIPT_ENV += LDFLAGS="-Wl,--no-undefined -Wl,--as-needed"
-
ifeq ($(DEB_HOST_ARCH_OS),linux)
PLATFORM_ARG = linux-g++
else