From c3cb89c56a39c358761b3da1b6465791407e90f0 Mon Sep 17 00:00:00 2001 From: Denis Kozadaev Date: Thu, 30 Jan 2020 22:13:12 +0300 Subject: DilOS: sip4-tqt build pack Signed-off-by: Denis Kozadaev --- dilos/dependencies/sip4-tqt/debian/patches/series | 2 ++ .../debian/patches/siputils_debian_changes.diff | 32 ++++++++++++++++++++++ .../debian/patches/siputils_objdir_module_fix.diff | 18 ++++++++++++ 3 files changed, 52 insertions(+) create mode 100644 dilos/dependencies/sip4-tqt/debian/patches/series create mode 100644 dilos/dependencies/sip4-tqt/debian/patches/siputils_debian_changes.diff create mode 100644 dilos/dependencies/sip4-tqt/debian/patches/siputils_objdir_module_fix.diff (limited to 'dilos/dependencies/sip4-tqt/debian/patches') diff --git a/dilos/dependencies/sip4-tqt/debian/patches/series b/dilos/dependencies/sip4-tqt/debian/patches/series new file mode 100644 index 000000000..0b31a69ff --- /dev/null +++ b/dilos/dependencies/sip4-tqt/debian/patches/series @@ -0,0 +1,2 @@ +# siputils_debian_changes.diff +# siputils_objdir_module_fix.diff diff --git a/dilos/dependencies/sip4-tqt/debian/patches/siputils_debian_changes.diff b/dilos/dependencies/sip4-tqt/debian/patches/siputils_debian_changes.diff new file mode 100644 index 000000000..2640f57c2 --- /dev/null +++ b/dilos/dependencies/sip4-tqt/debian/patches/siputils_debian_changes.diff @@ -0,0 +1,32 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 02_siputils.dpatch by Torsten Marek +Index: sip4-qt3-4.10/siputils.py +=================================================================== +--- sip4-qt3-4.10.orig/siputils.py 2010-01-14 15:52:09.000000000 +0100 ++++ sip4-qt3-4.10/siputils.py 2010-01-26 21:09:49.172700039 +0100 +@@ -718,7 +718,8 @@ + + libs.extend(self.optional_list("LIBS_WINDOWS")) + +- lflags.extend(self._platform_rpaths(rpaths.as_list())) ++ # Don't append any rpaths ++ #lflags.extend(self._platform_rpaths(rpaths.as_list())) + + # Save the transformed values. + self.CFLAGS.set(cflags) +@@ -843,6 +844,15 @@ + clib is the library name in cannonical form. + framework is set of the library is implemented as a MacOS framework. + """ ++ ################################################################## ++ # Generally, the linker is intelligent enough not to need this # ++ # additional information! # ++ # And Qt4's pkg-config and prl files are broken # ++ # Changed for Debian packaging, Torsten Marek # ++ ################################################################## ++ ++ return [] ++ + prl_libs = [] + + if self.generator in ("MSVC", "MSVC.NET", "BMAKE"): diff --git a/dilos/dependencies/sip4-tqt/debian/patches/siputils_objdir_module_fix.diff b/dilos/dependencies/sip4-tqt/debian/patches/siputils_objdir_module_fix.diff new file mode 100644 index 000000000..3c4570b21 --- /dev/null +++ b/dilos/dependencies/sip4-tqt/debian/patches/siputils_objdir_module_fix.diff @@ -0,0 +1,18 @@ +Index: b/siputils.py +=================================================================== +--- a/siputils.py ++++ b/siputils.py +@@ -1547,9 +1547,12 @@ + mfile.write("\n$(OFILES): $(HFILES)\n") + + for mf in self._build["tqmoc_headers"].split(): +- root, discard = os.path.splitext(mf) ++ root, _ = os.path.splitext(mf) + cpp = "tqmoc_" + root + ".cpp" + ++ if self._src_dir != self.dir: ++ mf = os.path.join(self._src_dir, mf) ++ + mfile.write("\n%s: %s\n" % (cpp, mf)) + mfile.write("\t$(MOC) -o %s %s\n" % (cpp, mf)) + -- cgit v1.2.1