Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 890267 - dev-qt/qt3d-5.15.8: rm: cannot remove 'src/3rdparty/assimp/code': No such file or directory
Summary: dev-qt/qt3d-5.15.8: rm: cannot remove 'src/3rdparty/assimp/code': No such fil...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Qt Bug Alias
URL: https://invent.kde.org/qt/qt/qt3d/-/c...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-01-09 06:19 UTC by Errelin
Modified: 2023-01-09 11:15 UTC (History)
2 users (show)

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


Attachments
dev-qt/qt3d-5.15.8.build.log (qt3d-5.15.8.log,1.71 KB, text/x-log)
2023-01-09 06:19 UTC, Errelin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Errelin 2023-01-09 06:19:05 UTC
Created attachment 848001 [details]
dev-qt/qt3d-5.15.8.build.log

It seems in the prepare phase, there are some files missing under 'src/3rdparty/assimp', causing `rm' cmd to fail:

>>> Jobs: 0 of 1 complete, 1 failed                 Load avg: 2.28, 6.15, 4.97                                                                                   
 * Package:    dev-qt/qt3d-5.15.8:5/5.15                                                                                                                         
 * Repository: gentoo                                                                                                                                            
 * Maintainer: qt@gentoo.org                                                                                                                                     
 * Upstream:   https://bugreports.qt.io/                                                                                                                         
 * USE:        abi_x86_64 amd64 elibc_glibc kernel_linux userland_GNU                                                                                            
 * FEATURES:   network-sandbox preserve-libs sandbox userpriv usersandbox                                                                                        
>>> Unpacking source...                                                                                                                                          
>>> Unpacking qt3d-everywhere-opensource-src-5.15.8.tar.xz to /var/tmp/portage/dev-qt/qt3d-5.15.8/work                                                           
>>> Source unpacked in /var/tmp/portage/dev-qt/qt3d-5.15.8/work                                                                                                  
>>> Preparing source in /var/tmp/portage/dev-qt/qt3d-5.15.8/work/qt3d-everywhere-src-5.15.8 ...                                                                  
rm: cannot remove 'src/3rdparty/assimp/code': No such file or directory                                                                                          
rm: cannot remove 'src/3rdparty/assimp/contrib': No such file or directory                                                                                       
rm: cannot remove 'src/3rdparty/assimp/include': No such file or directory                                                                                       
 * ERROR: dev-qt/qt3d-5.15.8::gentoo failed (prepare phase):                                                                                                     
 *   (no error message)                                                                                                                                          
 *                                                                                                                                                               
 * Call stack:                                                                                                                                                   
 *     ebuild.sh, line 136:  Called src_prepare                                                                                                                  
 *   environment, line 2155:  Called die                                                                                                                         
 * The specific snippet of code:                                                                                                                                 
 *       rm -r src/3rdparty/assimp/{code,contrib,include} || die;



=================== emerge info ==================================
# emerge --info '=dev-qt/qt3d-5.15.8::gentoo'
Portage 3.0.43 (python 3.10.9-final-0, default/linux/amd64/17.1, gcc-12, glibc-2.36-r6, 5.19.6-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.19.6-gentoo-x86_64-AMD_Ryzen_7_PRO_4750G_with_Radeon_Graphics-with-glibc2.36
KiB Mem:    65244600 total,  29196788 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Mon, 09 Jan 2023 05:02:08 +0000
Head commit of repository gentoo: e94639f49add171babb3480eab969b0b16eeaacc

Timestamp of repository guru: Sun, 08 Jan 2023 10:32:03 +0000
Head commit of repository guru: 2944b700affd18a84f8ed9a2a35835a0d4fdcea7

Head commit of repository gentoo-zh: bda10c0dd00a626be9d3d3cc0498fe8853a66efd

Head commit of repository interlay: 360976d67313918aa67d5e13f42ab6710a373ed8

sh bash 5.2_p15
ld GNU ld (Gentoo 2.39 p5) 2.39.0
app-misc/pax-utils:        1.3.6::gentoo
app-shells/bash:           5.2_p15::gentoo
dev-java/java-config:      2.3.1::gentoo
dev-lang/perl:             5.36.0-r1::gentoo
dev-lang/python:           3.10.9::gentoo, 3.11.1::gentoo
dev-lang/rust-bin:         1.66.0::gentoo
dev-util/cmake:            3.25.1::gentoo
dev-util/meson:            1.0.0::gentoo
sys-apps/baselayout:       2.9::gentoo
sys-apps/openrc:           0.46::gentoo
sys-apps/sandbox:          2.30-r1::gentoo
sys-devel/autoconf:        2.71-r5::gentoo
sys-devel/automake:        1.16.5::gentoo
sys-devel/binutils:        2.39-r4::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang:           15.0.6-r1::gentoo
sys-devel/gcc:             12.2.1_p20221231::gentoo
sys-devel/gcc-config:      2.10::gentoo
sys-devel/libtool:         2.4.7-r1::gentoo
sys-devel/lld:             15.0.6::gentoo
sys-devel/llvm:            15.0.6-r1::gentoo
sys-devel/make:            4.4::gentoo
sys-kernel/linux-headers:  6.1::gentoo (virtual/os-headers)
sys-libs/glibc:            2.36-r6::gentoo
sys-libs/libselinux:       3.4::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gentoo.git
    priority: -1
    volatile: True

guru
    location: /var/db/repos/guru
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/guru.git
    masters: gentoo
    priority: 9
    volatile: True

gentoo-zh
    location: /var/db/repos/gentoo-zh
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gentoo-zh.git
    masters: gentoo
    priority: 10
    volatile: True

interlay
    location: /var/db/repos/interlay
    sync-type: git
    sync-uri: https://github.com/Linerre/interlay.git
    masters: gentoo
    priority: 15
    volatile: True

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php8.1/ext-active/ /etc/php/apache2-php8.2/ext-active/ /etc/php/cgi-php8.1/ext-active/ /etc/php/cgi-php8.2/ext-active/ /etc/php/cli-php8.1/ext-active/ /etc/php/cli-php8.2/ext-active/ /etc/php/fpm-php8.1/ext-active/ /etc/php/fpm-php8.2/ext-active/ /etc/php/phpdbg-php8.1/ext-active/ /etc/php/phpdbg-php8.2/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--jobs 2 --load-average 2 --with-bdeps y --complete-graph y --quiet-build y --keep-going"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS="-march=native -O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live candy clean-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch parallel-install pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms split-log strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=native -O2 -pipe"
GENTOO_MIRRORS="https://mirrors.sjtug.sjtu.edu.cn/gentoo/ https://mirrors.ustc.edu.cn/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
MAKEOPTS="-j12 -l12"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
SHELL="/bin/bash"
USE="X acl amd64 bzip2 cli crypt dbus dri elogind fortran gdbm iconv ipv6 libglvnd libtirpc multilib ncurses nls nptl openmp pam pcre pulseaudio readline savedconfig seccomp split-usr ssl test-rust unicode wayland xattr zlib" ABI_X86="64" ADA_TARGET="gnat_2021" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-3" LUA_TARGETS="lua5-3 lua5-4" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-4 php8-0" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_10" PYTHON_TARGETS="python3_10 python3_11" RUBY_TARGETS="ruby27" USERLAND="GNU" VIDEO_CARDS="amdgpu radeonsi" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS


# emerge -pqv '=dev-qt/qt3d-5.15.8::gentoo'
[ebuild     U ] dev-qt/qt3d-5.15.8 [5.15.7] USE="-debug -gamepad -gles2-only -qml -test -vulkan"
Comment 1 Jouni Kosonen 2023-01-09 08:59:29 UTC
Same here. Simply removing the line 
>       rm -r src/3rdparty/assimp/{code,contrib,include} || die
seems to do the trick, the resulting configuration shows
> Qt 3D:
>   Assimp ................................. yes
>   System Assimp .......................... yes
as presumably intended.
Comment 2 Andreas Sturmlechner gentoo-dev 2023-01-09 10:14:51 UTC
Looks like paths changed. Please try with 

> rm -r src/3rdparty/assimp/src/{code,contrib,include} || die

instead.
Comment 3 Jouni Kosonen 2023-01-09 11:06:12 UTC
(In reply to Andreas Sturmlechner from comment #2)
> Looks like paths changed. Please try with 
> 
> > rm -r src/3rdparty/assimp/src/{code,contrib,include} || die
> 
> instead.

That works, but is it still needed? It looks like the line was added between
5.15.2 and 5.15.2-r10 as part of forcing the build to use system assimp, but at least for me the 5.15.8 sources produce an identical set of files whether or not those three directories are removed from their current location.
Comment 4 Andreas Sturmlechner gentoo-dev 2023-01-09 11:11:28 UTC
It has been there since dev-qt/qt3d-5.8.0, and we want to continue forcing it into an error if system-assimp cannot be found (and not rely on a questionable build system).
Comment 5 Larry the Git Cow gentoo-dev 2023-01-09 11:13:39 UTC
The bug has been closed via the following commit(s):

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

commit ec9d21f273fed73f763aade64f97676b3d6ef7d2
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2023-01-09 11:11:58 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2023-01-09 11:12:48 +0000

    dev-qt/qt3d: Fix bundled assimp code removal
    
    Closes: https://bugs.gentoo.org/890267
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 dev-qt/qt3d/qt3d-5.15.8.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Comment 6 Larry the Git Cow gentoo-dev 2023-01-09 11:15:33 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/proj/qt.git/commit/?id=22434ef0c4c70b0d3650927d5877139c0ad0b485

commit 22434ef0c4c70b0d3650927d5877139c0ad0b485
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2023-01-09 11:11:58 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2023-01-09 11:15:10 +0000

    dev-qt/qt3d: Fix bundled assimp code removal
    
    Closes: https://bugs.gentoo.org/890267
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 dev-qt/qt3d/qt3d-5.15.8.9999.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)