summaryrefslogtreecommitdiffstats
path: root/dilos/dependencies/tqt3/debian/patches
diff options
context:
space:
mode:
authorDenis Kozadaev <denis@dilos.org>2019-08-25 21:13:36 +0300
committerSlávek Banko <slavek.banko@axis.cz>2019-09-09 21:06:19 +0200
commit9e40aca75e29bf5202146a6b33d0d0723b6a3f89 (patch)
tree85dec3e30329ac2c9528a05531a00d2e69684708 /dilos/dependencies/tqt3/debian/patches
parentd6186b70e9266ac8f07cd834dfc2c36b48623521 (diff)
downloadtde-packaging-9e40aca75e29bf5202146a6b33d0d0723b6a3f89.tar.gz
tde-packaging-9e40aca75e29bf5202146a6b33d0d0723b6a3f89.zip
DilOS: Add package tqt3
Signed-off-by: Denis Kozadaev <denis@dilos.org>
Diffstat (limited to 'dilos/dependencies/tqt3/debian/patches')
-rw-r--r--dilos/dependencies/tqt3/debian/patches/06_disable_rpath.diff30
-rw-r--r--dilos/dependencies/tqt3/debian/patches/09_amd64_lib64.diff16
-rw-r--r--dilos/dependencies/tqt3/debian/patches/72_dont_trust_uname-m_use_dpkg-arch_instead.diff50
-rw-r--r--dilos/dependencies/tqt3/debian/patches/series3
4 files changed, 99 insertions, 0 deletions
diff --git a/dilos/dependencies/tqt3/debian/patches/06_disable_rpath.diff b/dilos/dependencies/tqt3/debian/patches/06_disable_rpath.diff
new file mode 100644
index 000000000..a3d74ffce
--- /dev/null
+++ b/dilos/dependencies/tqt3/debian/patches/06_disable_rpath.diff
@@ -0,0 +1,30 @@
+author: Martin Loschwitz <madkiss@madkiss.org>
+
+Disables the rpath settings in qmake.conf
+
+Index: b/mkspecs/linux-g++/qmake.conf
+===================================================================
+--- a/mkspecs/linux-g++/qmake.conf
++++ b/mkspecs/linux-g++/qmake.conf
+@@ -55,7 +55,7 @@
+ QMAKE_LFLAGS_PLUGIN = $$QMAKE_LFLAGS_SHLIB
+ QMAKE_LFLAGS_SONAME = -Wl,-soname,
+ QMAKE_LFLAGS_THREAD =
+-QMAKE_RPATH = -Wl,-rpath,
++QMAKE_RPATH =
+
+ QMAKE_LIBS = -luuid
+ QMAKE_LIBS_DYNLOAD = -ldl
+Index: b/mkspecs/linux-g++-64/qmake.conf
+===================================================================
+--- a/mkspecs/linux-g++-64/qmake.conf
++++ b/mkspecs/linux-g++-64/qmake.conf
+@@ -58,7 +58,7 @@
+ QMAKE_LFLAGS_PLUGIN = $$QMAKE_LFLAGS_SHLIB
+ QMAKE_LFLAGS_SONAME = -Wl,-soname,
+ QMAKE_LFLAGS_THREAD =
+-QMAKE_RPATH = -Wl,-rpath,
++QMAKE_RPATH =
+
+ QMAKE_LIBS = -luuid
+ QMAKE_LIBS_DYNLOAD = -ldl
diff --git a/dilos/dependencies/tqt3/debian/patches/09_amd64_lib64.diff b/dilos/dependencies/tqt3/debian/patches/09_amd64_lib64.diff
new file mode 100644
index 000000000..de42482fc
--- /dev/null
+++ b/dilos/dependencies/tqt3/debian/patches/09_amd64_lib64.diff
@@ -0,0 +1,16 @@
+--- a/mkspecs/linux-g++-64/qmake.conf
++++ b/mkspecs/linux-g++-64/qmake.conf
+@@ -43,11 +43,11 @@ QMAKE_CXXFLAGS_THREAD = $$QMAKE_CFLAGS_T
+ QMAKE_INCDIR =
+ QMAKE_LIBDIR =
+ QMAKE_INCDIR_X11 = /usr/X11R6/include
+-QMAKE_LIBDIR_X11 = /usr/X11R6/lib64
++QMAKE_LIBDIR_X11 = /usr/X11R6/lib
+ QMAKE_INCDIR_TQT = $(TQTDIR)/include
+ QMAKE_LIBDIR_TQT = $(TQTDIR)/lib64
+ QMAKE_INCDIR_OPENGL = /usr/X11R6/include
+-QMAKE_LIBDIR_OPENGL = /usr/X11R6/lib64
++QMAKE_LIBDIR_OPENGL = /usr/X11R6/lib
+
+ QMAKE_LINK = g++
+ QMAKE_LINK_SHLIB = g++
diff --git a/dilos/dependencies/tqt3/debian/patches/72_dont_trust_uname-m_use_dpkg-arch_instead.diff b/dilos/dependencies/tqt3/debian/patches/72_dont_trust_uname-m_use_dpkg-arch_instead.diff
new file mode 100644
index 000000000..b4e71d35b
--- /dev/null
+++ b/dilos/dependencies/tqt3/debian/patches/72_dont_trust_uname-m_use_dpkg-arch_instead.diff
@@ -0,0 +1,50 @@
+author: Sune Vuorela <debian@pusling.com>
+
+--- a/configure
++++ b/configure
+@@ -34,7 +34,44 @@ SUPPORTED=
+ #-------------------------------------------------------------------------------
+
+ # need that throughout the script
+-UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
++DPKG_ARCH=`(dpkg-architecture -qDEB_HOST_ARCH) 2>/dev/null` || UNAME_MACHINE=unknown
++case $DPKG_ARCH in
++ amd64)
++ UNAME_MACHINE="x86_64"
++ ;;
++ arm)
++ UNAME_MACHINE="armv4l"
++ ;;
++ armel)
++ UNAME_MACHINE="armv5tel"
++ ;;
++ hppa)
++ UNAME_MACHINE="parisc64"
++ ;;
++ hurd-i386)
++ UNAME_MACHINE="i686-AT386"
++ ;;
++ i386)
++ UNAME_MACHINE="i686"
++ ;;
++ kfreebsd-amd64)
++ UNAME_MACHINE="x86_64"
++ ;;
++ kfreebsd-i386)
++ UNAME_MACHINE="i586"
++ ;;
++ mipsel)
++ UNAME_MACHINE="mips"
++ ;;
++ powerpc)
++ UNAME_MACHINE="ppc"
++ ;;
++ *)
++ UNAME_MACHINE="$DPKG_ARCH"
++ ;;
++
++
++esac
+ UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
+ UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
+ UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
diff --git a/dilos/dependencies/tqt3/debian/patches/series b/dilos/dependencies/tqt3/debian/patches/series
new file mode 100644
index 000000000..e6bdb92af
--- /dev/null
+++ b/dilos/dependencies/tqt3/debian/patches/series
@@ -0,0 +1,3 @@
+06_disable_rpath.diff
+09_amd64_lib64.diff
+72_dont_trust_uname-m_use_dpkg-arch_instead.diff