app-crypt/veracrypt: fix the linking against wxGTK[X] when USE='-X'
authorGöktürk Yüksek <gokturk@gentoo.org>
Fri, 11 Oct 2019 22:31:32 +0000 (18:31 -0400)
committerGöktürk Yüksek <gokturk@gentoo.org>
Tue, 15 Oct 2019 23:20:38 +0000 (19:20 -0400)
commitac3f1a90286538ec943337d34552553205aa3d05
treef2f223887220e594c5274b6123c5c01481a65f36
parentdf284893a89f67ecc5a483f5601d5b7a3bb7ed24
app-crypt/veracrypt: fix the linking against wxGTK[X] when USE='-X'

veracrypt[-X] fails to properly link against wxGTK[X] only using the
'base' library because the wx's setup.h implicitly defines
wxUSE_GUI=1, which then changes the definition of various structures,
requiring symbols from the core library as well.

For example, wxwidgets include/wx/app.h defines:

  #if wxUSE_GUI

  class WXDLLIMPEXP_CORE wxAppBase : public wxAppConsole
  ...
  [snip]
  ...
  #else // !GUI

  // wxApp is defined in core and we cannot define another one in wxBase,
  // so use the preprocessor to allow using wxApp in console programs too
  #define wxApp wxAppConsole

  #endif // GUI/!GUI

To fix this, pass '-DwxUSE_GUI=0' when compiling veracrypt[-X].

Closes: https://bugs.gentoo.org/605018
Package-Manager: Portage-2.3.76, Repoman-2.3.17
Signed-off-by: Göktürk Yüksek <gokturk@gentoo.org>
app-crypt/veracrypt/files/veracrypt-1.24-no-gui-fix.patch [new file with mode: 0644]
app-crypt/veracrypt/veracrypt-1.24-r1.ebuild [new file with mode: 0644]