Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

drkonqi-9999.ebuild missing runtime packages dependency #937

Closed
wants to merge 1 commit into from

Conversation

rachid-a
Copy link
Contributor

@rachid-a rachid-a commented Dec 8, 2023

-- The following RUNTIME packages have not been found:

  • pygdbmi-PythonModule, Python module 'pygdbmi' is a runtime dependency.
  • sentry_sdk-PythonModule, Python module 'sentry_sdk' is a runtime dependency.

Error:
1/98] cd /var/tmp/portage/kde-plasma/drkonqi-9999/work/drkonqi-9999_build && /usr/bin/cmake -DPython3_EXECUTABLE=/usr/bin/python3 -D_ki18n_pmap_compile_script=/usr/lib64/cmake/KF6I18n/ts-pmap-compile.py -DCOPY_TO=/var/tmp/portage/kde-plasma/drkonqi-9999/work/drkonqi-9999_build/locale -DPO_DIR=/var/tmp/portage/kde-plasma/drkonqi-9999/work/drkonqi-9999/po -P /usr/lib64/cmake/KF6I18n/build-tsfiles.cmake
[2/98] cd /var/tmp/portage/kde-plasma/drkonqi-9999/work/drkonqi-9999_build && /usr/bin/cmake -DGETTEXT_MSGFMT_EXECUTABLE=/usr/bin/msgfmt -DCOPY_TO=/var/tmp/portage/kde-plasma/drkonqi-9999/work/drkonqi-9999_build/locale -DPO_DIR=/var/tmp/portage/kde-plasma/drkonqi-9999/work/drkonqi-9999/po -P /usr/lib64/cmake/KF6I18n/build-pofiles.cmake
[3/98] cd /var/tmp/portage/kde-plasma/drkonqi-9999/work/drkonqi-9999_build/src/data && pip_EXE-NOTFOUND install --target /var/tmp/portage/kde-plasma/drkonqi-9999/work/drkonqi-9999_build/src/data/python pygdbmi psutil sentry-sdk
�[31mFAILED: �[0msrc/data/CMakeFiles/python_vendor src/data/python /var/tmp/portage/kde-plasma/drkonqi-9999/work/drkonqi-9999_build/src/data/CMakeFiles/python_vendor /var/tmp/portage/kde-plasma/drkonqi-9999/work/drkonqi-9999_build/src/data/python
cd /var/tmp/portage/kde-plasma/drkonqi-9999/work/drkonqi-9999_build/src/data && pip_EXE-NOTFOUND install --target /var/tmp/portage/kde-plasma/drkonqi-9999/work/drkonqi-9999_build/src/data/python pygdbmi psutil sentry-sdk
/bin/sh: line 1: pip_EXE-NOTFOUND: command not found
[4/98] cd /var/tmp/portage/kde-plasma/drkonqi-9999/work/drkonqi-9999_build/src/bugzillaintegration/libbugzilla && /usr/bin/cmake -E cmake_autogen /var/tmp/portage/kde-plasma/drkonqi-9999/work/drkonqi-9999_build/src/bugzillaintegration/libbugzilla/CMakeFiles/qbugzilla_autogen.dir/AutogenInfo.json RelWithDebInfo && /usr/bin/cmake -E touch /var/tmp/portage/kde-plasma/drkonqi-9999/work/drkonqi-9999_build/src/bugzillaintegration/libbugzilla/qbugzilla_autogen/timestamp && /usr/bin/cmake -E cmake_transform_depfile Ninja gccdepfile /var/tmp/portage/kde-plasma/drkonqi-9999/work/drkonqi-9999 /var/tmp/portage/kde-plasma/drkonqi-9999/work/drkonqi-9999/src/bugzillaintegration/libbugzilla /var/tmp/portage/kde-plasma/drkonqi-9999/work/drkonqi-9999_build /var/tmp/portage/kde-plasma/drkonqi-9999/work/drkonqi-9999_build/src/bugzillaintegration/libbugzilla /var/tmp/portage/kde-plasma/drkonqi-9999/work/drkonqi-9999_build/src/bugzillaintegration/libbugzilla/qbugzilla_autogen/deps /var/tmp/portage/kde-plasma/drkonqi-9999/work/drkonqi-9999_build/CMakeFiles/d/35907d5b7616725b980c48633df09f967ab023debce19d23e84ebdd61204f97e.d
ninja: build stopped: subcommand failed.
�[31;01m�[0m ERROR: kde-plasma/drkonqi-9999::kde failed (compile phase):
�[31;01m
�[0m ninja -v -j2 -l0 failed
�[31;01m�[0m
�[31;01m
�[0m Call stack:
�[31;01m�[0m ebuild.sh, line 136: Called src_compile
�[31;01m
�[0m environment, line 3113: Called cmake_src_compile
�[31;01m�[0m environment, line 1197: Called cmake_build
�[31;01m
�[0m environment, line 1164: Called eninja
�[31;01m�[0m environment, line 1847: Called die
�[31;01m
�[0m The specific snippet of code:
�[31;01m�[0m "$@" || die -n "${} failed"

@a17r
Copy link
Member

a17r commented Dec 8, 2023

If you check the upstream build system there should actually be 3 deps missing, not just two.

Please use standard Gentoo git summary practice. Look at previous commits, basically.

@rachid-a
Copy link
Contributor Author

rachid-a commented Dec 8, 2023

I will check the standard Gentoo git summary

@a17r
Copy link
Member

a17r commented Dec 8, 2023

Same as in this repo. ;) Can also look up proxy-maint guide.

@a17r
Copy link
Member

a17r commented Dec 10, 2023

Are you sure drkonqi build system won't try to download this stuff during build if these packages aren't already present by then?

@rachid-a
Copy link
Contributor Author

I found the issue. The dev-python/pip wasn't installed. After installing it manually the build is going futher.
Only there is a problem when it want's to download the modules.

FAILED: src/data/CMakeFiles/python_vendor src/data/python /var/tmp/portage/kde-plasma/drkonqi-9999/work/drkonqi-9999_build/src/data/CMakeFiles/python_vendor /var/tmp/portage/kde-plasma/drkonqi-9999/work/drkonqi-9999_build/src/data/python
cd /var/tmp/portage/kde-plasma/drkonqi-9999/work/drkonqi-9999_build/src/data && /usr/bin/pip3 install --target /var/tmp/portage/kde-plasma/drkonqi-9999/work/drkonqi-9999_build/src/data/python pygdbmi psutil sentry-sdk
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f278b9e91d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/pygdbmi/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f278b9e9dd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/pygdbmi/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f278b9ea910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/pygdbmi/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f278b9eb390>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/pygdbmi/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f278b9ebf50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/pygdbmi/
ERROR: Could not find a version that satisfies the requirement pygdbmi (from versions: none)
ERROR: No matching distribution found for pygdbmi

When i run that command manually from the command line it works:
cd /var/tmp/portage/kde-plasma/drkonqi-9999/work/drkonqi-9999_build/src/data && /usr/bin/pip3 install --target /var/tmp/portage/kde-plasma/drkonqi-9999/work/drkonqi-9999_build/src/data/python pygdbmi psutil sentry-sdk
Collecting pygdbmi
Using cached pygdbmi-0.11.0.0-py3-none-any.whl (21 kB)
Collecting psutil
Using cached psutil-5.9.6-cp36-abi3-manylinux_2_12_x86_64.manylinux2010_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (21 kB)
Collecting sentry-sdk
Using cached sentry_sdk-1.38.0-py2.py3-none-any.whl.metadata (9.7 kB)
Collecting certifi (from sentry-sdk)
Using cached certifi-2023.11.17-py3-none-any.whl.metadata (2.2 kB)
Collecting urllib3>=1.26.11 (from sentry-sdk)
Using cached urllib3-2.1.0-py3-none-any.whl.metadata (6.4 kB)
Using cached psutil-5.9.6-cp36-abi3-manylinux_2_12_x86_64.manylinux2010_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (283 kB)
Using cached sentry_sdk-1.38.0-py2.py3-none-any.whl (252 kB)
Using cached urllib3-2.1.0-py3-none-any.whl (104 kB)
Using cached certifi-2023.11.17-py3-none-any.whl (162 kB)
DEPRECATION: Loading egg at /usr/lib/python3.11/site-packages/cupshelpers-1.0-py3.11.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at pypa/pip#12330
Installing collected packages: pygdbmi, urllib3, psutil, certifi, sentry-sdk
Successfully installed certifi-2023.11.17 psutil-5.9.6 pygdbmi-0.11.0.0 sentry-sdk-1.38.0 urllib3-2.1.0
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv

@a17r
Copy link
Member

a17r commented Dec 11, 2023

That's the point: relying on pip to download stuff during build time is completely unacceptable.

@redstrate
Copy link
Contributor

That's the point: relying on pip to download stuff during build time is completely unacceptable.

looks like we can opt out of it via WITH_PYTHON_VENDORING

@a17r
Copy link
Member

a17r commented Dec 16, 2023

@rachid-a check out 2dc1ddd for the full extent of necessary ebuild changes.

@rachid-a rachid-a deleted the patch-2 branch December 16, 2023 13:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants