Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 812041 - dev-python/debugpy: includes bundled arch-specific files from pydevd
Summary: dev-python/debugpy: includes bundled arch-specific files from pydevd
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
Depends on: 812452
Blocks:
  Show dependency tree
 
Reported: 2021-09-07 19:04 UTC by Sam James
Modified: 2022-07-29 11:17 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-09-07 19:04:35 UTC
Noticed when building 1.4.1:

```
aarch64-unknown-linux-gnu-strip: Unable to recognise the format of the input file `/var/tmp/portage/dev-python/debugpy-1.4.1/image/usr/lib/python3.9/site-packages/debugpy/_vendored/pydevd/pydevd_attach_to_process/attach_linux_amd64.so'
aarch64-unknown-linux-gnu-strip: Unable to recognise the format of the input file `/var/tmp/portage/dev-python/debugpy-1.4.1/image/usr/lib/python3.9/site-packages/debugpy/_vendored/pydevd/pydevd_attach_to_process/attach_linux_x86.so'
 * QA Notice: Unresolved soname dependencies:
 *
 *      /usr/lib/python3.8/site-packages/debugpy/_vendored/pydevd/pydevd_attach_to_process/attach_linux_amd64.so: libc.so.6 libgcc_s.so.1 libstdc++.so.6
 *      /usr/lib/python3.8/site-packages/debugpy/_vendored/pydevd/pydevd_attach_to_process/attach_linux_x86.so: libc.so.6 libgcc_s.so.1 libstdc++.so.6
 *      /usr/lib/python3.9/site-packages/debugpy/_vendored/pydevd/pydevd_attach_to_process/attach_linux_amd64.so: libc.so.6 libgcc_s.so.1 libstdc++.so.6
 *      /usr/lib/python3.9/site-packages/debugpy/_vendored/pydevd/pydevd_attach_to_process/attach_linux_x86.so: libc.so.6 libgcc_s.so.1 libstdc++.so.6
 *
>>> Done.
>>> Installing (1 of 1) dev-python/debugpy-1.4.1::gentoo
```
Comment 1 Andrew Ammerlaan gentoo-dev 2021-09-07 19:24:48 UTC
debugpy seems to bundle all or part of pydevd for some reason: https://pypi.org/project/pydevd/

Will have to investigate the why of this, and what we can do about it later.
Comment 2 Larry the Git Cow gentoo-dev 2021-09-09 16:25:56 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b8d3a7b1f7e33488fd4fe6bdcfa77af5b4de2c70

commit b8d3a7b1f7e33488fd4fe6bdcfa77af5b4de2c70
Author:     Andrew Ammerlaan <andrewammerlaan@gentoo.org>
AuthorDate: 2021-09-09 16:23:05 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan@gentoo.org>
CommitDate: 2021-09-09 16:25:16 +0000

    dev-python/debugpy: add version 1.4.2
    
    No keywords until I'm sure the unbundling hack doesn't produce any
    unexpected side effects
    
    Bug: https://bugs.gentoo.org/812041
    Package-Manager: Portage-3.0.22, Repoman-3.0.3
    Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>

 dev-python/debugpy/Manifest                        |  1 +
 dev-python/debugpy/debugpy-1.4.2.ebuild            | 44 ++++++++++++
 .../files/debugpy-1.4.2-unbundle-pydevd.patch      | 78 ++++++++++++++++++++++
 3 files changed, 123 insertions(+)

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9ccbf9e6f729dfd229a24915bfe27ec7c9f5ecaf

commit 9ccbf9e6f729dfd229a24915bfe27ec7c9f5ecaf
Author:     Andrew Ammerlaan <andrewammerlaan@gentoo.org>
AuthorDate: 2021-09-09 15:43:28 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan@gentoo.org>
CommitDate: 2021-09-09 16:25:16 +0000

    dev-python/pydevd: unbundle from debugpy
    
    Bug: https://bugs.gentoo.org/812041
    Package-Manager: Portage-3.0.22, Repoman-3.0.3
    Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>

 dev-python/pydevd/Manifest            |  1 +
 dev-python/pydevd/metadata.xml        | 12 ++++++++
 dev-python/pydevd/pydevd-2.5.0.ebuild | 53 +++++++++++++++++++++++++++++++++++
 3 files changed, 66 insertions(+)
Comment 3 Andrew Ammerlaan gentoo-dev 2021-09-09 16:28:40 UTC
This still needs some work, so far I've only succeeded in moving this problem to a separate package. Pydevd is now unbundled but we still have that prebuilt file in the source code. Will look at this again later.
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-09-09 22:53:34 UTC
(In reply to Andrew Ammerlaan from comment #3)
> This still needs some work, so far I've only succeeded in moving this
> problem to a separate package. Pydevd is now unbundled but we still have
> that prebuilt file in the source code. Will look at this again later.

Thank you!
Comment 5 Larry the Git Cow gentoo-dev 2021-09-10 13:35:49 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1fb4db026c7bc38389f7d897498b1204d9edf98c

commit 1fb4db026c7bc38389f7d897498b1204d9edf98c
Author:     Andrew Ammerlaan <andrewammerlaan@gentoo.org>
AuthorDate: 2021-09-10 13:30:15 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan@gentoo.org>
CommitDate: 2021-09-10 13:35:44 +0000

    dev-python/pydevd: properly recompile pre-built file
    
    Bug: https://bugs.gentoo.org/812041
    Closes: https://bugs.gentoo.org/812386
    Package-Manager: Portage-3.0.23, Repoman-3.0.3
    Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>

 dev-python/pydevd/pydevd-2.5.0-r1.ebuild | 80 ++++++++++++++++++++++++++++++++
 dev-python/pydevd/pydevd-2.5.0.ebuild    | 60 ------------------------
 2 files changed, 80 insertions(+), 60 deletions(-)