[WPE][GTK] Ensure that jhbuild or flatpak is only used if set explicitly via WEBKIT_JHBUILD=1 or WEBKIT_FLATPAK=1#60862
Conversation
|
EWS run on previous version of this PR (hash 29c9ae7) Details |
| return 0; | ||
| } | ||
|
|
||
| if ((defined $ENV{'WEBKIT_JHBUILD'} && $ENV{'WEBKIT_JHBUILD'}) or (defined $ENV{'WEBKIT_BUILD_USE_SYSTEM_LIBRARIES'} && $ENV{'WEBKIT_BUILD_USE_SYSTEM_LIBRARIES'})) { |
There was a problem hiding this comment.
We don't use WEBKIT_BUILD_USE_SYSTEM_LIBRARIES anymore?
There was a problem hiding this comment.
no, now WEBKIT_CONTAINER_SDK=1 is used to detect that we are inside wkdev-sdk. I think is a more appropriate env var name.
I intend to send another patch to wkdev-sdk to stop setting WEBKIT_BUILD_USE_SYSTEM_LIBRARIES=1 after this lands.
If anyone wants to build against system libraries without using wkdev-sdk then that would still be the default behavior when running build-webkit, no need to export anything, but they would get warnings when running api-tests about not using the right environment for testing.
|
EWS run on previous version of this PR (hash 7e5b3e2) Details |
|
EWS run on previous version of this PR (hash 0305284) Details |
|
EWS run on previous version of this PR (hash 1db360a) Details |
|
EWS run on previous version of this PR (hash b8b785e) Details |
|
EWS run on previous version of this PR (hash f6b795d) Details |
|
EWS run on current version of this PR (hash ec09add) Details |
…tly via WEBKIT_JHBUILD=1 or WEBKIT_FLATPAK=1 https://bugs.webkit.org/show_bug.cgi?id=310187 Reviewed by Philippe Normand. The current status of some scripts like the ones for updating the third-party libs, were to default to using flatpak unless this was executed inside wkdev-sdk. That is wrong, it will confuse new users. This patch changes the logic so the tools behave like this: - if WEBKIT_JHBUILD=1 in environment then try to use jhbuild - if WEBKIT_FLATPAK=1 in environment then try to use flatpak - if WEBKIT_CONTAINER_SDK is not in the environment, then print a warning telling to download and use wkdev-sdk. Using jhbuild or flatpak is something opt-in for advanced use cases, is not something that should be used by default. The checks on the environment variable WEBKIT_BUILD_USE_SYSTEM_LIBRARIES are also removed, because wkdev-sdk now defines WEBKIT_CONTAINER_SDK=1 which is more appropiate. I intend to send another patch to wkdev-sdk to stop setting in the environment WEBKIT_BUILD_USE_SYSTEM_LIBRARIES=1 after this lands. * Tools/Scripts/clean-webkit: (removeDerivedSources): (getKeepDirs): (main): (usesFlatpak): Deleted. * Tools/Scripts/run-gtk-tests: * Tools/Scripts/run-wpe-tests: * Tools/Scripts/update-webkitgtk-libs: * Tools/Scripts/update-webkitwpe-libs: * Tools/Scripts/webkitdirs.pm: (maybeUseContainerSDKRootDir): (wrapperPrefixIfNeeded): (shouldUseFlatpak): (shouldRemoveCMakeCache): (updateGtkOrWpeLibs): * Tools/Scripts/webkitpy/port/base.py: (Port._should_use_jhbuild): * Tools/Scripts/webkitpy/port/base_unittest.py: (PortTest.test_jhbuild_wrapper): * Tools/Scripts/webkitpy/port/linux_container_sdk_utils.py: (maybe_use_container_sdk_root_dir): * Tools/Scripts/webkitpy/port/port_testcase.py: (PortTestCase.test_diff_image): * Tools/Scripts/webkitpy/w3c/wpt_runner.py: (main): * Tools/flatpak/flatpakutils.py: (should_use_flatpak): (run_in_sandbox_if_available): * Tools/glib/api_test_runner.py: (check_environment): * Tools/jhbuild/jhbuildutils.py: (should_use_jhbuild): (enter_jhbuild_environment_if_available): Canonical link: https://commits.webkit.org/309557@main
ec09add to
23deb26
Compare
|
Committed 309557@main (23deb26): https://commits.webkit.org/309557@main Reviewed commits have been landed. Closing PR #60862 and removing active labels. |
23deb26
ec09add