ffmpeg chroot jail from Gentoo linux (ffmpeg 4.1 with gcc 8.2)

Here we build a Gentoo ssh chroot jail. You may need this because

  • you want the bleeding edge versions of the video libraries like x264, x265, ffmpeg the latest version and so on.
  • latest version of GNU C library and the compiler GNU GCC (version 8.2) at the moment
  • use all the optimizations for compiling the ffmpeg and the libraries for you current processor. Use “-march=native”
  • you want just to be able to update your system and not to break your carefully compiled latest version ffmpeg
  • experiment with GCC compile flags
  • update and test in another directory by just copying the old chroot jail directory
  • no need of any additional software on the host (like virtualization lxc, docker, qemu, etc)
  • or you might want a 32bit version (why? really? but it is possible…)

Of course, you can use for the base any Linux system, but it is easy with Gentoo – the latest versions of almost all important libraries and a packet system, which builds everything for you after a little bit of first tuning…

So here is how to do it:

STEP 1) Download base Gentoo system file and the package file.

Unpack them in the directory you want to build your jail.

[root@srv1 ~]# mkdir /mnt/ffmpeg_encode
[root@srv1 ~]# cd /mnt/ffmpeg_encode/
[root@srv1 ffmpeg_encode]# wget http://mirror.leaseweb.com/gentoo/releases/amd64/autobuilds/current-stage3-amd64/stage3-amd64-20181209T214502Z.tar.xz
[root@srv1 ffmpeg_encode]# tar xJf stage3-amd64-20181209T214502Z.tar.xz 
[root@srv1 ffmpeg_encode]# ls -al
total 241364
drwxr-xr-x. 20 root root      4096 10 Dec  0,17 .
drwxr-xr-x.  7 root root      4096 11 Dec 15,25 ..
drwxr-xr-x.  2 root root      4096 10 Dec  0,04 bin
drwxr-xr-x.  2 root root      4096  9 Dec 21,50 boot
drwxr-xr-x.  3 root root      4096  9 Dec 21,51 dev
drwxr-xr-x. 32 root root      4096 10 Dec  1,24 etc
drwxr-xr-x.  2 root root      4096  9 Dec 21,50 home
lrwxrwxrwx.  1 root root         5 10 Dec  0,16 lib -> lib64
drwxr-xr-x.  2 root root      4096 10 Dec  0,17 lib32
drwxr-xr-x. 10 root root      4096 10 Dec  1,24 lib64
drwxr-xr-x.  2 root root      4096  9 Dec 21,50 media
drwxr-xr-x.  2 root root      4096  9 Dec 21,50 mnt
drwxr-xr-x.  2 root root      4096  9 Dec 21,50 opt
drwxr-xr-x.  2 root root      4096  9 Dec 21,48 proc
drwx------.  2 root root      4096  9 Dec 21,50 root
drwxr-xr-x.  3 root root      4096 10 Dec  0,00 run
drwxr-xr-x.  2 root root      4096 10 Dec  1,24 sbin
-rw-r--r--.  1 root root 247072240 10 Dec  1,26 stage3-amd64-20181209T214502Z.tar.xz
drwxr-xr-x.  2 root root      4096  9 Dec 21,50 sys
drwxrwxrwt.  2 root root      4096 10 Dec  1,24 tmp
drwxr-xr-x. 12 root root      4096 10 Dec  1,24 usr
drwxr-xr-x.  9 root root      4096  9 Dec 21,50 var
[root@srv1 ffmpeg_encode]# wget http://mirror.leaseweb.com/gentoo/releases/snapshots/current/portage-latest.tar.bz2
[root@srv1 ffmpeg_encode]# tar xjf portage-latest.tar.bz2 -C usr/

This file stage3-amd64-20181209T214502Z.tar.xz (you can see this file is auto-generated on 09.12.2018) may be missing when you follow this article, so just open in your browser http://mirror.leaseweb.com/gentoo/releases/amd64/autobuilds/current-stage3-amd64/ and copy the current version “stage3-amd64-

STEP 2) Mount proc, sys and dev in the jail to be able to build Gentoo packages.

And execute chroot to enter the jail. As you can see we made a little trick we mounted /mnt/ffmpeg_encode/var/tmp/portage/ in the virtual ram (in fact tmpfs is used) to speed out build process. If you do not have 8G RAM tune it accordingly. Umount it when you finish building the system.

[root@srv1 ffmpeg_encode]# mount --rbind /dev /mnt/ffmpeg_encode/dev
[root@srv1 ffmpeg_encode]# mount -o bind /proc/ /mnt/ffmpeg_encode/proc/
[root@srv1 ffmpeg_encode]# mount -o bind /sys/ /mnt/ffmpeg_encode/sys/
[root@srv1 ffmpeg_encode]# screen -R jail
[root@srv1 ffmpeg_encode]# mount -t tmpfs -o size=8192m tmpfs /mnt/ffmpeg_encode/var/tmp/portage/
[root@srv1 ffmpeg_encode]# echo "nameserver 8.8.8.8" > /mnt/ffmpeg_encode/etc/resolv.conf
[root@srv1 ffmpeg_encode]# chroot /mnt/ffmpeg_encode/

STEP 3) Build the latest version of GNU C Library and GCC compiler and then rebuild everything with the new flags.

First you must put the following content in this file

/etc/portage/make.conf

COMMON_FLAGS="-march=native -O2 -msse3 -fomit-frame-pointer -pipe"
CFLAGS="${COMMON_FLAGS}"
CXXFLAGS="${COMMON_FLAGS}"
FCFLAGS="${COMMON_FLAGS}"
FFLAGS="${COMMON_FLAGS}"
#LDFLAGS="-Wl,-O1"

CHOST="x86_64-pc-linux-gnu"
MAKEOPTS="-j8"
ABI_X86="64"
ACCEPT_KEYWORDS="~amd64"

# NOTE: This stage was built with the bindist Use flag enabled
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"

# This sets the language of build output to English.
# Please keep this setting intact when reporting bugs.
LC_MESSAGES=C

USE="mmx mmxext sse sse2 nptl ssse3 sse4_1 extensible nptlonly ipv6 pam ssl X -static \
        -tcpd -gtk -gnome -qt -kde -alsa -arts -xv -opengl bzip2 pcre -xpm \
        -spl xvid curl flv fontconfig jpeg png truetype amr encode imlib \
        ogg sdl theora truetype v4l vorbis x264 xvid zlib gnutls berkdb -apache2 \
        contentcache inode sharedmem status addition opencore-amr aalib libcaca ggi \
        gif faac faad gsm jack jpeg2k mp3 threads id64 extensible -tcmalloc \
        svg djvu xsl pcre-jit a52 aac minizip lua rtsp flac httpd dts mpeg vpx \
        gmp libdrm librtmp lzma opencl opengl openh264 x265 xcb \
        dbi sftp openssl ident iproute2 pkcs11 virtfs xattr udev ithreads jemalloc \
        rtmp network ffmpeg tiff"

CPU_FLAGS_X86="mmx mmxext sse sse2 sse3 sse4_1 ssse3 avx avx2 fma3 fma4 sse4_2 aes xop"

Then build all the packages:

srv1 / # #in the jail
srv1 / # source /etc/profile
srv1 / # cd
srv1 ~ # emerge -v eix
srv1 ~ # eix-sync 
srv1 ~ # emerge -va linux-headers glibc

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild     U  ] sys-kernel/linux-headers-4.19::gentoo [4.13::gentoo] USE="-headers-only" 7,774 KiB
[ebuild     U  ] net-dns/libidn2-2.0.5::gentoo [2.0.4::gentoo] USE="-static-libs" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild     U  ] sys-libs/glibc-2.28-r2:2.2::gentoo [2.27-r6:2.2::gentoo] USE="multiarch (multilib) -audit -caps (-cet) (-compile-locales) -doc -gd (-hardened) -headers-only -nscd -profile (-selinux) -suid -systemtap -test% (-vanilla)" 0 KiB

Total: 3 packages (3 upgrades), Size of downloads: 7,774 KiB

Would you like to merge these packages? [Yes/No] yes

>>> Verifying ebuild manifests
>>> Running pre-merge checks for sys-libs/glibc-2.28-r2
.....
.....
srv1 ~ # emerge -va gcc

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  NS    ] sys-devel/gcc-8.2.0-r5:8.2.0::gentoo [7.3.0-r3:7.3.0::gentoo] USE="cxx fortran (multilib) nls nptl openmp pch (pie) sanitize ssp vtv (-altivec) -debug -doc (-fixed-point) -go -graphite (-hardened) (-jit) (-libssp) -mpx -objc -objc++ -objc-gc -pgo -regression-test -systemtap -vanilla" 61,991 KiB

Total: 1 package (1 in new slot), Size of downloads: 61,991 KiB

Would you like to merge these packages? [Yes/No] yes

>>> Verifying ebuild manifests
>>> Running pre-merge checks for sys-devel/gcc-8.2.0-r5
.....
.....
srv1 ~ # gcc-config -l
 [1] x86_64-pc-linux-gnu-7.3.0 *
 [2] x86_64-pc-linux-gnu-8.2.0
srv1 ~ # gcc-config x86_64-pc-linux-gnu-8.2.0
 * Switching native-compiler to x86_64-pc-linux-gnu-8.2.0 ...
>>> Regenerating /etc/ld.so.cache...                                                                                                                    [ ok ]

 * If you intend to use the gcc from the new profile in an already
 * running shell, please remember to do:

 *   . /etc/profile

srv1 ~ #  . /etc/profile
srv1 ~ # gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-pc-linux-gnu/8.2.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /var/tmp/portage/sys-devel/gcc-8.2.0-r5/work/gcc-8.2.0/configure --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/8.2.0 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/include --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/8.2.0 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/8.2.0/man --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/8.2.0/info --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/include/g++-v8 --with-python-dir=/share/gcc-data/x86_64-pc-linux-gnu/8.2.0/python --enable-languages=c,c++,fortran --enable-obsolete --enable-secureplt --disable-werror --with-system-zlib --enable-nls --without-included-gettext --enable-checking=release --with-bugurl=https://bugs.gentoo.org/ --with-pkgversion='Gentoo 8.2.0-r5 p1.6' --disable-esp --enable-libstdcxx-time --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --enable-multilib --with-multilib-list=m32,m64 --disable-altivec --disable-fixed-point --enable-targets=all --enable-libgomp --disable-libmudflap --disable-libssp --disable-libmpx --disable-systemtap --enable-vtable-verify --enable-libvtv --enable-lto --without-isl --enable-libsanitizer --enable-default-pie --enable-default-ssp
Thread model: posix
gcc version 8.2.0 (Gentoo 8.2.0-r5 p1.6)
srv1 ~ # emerge -v glibc; emerge -v gcc

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] sys-libs/glibc-2.28-r2:2.2::gentoo  USE="multiarch (multilib) -audit -caps (-cet) (-compile-locales) -doc -gd (-hardened) -headers-only -nscd -profile (-selinux) -suid -systemtap -test (-vanilla)" 0 KiB

Total: 1 package (1 reinstall), Size of downloads: 0 KiB


>>> Verifying ebuild manifests
>>> Running pre-merge checks for sys-libs/glibc-2.28-r2
.....
.....
srv1 ~ # emerge -va autoconf-archive
These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N     ] sys-devel/autoconf-archive-2018.03.13::gentoo  635 KiB

Total: 1 package (1 new), Size of downloads: 635 KiB

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) sys-devel/autoconf-archive-2018.03.13::gentoo
.....
.....
srv1 ~ # emerge -vea @world

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] virtual/libintl-0-r2::gentoo  ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild   R    ] sys-libs/ncurses-6.1-r3:0/6::gentoo  USE="cxx threads unicode -ada -debug -doc -gpm -minimal -profile -static-libs -test -tinfo -trace" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild   R    ] dev-lang/python-exec-2.4.6:2::gentoo  PYTHON_TARGETS="(jython2_7) (pypy) (pypy3) (python2_7) (python3_4) (python3_5) (python3_6) (python3_7)" 0 KiB
[ebuild   R    ] app-arch/bzip2-1.0.6-r10:0/1::gentoo  USE="-static -static-libs" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild   R    ] sys-devel/gnuconfig-20180101::gentoo  0 KiB
[ebuild   R    ] sys-apps/gentoo-functions-0.12::gentoo  0 KiB
[ebuild   R    ] virtual/libiconv-0-r2::gentoo  ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild   R    ] app-misc/c_rehash-1.7-r1::gentoo  0 KiB
[ebuild   R    ] app-misc/mime-types-9::gentoo  0 KiB
[ebuild   R    ] app-arch/gzip-1.9::gentoo  USE="-pic -static" 0 KiB
[ebuild   R    ] net-libs/libmnl-1.0.4:0/0.2.0::gentoo  USE="-examples -static-libs" 0 KiB
[ebuild   R    ] sys-apps/debianutils-4.8.6::gentoo  USE="installkernel -static" 0 KiB
[ebuild   R    ] app-misc/editor-wrapper-4::gentoo  0 KiB
[ebuild   R    ] sys-apps/opentmpfiles-0.2::gentoo  USE="(-selinux)" 0 KiB
[ebuild   R    ] dev-libs/libffi-3.3_rc0:0/7::gentoo  USE="-debug -pax_kernel -static-libs -test" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild   R    ] app-text/manpager-1::gentoo  0 KiB
[ebuild   R    ] dev-libs/libpthread-stubs-0.4-r1::gentoo  ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild   R    ] app-crypt/openpgp-keys-gentoo-release-20180706::gentoo  USE="-test" 0 KiB
[ebuild   R    ] sys-apps/install-xattr-0.5-r1::gentoo  0 KiB
[ebuild   R    ] sys-apps/baselayout-2.6-r1::gentoo  USE="split-usr -build" 0 KiB
[ebuild   R    ] sys-apps/which-2.21::gentoo  0 KiB
[ebuild   R    ] app-text/sgml-common-0.6.3-r6::gentoo  0 KiB
[ebuild   R    ] sys-devel/automake-wrapper-11::gentoo  0 KiB
[ebuild   R    ] sys-devel/autoconf-wrapper-13-r1::gentoo  0 KiB
[ebuild   R    ] app-shells/push-2.0-r1::gentoo  0 KiB
[ebuild   R    ] app-shells/quoter-3.0_p2-r1::gentoo  0 KiB
[ebuild   R    ] dev-util/re2c-1.1.1::gentoo  0 KiB
[ebuild   R    ] x11-misc/util-macros-1.19.2-r1::gentoo  0 KiB
[ebuild   R    ] dev-util/gperf-3.1::gentoo  0 KiB
[ebuild   R    ] sys-devel/autoconf-archive-2018.03.13::gentoo  0 KiB
[ebuild   R    ] virtual/libffi-3.3_rc0:0/7::gentoo  ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild   R    ] virtual/tmpfiles-0::gentoo  0 KiB
[ebuild   R    ] sys-devel/binutils-config-5.1-r1::gentoo  0 KiB
[ebuild   R    ] sys-libs/timezone-data-2018g::gentoo  USE="nls -leaps_timezone" 0 KiB
[ebuild   R    ] sys-devel/gcc-config-2.0::gentoo  0 KiB
[ebuild   R    ] app-arch/unzip-6.0_p21-r2::gentoo  USE="bzip2 unicode -natspec" 0 KiB
[ebuild   R    ] virtual/os-headers-0-r1::gentoo  0 KiB
[ebuild   R    ] sys-apps/sysvinit-2.93::gentoo  USE="(-ibm) (-selinux) -static" 0 KiB
[ebuild   R    ] virtual/pam-0-r1::gentoo  ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild   R    ] virtual/acl-0-r2::gentoo  USE="-static-libs" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild   R    ] virtual/udev-217::gentoo  USE="-systemd" 0 KiB
[ebuild   R    ] sys-fs/udev-init-scripts-32::gentoo  0 KiB
[ebuild   R    ] virtual/dev-manager-0-r2::gentoo  0 KiB
[ebuild   R    ] virtual/man-0-r1::gentoo  0 KiB
[ebuild   R    ] sys-apps/man-pages-posix-2013a::gentoo  0 KiB
[ebuild   R    ] sys-apps/man-pages-4.16::gentoo  USE="nls" L10N="-da -de -fr -it -ja -nl -pl -ru -zh-CN" 0 KiB
[ebuild   R    ] virtual/shadow-0::gentoo  0 KiB
[ebuild   R    ] app-eselect/eselect-python-20171204::gentoo  0 KiB
[ebuild   R    ] app-eselect/eselect-pinentry-0.7::gentoo  0 KiB
[ebuild   R    ] virtual/mta-1::gentoo  0 KiB
[ebuild   R    ] virtual/logger-0-r1::gentoo  0 KiB
[ebuild   R    ] virtual/libudev-232:0/1::gentoo  USE="-static-libs -systemd" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild   R    ] virtual/pkgconfig-0-r1::gentoo  ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild   R    ] sys-libs/readline-7.0_p5:0/7::gentoo  USE="-static-libs -utils" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild   R    ] sys-libs/e2fsprogs-libs-1.44.4::gentoo  USE="-static-libs" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild   R    ] dev-libs/libpipeline-1.5.0::gentoo  USE="-static-libs -test" 0 KiB
[ebuild   R    ] sys-apps/hwids-20180917::gentoo  USE="net pci udev usb" 0 KiB
[ebuild   R    ] sys-apps/kbd-2.0.4::gentoo  USE="nls pam -test" 0 KiB
[ebuild   R    ] sys-process/procps-3.3.15-r1:0/6::gentoo  USE="kill ncurses nls unicode -elogind -modern-top (-selinux) -static-libs -systemd -test" 0 KiB
[ebuild   R    ] app-shells/bash-4.4_p23::gentoo  USE="net nls (readline) -afs -bashlogger -examples -mem-scramble -plugins" 0 KiB
[ebuild   R    ] net-misc/netifrc-0.6.1::gentoo  0 KiB
[ebuild   R    ] app-text/docbook-xsl-stylesheets-1.79.1-r2::gentoo  USE="-ruby" 0 KiB
[ebuild   R    ] app-text/build-docbook-catalog-1.21::gentoo  0 KiB
[ebuild   R    ] app-text/docbook-xml-dtd-4.1.2-r6:4.1.2::gentoo  0 KiB
[ebuild   R    ] app-text/docbook-xml-dtd-4.3-r1:4.3::gentoo  0 KiB
[ebuild   R    ] app-text/docbook-xml-dtd-4.4-r2:4.4::gentoo  0 KiB
[ebuild   R    ] virtual/perl-File-Temp-0.230.400-r5::gentoo  0 KiB
[ebuild   R    ] virtual/yacc-0::gentoo  0 KiB
[ebuild   R    ] app-admin/perl-cleaner-2.26-r1::gentoo  0 KiB
[ebuild   R    ] app-arch/xz-utils-5.2.4-r2::gentoo  USE="extra-filters nls threads -static-libs" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild   R    ] sys-apps/net-tools-1.60_p20180626073013::gentoo  USE="arp hostname ipv6 nls -nis -plipconfig (-selinux) -slattach -static" 0 KiB
[ebuild   R    ] app-portage/elt-patches-20170826.1::gentoo  0 KiB
[ebuild   R    ] sys-devel/m4-1.4.18::gentoo  USE="-examples" 0 KiB
[ebuild   R    ] dev-libs/libltdl-2.4.6::gentoo  USE="-static-libs" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild   R    ] dev-libs/gmp-6.1.2-r1:0/10.4::gentoo  USE="asm cxx -doc -static-libs" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild   R    ] dev-libs/libunistring-0.9.10:0/2::gentoo  USE="-doc -static-libs" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild   R    ] dev-libs/npth-1.6-r1::gentoo  USE="-static-libs" 0 KiB
[ebuild   R    ] dev-libs/mpfr-4.0.1:0/6::gentoo  USE="-static-libs" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild   R    ] dev-libs/mpc-1.1.0-r1:0/3::gentoo  USE="-static-libs" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild   R    ] sys-libs/zlib-1.2.11-r2:0/1::gentoo  USE="minizip -static-libs" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild   R    ] dev-libs/libpcre-8.42:3::gentoo  USE="bzip2 cxx jit readline recursion-limit (unicode) zlib -libedit -pcre16 -pcre32 -static-libs" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild   R    ] sys-apps/file-5.35::gentoo  USE="zlib -python -static-libs" ABI_X86="(64) -32 (-x32)" PYTHON_TARGETS="python2_7 python3_6 -pypy -python3_4 -python3_5 -python3_7" 0 KiB
[ebuild   R    ] sys-libs/cracklib-2.9.6-r1::gentoo  USE="nls zlib -python -static-libs" ABI_X86="(64) -32 (-x32)" PYTHON_TARGETS="python2_7 python3_6 -python3_4 -python3_5" 0 KiB
[ebuild   R    ] sys-apps/kmod-25::gentoo  USE="lzma tools zlib -debug -doc -python -static-libs" PYTHON_TARGETS="python2_7 python3_6 -python3_4 -python3_5" 0 KiB
[ebuild   R    ] virtual/modutils-0::gentoo  0 KiB
[ebuild   R    ] sys-apps/attr-2.4.48-r3::gentoo  USE="nls -debug -static-libs" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild   R    ] sys-devel/patch-2.7.6-r2::gentoo  USE="xattr -static -test" 0 KiB
[ebuild   R    ] sys-kernel/linux-headers-4.19::gentoo  USE="-headers-only" 0 KiB
[ebuild   R    ] sys-libs/libseccomp-2.3.3::gentoo  USE="-static-libs" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild   R    ] dev-libs/libbsd-0.9.1::gentoo  USE="-static-libs" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild   R    ] net-firewall/iptables-1.8.2-r2:0/12::gentoo  USE="ipv6 -conntrack -netlink -nftables -pcap -static-libs" 0 KiB
[ebuild   R    ] sys-libs/libcap-2.26-r2::gentoo  USE="pam -static-libs" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild   R    ] app-misc/pax-utils-1.2.3-r3::gentoo  USE="seccomp -caps -debug -python" PYTHON_SINGLE_TARGET="python3_6 -python2_7 -python3_4 -python3_5" PYTHON_TARGETS="python2_7 python3_6 -python3_4 -python3_5" 0 KiB
[ebuild   R    ] sys-apps/sandbox-2.14::gentoo  ABI_X86="(32) (64) (-x32)" 0 KiB
[ebuild     U  ] sys-apps/util-linux-2.33::gentoo [2.32-r4::gentoo] USE="cramfs ncurses nls pam readline suid udev* unicode -build -caps -fdformat -kill -python (-selinux) -slang -static-libs -systemd -test -tty-helpers" ABI_X86="(64) -32 (-x32)" PYTHON_TARGETS="python2_7 python3_6%* -python3_4% -python3_5% -python3_7%" 0 KiB
[ebuild   R    ] dev-libs/openssl-1.0.2q::gentoo  USE="asm gmp sslv3 tls-heartbeat zlib -bindist -kerberos -rfc3779 -sctp -sslv2 -static-libs -test -vanilla" ABI_X86="(64) -32 (-x32)" CPU_FLAGS_X86="(sse2)" 0 KiB
[ebuild   R    ] net-misc/iputils-20180629::gentoo  USE="arping filecaps ipv6 ssl -SECURITY_HAZARD -caps -clockdiff -doc -gcrypt -idn -libressl -nettle -rarpd -rdisc -static -tftpd -tracepath -traceroute" 0 KiB
[ebuild   R    ] dev-libs/libgpg-error-1.32-r1::gentoo  USE="nls -common-lisp -static-libs" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild   R    ] dev-libs/libassuan-2.5.1-r1::gentoo  USE="-static-libs" 0 KiB
[ebuild   R    ] dev-libs/libksba-1.3.5-r2::gentoo  USE="-static-libs" 0 KiB
[ebuild   R    ] dev-python/setuptools-40.6.2::gentoo  USE="-test" PYTHON_TARGETS="python2_7 python3_6 -pypy -pypy3 -python3_4 -python3_5 -python3_7" 0 KiB
[ebuild   R    ] sys-apps/sed-4.5::gentoo  USE="acl nls -forced-sandbox (-selinux) -static" 0 KiB
[ebuild   R    ] sys-libs/db-6.0.35-r1:6.0::gentoo  USE="cxx -doc -examples -java -tcl -test" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild   R    ] dev-libs/expat-2.2.6::gentoo  USE="unicode -examples -static-libs" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild   R    ] sys-libs/gdbm-1.18.1:0/6::gentoo  USE="berkdb nls readline -static-libs" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild     U  ] dev-lang/perl-5.26.2:0/5.26::gentoo [5.24.3-r1:0/5.24::gentoo] USE="berkdb gdbm ithreads* -debug -doc" 0 KiB
[ebuild   R    ] sys-devel/autoconf-2.69-r4:2.69::gentoo  USE="-emacs" 0 KiB
[ebuild     U  ] virtual/perl-ExtUtils-MakeMaker-7.240.0::gentoo [7.100.200_rc-r4::gentoo] 0 KiB
[ebuild   R    ] dev-util/gtk-doc-am-1.25-r1::gentoo  0 KiB
[ebuild  N     ] virtual/perl-Encode-2.880.0::gentoo  0 KiB
[ebuild     U  ] virtual/perl-Parse-CPAN-Meta-2.150.10-r1::gentoo [1.441.700.100_rc-r4::gentoo] 0 KiB
[ebuild   R    ] virtual/perl-CPAN-Meta-YAML-0.18.0-r3::gentoo  0 KiB
[ebuild     U  ] virtual/perl-Test-Harness-3.380.0::gentoo [3.360.100_rc-r3::gentoo] 0 KiB
[ebuild     U  ] virtual/perl-File-Spec-3.670.0::gentoo [3.630.100_rc-r4::gentoo] 0 KiB
[ebuild     U  ] virtual/perl-Data-Dumper-2.167.0::gentoo [2.160.0-r1::gentoo] 0 KiB
[ebuild   R    ] dev-perl/XML-Parser-2.440.0::gentoo  0 KiB
[ebuild   R    ] dev-perl/Text-CharWidth-0.40.0-r1::gentoo  0 KiB
[ebuild  N     ] virtual/perl-Scalar-List-Utils-1.460.200_rc::gentoo  0 KiB
[ebuild  N     ] virtual/perl-Exporter-5.720.0-r3::gentoo  0 KiB
[ebuild  N     ] virtual/perl-Carp-1.420.0::gentoo  0 KiB
[ebuild   R    ] perl-core/File-Temp-0.230.400-r1::gentoo  0 KiB
[ebuild     U  ] virtual/perl-version-0.991.700::gentoo [0.991.600-r1::gentoo] 0 KiB
[ebuild     U  ] virtual/perl-podlators-4.90.0::gentoo [4.70.0-r1::gentoo] 0 KiB
[ebuild   R    ] virtual/perl-Text-ParseWords-3.300.0-r4::gentoo  0 KiB
[ebuild     U  ] virtual/perl-Perl-OSType-1.10.0-r1::gentoo [1.9.0-r1::gentoo] 0 KiB
[ebuild     U  ] virtual/perl-Module-Metadata-1.0.33-r1::gentoo [1.0.31-r1::gentoo] 0 KiB
[ebuild     U  ] virtual/perl-Getopt-Long-2.490.0::gentoo [2.480.0-r1::gentoo] 0 KiB
[ebuild     U  ] virtual/perl-ExtUtils-ParseXS-3.340.0::gentoo [3.310.0-r1::gentoo] 0 KiB
[ebuild   R    ] virtual/perl-ExtUtils-Manifest-1.700.0-r5::gentoo  0 KiB
[ebuild   R    ] virtual/perl-ExtUtils-Install-2.40.0-r3::gentoo  0 KiB
[ebuild   R    ] virtual/perl-ExtUtils-CBuilder-0.280.225-r2::gentoo  0 KiB
[ebuild     U  ] virtual/perl-JSON-PP-2.274.0.200_rc::gentoo [2.273.0.100_rc-r6::gentoo] 0 KiB
[ebuild   R    ] dev-perl/libintl-perl-1.280.0::gentoo  0 KiB
[ebuild   R    ] dev-perl/Unicode-EastAsianWidth-1.330.0-r1::gentoo  0 KiB
[ebuild   R    ] dev-perl/Text-Unidecode-1.300.0::gentoo  0 KiB
[ebuild   R    ] dev-perl/TermReadKey-2.370.0::gentoo  USE="-examples" 0 KiB
[ebuild   R    ] dev-perl/Text-WrapI18N-0.60.0-r1::gentoo  0 KiB
[ebuild  N     ] dev-perl/YAML-Tiny-1.730.0::gentoo  USE="-minimal -test" 0 KiB
[ebuild  N     ] dev-perl/MIME-Charset-1.12.2::gentoo  L10N="-ja -zh" 0 KiB
[ebuild     U  ] virtual/perl-CPAN-Meta-2.150.10-r1::gentoo [2.150.5-r1::gentoo] 0 KiB
[ebuild   R    ] dev-perl/Module-Build-0.422.400::gentoo  USE="-test" 0 KiB
[ebuild  N     ] dev-perl/Unicode-LineBreak-2017.4.0-r1::gentoo  0 KiB
[ebuild   R    ] dev-perl/SGMLSpm-1.1-r1::gentoo  0 KiB
[ebuild   R    ] dev-util/intltool-0.51.0-r2::gentoo  0 KiB
[ebuild     U  ] dev-lang/python-3.6.6:3.6/3.6m::gentoo [3.6.5:3.6/3.6m::gentoo] USE="gdbm ipv6 ncurses readline ssl (threads) xml -bluetooth% -build -examples -hardened -libressl -sqlite -test -tk -wininst" 0 KiB
[ebuild   R    ] app-misc/ca-certificates-20180409.3.37::gentoo  USE="-cacert" 0 KiB
[ebuild   R    ] dev-util/glib-utils-2.56.2::gentoo  PYTHON_SINGLE_TARGET="python3_6 -python3_5 -python3_7" PYTHON_TARGETS="python3_6 -python3_5 -python3_7" 0 KiB
[ebuild  N     ] dev-util/meson-0.48.2::gentoo  PYTHON_TARGETS="python3_6 -python3_5 -python3_7" 0 KiB
[ebuild  N     ] dev-util/ninja-1.8.2-r2::gentoo  USE="-doc -emacs -test -vim-syntax" 0 KiB
[ebuild  N     ] x11-base/xorg-proto-2018.4::gentoo  0 KiB
[ebuild   R    ] dev-lang/python-2.7.15:2.7::gentoo  USE="gdbm ipv6 ncurses readline ssl (threads) (wide-unicode) xml (-berkdb) -bluetooth -build -doc -examples -hardened -libressl -sqlite -tk -wininst" 0 KiB
[ebuild   R    ] dev-python/pyblake2-1.1.2::gentoo  PYTHON_TARGETS="python2_7 python3_6 -pypy -pypy3 -python3_4 -python3_5 -python3_7" 0 KiB
[ebuild     U  ] dev-python/certifi-2018.8.24::gentoo [2018.4.16::gentoo] PYTHON_TARGETS="python2_7 python3_6 -pypy -pypy3 -python3_4 -python3_5 -python3_7" 0 KiB
[ebuild     U  ] dev-python/pyxattr-0.6.1::gentoo [0.6.0-r1::gentoo] USE="-doc -test" PYTHON_TARGETS="python2_7 python3_6 -pypy -python3_4 -python3_5 -python3_7" 0 KiB
[ebuild   R    ] dev-python/bz2file-0.98::gentoo  PYTHON_TARGETS="python2_7 -pypy" 0 KiB
[ebuild   R    ] dev-python/backports-1.0::gentoo  PYTHON_TARGETS="python2_7 python3_6 -pypy -pypy3 -python3_4 -python3_5 -python3_7" 0 KiB
[ebuild   R    ] dev-python/backports-lzma-0.0.12::gentoo  USE="-test" PYTHON_TARGETS="python2_7 -pypy" 0 KiB
[ebuild   R    ] app-portage/gemato-14.0::gentoo  USE="blake2 bzip2 gpg lzma* -sha3 -test -tools" PYTHON_TARGETS="python2_7 python3_6 -pypy -python3_4 -python3_5 -python3_7" 0 KiB
[ebuild   R    ] sys-auth/pambase-20150213-r2::gentoo  USE="cracklib nullok sha512 -consolekit -debug -elogind -minimal -mktemp -pam_krb5 -pam_ssh -passwdqc -securetty (-selinux) -systemd" 0 KiB
[ebuild   R    ] sys-libs/glibc-2.28-r2:2.2::gentoo  USE="multiarch (multilib) -audit -caps (-cet) (-compile-locales) -doc -gd (-hardened) -headers-only -nscd -profile (-selinux) -suid -systemtap -test (-vanilla)" 0 KiB
[ebuild   R    ] virtual/libc-1::gentoo  0 KiB
[ebuild   R    ] sys-devel/binutils-2.31.1-r2:2.31::gentoo  USE="cxx nls -doc -multitarget -static-libs -test" 0 KiB
[ebuild   R    ] dev-libs/libgcrypt-1.8.4:0/20::gentoo  USE="-doc -o-flag-munging -static-libs" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild   R    ] sys-apps/acl-2.2.53::gentoo  USE="nls -static-libs" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild   R    ] sys-apps/coreutils-8.30::gentoo  USE="acl gmp nls split-usr xattr -caps -hostname -kill -multicall (-selinux) -static -test -vanilla" 0 KiB
[ebuild   R    ] app-admin/eselect-1.4.13::gentoo  USE="-doc -emacs -vim-syntax" 0 KiB
[ebuild   R    ] app-eselect/eselect-lib-bin-symlink-0.1.1::gentoo  0 KiB
[ebuild  N     ] x11-libs/libICE-1.0.9-r2::gentoo  USE="ipv6 -doc -static-libs" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild   R    ] x11-libs/xtrans-1.3.5::gentoo  USE="-doc" 0 KiB
[ebuild   R    ] dev-libs/libpcre2-10.32::gentoo  USE="bzip2 jit readline recursion-limit unicode zlib -libedit -pcre16 -pcre32 -static-libs" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild   R    ] sys-apps/less-547::gentoo  USE="pcre unicode" 0 KiB
[ebuild   R    ] virtual/pager-0::gentoo  0 KiB
[ebuild   R    ] dev-libs/libtasn1-4.13:0/6::gentoo  USE="-doc -static-libs -test -valgrind" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild   R    ] app-crypt/p11-kit-0.23.12::gentoo  USE="asn1 libffi trust -debug" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild   R    ] net-dns/libidn2-2.0.5::gentoo  USE="-static-libs" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild  N     ] x11-libs/libSM-1.2.3::gentoo  USE="ipv6 uuid -doc -static-libs" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild  N     ] x11-libs/libXau-1.0.8-r1::gentoo  USE="-static-libs" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild   R    ] sys-apps/portage-2.3.52-r1::gentoo  USE="(ipc) native-extensions rsync-verify xattr -build -doc -epydoc -gentoo-dev (-selinux)" PYTHON_TARGETS="python2_7 python3_6 -pypy -python3_4 -python3_5 -python3_7" 0 KiB
[ebuild   R    ] virtual/package-manager-1::gentoo  0 KiB
[ebuild   R    ] sys-apps/openrc-0.40.2::gentoo  USE="ncurses netifrc pam unicode -audit -debug -newnet (-prefix) (-selinux) -static-libs" 0 KiB
[ebuild   R    ] virtual/service-manager-0::gentoo  USE="(-prefix)" 0 KiB
[ebuild   R    ] sys-devel/make-4.2.1-r4::gentoo  USE="nls -guile -static" 0 KiB
[ebuild   R    ] dev-libs/nettle-3.4.1:0/6.2::gentoo  USE="gmp -doc (-neon) -static-libs -test" ABI_X86="(64) -32 (-x32)" CPU_FLAGS_X86="aes" 0 KiB
[ebuild     U  ] net-libs/gnutls-3.5.19-r1:0/30::gentoo [3.5.19:0/30::gentoo] USE="cxx idn nls openssl pkcs11* seccomp tls-heartbeat zlib -dane -doc -examples -guile -openpgp -sslv2 -sslv3 -static-libs -test -test-full -tools -valgrind" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild   R    ] media-video/rtmpdump-2.4_p20161210-r2::gentoo  USE="gnutls ssl -libressl" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild   R    ] dev-libs/popt-1.16-r2::gentoo  USE="nls -static-libs" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild   R    ] net-misc/rsync-3.1.3::gentoo  USE="acl iconv ipv6 xattr -examples -static -stunnel" 0 KiB
[ebuild  N     ] x11-libs/libXdmcp-1.1.2-r2::gentoo  USE="-doc -static-libs" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild     U  ] net-misc/curl-7.62.0::gentoo [7.61.1::gentoo] USE="ipv6 rtmp* ssl threads* -adns -brotli -http2 -idn -kerberos -ldap -metalink -samba -ssh -static-libs -test" ABI_X86="(64) -32 (-x32)" CURL_SSL="openssl -axtls -gnutls -libressl -mbedtls -nss (-winssl)" 0 KiB
[ebuild     U  ] app-crypt/pinentry-1.1.0-r3::gentoo [1.1.0-r2::gentoo] USE="ncurses -caps -emacs -fltk -gnome-keyring -gtk -qt5 -static" 0 KiB
[ebuild   R    ] app-editors/nano-3.2::gentoo  USE="magic ncurses nls spell unicode -debug -justify -minimal -slang -static" 0 KiB
[ebuild   R    ] virtual/editor-0-r2::gentoo  0 KiB
[ebuild   R    ] virtual/ssh-0::gentoo  USE="-minimal" 0 KiB
[ebuild   R    ] sys-devel/automake-1.16.1-r1:1.16::gentoo  USE="-test" 0 KiB
[ebuild   R    ] sys-devel/libtool-2.4.6-r5:2::gentoo  USE="-vanilla" 0 KiB
[ebuild     U  ] sys-fs/eudev-3.2.7-r1::gentoo [3.2.5::gentoo] USE="hwdb kmod -introspection -rule-generator (-selinux) -static-libs -test" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild     U  ] app-admin/metalog-20181125::gentoo [3-r2::gentoo] USE="unicode" 0 KiB
[ebuild   R    ] dev-libs/libxml2-2.9.8:2::gentoo  USE="ipv6 lzma* readline -debug -examples -icu -python -static-libs -test" ABI_X86="(64) -32 (-x32)" PYTHON_TARGETS="python2_7 python3_6 -python3_4 -python3_5 -python3_7%" 0 KiB
[ebuild   R    ] dev-libs/iniparser-3.1-r1::gentoo  USE="-doc -examples -static-libs" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild     U  ] net-libs/libtirpc-1.1.4:0/3::gentoo [1.0.2-r1:0/3::gentoo] USE="ipv6 -kerberos -static-libs" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild  N     ] media-fonts/font-util-1.3.1::gentoo  0 KiB
[ebuild   R    ] sys-devel/gettext-0.19.8.1::gentoo  USE="acl cxx ncurses nls openmp -cvs -doc -emacs -git -java -static-libs" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild   R    ] dev-libs/libxslt-1.1.32::gentoo  USE="crypt -debug -examples -python -static-libs" ABI_X86="(64) -32 (-x32)" PYTHON_TARGETS="python2_7" 0 KiB
[ebuild     U  ] app-portage/portage-utils-0.73::gentoo [0.64::gentoo] USE="nls -static" 0 KiB
[ebuild  NS    ] app-text/docbook-xml-dtd-4.5-r1:4.5::gentoo [4.1.2-r6:4.1.2::gentoo, 4.3-r1:4.3::gentoo, 4.4-r2:4.4::gentoo] 0 KiB
[ebuild   R    ] net-libs/libnsl-1.2.0:0/2::gentoo  ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild  N     ] x11-base/xcb-proto-1.13::gentoo  ABI_X86="(64) -32 (-x32)" PYTHON_TARGETS="python2_7 python3_6 -python3_4 -python3_5 -python3_7" 0 KiB
[ebuild     U  ] app-crypt/gnupg-2.2.11::gentoo [2.2.10::gentoo] USE="bzip2 nls readline smartcard ssl -doc -ldap (-selinux) -tofu -tools -usb -user-socket% -wks-server" 0 KiB
[ebuild     U  ] sys-process/psmisc-23.2-r1::gentoo [23.1-r1::gentoo] USE="X* ipv6 nls (-selinux)" 0 KiB
[ebuild   R    ] app-arch/tar-1.30::gentoo  USE="acl nls xattr -minimal (-selinux) -static" 0 KiB
[ebuild   R    ] sys-apps/findutils-4.6.0-r1::gentoo  USE="nls (-selinux) -static -test" 0 KiB
[ebuild  N     ] x11-libs/libxcb-1.13.1:0/1.12::gentoo  USE="-doc (-selinux) -static-libs -test -xkb" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild   R    ] sys-apps/shadow-4.6::gentoo  USE="acl cracklib nls pam xattr -audit (-selinux) -skey" 0 KiB
[ebuild     U  ] sys-apps/gawk-4.2.1-r1::gentoo [4.1.4::gentoo] USE="nls readline -forced-sandbox% -mpfr" 0 KiB
[ebuild   R    ] sys-apps/diffutils-3.6-r1::gentoo  USE="nls -static" 0 KiB
[ebuild   R    ] sys-apps/grep-3.1::gentoo  USE="nls pcre -static" 0 KiB
[ebuild     U  ] net-misc/wget-1.20::gentoo [1.19.5-r1::gentoo] USE="gnutls* ipv6 nls pcre ssl zlib -debug -idn -libressl -ntlm -static -test -uuid" 0 KiB
[ebuild   R    ] sys-devel/flex-2.6.4-r1::gentoo  USE="nls -static -test" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild   R    ] dev-perl/Locale-gettext-1.70.0::gentoo  0 KiB
[ebuild     U  ] sys-apps/texinfo-6.5::gentoo [6.3::gentoo] USE="nls -static" 0 KiB
[ebuild     U  ] app-text/opensp-1.5.2-r6::gentoo [1.5.2-r3::gentoo] USE="nls -doc -static-libs -test" 0 KiB
[ebuild   R    ] app-portage/eix-0.33.6::gentoo  USE="nls -debug -doc -sqlite" 0 KiB
[ebuild  N     ] x11-libs/libX11-1.6.7::gentoo  USE="ipv6 -doc -static-libs -test" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild     U  ] sys-libs/pam-1.3.1-r1::gentoo [1.3.0-r2::gentoo] USE="berkdb cracklib filecaps* nls pie -audit -debug -nis (-selinux) -static-libs% (-test%) (-vim-syntax%)" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild     U  ] sys-fs/e2fsprogs-1.44.4::gentoo [1.43.9::gentoo] USE="nls -fuse -static-libs" 0 KiB
[ebuild     U  ] sys-devel/bison-3.2.2::gentoo [3.1::gentoo] USE="nls -examples -static -test" 0 KiB
[ebuild     U  ] sys-apps/help2man-1.47.8::gentoo [1.47.6::gentoo] USE="nls" 0 KiB
[ebuild     U  ] app-text/po4a-0.54::gentoo [0.47-r1::gentoo] USE="-test" 0 KiB
[ebuild  N     ] x11-libs/libXt-1.1.5-r1::gentoo  USE="-static-libs -test" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild  N     ] x11-libs/libXext-1.3.3-r1::gentoo  USE="-doc -static-libs" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild   R    ] sys-devel/gcc-8.2.0-r5:8.2.0::gentoo  USE="cxx fortran (multilib) nls nptl openmp pch (pie) sanitize ssp vtv (-altivec) -debug -doc (-fixed-point) -go -graphite (-hardened) (-jit) (-libssp) -mpx -objc -objc++ -objc-gc -pgo -regression-test -systemtap -vanilla" 0 KiB
[ebuild   R    ] sys-apps/busybox-1.29.3::gentoo  USE="ipv6 pam* -debug -livecd -make-symlinks -math -mdev -savedconfig (-selinux) -sep-usr -static* -syslog -systemd" 0 KiB
[ebuild     U  ] sys-apps/iproute2-4.19.0-r1::gentoo [4.17.0-r1::gentoo] USE="berkdb iptables ipv6 -atm -caps -elf -minimal (-selinux)" 0 KiB
[ebuild  N     ] x11-libs/libXmu-1.1.2-r1::gentoo  USE="ipv6 -doc -static-libs" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild  N     ] x11-libs/libXpm-3.5.12-r1::gentoo  USE="-static-libs" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild  N     ] x11-libs/libXaw-1.0.13-r1::gentoo  USE="-deprecated -doc -static-libs" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild  N     ] x11-apps/xauth-1.0.10::gentoo  USE="ipv6 -test" 0 KiB
[ebuild   R    ] sys-apps/groff-1.22.3::gentoo  USE="X* -examples" 0 KiB
[ebuild     U  ] net-misc/openssh-7.9_p1::gentoo [7.7_p1-r9::gentoo] USE="X* pam pie ssl -X509 -audit -bindist* -debug -hpn -kerberos -ldns -libedit -libressl -livecd -sctp (-selinux) -static -test (-skey%)" 0 KiB
[ebuild     U  ] sys-apps/man-db-2.8.4::gentoo [2.7.6.1-r2::gentoo] USE="berkdb gdbm manpager nls seccomp%* zlib (-selinux) -static-libs" 0 KiB
[ebuild     U  ] mail-mta/nullmailer-2.0-r2::gentoo [2.0-r1::gentoo] USE="ssl -test%" 0 KiB
[ebuild   R    ] dev-libs/glib-2.56.2:2::gentoo  USE="mime xattr -dbus -debug (-fam) (-selinux) -static-libs -systemtap -test -utils" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild   R    ] dev-util/pkgconfig-0.29.2::gentoo  USE="-hardened -internal-glib" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild   R    ] x11-misc/shared-mime-info-1.10::gentoo  USE="-test" 0 KiB

Total: 244 packages (40 upgrades, 24 new, 1 in new slot, 179 reinstalls), Size of downloads: 0 KiB

Would you like to merge these packages? [Yes/No] yes
.....
.....
srv1 ~ # emerge -va ffmpeg

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N     ] media-gfx/graphite2-1.3.12-r1::gentoo  USE="-perl -test" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild  N     ] sys-libs/libomp-7.0.0::gentoo  USE="-cuda -hwloc -offload -ompt -test" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild  N     ] media-libs/libjpeg-turbo-2.0.1::gentoo  USE="-java -static-libs" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild  N     ] virtual/jpeg-0-r2::gentoo  USE="-static-libs" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild  N     ] x11-apps/mkfontdir-1.0.7::gentoo  0 KiB
[ebuild  N     ] media-fonts/encodings-1.0.4-r3::gentoo  USE="(-X)" 0 KiB
[ebuild  N     ] media-sound/jack-audio-connection-kit-0.125.0::gentoo  USE="pam -alsa (-altivec) (-coreaudio) -debug -doc -examples -oss" ABI_X86="(64) -32 (-x32)" CPU_FLAGS_X86="sse -3dnow" 0 KiB
[ebuild  N     ] media-libs/tiff-4.0.10::gentoo  USE="cxx jpeg lzma zlib -jbig -static-libs -test -webp -zstd" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild  N     ] media-fonts/liberation-fonts-2.00.1-r3::gentoo  USE="X -fontforge" 0 KiB
[ebuild  N     ] virtual/jack-0::gentoo  ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild  N     ] virtual/ttf-fonts-1-r1::gentoo  0 KiB
[ebuild  N     ] media-libs/imlib2-1.5.1-r1::gentoo  USE="X bzip2 gif jpeg mp3 nls png shm tiff zlib -doc -static-libs" ABI_X86="(64) -32 (-x32)" CPU_FLAGS_X86="sse2 (-mmx)" 0 KiB
[ebuild  N     ] media-libs/lcms-2.9:2::gentoo  USE="jpeg threads tiff -doc -static-libs -test" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild  N     ] media-libs/openjpeg-2.3.0-r1:2/7::gentoo  USE="-doc -static-libs -test" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild  N     ] dev-lang/ruby-2.4.5:2.4::gentoo  USE="berkdb gdbm ipv6 jemalloc rdoc ssl -debug -doc -examples -libressl -rubytests -socks5 -static-libs -tk -xemacs" 0 KiB
[ebuild  N     ] dev-lang/ruby-2.3.8-r1:2.3::gentoo  USE="berkdb gdbm ipv6 jemalloc ncurses rdoc readline ssl -debug -doc -examples -libressl -rubytests -socks5 -tk -xemacs" 0 KiB
[ebuild  N     ] dev-ruby/rubygems-2.7.8::gentoo  USE="-server -test" RUBY_TARGETS="ruby23 ruby24 -ruby25" 0 KiB
[ebuild  N     ] virtual/rubygems-14::gentoo  RUBY_TARGETS="ruby23 ruby24 (-rbx) -ruby25" 0 KiB
[ebuild  N     ] dev-ruby/power_assert-1.1.3::gentoo  USE="-doc -test" RUBY_TARGETS="ruby23 ruby24 -ruby25" 0 KiB
[ebuild  N     ] dev-ruby/did_you_mean-1.1.2:2.4::gentoo  USE="-test" RUBY_TARGETS="ruby24" 0 KiB
[ebuild  N     ] dev-ruby/minitest-5.11.3:5::gentoo  USE="-doc -test" RUBY_TARGETS="ruby23 ruby24 -ruby25" 0 KiB
[ebuild  N     ] dev-ruby/net-telnet-0.2.0:1::gentoo  USE="-doc -test" RUBY_TARGETS="ruby23 ruby24 -ruby25" 0 KiB
[ebuild  N     ] dev-ruby/rake-12.3.2::gentoo  USE="-doc -test" RUBY_TARGETS="ruby23 ruby24 -ruby25" 0 KiB
[ebuild  N     ] dev-ruby/json-2.1.0:2::gentoo  USE="-doc -test" RUBY_TARGETS="ruby23 ruby24 -ruby25" 0 KiB
[ebuild  N     ] dev-ruby/xmlrpc-0.3.0::gentoo  USE="-doc -test" RUBY_TARGETS="ruby23 ruby24 -ruby25" 0 KiB
[ebuild  N     ] dev-ruby/test-unit-3.2.9:2::gentoo  USE="-doc -test" RUBY_TARGETS="ruby23 ruby24 -ruby25" 0 KiB
[ebuild  N     ] dev-ruby/did_you_mean-1.0.2:1::gentoo  USE="-test" RUBY_TARGETS="ruby23" 0 KiB
[ebuild  N     ] dev-ruby/kpeg-1.1.0-r1:1::gentoo  USE="-doc -test" RUBY_TARGETS="ruby23 ruby24 -ruby25" 0 KiB
[ebuild  N     ] dev-ruby/racc-1.4.14::gentoo  USE="-doc -test" RUBY_TARGETS="ruby23 ruby24 -ruby25" 0 KiB
[ebuild  N     ] dev-ruby/rdoc-6.0.4::gentoo  USE="-doc -test" RUBY_TARGETS="ruby23 ruby24 -ruby25" 0 KiB
[ebuild  N     ] dev-libs/ocl-icd-2.2.12::gentoo  USE="khronos-headers" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild  N     ] media-libs/fontconfig-2.13.1-r2:1.0::gentoo  USE="-doc -static-libs" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild  N     ] app-eselect/eselect-fontconfig-1.1-r1::gentoo  0 KiB
[ebuild  N     ] x11-libs/libXft-2.3.2-r1::gentoo  USE="-static-libs" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild  N     ] sys-devel/clang-7.0.0:7::gentoo  USE="static-analyzer -debug -default-compiler-rt -default-libcxx -doc -test -xml (-z3)" ABI_X86="(64) -32 (-x32)" LLVM_TARGETS="AMDGPU BPF NVPTX (X86) -AArch64 -ARM -Hexagon -Lanai -MSP430 -Mips -PowerPC -Sparc -SystemZ -XCore" PYTHON_TARGETS="python2_7" 0 KiB
[ebuild  N     ] sys-devel/clang-common-7.0.0::gentoo  0 KiB
[ebuild  N     ] sys-libs/compiler-rt-7.0.0:7.0.0::gentoo  USE="clang -test" 0 KiB
[ebuild  N     ] sys-libs/compiler-rt-sanitizers-7.0.0:7.0.0::gentoo  USE="clang libfuzzer profile sanitize xray -test" 0 KiB
[ebuild  N     ] sys-devel/clang-runtime-7.0.0:7.0.0::gentoo  USE="compiler-rt openmp sanitize -crt -libcxx" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild  N     ] dev-libs/libclc-0.2.0_pre20180915::gentoo  VIDEO_CARDS="radeonsi -nvidia -r600" 0 KiB
[ebuild  N     ] media-libs/mesa-18.3.0::gentoo  USE="classic dri3 egl gallium gbm llvm opencl -d3d9 -debug -gles1 -gles2 -lm_sensors -osmesa -pax_kernel -pic (-selinux) -test -unwind -vaapi -valgrind -vdpau -vulkan -wayland -xa -xvmc" ABI_X86="(64) -32 (-x32)" VIDEO_CARDS="intel nouveau radeon radeonsi (-freedreno) -i915 -i965 (-imx) -r100 -r200 -r300 -r600 (-vc4) -virgl (-vivante) -vmware" 0 KiB
[ebuild  N     ] virtual/opengl-7.0-r2::gentoo  ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild  N     ] x11-libs/cairo-1.16.0-r2::gentoo  USE="X glib opengl svg xcb (-aqua) -debug (-gles2) -static-libs -utils -valgrind" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild  N     ] virtual/opencl-0-r5::gentoo  ABI_X86="(64) -32 (-x32)" VIDEO_CARDS="amdgpu -i965 -nvidia" 0 KiB
[ebuild  N     ] media-libs/x264-0.0.20170701:0/152::gentoo  USE="interlaced opencl threads -10bit (-altivec) -pic -static-libs" ABI_X86="(64) -32 (-x32)" CPU_FLAGS_X86="sse" 0 KiB
[ebuild  N     ] media-libs/harfbuzz-2.2.0:0/0.9.18::gentoo  USE="cairo fontconfig glib graphite introspection truetype -debug -icu -static-libs -test" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild  N     ] media-libs/glu-9.0.0-r1::gentoo  USE="-static-libs" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild  N     ] virtual/glu-9.0-r2::gentoo  ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild  N     ] x11-libs/pango-1.42.4::gentoo  USE="X introspection -test" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild  N     ] media-libs/freeglut-3.0.0::gentoo  USE="-debug -static-libs" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild  N     ] media-libs/libsdl2-2.0.9::gentoo  USE="X joystick opengl sound threads udev video -alsa (-altivec) (-aqua) (-custom-cflags) -dbus -gles -haptic -kms -libsamplerate -nas -oss -pulseaudio -static-libs -tslib -vulkan -wayland -xinerama -xscreensaver" ABI_X86="(64) -32 (-x32)" CPU_FLAGS_X86="mmx sse sse2 -3dnow" VIDEO_CARDS="(-vc4)" 0 KiB
[ebuild  N     ] media-libs/jasper-2.0.14:0/4::gentoo  USE="jpeg opengl -doc -test" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild  N     ] media-libs/ftgl-2.1.3_rc5::gentoo  USE="-static-libs" 0 KiB
[ebuild  N     ] media-libs/libcaca-0.99_beta19::gentoo  USE="X cxx imlib ncurses opengl truetype -doc -java -mono -python (-ruby) -slang -static-libs -test" ABI_X86="(64) -32 (-x32)" PYTHON_TARGETS="python2_7" 0 KiB
[ebuild  N     ] x11-libs/gdk-pixbuf-2.36.12:2::gentoo  USE="X introspection jpeg jpeg2k tiff -debug -test" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild  N     ] gnome-base/librsvg-2.40.18:2::gentoo  USE="introspection -tools -vala" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild  N     ] media-video/ffmpeg-4.1:0/56.58.58::gentoo  USE="X amr bzip2 encode fontconfig gmp gnutls gpl gsm hardcoded-tables iconv jack jpeg2k libcaca libdrm librtmp lzma mp3 network opencl opengl openh264 openssl postproc sdl svg theora threads truetype v4l vorbis vpx x264 x265 xcb xvid zlib -alsa (-altivec) -amrenc (-appkit) -bluray -bs2b -cdio -chromaprint -chromium -codec2 -cpudetection -debug -doc -fdk -flite -frei0r -fribidi -gcrypt -gme -iec61883 -ieee1394 -kvazaar -ladspa -libaom -libass -libilbc -libressl -libsoxr -libv4l -lv2 (-mipsdspr1) (-mipsdspr2) (-mipsfpu) (-mmal) -modplug -openal -opus -oss -pic -pulseaudio -rubberband -samba -snappy -speex -srt -ssh -static-libs -test -twolame -vaapi -vdpau -wavpack -webp -zeromq -zimg -zvbi" ABI_X86="(64) -32 (-x32)" CPU_FLAGS_X86="aes avx avx2 fma3 fma4 mmx mmxext sse sse2 sse3 sse4_1 sse4_2 ssse3 xop -3dnow -3dnowext" FFTOOLS="aviocat cws2fws ffescape ffeval ffhash fourcc2pixfmt graph2dot ismindex pktdumper qt-faststart sidxindex trasher" VIDEO_CARDS="-nvidia" 0 KiB

Total: 57 packages (57 new), Size of downloads: 0 KiB

Would you like to merge these packages? [Yes/No] yes
.....
.....
srv1 ~ # ffmpeg 
ffmpeg version 4.1 Copyright (c) 2000-2018 the FFmpeg developers
  built with gcc 8.2.0 (Gentoo 8.2.0-r5 p1.6)
  configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --docdir=/usr/share/doc/ffmpeg-4.1/html --mandir=/usr/share/man --enable-shared --cc=x86_64-pc-linux-gnu-gcc --cxx=x86_64-pc-linux-gnu-g++ --ar=x86_64-pc-linux-gnu-ar --optflags='-march=native -O2 -msse3 -fomit-frame-pointer -pipe' --disable-static --enable-avfilter --enable-avresample --disable-stripping --disable-optimizations --disable-libcelt --enable-nonfree --disable-indev=alsa --disable-indev=oss --disable-outdev=alsa --disable-outdev=oss --enable-version3 --enable-version3 --enable-bzlib --disable-runtime-cpudetect --disable-debug --disable-gcrypt --enable-gnutls --enable-gmp --enable-gpl --enable-hardcoded-tables --enable-iconv --disable-libtls --enable-lzma --enable-network --enable-opencl --enable-openssl --enable-postproc --disable-libsmbclient --enable-ffplay --enable-sdl2 --disable-vaapi --disable-vdpau --enable-xlib --enable-libxcb --enable-libxcb-shm --enable-libxcb-xfixes --enable-zlib --disable-libcdio --disable-libiec61883 --disable-libdc1394 --enable-libcaca --disable-openal --enable-opengl --disable-libv4l2 --disable-libpulse --enable-libdrm --enable-libjack --enable-libopencore-amrwb --enable-libopencore-amrnb --disable-libcodec2 --disable-libfdk-aac --enable-libopenjpeg --disable-libbluray --disable-libgme --enable-libgsm --disable-mmal --disable-libmodplug --disable-libopus --disable-libilbc --enable-librtmp --disable-libssh --disable-libspeex --disable-libsrt --enable-librsvg --disable-ffnvcodec --enable-libvorbis --enable-libvpx --disable-libzvbi --disable-appkit --disable-libbs2b --disable-chromaprint --disable-libflite --disable-frei0r --disable-libfribidi --enable-fontconfig --disable-ladspa --disable-libass --disable-lv2 --enable-libfreetype --disable-librubberband --disable-libzmq --disable-libzimg --disable-libsoxr --enable-pthreads --disable-libvo-amrwbenc --enable-libmp3lame --disable-libkvazaar --disable-libaom --enable-libopenh264 --disable-libsnappy --enable-libtheora --disable-libtwolame --disable-libwavpack --disable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --disable-gnutls --disable-armv5te --disable-armv6 --disable-armv6t2 --disable-neon --disable-vfp --disable-vfpv3 --disable-armv8 --disable-mipsdsp --disable-mipsdspr2 --disable-mipsfpu --disable-altivec --disable-amd3dnow --disable-amd3dnowext --cpu=host --disable-doc --disable-htmlpages --enable-manpages
  libavutil      56. 22.100 / 56. 22.100
  libavcodec     58. 35.100 / 58. 35.100
  libavformat    58. 20.100 / 58. 20.100
  libavdevice    58.  5.100 / 58.  5.100
  libavfilter     7. 40.101 /  7. 40.101
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale      5.  3.100 /  5.  3.100
  libswresample   3.  3.100 /  3.  3.100
  libpostproc    55.  3.100 / 55.  3.100
Hyper fast Audio and Video encoder
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...

Use -h to get full help or, even better, run 'man ffmpeg'

STEP 4) How to use chrooted ffmpeg

Now you are ready to use the ffmpeg in the jail. You can leave the jail and make a bash file with the name ffmpeg (or ffmpeg-chroot to differ from the builtin if you have one) in /usr/local/bin with the following content:

#!/bin/bash
exec="/usr/bin/ffmpeg $@"

chroot /mnt/ffmpeg_encode /bin/bash -c "source /etc/profile; $exec"

There is something here, if you use the this file to execute the chroot jail ffmpeg and you use characters like “‘” or “?” you should escape them.
And do not forget to change the permissions to 755 to be able to execute it.

[root@srv1 ~]# chmod 755 /usr/local/bin/ffmpeg-chroot

When you are ready with the jail you can just copy the directory to another server:

grep /mnt/ffmpeg_encode /proc/mounts | cut -f2 -d" " | sort -r | xargs umount -n
tar cjvf /root/ffmpeg_encode-intel-E3-1585.tar.bz2 /mnt/ffmpeg_encode

Then you can copy to another servers the file ffmpeg_encode-intel-E3-1585.tar.bz2 (as you can see part of the name is the processor it was built) and mount dev, sys, proc (on the first use of the jail, you can set these lines in the start up of the server):

mount --rbind /dev /mnt/ffmpeg_encode/dev
mount -o bind /proc/ /mnt/ffmpeg_encode/proc/
mount -o bind /sys/ /mnt/ffmpeg_encode/sys/

Script for building the chroot ffmpeg jail

Here you can see only the commands used to build the chroot ffmpeg jail:

mkdir /mnt/ffmpeg_encode
cd /mnt/ffmpeg_encode/
wget http://mirror.leaseweb.com/gentoo/releases/amd64/autobuilds/current-stage3-amd64/stage3-amd64-20181209T214502Z.tar.xz
tar xJf stage3-amd64-20181209T214502Z.tar.xz 
wget http://mirror.leaseweb.com/gentoo/releases/snapshots/current/portage-latest.tar.bz2
tar xjf portage-latest.tar.bz2 -C usr/
mount --rbind /dev /mnt/ffmpeg_encode/dev
mount -o bind /proc/ /mnt/ffmpeg_encode/proc/
mount -o bind /sys/ /mnt/ffmpeg_encode/sys/
screen -R jail
mount -t tmpfs -o size=8192m tmpfs /mnt/ffmpeg_encode/var/tmp/portage/
echo "nameserver 8.8.8.8" > /mnt/ffmpeg_encode/etc/resolv.conf
chroot /mnt/ffmpeg_encode/
#in the jail
source /etc/profile
cd
emerge -v eix
eix-sync 
emerge -va linux-headers glibc
emerge -va gcc
gcc-config x86_64-pc-linux-gnu-8.2.0
 . /etc/profile
emerge -v glibc; emerge -v gcc
emerge -va autoconf-archive
emerge -vea @world
emerge -va ffmpeg

Leave a Reply

Your email address will not be published.