Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 955614

Summary: media-libs/opencv-4.11.0: mv: cannot move '/var/tmp/portage/media-libs/opencv-4.11.0/distdir/yunet-202303.onnx' to '/var/tmp/portage/media-libs/opencv-4.11.0/work/opencv_extra-4.11.0/testdata/cv/dnn/onnx/models/yunet-202303.onnx': Permission denied
Product: Gentoo Linux Reporter: Leo Douglas <douglarek>
Component: Current packagesAssignee: Paul Zander <negril.nx+gentoo>
Status: RESOLVED FIXED    
Severity: normal CC: proxy-maint
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: info.txt

Description Leo Douglas 2025-05-08 08:05:57 UTC
Created attachment 928089 [details]
info.txt

>>> Running pre-merge checks for media-libs/opencv-4.11.0

>>> Emerging (1 of 3) media-libs/opencv-4.11.0::gentoo
 * opencv-4.11.0.tar.gz BLAKE2B SHA512 size ;-) ...                                                                                                                                                                                                                               [ ok ]
 * ade-0.1.2e.tar.gz BLAKE2B SHA512 size ;-) ...                                                                                                                                                                                                                                  [ ok ]
 * opencv_contrib-4.11.0.tar.gz BLAKE2B SHA512 size ;-) ...                                                                                                                                                                                                                       [ ok ]
 * opencv_3rdparty-8afa57abc8229d611c4937165d20e2a2d9fc5a12.tar.gz BLAKE2B SHA512 size ;-) ...                                                                                                                                                                                    [ ok ]
 * opencv_contrib-4.10.0-3607.patch BLAKE2B SHA512 size ;-) ...                                                                                                                                                                                                                   [ ok ]
 * yunet-202303.onnx BLAKE2B SHA512 size ;-) ...                                                                                                                                                                                                                                  [ ok ]
>>> Unpacking source...
>>> Unpacking opencv-4.11.0.tar.gz to /var/tmp/portage/media-libs/opencv-4.11.0/work
>>> Unpacking ade-0.1.2e.tar.gz to /var/tmp/portage/media-libs/opencv-4.11.0/work
>>> Unpacking opencv_contrib-4.11.0.tar.gz to /var/tmp/portage/media-libs/opencv-4.11.0/work
>>> Unpacking opencv_3rdparty-8afa57abc8229d611c4937165d20e2a2d9fc5a12.tar.gz to /var/tmp/portage/media-libs/opencv-4.11.0/work
=== Skipping unpack of opencv_contrib-4.10.0-3607.patch
=== Skipping unpack of yunet-202303.onnx
>>> Source unpacked in /var/tmp/portage/media-libs/opencv-4.11.0/work
>>> Preparing source in /var/tmp/portage/media-libs/opencv-4.11.0/work/opencv-4.11.0 ...
 * Source directory (CMAKE_USE_DIR): "/var/tmp/portage/media-libs/opencv-4.11.0/work/opencv-4.11.0"
 * Build directory  (BUILD_DIR):     "/var/tmp/portage/media-libs/opencv-4.11.0/work/opencv-4.11.0_build"
 * Applying opencv-3.4.1-cuda-add-relaxed-constexpr.patch ...                                                                                                                                                                                                                     [ ok ]
 * Applying opencv-4.1.2-opencl-license.patch ...                                                                                                                                                                                                                                 [ ok ]
 * Applying opencv-4.4.0-disable-native-cpuflag-detect.patch ...
patching file cmake/OpenCVCompilerOptimizations.cmake
Hunk #1 succeeded at 162 with fuzz 1 (offset 6 lines).                                                                                                                                                                                                                            [ ok ]
 * Applying opencv-4.5.0-link-with-cblas-for-lapack.patch ...                                                                                                                                                                                                                     [ ok ]
 * Applying opencv-4.8.1-use-system-flatbuffers.patch ...                                                                                                                                                                                                                         [ ok ]
 * Applying opencv-4.8.1-use-system-opencl.patch ...                                                                                                                                                                                                                              [ ok ]
 * Applying opencv-4.9.0-drop-python2-detection.patch ...                                                                                                                                                                                                                         [ ok ]
 * Applying opencv-4.9.0-cmake-cleanup.patch ...                                                                                                                                                                                                                                  [ ok ]
 * Applying opencv-4.10.0-dnn-explicitly-include-abseil-cpp.patch ...                                                                                                                                                                                                             [ ok ]
 * Applying opencv-4.10.0-tbb-detection.patch ...                                                                                                                                                                                                                                 [ ok ]
 * Applying opencv-4.11.0-ade-0.1.2e.tar.gz.patch ...                                                                                                                                                                                                                             [ ok ]
 * Applying opencv-4.11.0-cmake-CMP0175.patch ...                                                                                                                                                                                                                                 [ ok ]
 * Applying opencv-4.11.0-cmake-CMP0177.patch ...                                                                                                                                                                                                                                 [ ok ]
 * Applying opencv-4.10.0-cmake4.patch ...                                                                                                                                                                                                                                        [ ok ]
 * Applying opencv-4.11.0-qt-6.9.patch ...                                                                                                                                                                                                                                        [ ok ]
 * Hardcoded definition(s) removed in CMakeLists.txt:
 *    set(CMAKE_BUILD_TYPE "Release" CACHE STRING "Choose the type of build")
 *        set(CMAKE_INSTALL_PREFIX "${CMAKE_BINARY_DIR}/install" CACHE PATH "Inst
 *        set(CMAKE_INSTALL_PREFIX "/usr/local" CACHE PATH "Installation Director
 *      set(CMAKE_INSTALL_PREFIX "${CMAKE_BINARY_DIR}/install" CACHE PATH "Instal
 * Applying opencv_contrib-4.8.1-rgbd.patch ...                                                                                                                                                                                                                                   [ ok ]
 * Applying opencv_contrib-4.8.1-NVIDIAOpticalFlowSDK-2.0.tar.gz.patch ...                                                                                                                                                                                                        [ ok ]
mv: cannot move '/var/tmp/portage/media-libs/opencv-4.11.0/distdir/yunet-202303.onnx' to '/var/tmp/portage/media-libs/opencv-4.11.0/work/opencv_extra-4.11.0/testdata/cv/dnn/onnx/models/yunet-202303.onnx': Permission denied
 * ERROR: media-libs/opencv-4.11.0::gentoo failed (prepare phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line 136:  Called src_prepare
 *   environment, line 5274:  Called die
 * The specific snippet of code:
 *           mv "${DISTDIR}/yunet-202303.onnx" "${WORKDIR}/${PN}_extra-${PV}/testdata/cv/dnn/onnx/models/" || die;
 * 
 * If you need support, post the output of `emerge --info '=media-libs/opencv-4.11.0::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=media-libs/opencv-4.11.0::gentoo'`.
!!! When you file a bug report, please include the following information:
GENTOO_VM=  CLASSPATH="" JAVA_HOME=""
JAVACFLAGS="" COMPILER=""
and of course, the output of emerge --info =media-libs/opencv-4.11.0
 * The complete build log is located at '/var/tmp/portage/media-libs/opencv-4.11.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/media-libs/opencv-4.11.0/temp/environment'.
 * Working directory: '/var/tmp/portage/media-libs/opencv-4.11.0/work/opencv-4.11.0'
 * S: '/var/tmp/portage/media-libs/opencv-4.11.0/work/opencv-4.11.0'

>>> Failed to emerge media-libs/opencv-4.11.0, Log file:

>>>  '/var/tmp/portage/media-libs/opencv-4.11.0/temp/build.log'

 * Messages for package media-libs/opencv-4.11.0:

 * ERROR: media-libs/opencv-4.11.0::gentoo failed (prepare phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line 136:  Called src_prepare
 *   environment, line 5274:  Called die
 * The specific snippet of code:
 *           mv "${DISTDIR}/yunet-202303.onnx" "${WORKDIR}/${PN}_extra-${PV}/testdata/cv/dnn/onnx/models/" || die;
 * 
 * If you need support, post the output of `emerge --info '=media-libs/opencv-4.11.0::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=media-libs/opencv-4.11.0::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/media-libs/opencv-4.11.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/media-libs/opencv-4.11.0/temp/environment'.
 * Working directory: '/var/tmp/portage/media-libs/opencv-4.11.0/work/opencv-4.11.0'
 * S: '/var/tmp/portage/media-libs/opencv-4.11.0/work/opencv-4.11.0'
Comment 1 Larry the Git Cow gentoo-dev 2025-05-08 08:13:07 UTC
The bug has been closed via the following commit(s):

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

commit b9094111eb32fb2f5cea69b58ebd09fbd83157d3
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2025-05-08 08:12:41 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2025-05-08 08:12:48 +0000

    media-libs/opencv: don't try to mv from DISTDIR
    
    Closes: https://bugs.gentoo.org/955614
    Signed-off-by: Sam James <sam@gentoo.org>

 media-libs/opencv/opencv-4.11.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)