Skip to content

Commit

Permalink
Merge pull request #124 from jschueller/hard_sysroot
Browse files Browse the repository at this point in the history
Fix harcoded sysroot paths
  • Loading branch information
isuruf authored Oct 29, 2019
2 parents d7fa0b2 + bf22d26 commit 1725290
Show file tree
Hide file tree
Showing 8 changed files with 30 additions and 104 deletions.
8 changes: 2 additions & 6 deletions .azure-pipelines/azure-pipelines-linux.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .azure-pipelines/azure-pipelines-win.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions .ci_support/linux_ruby2.5.yaml → .ci_support/linux_.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,6 @@ pin_run_as_build:
max_pin: x.x
readline:
- '8.0'
ruby:
- '2.5'
sqlite:
- '3'
zlib:
Expand Down
79 changes: 0 additions & 79 deletions .ci_support/linux_ruby2.6.yaml

This file was deleted.

11 changes: 2 additions & 9 deletions README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions recipe/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,9 @@ if [[ ${HOST} =~ .*darwin.* ]]; then
fi
fi

# Move VERSION file which conflicts with version in libc++ headers in case-insensitive files
mv qtwebengine/src/3rdparty/chromium/third_party/libsrtp/VERSION qtwebengine/src/3rdparty/chromium/third_party/libsrtp/LIBSRTP_VERSION || true;

# -qtlibinfix .conda \

./configure -prefix $PREFIX \
Expand Down
11 changes: 4 additions & 7 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ source:
- patches/0006-qtbase-Do-not-set-PKG_CONFIG_SYSROOT_DIR-when-sysroo.patch
- patches/0007-qtbase-Disable-kTLSProtocol13-for-macOS-10.12.patch
- patches/0008-qtbase-Define-kIOSurfaceSuccess-if-it-is-not-defined.patch
- patches/0009-qtbase-fix-hardcoded-sysroot-path.patch
# - patches/9999-qtbase-use-better-gcc-optimize-size.patch

# qtwinextras
Expand Down Expand Up @@ -64,7 +65,7 @@ source:
folder: opengl32sw # [win64]

build:
number: 0
number: 1
skip: True # [win and vc != 14]
detect_binary_files_with_prefix: true
# QtWebEngine fails on Linux unless we merge
Expand Down Expand Up @@ -118,7 +119,7 @@ requirements:
# Probably only needed for WebEngine
- python 2.7*
- ninja
- ruby # [linux]
- ruby >=2.5 # [linux]
- bison # [linux]
- flex # [linux]
- gperf # [linux]
Expand Down Expand Up @@ -173,9 +174,6 @@ requirements:
- llvmdev
- clangdev
- libclang
- llvmdev 8.* # [osx]
- clangdev 8.* # [osx]
- libclang 8.* # [osx]
run:
- openssl # [not osx]
- libxcb # [linux]
Expand Down Expand Up @@ -223,8 +221,7 @@ test:
- xcrun
commands:
- if not exist %LIBRARY_BIN%\\Qt5WebEngine.dll exit 1 # [win]
- test -f $PREFIX/lib/libQt5WebEngine.so # [linux]
- test -f $PREFIX/lib/libQt5WebEngine.dylib # [osx]
- test -f $PREFIX/lib/libQt5WebEngine${SHLIB_EXT} # [unix]
# sql plugin
- test -f $PREFIX/plugins/sqldrivers/libqsqlite${SHLIB_EXT} # [unix]
- if not exist %LIBRARY_PREFIX%\plugins\sqldrivers\qsqlite.dll exit 1 # [win]
Expand Down
18 changes: 18 additions & 0 deletions recipe/patches/0009-qtbase-fix-hardcoded-sysroot-path.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
diff --git a/src/gui/Qt5GuiConfigExtras.cmake.in b/src/gui/Qt5GuiConfigExtras.cmake.in
index 84dbbfeb..ade39e30 100644
--- a/qtbase/src/gui/Qt5GuiConfigExtras.cmake.in
+++ b/qtbase/src/gui/Qt5GuiConfigExtras.cmake.in
@@ -171,11 +171,11 @@ endmacro()


!!IF !isEmpty(CMAKE_EGL_LIBS)
-_qt5gui_find_extra_libs(EGL \"$$CMAKE_EGL_LIBS\" \"$$CMAKE_EGL_LIBDIR\" \"$$CMAKE_EGL_INCDIRS\")
+_qt5gui_find_extra_libs(EGL \"EGL\" \"\" \"\")
!!ENDIF

!!IF !isEmpty(CMAKE_OPENGL_LIBS)
-_qt5gui_find_extra_libs(OPENGL \"$$CMAKE_OPENGL_LIBS\" \"$$CMAKE_OPENGL_LIBDIR\" \"$$CMAKE_OPENGL_INCDIRS\")
+_qt5gui_find_extra_libs(OPENGL \"GL\" \"\" \"\")

!!ENDIF

0 comments on commit 1725290

Please sign in to comment.