Skip to content

Commit

Permalink
Set the Qt version to use on fedora.
Browse files Browse the repository at this point in the history
The default Qt version on fedora is Qt 4. We must force the use of Qt 5.
  • Loading branch information
mgautierfr committed Jul 1, 2020
1 parent da62250 commit ef78436
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion kiwixbuild/platforms/native.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
from .base import PlatformInfo

from kiwixbuild.utils import pj
from kiwixbuild._global import option
from kiwixbuild._global import option, neutralEnv


class NativePlatformInfo(PlatformInfo):
build = 'native'

def get_env(self):
env = super().get_env()
if neutralEnv('distname') == 'fedora':
env['QT_SELECT'] = "5-64"
return env


class NativeDyn(NativePlatformInfo):
name = 'native_dyn'
Expand Down

0 comments on commit ef78436

Please sign in to comment.