Commit Graph

529 Commits

Author SHA1 Message Date
Mikkel Krautz
96cd9b9d04 scripts/mklic.pl, 3rdPartyLicenses: add Boost license. 2018-02-11 10:57:03 +01:00
Mikkel Krautz
a19b3887cb scripts/mklic.pl, 3rdPartyLicenses: add expat license. 2018-02-11 10:50:22 +01:00
Mikkel Krautz
44b1248b8e scripts/mklic.pl, 3rdPartyLicenses: add protobuf license. 2018-02-11 10:50:22 +01:00
Mikkel Krautz
717cefc7ba scripts/mklic.pl, 3rdPartyLicenses: add zlib license. 2018-02-11 10:50:22 +01:00
Mikkel Krautz
84e0f7d993 scripts/mklic.pl: add MariaDB Connector/C license.
This is shipped with all our official binary copies of Murmur
(except on macOS at the moment, but that's a historic accident...)
2018-02-11 10:50:22 +01:00
Mikkel Krautz
6fc31cb456 scripts/mklic.pl: Use MinHook license from 3rdparty/minhook-src.
Drop our own copy of the license, and use the one from the submodule.
That way, it's always up-to-date.
2018-02-11 10:50:22 +01:00
ronnystandtke
dfef2eb6d1
Update mumble.desktop
- removed redundant translations of the Name field
- added German translations for the GenericName and Comment fields
2018-02-10 17:07:00 +01:00
Mikkel Krautz
71ab5b0086
Merge PR #3313: scripts/travis-ci: bump apt timeout in before_install.bash. 2018-01-20 20:54:22 +01:00
Mikkel Krautz
6a1663a502 scripts/travis-ci: fix MUMBLE_NO_PCH checks in script.bash.
Change our checks for MUMBLE_NO_PCH to use string comparisons
instead of numerical comparisons.

When MUMBLE_NO_PCH is not set, the numerical equivalent check
fails because nothing is on the left-hand side of the -eq operator.

Fixes mumble-voip/mumble#3314
2018-01-20 15:35:30 +01:00
Mikkel Krautz
edd1de098a scripts/travis-ci: bump apt timeout in before_install.bash.
After switching to using a mirror of MXE on dl.mumble.info we've begun
running into timeouts from apt on Travis CI. For example:

	E: Failed to fetch https://dl.mumble.info/mirror/pkg.mxe.cc/repos/apt/debian/pool/main/m/mxe-x86-64-unknown-linux-gnu-cmake/mxe-x86-64-unknown-linux-gnu-cmake_3.5.2-20170208_amd64.deb  Operation too slow. Less than 10 bytes/sec transferred the last 10 seconds

The error is from cURL, and it means that the options CURLOPT_LOW_SPEED_LIMIT
and CURLOPT_LOW_SPEED_TIME are set quite low.
(See bb0ffcc36f/lib/speedcheck.c)

To fix this, we set the Acquire::http::Timeout option to 120 seconds.
This causes apt's https transport to set CURLOPT_LOW_SPEED_TIME to 120.
(See https://github.com/Debian/apt/blob/debian/wheezy/methods/https.cc#L224-L230)

Fixes mumble-voip/mumble#3312
2018-01-20 15:24:42 +01:00
Mikkel Krautz
8b1ef2ee95 scripts/travis-ci: use our own (Fastly-fronted) mirror of pkg.mxe.info. 2018-01-14 20:50:13 +01:00
Mikkel Krautz
f6ba3a52bf Auto-update LICENSE.header in source files. 2018-01-01 23:05:37 +01:00
Jan Klass
ed06886632 Fix travis OSX build
Using brew to install now fails because of an incompatible ruby version.

Update brew before installing a package to work around this.

https://github.com/travis-ci/travis-ci/issues/8552
2017-10-15 20:05:45 +02:00
Mikkel Krautz
1178f64509 scripts/murmur.ini: update default murmur.ini to reflect new FFDHE feature. 2017-08-06 22:11:01 +02:00
Mikkel Krautz
828d9301f5 Remove DIST directive from all .pro files.
We used to use DIST for referencing extra files that should be included
in our tarballs created by 'make dist'.

However, we've since migrated away relying on 'make dist' in release.pl.
Instead, we include everything, and have a list of items to exclude, such
as IETF RFC drafts distributed in 3rdparty/speex-src that do not adhere to
the Debian Free Software Guidelines.
2017-08-06 20:38:14 +02:00
Mikkel Krautz
36cb96062f Merge PR #3183: FFDHE: add new class for accessing RFC 7919 Diffie-Hellman parameters. 2017-07-29 00:30:08 +02:00
Mikkel Krautz
a590ad907d scripts: add generate-ffdhe.py for generating FFDHETable.h.
This commit adds a new script for generating PEM forms
of the Diffie-Hellman groups in RFC 7919.

RFC 7919 specifies a set of Diffie-Hellman groups that
can be negotiated by TLS 1.1 and 1.2 servers and clients
using the same mechanism that is used for named elliptic
curves in TLS.

Our TLS implementation doesn't support RFC 7919 at present,
but we can still use the groups defined in the RFC as good
reference Diffie-Hellman parameters for Murmur, since they
are audited and may be more resistant to attacks than ones
randomly generated.
2017-07-28 00:16:24 +02:00
Mikkel Krautz
f47562b6c2 scripts/murmur.ini: fix minor typo in gRPC comment.
grPC -> gRPC
2017-07-24 10:51:29 +02:00
Mikkel Krautz
863cb3b339 scripts: remove gRPC-specific murmur.ini.
Let's merge the two, and note in the .ini that
not all builds contain gRPC support.
2017-07-23 13:43:11 +02:00
Mikkel Krautz
c2a3e2f558 scripts/mkini-win32.bat: perform LF -> CRLF conversion.
This ensures that murmur.ini on Windows installations has
Windows-style line endings, allowing admins to use Notepad
to edit the file.

Fixes mumble-voip/mumble#3101
2017-07-14 12:47:49 +02:00
concatime
908e17d7ae Update murmur.ini
Removed useless whitespaces...
2017-05-30 17:23:24 -04:00
Mikkel Krautz
67653f5078 AppVeyor: add no-pch build for x86_64 MSVC.
If we don't track this, we'll just break the build.
It helps with correctness of header includes, etc. -- so I think it is
worth tracking.
2017-04-09 13:35:46 +02:00
Mikkel Krautz
f0a2ac8015 scripts/appveyor: fix comment about signing/UIAccess in appveyor-build.ps1.
The comment was not correct: We pass CONFIG(no-elevation) because we need
to disable elevation because we don't sign the builds.
2017-04-09 12:28:09 +02:00
Mikkel Krautz
16dc758690 scripts/generate-cipherinfo.py: ensure output is consistently sorted.
This ensures that the output of the script is consistently sorted.
This commit uses the integer value of the literal cipher suite value.

This will make future diffs from output of the script much easier to read.
2017-04-01 09:10:30 +02:00
Mikkel Krautz
5bbf313d5f scripts/generate-cipherinfo.py: use correct script name in comment. 2017-04-01 09:10:23 +02:00
Mikkel Krautz
4a63973fa7 scripts/generate-cipherinfo.py: add DH_RSA and DH_DSS key exchanges. 2017-04-01 09:10:13 +02:00
Mikkel Krautz
5db8665e9d travis-ci: add macOS target.
This commit adds a Homebrew-based macOS build to our Travis CI build
matrix.

It also cleans up the exising build matrix such such that Linux builds
are built only on Linux hosts, and macOS builds are only built on macOS
hosts.
2017-03-29 00:51:06 +02:00
Mikkel Krautz
e414bd3b62 Merge PR #2958: Fix no-pch build and add a no-pch configuration to Travis CI
This PR fixes a recently introduced no-pch error in Meta.h.
It also adds a no-pch configuration to Travis CI so we can catch these beforehand in the future.
2017-03-19 17:08:54 +01:00
Mikkel Krautz
8ec4775949 travis-ci: add a no-pch build to the Travis matrix.
It's convenient to have a proof-build that checks whether
our no-pch build works, to keep it working.
2017-03-19 15:45:23 +01:00
Mikkel Krautz
ac674d932e scripts/rcc-depends.py: fall back to using the absolute path when os.path.relpath() fails on Windows.
On Windows, it is not always possible to create a relative path from an
absolute path. For example, if Qt lives on C:, and Mumble is being built
on Z:.

Things will fall apart then, because we include some of Qt's
translations in our .qrc files.

This commit works around that issue by falling back to absolute paths
when finding a relative path fails.
2017-03-19 15:41:53 +01:00
Davide Beatrici
942ba6d48d travis-ci: Remove unneeded "winpaths_custom" CONFIG option
It's a leftover of old tests.
2017-03-18 00:53:29 +01:00
Davide Beatrici
2bd9f06651 travis-ci: Execute "make check" using Wine 2017-03-17 19:14:13 +01:00
Mikkel Krautz
f9cf8da5b8 travis-ci: Use MinGW build envs 2017-03-17 19:14:12 +01:00
Mikkel Krautz
cad1bac314 Merge PR #2794: ServerDB, Meta: add support for SQLite WAL. 2017-03-05 23:12:15 +01:00
Mikkel Krautz
1818476399 ServerDB, Meta: add support for SQLite WAL.
Using SQLite's WAL (write-ahead log) can create less disk I/O while
still providing good consistency and durability.

This change uses SQLite's WAL with synchronous=NORMAL which can
cause loss of transactions on power failure. Only the transactions
which haven't been synced to the disk by the OS are lost. The
database itself will still be in a consistent state, but it might
not have all recent changes.
2017-03-05 22:42:57 +01:00
Davide Beatrici
d04995899a Move .pri files and "toolchain" folder in "qmake" 2017-03-05 15:48:16 +01:00
Mikkel Krautz
a58d708f1e Merge PR #2882: CryptographicRandom: new class for acquiring random data for cryptographic purposes. 2017-03-02 00:26:49 +01:00
Mikkel Krautz
aa25435a7b CryptographicRandom: new class for acquiring random data for cryptographic purposes.
The class implements an API similar to OpenBSD's arc4random:

 - A way to get a random uint32_t. (arc4random)
 - A way to get a random uint32_t with an upper bound. (arc4random_uniform)
 - A way to fill a buffer with random data. (arc4random_buf)
2017-03-01 23:29:07 +01:00
Mikkel Krautz
629dd2d889 Add Qt 5 Trusty build to .travis.yml. 2017-02-28 01:52:11 +01:00
Stefan Hacker
86f8eefd61 Add appveyor configuration for windows proof builds
The current configuration uses a hacked up
win64-static-no-ltcg build environment until we
build our next set of real ones. As we do not want
to distribute our build env at this point the source
is obfuscated for now.

We utilize the appveyor cache to cache the compressed
build environment we downloaded. We do not cache the
uncompressed variant to save the time it takes to package
it up in case of cache invalidation. Cache invalidation
is keyed on changes to the appveyor.yml .
2017-02-12 13:57:46 +01:00
Mikkel Krautz
91ebb8b0b5 Update tree copyrights to 2017. 2017-01-08 21:05:57 +01:00
Mikkel Krautz
54dd7e71eb Split mumble_flags.qrc into seperate files to reduce .cpp size for older compilers.
With the current setup, OpenBSD 6.0's g++4 on a VM with 4GB ram can't even
build Mumble, because the generated .cpp file from mumble_flags.qrc is
32MB.

This commit attempts to work around that by splitting our SVG flags into
separate resource files.

To make it easier to work with from the qmake build, we now also generate
a mumble_flags.pri file that will automatically add all necessary .qrc
files to RESOURCES.
2016-11-27 13:49:26 +01:00
Mikkel Krautz
2c3eb27f39 scripts/mkflags.pl: remove old flags script.
It doesn't work with the new SVG flags, so drop it.
2016-11-27 12:34:36 +01:00
Mikkel Krautz
cc2b1c7dae Move licenses.h header to src/ from src/mumble/.
We'll need it to display license information in
Murmur.
2016-11-24 00:27:32 +01:00
Mikkel Krautz
493204f3d5 About: add AUTHORS file to the about dialog. 2016-11-15 00:15:21 +01:00
Matthias Mailänder
a063ee26ef Add an appdata.xml file. 2016-09-25 10:07:39 +02:00
Mikkel Krautz
42ddfccb06 Remove hacks specific to the manual plugin from the build.
This removes a lot of very hacky stuff. Its own job was to
let the manual plugin be a separate DLL.

Now that the manual plugin is built into Mumble itself, all
these dirty tricks can be removed.

Since we don't have to export a lot of symbols that we don't
use anymore, the linker can remove a lot of unused code for us:

mumble_app.dll before (1.3.0~969):  40.345 KB
mumble_app.dll after:               36.819 KB
Difference:                         -3.526 KB
2016-07-17 00:32:11 +02:00
Mikkel Krautz
f6a0138a19 scripts/mkini.sh: consider semicolons as comments to fix .ini generation.
As-is, the murmur.ini.system used by our PPA builds
(and Debian-based distros) are broken because the
script doesn't set the "logfile" and "pidfile"
options.
2016-06-11 01:55:21 +02:00
Mikkel Krautz
c71461e4a0 scripts/generate-CHANGES.py, CHANGES: update script to use commit date rather than author date. 2016-05-18 23:49:09 +02:00
Mikkel Krautz
b0005c4fbb scripts/generate-CHANGES.py: fix capture group in gitMailmapLookup's contact regexp.
The email capture group accidently captured
the whole email part of the contact, including
angle brackets.

Update the capture group to only capture the
actual email address.
2016-05-13 22:58:49 +02:00
Mikkel Krautz
19214a475d Add remaining files that use the old-style license header to 3rdPartyLicenses. 2016-05-10 22:42:04 +02:00
Mikkel Krautz
63f2bd8e4e scripts: update to use LICENSE.header. 2016-05-10 22:42:04 +02:00
Mikkel Krautz
ac716df4f2 scripts/generate-CHANGES.py: add Python replacement for 'git2cl.pl'.
This is a pure-Python, 100% compatible replacement of 'git2cl.pl'.
2016-05-09 23:47:54 +02:00
Tim Cooper
59bda9bec8 grpc: rename murmur.ini.grpc to murmur.grpc.ini 2016-05-08 16:45:52 +02:00
Mikkel Krautz
75d68fb473 grpc: sync murmur.ini.grpc with murmur.ini. 2016-05-08 16:45:52 +02:00
Tim Cooper
ff109d96f0 grpc: integrate murmur_grpc_wrapper_gen into qmake build 2016-05-08 16:45:52 +02:00
Tim Cooper
97741f645e grpc: move grpc-specific ini options to separate file 2016-05-08 16:45:52 +02:00
Tim Cooper
49a6d35f2b grpc: rename grpcCert, grpcKey to grpccert, grpckey 2016-05-08 16:45:52 +02:00
Tim Cooper
19537ac218 grpc: allow connections to be secured using TLS 2016-05-08 16:45:52 +02:00
Tim Cooper
d4b799deb9 grpc: add RPCSingleStreamCall base for single-streaming wrappers 2016-05-08 16:45:52 +02:00
Tim Cooper
0cbd230d8f grpc: reduce amount of generated wrapper code 2016-05-08 16:45:52 +02:00
Tim Cooper
c7686ff0a5 grpc: fix possible use-after-frees with the GRPC wrappers 2016-05-08 16:45:52 +02:00
Tim Cooper
89b487cd17 grpc: reduce compile warnings 2016-05-08 16:45:52 +02:00
Tim Cooper
cccbec3012 grpc: fix several TODO items 2016-05-08 16:45:52 +02:00
Tim Cooper
c53134dce1 grpc: simplify authenticator slots 2016-05-08 16:45:52 +02:00
Tim Cooper
fd52a050f2 grpc: make RPCCall.error's argument const 2016-05-08 16:45:52 +02:00
Tim Cooper
d63b5c7f47 grpc: add "request", "response" to stream-stream wrapper 2016-05-08 16:45:52 +02:00
Tim Cooper
3af2bc8a1f grpc: rename "response" in generated code to "stream" 2016-05-08 16:45:52 +02:00
Tim Cooper
5b2f2b966a grpc: generate callback() for "stream-stream" RPC methods 2016-05-08 16:45:52 +02:00
Tim Cooper
39984f6c60 grpc: add timer that will trigger cleanup function every minute 2016-05-08 16:45:52 +02:00
Tim Cooper
3a1da385b9 grpc: add callback() method to single-streaming calls, reenable ContextActionService.Events 2016-05-08 16:45:52 +02:00
Tim Cooper
0fdb1dfb06 grpc: RPCCall::error does not need to be a function anymore 2016-05-08 16:45:52 +02:00
Tim Cooper
a89333dfa0 grpc: pass grpc success variable to callback functions 2016-05-08 16:45:52 +02:00
Tim Cooper
1b3cdd8fa9 grpc: re-enable streaming wrapper generation 2016-05-08 16:45:52 +02:00
Tim Cooper
c386db3db1 grpc: rework non-streaming call wrappers, temporary disable streaming calls 2016-05-08 16:45:52 +02:00
Tim Cooper
b6aca4937d grpc: implemented streaming generator, temporary removed certain streaming RPC methods 2016-05-08 16:45:52 +02:00
Tim Cooper
e233c538ca grpc: add exception hander around *_Impl to ease error handing 2016-05-08 16:45:52 +02:00
Tim Cooper
0041ab3ee3 grpc: switch to async grpc API, change naming of service methods 2016-05-08 16:45:52 +02:00
Tim Cooper
d181c0d1d6 grpc: add *_Init to protoc-gen-grpcwrapper 2016-05-08 16:45:52 +02:00
Tim Cooper
05a450119d grpc: remove MurmurRPCImpl and AsyncService from _Impl signature 2016-05-08 16:45:52 +02:00
Tim Cooper
d749e0f167 grpc: add protoc-gen-grpcwrapper.cpp 2016-05-08 16:45:52 +02:00
Tim Cooper
776c084a1a grpc: start implementation 2016-05-08 16:45:52 +02:00
Mikkel Krautz
0d35a9c77f scripts/ts2html.pl: remove.
We have no use for this script that converts
.ts files to .html for easier human consumption.

We now use Transifex for even easier localization.

Delete the file.
2016-05-07 14:32:45 +02:00
Mikkel Krautz
6d2364a809 scripts/qt.conf: remove.
Previously, qt.conf was used to sepecify the runtime
plugin path for Qt in our dynamic Windows and OS X
builds.

Now that those builds use static Qt, the file is
unused.

Delete it.
2016-05-07 14:32:16 +02:00
Mikkel Krautz
d475b446dc scripts/generate-AUTHORS.py: use pyuca for sorting to get deterministic output on all platforms.
My own rule of thumb for scripts in our repo is to keep the
number dependencies down. In practice, this means I always
strive to only use the standard library.

In this case, it's not that easy.

The existing code sorted sufficiently on Windows.

However, when run on Unix-like systems, it produces odd, and
to my mind, unexpected sorting behavior. (Such as ignoring spaces,
and sorting 'Hey You' after 'Heyh You'.)

I suppose the sort order is a matter of preference.

But the non-determinism of the script's output isn't.
If we don't fix this, we'll get noisy diffs once in a while,
which isn't very nice.

This commit changes the script to use 'pyuca' to
do the sorting. This is a pure Python module, so
it's easy to install via pip on all OSes.
2016-05-06 13:38:36 +02:00
Mikkel Krautz
9f20c2184e scripts/generate-AUTHORS.py: use 'origin/branch' instead of just 'branch' in git log call.
This allows the script to work even if, say, origin/1.2.x is not checked
out locally as '1.2.x'.
2016-05-01 00:55:58 +02:00
Tim Cooper
6a3f2ef9e9 add note about allowping to murmur.ini regarding information exposure
fixes #1814
2016-04-30 17:09:20 +02:00
Mikkel Krautz
5c17181b02 Move smallft to 3rdparty/smallft-src and add to 3rdPartyLicenses.
The smallft code is not under Mumble's license, so it should
live under 3rdparty, and have a proper license notice in our
binaries.
2016-04-28 13:11:33 +02:00
Mikkel Krautz
b03a6890f3 Add .mailmap file and us it in scripts/generate-AUTHORS.py.
Also, re-generate the AUTHORS file as a self-test.

Fixes mumble-voip/mumble#2125
2016-03-13 13:35:46 +01:00
Mikkel Krautz
6beb46e631 Move src/bonjour to 3rdparty/qqbonjour-src and add its license to the third party license list.
Fixes mumble-voip/mumble#2160
2016-03-13 13:30:56 +01:00
Mikkel Krautz
6f1331b2e6 GlobalShortcutWin: Exclude XInput devices from DirectInput.
This adds a dependency on a small library, XInputCheck, which is
a function abstracted away from SDL. All it does is check whether
a given DirectInput guidProduct is an XInput device.
2016-03-03 16:13:26 +01:00
Mikkel Krautz
3b2a169f46 Simplify LICENSE file, add LICENSE.header and add AUTHORS.
This simplifies the LICENSE file refer to the copyright
holders of Mumble as "The Mumble Developers". The client
already does this in the About dialog.

The entity "The Mumble Developers" is the name we use for
the copyright holders of Mumble. These are listed in the
AUTHORS file.

The AUTHORS file is generated via scripts/generate-AUTHORS.py.
The script looks at the Git history and removes duplicates and
other mistakes made through the years.

All new files in the repo should use the license header found
in LICENSE.header.

The AUTHORS and LICENSE files are permalinked to

    https://www.mumble.info/LICENSE
    https://www.mumble.info/AUTHORS

These locations are used in the files themselves,
as well as the license header.
2016-02-20 01:13:38 +01:00
Roman Priesol
21673bf426 mumble.desktop: added missing semicolons
.desktop file needs a semicolon (';') as trailing character for multiple keys.
2015-12-06 18:30:36 +01:00
Mikkel Krautz
d793aa11d1 murmur.ini: document empty welcometext behavior.
Clients do not show welcome text's that are empty.
2015-11-30 23:16:04 +01:00
Mikkel Krautz
0e4070c11d scripts/updatetranslations.sh: fix shebang to work on systems where bash doesn't live in /bin. 2015-11-22 21:26:55 +01:00
Mikkel Krautz
e94c8f7a03 Use Emoji One SVGs for our flag icons instead of FamFamFam.
While the FamFamFam icons have served us well, we really
need SVG flag icons for HiDPI scenarios.

This is one of the last pieces missing to allow us to
claim we fully support Retina displays on OS X.
2015-11-17 00:13:59 +01:00
Stefan Hacker
0db712ed93 Make mkwrapper.pl write a banner to its generated files
In each generated file we want to have a banner that warns of
modification by hand and indicates the generator responsible
for the file. This patch extends mkwrapper.pl to write such
a header.

It also switches mkwrapper.pl away from barewords for file-handles.
Apparently those are no longer considered idiomatic Perl and they
broke the "iterate over list of handles" thing this patch does.
2015-10-25 19:40:11 +01:00
Stefan Hacker
a8bed2987c Modify generator for licenses.h to fix warnings in that file 2015-10-25 19:40:11 +01:00
Stefan Hacker
73f6051d35 Modify generator for ApplicationPalette.h to fix warnings in that file 2015-10-25 19:40:10 +01:00
Mikkel Krautz
311f6f7e86 Auto-generate qrc file for embedded Qt translations when running qmake.
This change removes our qmake-based Qt translation embedding.

That system uses mumble_qt.qrc resource file with
hardcoded filenames for Qt translations, and some logic
implemented in qmake that copies Qt translations into
the Mumble source tree such that the paths in the
mumble_qt.qrc file match.

The new system introduces a simple Python script that
takes an output filename for the .qrc file the tool
will write, along with a set of directories containing
Qt translations.

The tool will generate a Qt resource file containing
references to all the translation files found in the
specified directories. However, the tool takes care
to only include language files once.

In typical use, the first directory parameter passed
to the tool is the QT_INSTALL_TRANSLATIONS directory,
which is where Qt stores its own translation files.
The second directory is Mumble's fallback directory.

The tool then goes through all files in the first
directory, and notes down which languages have been
processed. Multiple files for a single langauge can
be included from the a directory (qt_help_da.qm,
and qtbase_da.qm), but once a language has been
added from one directory, it will not be added
if found in the next one in line.

We use this to include a set of 'fallback'
translations for versions of Qt that do not
include them. This also allows this new style
of Qt translation embedding to be forward
compatible with newer versions of Qt that
add new translations.

Once Qt includes a translation that we have
in our fallback directory, the Qt translation
is used instead.
2015-10-17 21:47:42 +02:00