Hi, just after merge a directory appears /tmp/portage/.keras /var/tmp/portage/.keras # ls -al total 2 drwxr-xr-x 2 portage portage 3 May 9 21:21 . drwxrwxr-x 3 portage portage 3 May 9 21:21 .. -rw-r--r-- 1 portage portage 120 May 9 21:21 keras.json # cat keras.json { "epsilon": 1e-07, "image_data_format": "channels_last", "floatx": "float32", "backend": "tensorflow" } Funny thing is that I have PORTAGE_TMPDIR="/tmp" Any ideas why this directory and file appears? my guess is: /var/tmp/portage is portage user home directory. and mentioned file is default keras config. So something during the build creates that config to switch keras backend to tensorflow for user that is's being built as. I think it should not. https://keras.io/backend/ < explanation is here. keras is not installed and never have been. to verify that ebuild creates that mentioned file I completely deleted tensorflow and re-emerged and voila, dir is here. Portage 2.3.36 (python 3.5.5-final-0, default/linux/amd64/17.0/desktop/plasma, gcc-7.3.0, glibc-2.26-r7, 4.16.8-gentoo-exp x86_64) ================================================================= System Settings ================================================================= System uname: Linux-4.16.8-gentoo-exp-x86_64-AMD_Ryzen_Threadripper_1950X_16-Core_Processor-with-gentoo-2.4.1 KiB Mem: 64809276 total, 55575896 free KiB Swap: 8388600 total, 8388600 free Timestamp of repository gentoo: Thu, 10 May 2018 01:46:31 +0000 Head commit of repository gentoo: e503c4b2e3742bd98a8240c311f68ce3bafbc36d Head commit of repository steam-overlay: 46d2624c5f248bf28e25c25e172e60c2eb988e5f sh bash 4.4_p19 ld GNU ld (Gentoo 2.30 p2) 2.30.0 distcc[16935] (dcc_mkdir) ERROR: mkdir '/tmp/portage/.distcc/state' failed: No such file or directory [disabled] app-shells/bash: 4.4_p19::gentoo dev-java/java-config: 2.2.0-r4::gentoo dev-lang/perl: 5.26.2::gentoo dev-lang/python: 2.7.14-r2::gentoo, 3.5.5-r1::gentoo dev-util/cmake: 3.11.1::gentoo dev-util/pkgconfig: 0.29.2::gentoo sys-apps/baselayout: 2.4.1-r2::gentoo sys-apps/openrc: 0.35.5::gentoo sys-apps/sandbox: 2.13::gentoo sys-devel/autoconf: 2.13::gentoo, 2.69-r4::gentoo sys-devel/automake: 1.16.1-r1::gentoo sys-devel/binutils: 2.30-r2::gentoo sys-devel/gcc: 7.3.0-r1::gentoo sys-devel/gcc-config: 1.9.1::gentoo sys-devel/libtool: 2.4.6-r5::gentoo sys-devel/make: 4.2.1-r3::gentoo sys-kernel/linux-headers: 4.16-r1::gentoo (virtual/os-headers) sys-libs/glibc: 2.26-r7::gentoo Repositories: gentoo location: /var/db/repos/gentoo sync-type: git sync-uri: https://github.com/gentoo-mirror/gentoo.git priority: -1000 gyakovlev location: /var/db/repos/gyakovlev masters: gentoo steam-overlay location: /var/db/repos/steam sync-type: git sync-uri: https://github.com/anyc/steam-overlay.git masters: gentoo priority: 50 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/lib64/libreoffice/program/sofficerc /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/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-march=native -O2 -pipe" DISTDIR="/var/cache/portage/distfiles" EMERGE_DEFAULT_OPTS="--ask-enter-invalid --jobs=32 --load-average 32" ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs buildpkg cgroup collision-protect compressdebug config-protect-if-modified distlocks downgrade-backup ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch parallel-install preserve-libs protect-owned sandbox sfperms sign splitdebug strict strict-keepdir unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="https://gentoo.osuosl.org/ http://gentoo.mirrors.pair.com/ http://cosmos.illinois.edu/pub/gentoo/ http://lug.mtu.edu/gentoo/" LANG="en_US.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="en" MAKEOPTS="-j32 -l32" PKGDIR="/var/cache/portage/packages" 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" USE="X a52 aac acl acpi activities alsa amd64 bash-completion berkdb bluray branding bzip2 cairo cdda cdr cli crypt cups cxx dbus declarative djvu dri dts dvd dvdr elogind emboss encode epub exif fam fbcon flac fontconfig fortran gdbm gif glamor gpm gtk iconv ios ipv6 jit jpeg kde kipi kwallet lcms libnotify lm_sensors lz4 lzma lzo mad mng mobi module-sign modules mp3 mp4 mpeg multilib ncurses nls nptl numa ogg opengl openmp pam pango pcre pdf phonon plasma png policykit ppds qml qt5 readline seccomp semantic-desktop smp spell ssl startup-notification svg tiff truetype udev udisks unicode upower urandom usb vaapi vdpau vim-syntax vorbis wayland widgets x264 xattr xcb xcomposite xinerama xml xscreensaver xv xvid zlib" ABI_X86="32 64" ALSA_CARDS="hda-intel" 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 plan sheets stage words" CAMERAS="ptp2 fuji" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64" 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" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-0" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_5" PYTHON_TARGETS="python2_7 python3_5" RUBY_TARGETS="ruby22 ruby24 ruby25" USERLAND="GNU" VIDEO_CARDS="amdgpu radeon radeonsi" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS ================================================================= Package Settings ================================================================= sci-libs/tensorflow-1.8.0::gentoo was built with the following: USE="-cuda -jemalloc -mpi" ABI_X86="(64)" CPU_FLAGS_X86="avx avx2 fma3 sse sse2 sse3 sse4_1 sse4_2 -fma4" PYTHON_TARGETS="python3_5 -python3_6"
in the fist comment first mention of the directory should be /var/tmp/portage just missed that /var part.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7379cdb578b0c070c846c3fa9f71470e2c5d1320 commit 7379cdb578b0c070c846c3fa9f71470e2c5d1320 Author: Jason Zaman <perfinion@gentoo.org> AuthorDate: 2018-05-19 10:21:51 +0000 Commit: Jason Zaman <perfinion@gentoo.org> CommitDate: 2018-05-20 13:45:52 +0000 sci-libs/tensorflow: bazel build fixes Properly include bazelrc, only one is read so include our generated one instead. dont sanitize $HOME otherwise .keras ends up in /var/tmp/portage/ (bug 655368) patch BUILD file so it doesnt strip the outputs Closes: https://bugs.gentoo.org/655368 Package-Manager: Portage-2.3.24, Repoman-2.3.6 .../files/tensorflow-1.8.0-0002-dont-strip.patch | 29 +++++++++++++++ ...low-1.8.0.ebuild => tensorflow-1.8.0-r1.ebuild} | 42 ++++++++++++++-------- 2 files changed, 56 insertions(+), 15 deletions(-)