Summary: | media-libs/opencv-4.6.0-r2: fails during src_install during removal of non-existent directory | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | LordOfForever <willianrichard.ofc> |
Component: | Current packages | Assignee: | Paul Zander <negril.nx+gentoo> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | i, ionen, proxy-maint |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | opencv ebuild that installs |
Description
LordOfForever
2022-11-28 01:42:20 UTC
Note: I was only able to merge the package after doing the workaround I've mentioned. build.log? probably a duplicate of bug #882411, but can't tell if cause is the same without the log (In reply to Ionen Wolkens from comment #2) > build.log? probably a duplicate of bug #882411, but can't tell if cause is > the same without the log Sorry I don't have portage's logging option enabled. Where do I find the file you are asking? (In reply to LordOfForever from comment #3) > (In reply to Ionen Wolkens from comment #2) > > build.log? probably a duplicate of bug #882411, but can't tell if cause is > > the same without the log > > Sorry I don't have portage's logging option enabled. > Where do I find the file you are asking? FEATURES="keeptemp" emerge -va media-libs/opencv Or just merge it again without the workaround. (In reply to Ionen Wolkens from comment #2) > build.log? probably a duplicate of bug #882411, but can't tell if cause is > the same without the log I guess didn't benefit from eclass change (can't check why not right now), may be worth masking the bad version(s) of setuptools to prevent more of these (as people with them installed get a message at least) (In reply to Sam James from comment #6) > I guess didn't benefit from eclass change (can't check why not right now), > may be worth masking the bad version(s) of setuptools to prevent more of > these (as people with them installed get a message at least) Yeah this is ~arch and it changes nothing there given 65.6.0 is a bad version and eclass does >=65.5.1. To do it through eclass, while keeping current stable, would need something like: || ( ( >=65.5.1 <65.6 ) >=65.6.1 ) ...but that won't help opencv either way given it doesn't use distutils-r1, and setuptools is being indirectly used through numpy. (In reply to Ionen Wolkens from comment #7) > || ( ( >=65.5.1 <65.6 ) >=65.6.1 ) Or from a quick look at changelogs, I guess need >=65.6.3? I didn't really follow this whole thing and what's affected. I added `mkdir -p modules/python3` above `rm -r modules/python3 || die "rm failed"` in the opencv ebuild, and this fixed it for me. My overlay with the patched OpenCV: https://github.com/NTULINUX/ntu_overlay/tree/main/media-libs/opencv Created attachment 851506 [details]
opencv ebuild that installs
This is probably not the right way to fix it, but I needed it fixed so I just did a quick `mkdir` hack.
(In reply to Alec Ari from comment #10) > Created attachment 851506 [details] > opencv ebuild that installs > > This is probably not the right way to fix it, but I needed it fixed so I > just did a quick `mkdir` hack. The right way to fix it is to emerge -v1 setuptools as a one-off, no? *** Bug 905835 has been marked as a duplicate of this bug. *** The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0e9205edb9922309ecd568b7085fd59726c7d2ca commit 0e9205edb9922309ecd568b7085fd59726c7d2ca Author: Paul Zander <negril.nx+gentoo@gmail.com> AuthorDate: 2023-12-08 14:58:23 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2024-01-10 12:32:37 +0000 media-libs/opencv: add 4.8.1-r1 Closes: https://bugs.gentoo.org/702258 Closes: https://bugs.gentoo.org/830294 Closes: https://bugs.gentoo.org/883375 Closes: https://bugs.gentoo.org/913740 Closes: https://bugs.gentoo.org/914922 Closes: https://bugs.gentoo.org/917121 Signed-off-by: Paul Zander <negril.nx+gentoo@gmail.com> Signed-off-by: Sam James <sam@gentoo.org> media-libs/opencv/Manifest | 7 + .../files/opencv-4.8.1-ade-0.1.2a.tar.gz.patch | 18 + .../opencv-4.8.1-drop-python2-detection.patch | 23 + ...ncv-4.8.1-eliminate-lto-compiler-warnings.patch | 36 ++ .../opencv/files/opencv-4.8.1-libpng16.patch | 58 ++ .../opencv/files/opencv-4.8.1-opencv_test.patch | 18 + .../files/opencv-4.8.1-python3_12-support.patch | 25 + .../opencv-4.8.1-use-system-flatbuffers.patch | 36 ++ .../files/opencv-4.8.1-use-system-opencl.patch | 25 + ...rib-4.8.1-NVIDIAOpticalFlowSDK-2.0.tar.gz.patch | 20 + .../opencv/files/opencv_contrib-4.8.1-rgbd.patch | 15 + media-libs/opencv/metadata.xml | 34 +- media-libs/opencv/opencv-4.8.1-r1.ebuild | 644 +++++++++++++++++++++ 13 files changed, 945 insertions(+), 14 deletions(-) |