| # Copyright 2014 The ChromiumOS Authors |
| # Distributed under the terms of the GNU General Public License v2 |
| |
| EAPI="7" |
| |
| # This ebuild only cares about its own FILESDIR and ebuild file, so it tracks |
| # the canonical empty project. |
| CROS_WORKON_PROJECT="chromiumos/infra/build/empty-project" |
| CROS_WORKON_LOCALNAME="../platform/empty-project" |
| CROS_WORKON_OUTOFTREE_BUILD=1 |
| |
| PYTHON_COMPAT=( python3_{8..12} ) |
| |
| inherit cros-workon python-r1 |
| |
| DESCRIPTION="List of packages that are needed inside the ChromiumOS SDK" |
| HOMEPAGE="https://dev.chromium.org/" |
| |
| LICENSE="metapackage" |
| SLOT="0" |
| KEYWORDS="~*" |
| # NB: Never add USE=internal here. The SDK is only public tools. |
| # Look at virtual/target-sdk-broot packages instead. |
| |
| REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
| RDEPEND="${PYTHON_DEPS}" |
| |
| # Users and groups required for building ChromeOS packages. |
| RDEPEND+=" |
| acct-user/biod |
| acct-user/chaps |
| acct-user/chronos |
| acct-user/crash |
| acct-user/crosvm |
| acct-user/crosvm-root |
| acct-user/debugd |
| acct-user/dlcservice |
| acct-user/dlp |
| acct-user/ec_coredump |
| acct-user/fbpreprocessor |
| acct-user/federated-service |
| acct-user/fuse-smbfs |
| acct-user/fwupd |
| acct-user/kerberosd |
| acct-user/kerberosd-exec |
| acct-user/man |
| acct-user/ml-core |
| acct-user/netperf |
| acct-user/pluginvm |
| acct-user/power |
| acct-user/secagentd |
| acct-user/secanomaly |
| acct-user/shadercached |
| acct-user/shill |
| acct-user/smbproviderd |
| acct-user/sshd |
| acct-user/traced |
| acct-user/traced-probes |
| acct-user/u2f |
| acct-user/usb_bouncer |
| acct-user/usbguard |
| acct-user/vpn |
| acct-group/sys |
| acct-group/audio |
| acct-group/biod |
| acct-group/cdrom |
| acct-group/cdrw |
| acct-group/chronos |
| acct-group/chronos-access |
| acct-group/console |
| acct-group/crash |
| acct-group/crash-access |
| acct-group/crash-user-access |
| acct-group/cros_ec-access |
| acct-group/crosvm |
| acct-group/crosvm-root |
| acct-group/cups |
| acct-group/debugd |
| acct-group/dialout |
| acct-group/disk |
| acct-group/disk-dlc |
| acct-group/dlcservice |
| acct-group/dlp |
| acct-group/drm_dp_aux |
| acct-group/ec_coredump |
| acct-group/fbpreprocessor |
| acct-group/fbpreprocessor-user-access |
| acct-group/federated-service |
| acct-group/floppy |
| acct-group/fpdev |
| acct-group/fuse-smbfs |
| acct-group/fwupd |
| acct-group/hidraw |
| acct-group/i2c |
| acct-group/input |
| acct-group/ippusb |
| acct-group/kerberosd |
| acct-group/kerberosd-exec |
| acct-group/kmem |
| acct-group/kvm |
| acct-group/lp |
| acct-group/lpadmin |
| acct-group/man |
| acct-group/mem |
| acct-group/messagebus |
| acct-group/ml-core |
| acct-group/netperf |
| acct-group/nogroup |
| acct-group/password-viewers |
| acct-group/pluginvm |
| acct-group/power |
| acct-group/ppp |
| acct-group/scanner |
| acct-group/secagentd |
| acct-group/secanomaly |
| acct-group/serial |
| acct-group/shadercached |
| acct-group/shill |
| acct-group/smbproviderd |
| acct-group/sshd |
| acct-group/tape |
| acct-group/traced |
| acct-group/traced-consumer |
| acct-group/traced-probes |
| acct-group/traced-producer |
| acct-group/tty |
| acct-group/tun |
| acct-group/u2f |
| acct-group/uinput |
| acct-group/usb |
| acct-group/usb_bouncer |
| acct-group/usbguard |
| acct-group/users |
| acct-group/utmp |
| acct-group/video |
| acct-group/vpn |
| acct-group/wheel |
| " |
| |
| # Needed to build Python packages. |
| RDEPEND+=" |
| dev-python/flit-core |
| dev-python/flit_scm |
| dev-python/gpep517 |
| dev-python/hatch-fancy-pypi-readme |
| dev-python/hatch-vcs |
| dev-python/hatchling |
| dev-python/setuptools |
| dev-python/wheel |
| dev-util/maturin |
| " |
| |
| # Basic utilities |
| RDEPEND+=" |
| app-arch/bzip2 |
| app-arch/cpio |
| app-arch/gcab |
| app-arch/gzip |
| app-arch/p7zip |
| app-arch/tar |
| app-arch/cros-tar-sparse-test |
| app-shells/bash |
| dev-lang/rust-bootstrap |
| dev-lang/rust-host |
| dev-util/xxd |
| net-misc/iputils |
| net-misc/rsync |
| sys-apps/baselayout |
| sys-apps/coreutils |
| sys-apps/diffutils |
| sys-apps/dtc |
| sys-apps/file |
| sys-apps/findutils |
| sys-apps/gawk |
| sys-apps/grep |
| sys-apps/sed |
| sys-apps/texinfo |
| sys-apps/util-linux |
| sys-apps/which |
| sys-devel/autoconf |
| sys-devel/autoconf-archive |
| sys-devel/automake:1.16 |
| sys-devel/binutils |
| sys-devel/bison |
| sys-devel/flex |
| sys-devel/gcc |
| sys-devel/gdb |
| sys-devel/gnuconfig |
| sys-devel/grit-i18n |
| dev-build/libtool |
| sys-devel/m4 |
| sys-devel/make |
| sys-devel/patch |
| sys-fs/e2fsprogs |
| sys-fs/f2fs-tools |
| sys-libs/ncurses |
| sys-libs/readline |
| sys-libs/zlib |
| sys-process/procps |
| sys-process/psmisc |
| sys-process/time |
| virtual/editor |
| virtual/libc |
| virtual/man |
| virtual/os-headers |
| virtual/package-manager |
| virtual/pager |
| " |
| |
| # Needed to run setup crossdev, run build scripts, and make a bootable image. |
| RDEPEND+=" |
| app-arch/lbzip2 |
| app-arch/lz4 |
| app-arch/lzop |
| app-arch/pigz |
| app-arch/pixz |
| app-admin/sudo |
| app-crypt/efitools |
| app-crypt/sbsigntools |
| chromeos-base/zephyr-build-tools |
| dev-embedded/binman |
| dev-embedded/u-boot-tools |
| dev-util/ccache |
| media-gfx/pngcrush |
| sys-apps/proot |
| >=sys-apps/dtc-1.3.0-r5 |
| sys-boot/grub |
| sys-boot/syslinux |
| sys-devel/crossdev |
| sys-fs/dosfstools |
| sys-fs/erofs-utils |
| sys-fs/squashfs-tools |
| sys-fs/mtd-utils |
| " |
| |
| # Needed to build Android/ARC userland code. |
| RDEPEND+=" |
| app-misc/jq |
| chromeos-base/mk-payload |
| sys-devel/aapt |
| sys-devel/arc-toolchain-main |
| sys-devel/arc-toolchain-p |
| sys-devel/arc-toolchain-r |
| sys-devel/arc-toolchain-t |
| sys-devel/dex2oatds |
| " |
| |
| # Host dependencies for building cross-compiled packages. |
| RDEPEND+=" |
| app-arch/cabextract |
| app-arch/makeself |
| app-arch/rpm2targz |
| app-arch/sharutils |
| app-arch/unzip |
| app-crypt/nss |
| app-doc/xmltoman |
| app-emulation/qemu |
| app-emulation/qemu-binfmt-wrapper |
| app-text/asciidoc |
| app-text/docbook-xml-dtd:4.1.2 |
| app-text/docbook-xml-dtd:4.2 |
| app-text/docbook-xml-dtd:4.3 |
| app-text/docbook-xml-dtd:4.4 |
| app-text/docbook-xml-dtd:4.5 |
| app-text/docbook-xsl-stylesheets |
| app-text/texi2html |
| app-text/xmlto |
| chromeos-base/google-breakpad |
| chromeos-base/chromeos-base |
| chromeos-base/chromeos-common-script |
| >=chromeos-base/chromeos-config-host-0.0.2-r491 |
| chromeos-base/cros-devutils[cros_host] |
| chromeos-base/cros-testutils |
| chromeos-base/ec-devutils |
| chromeos-base/minijail |
| chromeos-base/mojo-tools |
| chromeos-base/patchmaker |
| dev-go/protobuf |
| dev-go/protobuf-legacy-api |
| dev-lang/closure-compiler-bin |
| dev-lang/nasm |
| dev-lang/swig |
| dev-lang/tcl |
| dev-lang/yasm |
| dev-libs/flatbuffers |
| >=dev-libs/glib-2.26.1 |
| net-libs/grpc |
| dev-libs/libclc |
| dev-libs/libgcrypt |
| dev-libs/libxslt |
| dev-libs/protobuf |
| dev-libs/protobuf-c |
| dev-libs/wayland-protocols |
| dev-python/cffi |
| dev-python/cherrypy |
| dev-python/dbus-python |
| dev-python/dpkt |
| dev-python/ecdsa |
| dev-python/flatbuffers |
| dev-python/intelhex |
| dev-python/kconfiglib |
| dev-python/lxml |
| dev-python/m2crypto |
| dev-python/mako |
| dev-python/netifaces |
| dev-python/pexpect |
| dev-python/pillow |
| dev-python/psutil |
| dev-python/py |
| dev-python/pycairo |
| dev-python/pycparser |
| dev-python/pydbus |
| dev-python/pygobject |
| dev-python/pyopenssl |
| dev-python/pytest |
| dev-python/evdev |
| dev-python/python-magic |
| dev-python/pyudev |
| dev-python/pyusb |
| dev-python/setproctitle |
| dev-python/tempita |
| dev-python/ws4py |
| dev-util/cmake |
| dev-util/cmocka |
| dev-util/gdbus-codegen |
| dev-util/glib-utils |
| dev-util/gperf |
| dev-util/hdctools |
| dev-util/intel_clc:24.1 |
| dev-util/intel_clc:24.2 |
| >=dev-util/gtk-doc-am-1.13 |
| >=dev-util/intltool-0.30 |
| dev-util/meson-format-array |
| dev-util/pahole |
| dev-util/scons |
| dev-util/test-services |
| dev-util/wayland-scanner |
| >=dev-vcs/git-1.7.2 |
| >=media-libs/freetype-2.2.1 |
| >=media-libs/lcms-2.6:2 |
| net-libs/rpcsvc-proto |
| sys-apps/usbutils |
| sys-devel/autofdo |
| sys-devel/bc |
| sys-devel/llvm |
| >=sys-libs/glibc-2.27 |
| sys-libs/libcxx |
| sys-libs/llvm-libunwind |
| virtual/udev |
| sys-power/iasl |
| sys-apps/kmod[tools] |
| x11-apps/mkfontscale |
| x11-apps/xkbcomp |
| >=x11-misc/util-macros-1.2 |
| " |
| |
| # TODO(toolchain): Remove this libxcrypt dep after all packages directly depend |
| # on it and it is not installed as a system library anymore |
| RDEPEND+=" |
| sys-libs/libxcrypt |
| " |
| |
| # Multiple versions of Bazel may be provided for long-term compatibility. For |
| # now, ChromeOS uses version 5 within some ebuilds, and is planning on using 6 |
| # for Alchemy/Metallurgy. |
| RDEPEND+=" |
| dev-util/bazel:5 |
| dev-util/bazel:6 |
| " |
| |
| # Various fonts are needed in order to generate messages for the |
| # chromeos-initramfs package. |
| RDEPEND+=" |
| chromeos-base/chromeos-fonts |
| " |
| |
| # Host dependencies for bitmap block (chromeos-bmpblk) to to render messages. |
| RDEPEND+=" |
| gnome-base/librsvg |
| " |
| |
| # Host dependencies for building chromium. |
| # Intermediate executables built for the host, then run to generate data baked |
| # into chromium, need these packages to be present in the host environment in |
| # order to successfully build. |
| # See: http://codereview.chromium.org/7550002/ |
| RDEPEND+=" |
| dev-libs/glib |
| media-libs/fontconfig |
| media-libs/freetype |
| x11-libs/cairo |
| x11-libs/pango |
| " |
| |
| # Host dependencies that are needed by mod_image_for_test. |
| RDEPEND+=" |
| sys-process/lsof |
| " |
| |
| # Useful utilities for developers. |
| RDEPEND+=" |
| app-arch/zip |
| app-editors/nano |
| app-editors/neatvi |
| app-portage/gentoolkit |
| app-portage/portage-utils |
| x86? ( dev-go/delve ) |
| amd64? ( dev-go/delve ) |
| arm64? ( dev-go/delve ) |
| dev-go/go-tools |
| dev-go/golint |
| dev-go/staticcheck |
| dev-lang/go |
| dev-util/patchutils |
| dev-util/perf |
| net-analyzer/netperf |
| sys-apps/less |
| sys-apps/pv |
| sys-devel/sparse |
| " |
| |
| # Host dependencies that are needed for unit tests |
| RDEPEND+=" |
| dev-cpp/gtest |
| x11-misc/xkeyboard-config |
| " |
| |
| # Host dependencies that are needed for autotests. |
| RDEPEND+=" |
| dev-python/btsocket |
| dev-python/chardet |
| sys-apps/iproute2 |
| sys-apps/net-tools |
| " |
| |
| # Host dependencies that are needed to create and sign images |
| RDEPEND+=" |
| >=chromeos-base/vboot_reference-1.0-r174 |
| chromeos-base/verity |
| dev-python/pyahocorasick |
| " |
| |
| # Host dependencies that are needed for cros_generate_update_payload. |
| RDEPEND+=" |
| chromeos-base/update_engine |
| sys-fs/e2tools |
| " |
| |
| # Host dependencies to run unit tests within the chroot |
| RDEPEND+=" |
| dev-go/mock |
| " |
| # Host dependencies to run autotest's unit tests within the chroot. |
| RDEPEND+=" |
| dev-python/httplib2 |
| dev-python/python-dateutil |
| dev-python/six |
| " |
| |
| # Host dependencies to scp binaries from the binary component server |
| RDEPEND+=" |
| net-misc/openssh |
| net-misc/socat |
| net-misc/wget |
| " |
| |
| # Host dependencies for HWID processing |
| RDEPEND+=" |
| dev-python/pyyaml |
| " |
| |
| # Tools for working with compiler generated profile information |
| # (such as coverage analysis in common.mk) |
| RDEPEND+=" |
| dev-util/lcov |
| " |
| |
| # Host dependencies for building Platform2 |
| RDEPEND+=" |
| chromeos-base/chromeos-dbus-bindings |
| dev-rust/bindgen |
| dev-rust/dbus-codegen |
| dev-rust/protobuf-codegen |
| dev-util/cxxbridge-cmd |
| dev-util/rust-edition-checker |
| dev-build/meson |
| dev-util/ninja |
| " |
| |
| # Host dependencies for building eBPFs. |
| RDEPEND+=" |
| dev-util/bpftool |
| " |
| |
| # Host dependencies for converting sparse into raw images (simg2img). |
| RDEPEND+=" |
| brillo-base/libsparse |
| " |
| |
| # Host dependencies for building Chromium code (libmojo) |
| RDEPEND+=" |
| dev-python/ply |
| dev-util/gn |
| " |
| |
| # Host dependencies for building/testing factory software |
| RDEPEND+=" |
| dev-libs/closure-library |
| dev-libs/closure_linter |
| dev-python/crcmod |
| dev-python/django |
| dev-python/google-auth |
| dev-python/google-cloud-storage |
| dev-python/jsonrpclib |
| dev-python/jsonschema |
| dev-python/pycryptodome |
| dev-python/python-gnupg |
| dev-python/requests |
| dev-python/sphinx |
| dev-python/twisted |
| www-servers/nginx |
| " |
| |
| # Host dependencies for running integration tests |
| RDEPEND+=" |
| chromeos-base/tast-cmd |
| chromeos-base/tast-remote-tests |
| " |
| |
| # Host dependencies for building chromeos-bootimage and for chromeos-base/vpd |
| # unit tests. |
| RDEPEND+=" |
| sys-apps/coreboot-utils |
| " |
| |
| # Host dependencies for building chromeos-firmware-* |
| RDEPEND+=" |
| chromeos-base/ec-utils |
| " |
| |
| # Host dependencies for the cargo workflow |
| RDEPEND+="virtual/cargo-workflow-deps" |
| |
| # Host dependencies for the chromeos-ec workflow |
| RDEPEND+=" |
| dev-libs/libprotobuf-mutator |
| dev-libs/openssl |
| dev-util/unifdef |
| " |
| |
| # Host dependencies for GSC firmware development: signing and flashing |
| RDEPEND+=" |
| chromeos-base/chromeos-gsc-dev |
| dev-libs/libkmsp11 |
| " |
| |
| # Host dependencies for audio topology generation |
| RDEPEND+=" |
| media-sound/alsa-utils" |
| |
| # Host dependency for managing SELinux |
| RDEPEND+=" |
| chromeos-base/sepolicy-analyze |
| sys-apps/checkpolicy |
| sys-apps/restorecon |
| sys-apps/secilc |
| sys-apps/selinux-python" |
| |
| # Host dependencies that are needed for chromite/bin/cros_generate_android_breakpad_symbols |
| RDEPEND+=" |
| chromeos-base/android-relocation-packer" |
| |
| # Host dependencies for generating and testing update payloads |
| RDEPEND+=" |
| chromeos-base/update_payload" |
| |
| # Needed to compile img-ddk |
| RDEPEND+=" |
| dev-python/clang-python" |
| |
| # Moblab's new RPC server backend will use grpc |
| RDEPEND+=" |
| dev-python/grpcio-tools" |
| |
| # Autotest's new RPC server will use grpc |
| RDEPEND+=" |
| dev-python/grpcio" |
| |
| # Needed for unit tests of tast-local-tests-cros |
| RDEPEND+=" |
| dev-util/strace" |
| |
| # Host dependencies for termina_build_image |
| RDEPEND+=" |
| app-misc/fdupes" |
| |
| # Host dependencies that lets us boost to performance governor |
| # to speed up builds. https://crbug.com/1008932 |
| RDEPEND+=" |
| sys-power/cpupower" |
| |
| # Base layout for java that installs cacerts |
| RDEPEND+=" |
| sys-apps/baselayout-java" |
| |
| # CTS P depends on Java 8 or 9, CTS R depends on Java 9 or later. |
| # Include android-sdk to contain both JDK8 and JDK11 in the chroot. |
| RDEPEND+=" |
| chromeos-base/android-sdk" |
| |
| # Needed to optimise Android APKs shipped in demo_mode_resources. |
| RDEPEND+=" |
| sys-devel/zipalign" |
| |
| # Needed to build IPA interface in libcamera. |
| RDEPEND+=" |
| dev-python/jinja" |
| |
| # Needed for floss project. |
| RDEPEND+=" |
| dev-cpp/gtest |
| dev-libs/tinyxml2 |
| dev-rust/grpcio-compiler |
| dev-util/pdl-compiler |
| net-wireless/aconfig |
| net-wireless/sysprop_cpp |
| " |
| |
| # Needed to build net-fs/samba |
| RDEPEND+=" |
| dev-perl/Parse-Yapp" |
| |
| # Needed to build cros-camera-hal-qti. |
| RDEPEND+=" |
| dev-perl/XML-Simple" |
| |
| # Needed for vkbench. |
| RDEPEND+=" |
| dev-util/glslang" |
| |
| # Needed for federated-service. |
| RDEPEND+=" |
| app-arch/snappy |
| media-libs/giflib" |
| |
| # Needed by starlark config generation |
| RDEPEND+=" |
| dev-go/lucicfg" |
| |
| # nih-dbus-tool (in libnih package) is needed to build upstart. |
| RDEPEND+=" |
| sys-libs/libnih" |
| |
| # Needed for app-metrics/node_exporter. |
| RDEPEND+=" |
| dev-util/promu" |
| |
| # Needed for fwupd-efi>=1.4. |
| RDEPEND+=" |
| dev-python/pefile" |
| |
| # Needed for x11-libs/libxcb. |
| RDEPEND+=" x11-base/xcb-proto" |
| |
| # Needed for dev-libs/boost. |
| RDEPEND+=" dev-util/b2" |
| |
| # Needed for chromite telemetry |
| RDEPEND+=" |
| dev-python/opentelemetry-api |
| dev-python/opentelemetry-sdk" |
| |
| # Needed to build u-root images |
| RDEPEND+=" dev-go/u-root" |
| |
| # Needed for zephyr and optee_os. |
| RDEPEND+=" |
| dev-python/pyelftools" |
| |
| # Needed by kernel build to install files in /boot. |
| RDEPEND+=" |
| sys-apps/debianutils" |
| |
| # Needed for chromeos-base/chromeos-ca-certificates. |
| RDEPEND+=" |
| app-misc/c_rehash" |
| |
| # Needed for net-firewall/iptables. See b/287900117. |
| RDEPEND+=" |
| app-eselect/eselect-iptables" |
| |
| # Host dependencies for read/write DLC metadata |
| RDEPEND+=" |
| chromeos-base/dlcservice-metadata" |