diff --git a/sdk_container/src/third_party/portage-stable/app-alternatives/ninja/metadata.xml b/sdk_container/src/third_party/portage-stable/app-alternatives/ninja/metadata.xml
new file mode 100644
index 0000000000..20bceb3089
--- /dev/null
+++ b/sdk_container/src/third_party/portage-stable/app-alternatives/ninja/metadata.xml
@@ -0,0 +1,16 @@
+
+
+
+
+ base-system@gentoo.org
+ Gentoo Base System
+
+
+ vimproved@inventati.org
+ Violet Purcell
+
+
+
diff --git a/sdk_container/src/third_party/portage-stable/app-alternatives/ninja/ninja-1.ebuild b/sdk_container/src/third_party/portage-stable/app-alternatives/ninja/ninja-1.ebuild
new file mode 100644
index 0000000000..419eabab35
--- /dev/null
+++ b/sdk_container/src/third_party/portage-stable/app-alternatives/ninja/ninja-1.ebuild
@@ -0,0 +1,27 @@
+# Copyright 2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+ALTERNATIVES=(
+ "reference:>=dev-util/ninja-1.11.1-r3"
+ samurai:dev-util/samurai
+)
+
+inherit app-alternatives
+
+DESCRIPTION="ninja symlinks"
+KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris"
+
+RDEPEND="!