Package Details: java8-openjfx-src 8.u202-10

Git Clone URL: https://aur.archlinux.org/java8-openjfx.git (read-only, click to copy)
Package Base: java8-openjfx
Description: Java OpenJFX 8 client application platform (open-source implementation of JavaFX)
Upstream URL: https://wiki.openjdk.java.net/display/OpenJFX/Main
Keywords: java8-openjfx openjfx
Licenses: GPL
Submitter: freswa
Maintainer: Rogach
Last Packager: Rogach
Votes: 13
Popularity: 1.08
First Submitted: 2022-03-09 18:41 (UTC)
Last Updated: 2024-05-25 07:41 (UTC)

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 8 9 10 .. 14 Next › Last »

Rogach commented on 2024-04-03 05:47 (UTC)

@malsyned I've added User-Agent spoofing to the download process, should work now.

malsyned commented on 2024-04-02 22:43 (UTC)

The download is failing for me right now:

==> Retrieving sources...
  -> Downloading 8u202-ga.tar.bz2...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:02 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:03 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:04 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:05 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:06 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:07 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:08 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:09 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:10 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:10 --:--:--     0

  0     0    0     0    0     0      0      0 --:--:--  0:00:10 --:--:--     0
curl: (92) HTTP/2 stream 1 was not closed cleanly: INTERNAL_ERROR (err 2)
==> ERROR: Failure while downloading https://hg.openjdk.java.net/openjfx/8u-dev/rt/archive/8u202-ga.tar.bz2
    Aborting...
Failed to build java8-openjfx

This looks to me like hg.openjdk.java.net attempting to prevent scraping. If I run curl on that URL from the shell, the download hangs indefinitely. However, if I use -A to spoof Chrome's User-Agent header as follows, the download completes successfully.

curl -O --user-agent 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36' https://hg.openjdk.java.net/openjfx/8u-dev/rt/archive/8u202-ga.tar.bz2

nyadiia commented on 2024-02-28 17:00 (UTC) (edited on 2024-02-28 17:01 (UTC) by nyadiia)

build fails for me with this output:

    ==> Making package: java8-openjfx 8.u202-9 (Wed 28 Feb 2024 10:50:10 AM CST)
    ==> Checking runtime dependencies...
    ==> Checking buildtime dependencies...
    ==> Retrieving sources...
      -> Downloading 8u202-ga.tar.bz2...
      % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                     Dload  Upload   Total   Spent    Left  Speed
      0     0    0     0    0     0      0      0 --:--:--  0:00:10 --:--:--     0
    100 59.1M    0 59.1M    0     0  1129k      0 --:--:--  0:00:53 --:--:--  785k
      -> Found gradle.properties
      -> Downloading gradle-4.8-bin.zip...
      % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                     Dload  Upload   Total   Spent    Left  Speed
      0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
      0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
    100 72.3M  100 72.3M    0     0  25.2M      0  0:00:02  0:00:02 --:--:-- 30.0M
      -> Found java8-openjfx-flags.patch
      -> Found java8-openjfx-no-xlocale.patch
      -> Found java8-openjfx-no-sys-sysctl.patch
      -> Found java8-openjfx-CVE-2021-3517-fix.patch
      -> Found java8-openjfx-CVE-2021-3522-fix.patch
      -> Found java8-openjfx-include-iterator.patch
      -> Found java8-openjfx-no-check-jfxrt-jar.patch
      -> Found java8-openjfx-fix-java-version-check.patch
    ==> Validating source files with sha256sums...
        8u202-ga.tar.bz2 ... Passed
        gradle.properties ... Passed
        gradle-4.8-bin.zip ... Passed
        java8-openjfx-flags.patch ... Passed
        java8-openjfx-no-xlocale.patch ... Passed
        java8-openjfx-no-sys-sysctl.patch ... Passed
        java8-openjfx-CVE-2021-3517-fix.patch ... Passed
        java8-openjfx-CVE-2021-3522-fix.patch ... Passed
        java8-openjfx-include-iterator.patch ... Passed
        java8-openjfx-no-check-jfxrt-jar.patch ... Passed
        java8-openjfx-fix-java-version-check.patch ... Passed
    ==> Extracting sources...
      -> Extracting 8u202-ga.tar.bz2 with bsdtar
      -> Extracting gradle-4.8-bin.zip with bsdtar
    ==> Starting prepare()...
    patching file buildSrc/linux.gradle
    patching file modules/media/src/main/native/gstreamer/projects/linux/avplugin/Makefile
    patching file modules/media/src/main/native/gstreamer/projects/linux/fxplugins/Makefile
    patching file modules/media/src/main/native/gstreamer/projects/linux/gstreamer-lite/Makefile
    patching file modules/media/src/main/native/jfxmedia/projects/linux/Makefile
    patching file modules/media/src/main/native/gstreamer/projects/linux/glib-lite/Makefile
    patching file modules/media/src/main/native/gstreamer/3rd_party/glib/glib-2.56.1/glib/gstrfuncs.c
    patching file modules/web/src/main/native/Source/ThirdParty/libxslt/src/libxslt/xsltlocale.h
    patching file modules/fxpackager/src/main/native/library/common/PosixPlatform.cpp
    patching file entities.c
    Hunk #1 succeeded at 666 (offset -38 lines).
    patching file gst-libs/gst/tag/id3v2frames.c
    patching file modules/web/src/main/native/Source/WTF/wtf/text/IntegerToStringConversion.h
    patching file modules/web/src/main/native/Source/WTF/wtf/Vector.h
    patching file build.gradle
    patching file build.gradle
    ==> Starting build()...
    /home/nyadiia/Downloads/java8-openjfx/PKGBUILD: line 86: 163884 Segmentation fault      (core dumped) ../gradle-4.8/bin/gradle
    ==> ERROR: A failure occurred in build().
        Aborting...

i've also tried disabling media and webkit in gradle.properties and it has the same error

Moebius14 commented on 2023-08-25 18:03 (UTC) (edited on 2023-08-25 18:04 (UTC) by Moebius14)

Finally managed to build it after it always failed due some problem with ::LinuxGStreamer::.

What did the trick was disabling media & webkit support in gradle.properties.

Rogach commented on 2023-07-22 06:33 (UTC)

@cedric-air Glad to hear that the problem is resolved :)

cedric-air commented on 2023-07-21 16:23 (UTC)

I tried it again, and now it works without any error. Maybe the build failed because I didn't update all my aur packages yet, of I updated another aur package while building this one.

cedric-air commented on 2023-07-21 16:04 (UTC) (edited on 2023-07-21 16:06 (UTC) by cedric-air)

Build fails for me after rebuilding my other aur packages:

../../lib/libWebCore.a(../../lib/../Source/WebCore/CMakeFiles/WebCore.dir/html/track/VideoTrack.cpp.o):VideoTrack.cpp:function WebCore::VideoTrack::willRemove(): error: undefined reference to 'WebCore::HTMLMediaElement::removeVideoTrack(WebCore::VideoTrack&)'
../../lib/libWebCore.a(../../lib/../Source/WebCore/CMakeFiles/WebCore.dir/html/track/VideoTrack.cpp.o):VideoTrack.cpp:function non-virtual thunk to WebCore::VideoTrack::willRemove(): error: undefined reference to 'WebCore::HTMLMediaElement::removeVideoTrack(WebCore::VideoTrack&)'
../../lib/libWebCore.a(../../lib/../Source/WebCore/CMakeFiles/WebCore.dir/html/track/InbandGenericTextTrack.cpp.o):InbandGenericTextTrack.cpp:function WebCore::InbandGenericTextTrack::updateCueFromCueData(WebCore::TextTrackCueGeneric&, WebCore::GenericCueData&): error: undefined reference to 'WebCore::HTMLMediaElement::durationMediaTime() const'
../../lib/libWebCoreTestSupport.a(../../lib/../Source/WebCore/CMakeFiles/WebCoreTestSupport.dir/testing/Internals.cpp.o):Internals.cpp:function WebCore::Internals::selectColorInColorChooser(WebCore::HTMLInputElement&, WTF::String const&): error: undefined reference to 'WebCore::HTMLInputElement::selectColor(WTF::StringView)'
../../lib/libWebCoreTestSupport.a(../../lib/../Source/WebCore/CMakeFiles/WebCoreTestSupport.dir/testing/Internals.cpp.o):Internals.cpp:function WebCore::Internals::markerCountForNode(WebCore::Node&, WTF::String const&): error: undefined reference to 'WebCore::Editor::updateEditorUINowIfScheduled()'
../../lib/libWebCoreTestSupport.a(../../lib/../Source/WebCore/CMakeFiles/WebCoreTestSupport.dir/testing/Internals.cpp.o):Internals.cpp:function WebCore::Internals::markerAt(WebCore::Node&, WTF::String const&, unsigned int): error: undefined reference to 'WebCore::Editor::updateEditorUINowIfScheduled()'
../../lib/libWebCoreTestSupport.a(../../lib/../Source/WebCore/CMakeFiles/WebCoreTestSupport.dir/testing/Internals.cpp.o):Internals.cpp:function WebCore::Internals::setMarkedTextMatchesAreHighlighted(bool): error: undefined reference to 'WebCore::Editor::setMarkedTextMatchesAreHighlighted(bool)'
../../lib/libWebCoreTestSupport.a(../../lib/../Source/WebCore/CMakeFiles/WebCoreTestSupport.dir/testing/Internals.cpp.o):Internals.cpp:function WebCore::Internals::wasLastChangeUserEdit(WebCore::Element&): error: undefined reference to 'WebCore::HTMLTextFormControlElement::lastChangeWasUserEdit() const'
../../lib/libWebCoreTestSupport.a(../../lib/../Source/WebCore/CMakeFiles/WebCoreTestSupport.dir/testing/Internals.cpp.o):Internals.cpp:function WebCore::Internals::setEditingValue(WebCore::HTMLInputElement&, WTF::String const&): error: undefined reference to 'WebCore::HTMLInputElement::setEditingValue(WTF::String const&)'
../../lib/libWebCoreTestSupport.a(../../lib/../Source/WebCore/CMakeFiles/WebCoreTestSupport.dir/testing/Internals.cpp.o):Internals.cpp:function WebCore::Internals::setAutofilled(WebCore::HTMLInputElement&, bool): error: undefined reference to 'WebCore::HTMLInputElement::setAutoFilled(bool)'
../../lib/libWebCoreTestSupport.a(../../lib/../Source/WebCore/CMakeFiles/WebCoreTestSupport.dir/testing/Internals.cpp.o):Internals.cpp:function WebCore::Internals::setShowAutoFillButton(WebCore::HTMLInputElement&, WebCore::Internals::AutoFillButtonType): error: undefined reference to 'WebCore::HTMLInputElement::setShowAutoFillButton(WebCore::AutoFillButtonType)'
../../lib/libWebCoreTestSupport.a(../../lib/../Source/WebCore/CMakeFiles/WebCoreTestSupport.dir/testing/Internals.cpp.o):Internals.cpp:function WebCore::Internals::autofillFieldName(WebCore::Element&): error: undefined reference to 'WebCore::HTMLFormControlElement::autofillData() const'
../../lib/libWebCoreTestSupport.a(../../lib/../Source/WebCore/CMakeFiles/WebCoreTestSupport.dir/testing/Internals.cpp.o):Internals.cpp:function WebCore::Internals::updateEditorUINowIfScheduled(): error: undefined reference to 'WebCore::Editor::updateEditorUINowIfScheduled()'
../../lib/libWebCoreTestSupport.a(../../lib/../Source/WebCore/CMakeFiles/WebCoreTestSupport.dir/testing/Internals.cpp.o):Internals.cpp:function WebCore::Internals::hasSpellingMarker(int, int): error: undefined reference to 'WebCore::Editor::selectionStartHasMarkerFor(WebCore::DocumentMarker::MarkerType, int, int) const'
../../lib/libWebCoreTestSupport.a(../../lib/../Source/WebCore/CMakeFiles/WebCoreTestSupport.dir/testing/Internals.cpp.o):Internals.cpp:function WebCore::Internals::hasAutocorrectedMarker(int, int): error: undefined reference to 'WebCore::Editor::selectionStartHasMarkerFor(WebCore::DocumentMarker::MarkerType, int, int) const'
../../lib/libWebCoreTestSupport.a(../../lib/../Source/WebCore/CMakeFiles/WebCoreTestSupport.dir/testing/Internals.cpp.o):Internals.cpp:function WebCore::Internals::setContinuousSpellCheckingEnabled(bool): error: undefined reference to 'WebCore::Editor::isContinuousSpellCheckingEnabled() const'
../../lib/libWebCoreTestSupport.a(../../lib/../Source/WebCore/CMakeFiles/WebCoreTestSupport.dir/testing/Internals.cpp.o):Internals.cpp:function WebCore::Internals::setContinuousSpellCheckingEnabled(bool): error: undefined reference to 'WebCore::Editor::toggleContinuousSpellChecking()'
../../lib/libWebCoreTestSupport.a(../../lib/../Source/WebCore/CMakeFiles/WebCoreTestSupport.dir/testing/Internals.cpp.o):Internals.cpp:function WebCore::Internals::toggleOverwriteModeEnabled(): error: undefined reference to 'WebCore::Editor::toggleOverwriteModeEnabled()'
../../lib/libWebCoreTestSupport.a(../../lib/../Source/WebCore/CMakeFiles/WebCoreTestSupport.dir/testing/Internals.cpp.o):Internals.cpp:function WebCore::Internals::rangeOfString(WTF::String const&, WTF::RefPtr<WebCore::Range, WTF::DumbPtrTraits<WebCore::Range> >&&, WTF::Vector<WTF::String, 0ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc> const&): error: undefined reference to 'WebCore::Editor::rangeOfString(WTF::String const&, WebCore::Range*, WTF::OptionSet<WebCore::FindOptionFlag>)'
../../lib/libWebCoreTestSupport.a(../../lib/../Source/WebCore/CMakeFiles/WebCoreTestSupport.dir/testing/Internals.cpp.o):Internals.cpp:function WebCore::Internals::hasGrammarMarker(int, int): error: undefined reference to 'WebCore::Editor::selectionStartHasMarkerFor(WebCore::DocumentMarker::MarkerType, int, int) const'
../../lib/libWebCoreTestSupport.a(../../lib/../Source/WebCore/CMakeFiles/WebCoreTestSupport.dir/testing/Internals.cpp.o):Internals.cpp:function WebCore::Internals::setElementUsesDisplayListDrawing(WebCore::Element&, bool): error: undefined reference to 'WebCore::HTMLCanvasElement::setUsesDisplayListDrawing(bool)'
../../lib/libWebCoreTestSupport.a(../../lib/../Source/WebCore/CMakeFiles/WebCoreTestSupport.dir/testing/Internals.cpp.o):Internals.cpp:function WebCore::Internals::setElementTracksDisplayListReplay(WebCore::Element&, bool): error: undefined reference to 'WebCore::HTMLCanvasElement::setTracksDisplayListReplay(bool)'
../../lib/libWebCoreTestSupport.a(../../lib/../Source/WebCore/CMakeFiles/WebCoreTestSupport.dir/testing/Internals.cpp.o):Internals.cpp:function WebCore::Internals::isPluginUnavailabilityIndicatorObscured(WebCore::Element&): error: undefined reference to 'WebCore::HTMLPlugInElement::isReplacementObscured()'
../../lib/libWebCoreTestSupport.a(../../lib/../Source/WebCore/CMakeFiles/WebCoreTestSupport.dir/testing/Internals.cpp.o):Internals.cpp:function WebCore::Internals::setMediaElementRestrictions(WebCore::HTMLMediaElement&, WTF::StringView): error: undefined reference to 'WebCore::MediaElementSession::removeBehaviorRestriction(unsigned int)'
../../lib/libWebCoreTestSupport.a(../../lib/../Source/WebCore/CMakeFiles/WebCoreTestSupport.dir/testing/Internals.cpp.o):Internals.cpp:function WebCore::Internals::setMediaElementRestrictions(WebCore::HTMLMediaElement&, WTF::StringView): error: undefined reference to 'WebCore::MediaElementSession::addBehaviorRestriction(unsigned int)'
../../lib/libWebCoreTestSupport.a(../../lib/../Source/WebCore/CMakeFiles/WebCoreTestSupport.dir/testing/Internals.cpp.o):Internals.cpp:function WebCore::Internals::getCurrentMediaControlsStatusForElement(WebCore::HTMLMediaElement&): error: undefined reference to 'WebCore::HTMLMediaElement::getCurrentMediaControlsStatus()'
../../lib/libWebCoreTestSupport.a(../../lib/../Source/WebCore/CMakeFiles/WebCoreTestSupport.dir/testing/Internals.cpp.o):Internals.cpp:function WebCore::Internals::setBaseWritingDirection(WebCore::Internals::BaseWritingDirection): error: undefined reference to 'WebCore::Editor::setBaseWritingDirection(WritingDirection)'
../../lib/libWebCoreTestSupport.a(../../lib/../Source/WebCore/CMakeFiles/WebCoreTestSupport.dir/testing/Internals.cpp.o):Internals.cpp:function WebCore::Internals::displayListForElement(WebCore::Element&, unsigned short): error: undefined reference to 'WebCore::HTMLCanvasElement::displayListAsText(unsigned int) const'
../../lib/libWebCoreTestSupport.a(../../lib/../Source/WebCore/CMakeFiles/WebCoreTestSupport.dir/testing/Internals.cpp.o):Internals.cpp:function WebCore::Internals::replayDisplayListForElement(WebCore::Element&, unsigned short): error: undefined reference to 'WebCore::HTMLCanvasElement::replayDisplayListAsText(unsigned int) const'
../../lib/libWebCoreTestSupport.a(../../lib/../Source/WebCore/CMakeFiles/WebCoreTestSupport.dir/testing/Internals.cpp.o):Internals.cpp:function WebCore::Internals::handleAcceptedCandidate(WTF::String const&, unsigned int, unsigned int): error: undefined reference to 'WebCore::Editor::handleAcceptedCandidate(WebCore::TextCheckingResult)'
../../lib/libWebCoreTestSupport.a(../../lib/../Source/WebCore/CMakeFiles/WebCoreTestSupport.dir/testing/Internals.cpp.o):Internals.cpp:function WebCore::Internals::mediaResponseSources(WebCore::HTMLMediaElement&): error: undefined reference to 'WebCore::HTMLMediaElement::lastMediaResourceLoaderForTesting() const'
../../lib/libWebCoreTestSupport.a(../../lib/../Source/WebCore/CMakeFiles/WebCoreTestSupport.dir/testing/Internals.cpp.o):Internals.cpp:function WebCore::Internals::mediaResponseContentRanges(WebCore::HTMLMediaElement&): error: undefined reference to 'WebCore::HTMLMediaElement::lastMediaResourceLoaderForTesting() const'
../../lib/libWebCoreTestSupport.a(../../lib/../Source/WebCore/CMakeFiles/WebCoreTestSupport.dir/testing/Internals.cpp.o):Internals.cpp:function WebCore::Internals::resetToConsistentState(WebCore::Page&): error: undefined reference to 'WebCore::Editor::isContinuousSpellCheckingEnabled() const'
../../lib/libWebCoreTestSupport.a(../../lib/../Source/WebCore/CMakeFiles/WebCoreTestSupport.dir/testing/Internals.cpp.o):Internals.cpp:function WebCore::Internals::resetToConsistentState(WebCore::Page&): error: undefined reference to 'WebCore::Editor::toggleOverwriteModeEnabled()'
../../lib/libWebCoreTestSupport.a(../../lib/../Source/WebCore/CMakeFiles/WebCoreTestSupport.dir/testing/Internals.cpp.o):Internals.cpp:function WebCore::Internals::resetToConsistentState(WebCore::Page&): error: undefined reference to 'WebCore::Editor::toggleContinuousSpellChecking()'
collect2: error: ld returned 1 exit status
make[2]: *** [Source/WebCore/CMakeFiles/JFXWebKit.dir/build.make:707: lib/libjfxwebkit.so] Error 1
make[1]: *** [CMakeFiles/Makefile2:567: Source/WebCore/CMakeFiles/JFXWebKit.dir/all] Error 2
make: *** [Makefile:111: all] Error 2

> Task :web:compileNativeLinux FAILED

FAILURE: Build failed with an exception.

* Where:
Build file '/home/cedric/Downloads/java8-openjfx/src/rt-8u202-ga/build.gradle' line: 2583

* What went wrong:
Execution failed for task ':web:compileNativeLinux'.
> Process 'command 'perl'' finished with non-zero exit value 2

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 8m 50s
39 actionable tasks: 11 executed, 28 up-to-date
==> ERROR: A failure occurred in build().
    Aborting...

I think it can't find a certain library, but makepakage doesn't report missing packages:

$ makepkg
==> Making package: java8-openjfx 8.u202-9 (Fri Jul 21 16:00:54 2023)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found 8u202-ga.tar.bz2
  -> Found gradle.properties
  -> Found gradle-4.8-bin.zip
  -> Found java8-openjfx-flags.patch
  -> Found java8-openjfx-no-xlocale.patch
  -> Found java8-openjfx-no-sys-sysctl.patch
  -> Found java8-openjfx-CVE-2021-3517-fix.patch
  -> Found java8-openjfx-CVE-2021-3522-fix.patch
  -> Found java8-openjfx-include-iterator.patch
  -> Found java8-openjfx-no-check-jfxrt-jar.patch
  -> Found java8-openjfx-fix-java-version-check.patch
==> Validating source files with sha256sums...
    8u202-ga.tar.bz2 ... Passed
    gradle.properties ... Passed
    gradle-4.8-bin.zip ... Passed
    java8-openjfx-flags.patch ... Passed
    java8-openjfx-no-xlocale.patch ... Passed
    java8-openjfx-no-sys-sysctl.patch ... Passed
    java8-openjfx-CVE-2021-3517-fix.patch ... Passed
    java8-openjfx-CVE-2021-3522-fix.patch ... Passed
    java8-openjfx-include-iterator.patch ... Passed
    java8-openjfx-no-check-jfxrt-jar.patch ... Passed
    java8-openjfx-fix-java-version-check.patch ... Passed
==> Extracting sources...
  -> Extracting 8u202-ga.tar.bz2 with bsdtar
bsdtar: Failed to set default locale
  -> Extracting gradle-4.8-bin.zip with bsdtar
bsdtar: Failed to set default locale
==> Starting prepare()...
patching file buildSrc/linux.gradle
patching file modules/media/src/main/native/gstreamer/projects/linux/avplugin/Makefile
patching file modules/media/src/main/native/gstreamer/projects/linux/fxplugins/Makefile
patching file modules/media/src/main/native/gstreamer/projects/linux/gstreamer-lite/Makefile

My versions:

$ uname -a
Linux cedric-work-laptop 6.4.4-arch1-1 #1 SMP PREEMPT_DYNAMIC Wed, 19 Jul 2023 19:19:38 +0000 x86_64 GNU/Linux
$ pacman -Q python2 openssl-1.1
python2 2.7.18-8
openssl-1.1 1.1.1.u-1
$ python2 -v
# installing zipimport hook
import zipimport # builtin
# installed zipimport hook
# /usr/lib/python2.7/site.pyc matches /usr/lib/python2.7/site.py
import site # precompiled from /usr/lib/python2.7/site.pyc
# /usr/lib/python2.7/os.pyc matches /usr/lib/python2.7/os.py
import os # precompiled from /usr/lib/python2.7/os.pyc
import errno # builtin
import posix # builtin
# /usr/lib/python2.7/posixpath.pyc matches /usr/lib/python2.7/posixpath.py
import posixpath # precompiled from /usr/lib/python2.7/posixpath.pyc
# /usr/lib/python2.7/stat.pyc matches /usr/lib/python2.7/stat.py
import stat # precompiled from /usr/lib/python2.7/stat.pyc
# /usr/lib/python2.7/genericpath.pyc matches /usr/lib/python2.7/genericpath.py
import genericpath # precompiled from /usr/lib/python2.7/genericpath.pyc
# /usr/lib/python2.7/warnings.pyc matches /usr/lib/python2.7/warnings.py
import warnings # precompiled from /usr/lib/python2.7/warnings.pyc
# /usr/lib/python2.7/linecache.pyc matches /usr/lib/python2.7/linecache.py
import linecache # precompiled from /usr/lib/python2.7/linecache.pyc
# /usr/lib/python2.7/types.pyc matches /usr/lib/python2.7/types.py
import types # precompiled from /usr/lib/python2.7/types.pyc
# /usr/lib/python2.7/UserDict.pyc matches /usr/lib/python2.7/UserDict.py
import UserDict # precompiled from /usr/lib/python2.7/UserDict.pyc
# /usr/lib/python2.7/_abcoll.pyc matches /usr/lib/python2.7/_abcoll.py
import _abcoll # precompiled from /usr/lib/python2.7/_abcoll.pyc
# /usr/lib/python2.7/abc.pyc matches /usr/lib/python2.7/abc.py
import abc # precompiled from /usr/lib/python2.7/abc.pyc
# /usr/lib/python2.7/_weakrefset.pyc matches /usr/lib/python2.7/_weakrefset.py
import _weakrefset # precompiled from /usr/lib/python2.7/_weakrefset.pyc
import _weakref # builtin
# /usr/lib/python2.7/copy_reg.pyc matches /usr/lib/python2.7/copy_reg.py
import copy_reg # precompiled from /usr/lib/python2.7/copy_reg.pyc
# /usr/lib/python2.7/traceback.pyc matches /usr/lib/python2.7/traceback.py
import traceback # precompiled from /usr/lib/python2.7/traceback.pyc
# /usr/lib/python2.7/sysconfig.pyc matches /usr/lib/python2.7/sysconfig.py
import sysconfig # precompiled from /usr/lib/python2.7/sysconfig.pyc
# /usr/lib/python2.7/re.pyc matches /usr/lib/python2.7/re.py
import re # precompiled from /usr/lib/python2.7/re.pyc
# /usr/lib/python2.7/sre_compile.pyc matches /usr/lib/python2.7/sre_compile.py
import sre_compile # precompiled from /usr/lib/python2.7/sre_compile.pyc
import _sre # builtin
# /usr/lib/python2.7/sre_parse.pyc matches /usr/lib/python2.7/sre_parse.py
import sre_parse # precompiled from /usr/lib/python2.7/sre_parse.pyc
# /usr/lib/python2.7/sre_constants.pyc matches /usr/lib/python2.7/sre_constants.py
import sre_constants # precompiled from /usr/lib/python2.7/sre_constants.pyc
dlopen("/usr/lib/python2.7/lib-dynload/_locale.so", 2);
import _locale # dynamically loaded from /usr/lib/python2.7/lib-dynload/_locale.so
# /usr/lib/python2.7/_sysconfigdata.pyc matches /usr/lib/python2.7/_sysconfigdata.py
import _sysconfigdata # precompiled from /usr/lib/python2.7/_sysconfigdata.pyc
import encodings # directory /usr/lib/python2.7/encodings
# /usr/lib/python2.7/encodings/__init__.pyc matches /usr/lib/python2.7/encodings/__init__.py
import encodings # precompiled from /usr/lib/python2.7/encodings/__init__.pyc
# /usr/lib/python2.7/codecs.pyc matches /usr/lib/python2.7/codecs.py
import codecs # precompiled from /usr/lib/python2.7/codecs.pyc
import _codecs # builtin
# /usr/lib/python2.7/encodings/aliases.pyc matches /usr/lib/python2.7/encodings/aliases.py
import encodings.aliases # precompiled from /usr/lib/python2.7/encodings/aliases.pyc
# /usr/lib/python2.7/encodings/ascii.pyc matches /usr/lib/python2.7/encodings/ascii.py
import encodings.ascii # precompiled from /usr/lib/python2.7/encodings/ascii.pyc
Python 2.7.18 (default, Jul 21 2023, 14:38:48) 
[GCC 13.1.1 20230714] on linux2
Type "help", "copyright", "credits" or "license" for more information.
dlopen("/usr/lib/python2.7/lib-dynload/readline.so", 2);
import readline # dynamically loaded from /usr/lib/python2.7/lib-dynload/readline.so
>>> quit
Use quit() or Ctrl-D (i.e. EOF) to exit
>>> quit()
# clear __builtin__._
# clear sys.path
# clear sys.argv
# clear sys.ps1

Rogach commented on 2023-07-21 06:04 (UTC)

@cedric-air python2 depends on openssl-1.1, not openssl.

It seems at least python2 version on my machine is slightly newer:

$ pacman -Q python2 openssl-1.1
python2 2.7.18-8
openssl-1.1 1.1.1.u-1

Your python2 version looks to be almost two years old:

Python 2.7.18 (default, Oct 10 2021, 22:29:32)

Perhaps rebuilding python2 (and possibly updating openssl-1.1) will help?

cedric-air commented on 2023-07-21 05:57 (UTC)

[cedric@cedric-work-laptop git-werkmap]$ pacman -Q python
python 3.11.3-2
[cedric@cedric-work-laptop git-werkmap]$ pacman -Q python2
python2 2.7.18-5
[cedric@cedric-work-laptop git-werkmap]$ pacman -Q openssl
openssl 3.1.1-1
[cedric@cedric-work-laptop git-werkmap]$ openssl version
OpenSSL 3.1.1 30 May 2023 (Library: OpenSSL 3.1.1 30 May 2023)

and

$ python2 -v
# installing zipimport hook
import zipimport # builtin
# installed zipimport hook
# /usr/lib/python2.7/site.pyc matches /usr/lib/python2.7/site.py
import site # precompiled from /usr/lib/python2.7/site.pyc
# /usr/lib/python2.7/os.pyc matches /usr/lib/python2.7/os.py
import os # precompiled from /usr/lib/python2.7/os.pyc
import errno # builtin
import posix # builtin
# /usr/lib/python2.7/posixpath.pyc matches /usr/lib/python2.7/posixpath.py
import posixpath # precompiled from /usr/lib/python2.7/posixpath.pyc
# /usr/lib/python2.7/stat.pyc matches /usr/lib/python2.7/stat.py
import stat # precompiled from /usr/lib/python2.7/stat.pyc
# /usr/lib/python2.7/genericpath.pyc matches /usr/lib/python2.7/genericpath.py
import genericpath # precompiled from /usr/lib/python2.7/genericpath.pyc
# /usr/lib/python2.7/warnings.pyc matches /usr/lib/python2.7/warnings.py
import warnings # precompiled from /usr/lib/python2.7/warnings.pyc
# /usr/lib/python2.7/linecache.pyc matches /usr/lib/python2.7/linecache.py
import linecache # precompiled from /usr/lib/python2.7/linecache.pyc
# /usr/lib/python2.7/types.pyc matches /usr/lib/python2.7/types.py
import types # precompiled from /usr/lib/python2.7/types.pyc
# /usr/lib/python2.7/UserDict.pyc matches /usr/lib/python2.7/UserDict.py
import UserDict # precompiled from /usr/lib/python2.7/UserDict.pyc
# /usr/lib/python2.7/_abcoll.pyc matches /usr/lib/python2.7/_abcoll.py
import _abcoll # precompiled from /usr/lib/python2.7/_abcoll.pyc
# /usr/lib/python2.7/abc.pyc matches /usr/lib/python2.7/abc.py
import abc # precompiled from /usr/lib/python2.7/abc.pyc
# /usr/lib/python2.7/_weakrefset.pyc matches /usr/lib/python2.7/_weakrefset.py
import _weakrefset # precompiled from /usr/lib/python2.7/_weakrefset.pyc
import _weakref # builtin
# /usr/lib/python2.7/copy_reg.pyc matches /usr/lib/python2.7/copy_reg.py
import copy_reg # precompiled from /usr/lib/python2.7/copy_reg.pyc
# /usr/lib/python2.7/traceback.pyc matches /usr/lib/python2.7/traceback.py
import traceback # precompiled from /usr/lib/python2.7/traceback.pyc
# /usr/lib/python2.7/sysconfig.pyc matches /usr/lib/python2.7/sysconfig.py
import sysconfig # precompiled from /usr/lib/python2.7/sysconfig.pyc
# /usr/lib/python2.7/re.pyc matches /usr/lib/python2.7/re.py
import re # precompiled from /usr/lib/python2.7/re.pyc
# /usr/lib/python2.7/sre_compile.pyc matches /usr/lib/python2.7/sre_compile.py
import sre_compile # precompiled from /usr/lib/python2.7/sre_compile.pyc
import _sre # builtin
# /usr/lib/python2.7/sre_parse.pyc matches /usr/lib/python2.7/sre_parse.py
import sre_parse # precompiled from /usr/lib/python2.7/sre_parse.pyc
# /usr/lib/python2.7/sre_constants.pyc matches /usr/lib/python2.7/sre_constants.py
import sre_constants # precompiled from /usr/lib/python2.7/sre_constants.pyc
dlopen("/usr/lib/python2.7/lib-dynload/_locale.so", 2);
import _locale # dynamically loaded from /usr/lib/python2.7/lib-dynload/_locale.so
# /usr/lib/python2.7/_sysconfigdata.pyc matches /usr/lib/python2.7/_sysconfigdata.py
import _sysconfigdata # precompiled from /usr/lib/python2.7/_sysconfigdata.pyc
import encodings # directory /usr/lib/python2.7/encodings
# /usr/lib/python2.7/encodings/__init__.pyc matches /usr/lib/python2.7/encodings/__init__.py
import encodings # precompiled from /usr/lib/python2.7/encodings/__init__.pyc
# /usr/lib/python2.7/codecs.pyc matches /usr/lib/python2.7/codecs.py
import codecs # precompiled from /usr/lib/python2.7/codecs.pyc
import _codecs # builtin
# /usr/lib/python2.7/encodings/aliases.pyc matches /usr/lib/python2.7/encodings/aliases.py
import encodings.aliases # precompiled from /usr/lib/python2.7/encodings/aliases.pyc
# /usr/lib/python2.7/encodings/ascii.pyc matches /usr/lib/python2.7/encodings/ascii.py
import encodings.ascii # precompiled from /usr/lib/python2.7/encodings/ascii.pyc
Python 2.7.18 (default, Oct 10 2021, 22:29:32) 
[GCC 11.1.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
dlopen("/usr/lib/python2.7/lib-dynload/readline.so", 2);
import readline # dynamically loaded from /usr/lib/python2.7/lib-dynload/readline.so
>>>