nixpkgs/pkgs/top-level
aszlig b017935103
vlc: Fix build for Qt >= 5.7.0
This basically does something similar than the AUR build:

https://aur.archlinux.org/packages/vlc-qt5/

On our side, all there is to do is to force compiling using C++11 mode
and use a patch that the AUR package took from the following upstream
patchwork URL:

https://patches.videolan.org/patch/14061/

Instead of passing CXXFLAGS to the configure script, I'm using sed here
to make sure we don't override flags figured out by configure.

For example if ./configure is used with CXXFLAGS=-std=c++11 appended or
prepended, we have something like:

... -I../include   -std=c++11 -Wall -Wextra -Wsign-compare ...

While if we don't do that at all, we have something like:

... -I../include   -g -O2 -Wall -Wextra -Wsign-compare ...

Another way would be to use NIX_CFLAGS_COMPILE, but that would affect
even compilation of C code and thus resulting in a bunch of warnings
like this:

cc1: warning: command line option '-std=c++11' is valid for C++/ObjC++
              but not for C

So with our approach the flags during build look much better:

... -I../include   -std=c++11 -g -O2 -Wall -Wextra -Wsign-compare ...

Another thing I've changed is that the vlc_qt5 attribute in
all-packages.nix now uses the latest Qt 5 version, because the build for
Qt >= 5.7.0 is now no longer broken.

I've also ordered the preConfigure attribute before the configureFlags
attribute, because it makes more sense in terms of context (pre ->
configure -> post).

Tested by building on x86_64-linux with libsForQt56.vlc, libsForQt58.vlc
and vlc (the Qt 4 version, just to be sure I didn't accidentally break
it).

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Cc: @ttuegel
2017-04-19 05:09:47 +02:00
..
aliases.nix Merge pull request #24526 from miltador/jetbrains 2017-04-11 13:56:20 +02:00
all-packages.nix vlc: Fix build for Qt >= 5.7.0 2017-04-19 05:09:47 +02:00
default.nix Elaborate localSystem and crossSystem in a consistent manner 2017-04-17 17:13:01 -04:00
dotnet-packages.nix fsharp: 4.0.1.1 -> 4.1.7 2017-04-17 10:39:38 +02:00
emacs-packages.nix melpa-packages: init w3m at 20170203.647 2017-02-10 13:11:45 -06:00
emscripten-packages.nix libxml2: supportPython -> pythonSupport 2016-11-08 17:10:05 +01:00
haskell-packages.nix Disable integer-simple variant of GHC 7.6.3 since it does not compile. 2017-03-29 20:30:27 +02:00
impure.nix Allow directories with a default.nix to be imported as an overlay. Closes #23016. 2017-02-25 02:32:04 +01:00
java-packages.nix Complete hello world with test 2016-11-15 14:18:19 -05:00
lua-packages.nix luaPackages.vicious 2.1.3 -> 2.2.0 2017-03-30 20:27:57 +02:00
make-tarball.nix make-tarball.nix: Fix running as root 2016-12-15 13:08:21 +01:00
metrics.nix nixpkgs-metrics: Suppress build products 2016-03-24 18:06:46 +01:00
node-packages-generated.nix nodePackages.bower2nix: 3.0.1 -> 3.1.1 2016-09-15 01:28:37 +01:00
node-packages.json yarn: init at 0.17.8 (#20635) 2016-12-14 15:46:45 +01:00
node-packages.nix bower2nix: 2.1.0 -> 3.0.1 2016-03-28 08:23:06 +01:00
ocaml-packages.nix bap: init at 1.2.0 2017-04-04 13:11:01 -04:00
perl-packages.nix Merge pull request #24008 from phile314/slimserver 2017-04-08 17:43:41 +02:00
php-packages.nix phpPackages.composer: 1.3.2 -> 1.4.1 2017-03-24 22:16:10 +01:00
pure-packages.nix purePackages.octave: Use octaveHg 2017-04-09 21:54:39 +10:00
python-packages.nix pythonPackages.qtconsole: use pyqt5 backend 2017-04-18 11:21:20 +02:00
release-cross.nix release-cross: Fix more typos---this is embarrising 2017-04-17 21:02:56 -04:00
release-lib.nix Merge pull request #24610 from Ericson2314/platform-normalization 2017-04-17 17:28:01 -04:00
release-python.nix top-level: Less indirection for lib in release*.nix 2017-04-17 17:13:01 -04:00
release-small.nix top-level: Less indirection for lib in release*.nix 2017-04-17 17:13:01 -04:00
release.nix Merge pull request #24610 from Ericson2314/platform-normalization 2017-04-17 17:28:01 -04:00
rust-packages.nix rustRegistry: 2017-04-11 -> 2017-04-13 2017-04-13 14:59:53 +02:00
splice.nix top-level: no more need to expose splicedPackages 2017-01-25 09:24:55 -05:00
stage.nix top-level: Only splice as needed for performance 2017-01-24 11:37:56 -05:00