wok-next view xpra/stuff/patches/xpra.patch @ rev 21469

updated tinc (1.0.25 -> 1.0.36)
author Hans-G?nter Theisgen
date Wed May 13 07:41:00 2020 +0100 (2020-05-13)
parents
children
line source
1 SliTaz need to avoid an error too, just like Debian or Ubuntu:
2 /usr/include/gtk-2.0/gtk/gtkitemfactory.h:47:1: error: function declaration isn't a prototype [-Werror=strict-prototypes]
4 --- a/xpra/os_util.py
5 +++ b/xpra/os_util.py
6 @@ -294,6 +294,9 @@
7 def is_RedHat():
8 return is_distribution_variant(b"RedHat")
10 +def is_SliTaz():
11 + return is_distribution_variant(b"SliTaz")
12 +
14 _linux_distribution = None
15 def get_linux_distribution():
16 --- a/setup.py
17 +++ b/setup.py
18 @@ -93,7 +93,7 @@
19 # using --with-OPTION or --without-OPTION
20 # only the default values are specified here:
21 #*******************************************************************************
22 -from xpra.os_util import get_status_output, is_Ubuntu, is_Debian, is_Raspbian, getUbuntuVersion,\
23 +from xpra.os_util import get_status_output, is_Ubuntu, is_Debian, is_Raspbian, is_SliTaz, getUbuntuVersion,\
24 PYTHON3, BITS
26 PKG_CONFIG = os.environ.get("PKG_CONFIG", "pkg-config")
27 @@ -706,7 +706,7 @@
28 ]
29 elif get_gcc_version()>=[4, 4]:
30 eifd = ["-Werror"]
31 - if is_Debian() or is_Ubuntu() or is_Raspbian():
32 + if is_Debian() or is_Ubuntu() or is_Raspbian() or is_SliTaz():
33 #needed on Debian and Ubuntu to avoid this error:
34 #/usr/include/gtk-2.0/gtk/gtkitemfactory.h:47:1: error: function declaration isn't a prototype [-Werror=strict-prototypes]
35 eifd.append("-Wno-error=strict-prototypes")