Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 905744 - app-misc/mime-types[nginx]: Failure at installation phase
Summary: app-misc/mime-types[nginx]: Failure at installation phase
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Eray Aslan
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-05-05 08:04 UTC by Alexander Bezrukov
Modified: 2024-01-29 07:35 UTC (History)
1 user (show)

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


Attachments
Complete build log (build.log,2.30 KB, text/x-log)
2023-05-05 08:07 UTC, Alexander Bezrukov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Bezrukov 2023-05-05 08:04:54 UTC
I have several very similar machines running Gentoo with rather similar world sets. All but one have no problems with building this package but one is reproducibly failing to copy a file at installation stage:

>>> Emerging (1 of 1) app-misc/mime-types-2.1.53::gentoo
 * mailcap-r2-1-53.tar.gz BLAKE2B SHA512 size ;-) ...                                                                                                                                                                    [ ok ]
>>> Unpacking source...
>>> Unpacking mailcap-r2-1-53.tar.gz to /tmp/portage/app-misc/mime-types-2.1.53/work
>>> Source unpacked in /tmp/portage/app-misc/mime-types-2.1.53/work
>>> Preparing source in /tmp/portage/app-misc/mime-types-2.1.53/work/mailcap-r2-1-53 ...
>>> Source prepared.
>>> Configuring source in /tmp/portage/app-misc/mime-types-2.1.53/work/mailcap-r2-1-53 ...
>>> Source configured.
>>> Compiling source in /tmp/portage/app-misc/mime-types-2.1.53/work/mailcap-r2-1-53 ...
make -j1 
sh generate-nginx-mimetypes.sh < mime.types > mime.types.nginx
>>> Source compiled.
>>> Test phase [not enabled]: app-misc/mime-types-2.1.53

>>> Install app-misc/mime-types-2.1.53 into /tmp/portage/app-misc/mime-types-2.1.53/image
Failed to copy file: _parsed_options=Namespace(group=-1, owner=-1, mode=420, preserve_timestamps=False), source=b'mime.types.nginx', dest_dir=b'/tmp/portage/app-misc/mime-types-2.1.53/image/etc/nginx'
Traceback (most recent call last):
  File "/usr/lib/portage/python3.10/doins.py", line 197, in run
    copyfile(source, dest)
  File "/usr/lib/python3.10/site-packages/portage/util/file_copy/__init__.py", line 29, in _optimized_copyfile
    _file_copy(src_file.fileno(), dst_file.fileno())
FileNotFoundError: [Errno 2] No such file or directory
 * ERROR: app-misc/mime-types-2.1.53::gentoo failed (install phase):
 *   doins failed
 * 
 * If you need support, post the output of `emerge --info '=app-misc/mime-types-2.1.53::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=app-misc/mime-types-2.1.53::gentoo'`.
 * The complete build log is located at '/tmp/portage/app-misc/mime-types-2.1.53/temp/build.log'.
 * The ebuild environment file is located at '/tmp/portage/app-misc/mime-types-2.1.53/temp/environment'.
 * Working directory: '/tmp/portage/app-misc/mime-types-2.1.53/work/mailcap-r2-1-53'
 * S: '/tmp/portage/app-misc/mime-types-2.1.53/work/mailcap-r2-1-53'

Without USE=nginx emerge completes successfully. This is a normal Gentoo installation, not a Gentoo prefix one.

$ emerge --info
Portage 3.0.44 (python 3.11.2-final-0, default/linux/amd64/17.1/no-multilib/hardened, gcc-12, glibc-2.36-r7, 6.1.11-infra3-alb x86_64)
=================================================================
System uname: Linux-6.1.11-infra3-alb-x86_64-AMD_EPYC_7742_64-Core_Processor-with-glibc2.36
KiB Mem:     1008956 total,    177940 free
KiB Swap:    3080188 total,   3056388 free
Timestamp of repository gentoo: Thu, 04 May 2023 18:45:01 +0000
Head commit of repository gentoo: fbcd15cfdeea0158e97166a1ce0700b6373f56df
sh bash 5.1_p16-r2
ld GNU ld (Gentoo 2.39 p6) 2.39.0
app-misc/pax-utils:        1.3.5::gentoo
app-shells/bash:           5.1_p16-r2::gentoo
dev-lang/perl:             5.36.0-r2::gentoo
dev-lang/python:           3.10.10_p3::gentoo, 3.11.2_p2::gentoo
dev-util/cmake:            3.25.3::gentoo
dev-util/meson:            1.0.1::gentoo
sys-apps/baselayout:       2.13-r1::gentoo
sys-apps/openrc:           0.46::gentoo
sys-apps/sandbox:          2.29::gentoo
sys-devel/autoconf:        2.71-r5::gentoo
sys-devel/automake:        1.16.5::gentoo
sys-devel/binutils:        2.39-r5::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/gcc:             12.2.1_p20230428-r1::gentoo
sys-devel/gcc-config:      2.10::gentoo
sys-devel/libtool:         2.4.7-r1::gentoo
sys-devel/make:            4.4.1::gentoo
sys-kernel/linux-headers:  6.1::gentoo (virtual/os-headers)
sys-libs/glibc:            2.36-r7::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://www.dragonworks.ru/gentoo-portage
    priority: -1000
    volatile: True
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-max-age: 24
    sync-rsync-extra-opts: 

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -mtune=native -O2 -pipe -fomit-frame-pointer -finline-functions-called-once -ftree-vectorize"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/gconf /etc/gentoo-release /etc/php/apache2-php8.1/ext-active/ /etc/php/cgi-php8.1/ext-active/ /etc/php/cli-php8.1/ext-active/ /etc/php/fpm-php8.1/ext-active/ /etc/php/phpdbg-php8.1/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -mtune=native -O2 -pipe -fomit-frame-pointer -finline-functions-called-once -ftree-vectorize"
DISTDIR="/var/cache/distfiles"
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="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=native -mtune=native -O2 -pipe -fomit-frame-pointer -finline-functions-called-once -ftree-vectorize -fprefetch-loop-arrays -funroll-loops -fno-stack-protector"
GENTOO_MIRRORS="http://mirror.leaseweb.com/gentoo/ http://mirrors.evowise.com/gentoo/ http://mirror.netcologne.de/gentoo/ http://mirror.eu.oneandone.net/linux/distributions/gentoo/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
LINGUAS="en"
MAKEOPTS="-j1"
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="/tmp"
SHELL="/bin/bash"
USE="acl acpi amd64 asm bash-completion bzip2 caps cet cli crypt cryptsetup dbus dri eselect fortran gdbm gmp gpm hardened iconv idn ipv6 ldap libglvnd libtirpc lm_sensors lock logrotate mmap ncurses nls nptl openmp pam pcre pie pkcs11 readline seccomp session split-usr ssl ssp tcpd test-rust threads udev unicode usb vhosts vim-syntax xattr xtpax 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="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sha sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3" 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" GRUB_PLATFORMS="pc" INPUT_DEVICES="libinput" KERNEL="linux" L10N="en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" NGINX_MODULES_HTTP="auth_pam access auth_basic autoindex browser charset fastcgi addition fancyindex geoip gzip headers_more limit_conn limit_req proxy referer rewrite scgi stub_status vhost_traffic_status sub" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-4 php8-0" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11" RUBY_TARGETS="ruby30" USERLAND="GNU" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy v4l" 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, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, 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
Comment 1 Alexander Bezrukov 2023-05-05 08:07:20 UTC
Created attachment 861170 [details]
Complete build log
Comment 2 Eray Aslan gentoo-dev 2024-01-29 07:35:01 UTC
thank you for the report and I did have a look but could not come to a conclusion. My guess is mime-types is a red herring and not the real cause. Please do report if it happens again. Closing for now.