File: UIC-gettext-interoperability.patch

package info (click to toggle)
openscad 2015.03-2%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 30,804 kB
  • ctags: 5,692
  • sloc: cpp: 39,386; sh: 3,856; ansic: 3,674; python: 1,393; yacc: 496; lex: 272; lisp: 159; makefile: 67; xml: 60
file content (26 lines) | stat: -rw-r--r-- 858 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
From: chrysn <chrysn@fsfe.org>
Date: Sun, 27 Nov 2016 12:44:23 +0100
Subject: UIC gettext interoperability

Recent UIC versions seem to have changed their ways of invoking custom
helper functions. This is a quick fix, better workarounds are in
discussion with upstream.

Forwarded: https://github.com/openscad/openscad/issues/1872
---
 openscad.pro | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/openscad.pro b/openscad.pro
index dc200bc..3b781a6 100644
--- a/openscad.pro
+++ b/openscad.pro
@@ -251,7 +251,7 @@ RESOURCES = openscad.qrc
 # Qt5 removed access to the QMAKE_UIC variable, the following
 # way works for both Qt4 and Qt5
 load(uic)
-uic.commands += -tr _
+uic.commands += -tr '"([](const char *a, void __attribute__((unused)) *b) {return QString(_(a));})"'
 
 FORMS   += src/MainWindow.ui \
            src/Preferences.ui \