diff --git a/.github/workflows/portage-stable-packages-list b/.github/workflows/portage-stable-packages-list
index 8b1b330ba4c..239797c7e97 100644
--- a/.github/workflows/portage-stable-packages-list
+++ b/.github/workflows/portage-stable-packages-list
@@ -312,7 +312,6 @@ dev-python/docutils
dev-python/editables
dev-python/ensurepip-pip
dev-python/ensurepip-setuptools
-dev-python/ensurepip-wheels
dev-python/fasteners
dev-python/fastjsonschema
dev-python/flit-core
@@ -513,7 +512,6 @@ net-dialup/lrzsz
net-dialup/minicom
net-dns/bind
-net-dns/bind-tools
net-dns/c-ares
net-dns/dnsmasq
net-dns/libidn2
@@ -537,7 +535,6 @@ net-libs/libnetfilter_cttimeout
net-libs/libnetfilter_queue
net-libs/libnfnetlink
net-libs/libnftnl
-net-libs/libnsl
net-libs/libpcap
net-libs/libpsl
net-libs/libslirp
@@ -694,7 +691,6 @@ sys-libs/cracklib
sys-libs/efivar
sys-libs/gdbm
sys-libs/glibc
-sys-libs/ldb
sys-libs/libcap
sys-libs/libcap-ng
sys-libs/libnvme
@@ -737,10 +733,8 @@ virtual/openssh
virtual/os-headers
virtual/package-manager
virtual/pager
-virtual/perl-Data-Dumper
virtual/perl-Encode
virtual/perl-ExtUtils-MakeMaker
-virtual/perl-Unicode-Collate
virtual/pkgconfig
virtual/resolvconf
virtual/service-manager
diff --git a/sdk_container/src/third_party/coreos-overlay/profiles/coreos/base/package.use b/sdk_container/src/third_party/coreos-overlay/profiles/coreos/base/package.use
index 037ffd9fafd..17775fe6aa0 100644
--- a/sdk_container/src/third_party/coreos-overlay/profiles/coreos/base/package.use
+++ b/sdk_container/src/third_party/coreos-overlay/profiles/coreos/base/package.use
@@ -103,9 +103,6 @@ app-portage/portage-utils -qmanifest
# winbind needed by sssd
net-fs/samba -regedit winbind
-# Drop extra dependencies
-sys-libs/ldb -lmdb -python
-
# Enable nftables backend for the iptables instead of legacy backend
net-firewall/iptables nftables
net-firewall/nftables json
@@ -162,8 +159,7 @@ sys-fs/zfs-kmod -initramfs
sys-kernel/coreos-firmware -initramfs
# For sys-auth/sssd
-net-dns/bind gssapi
-net-dns/bind-tools gssapi
+net-dns/bind gssapi
# Avoid initrd bloat by using OpenSSL instead of gcrypt in systemd.
# systemd-journal's FSS feature requires gcrypt, but Flatcar doesn't need it.
diff --git a/sdk_container/src/third_party/portage-stable/dev-python/ensurepip-wheels/ensurepip-wheels-100.ebuild b/sdk_container/src/third_party/portage-stable/dev-python/ensurepip-wheels/ensurepip-wheels-100.ebuild
deleted file mode 100644
index 77f95f0e1e8..00000000000
--- a/sdk_container/src/third_party/portage-stable/dev-python/ensurepip-wheels/ensurepip-wheels-100.ebuild
+++ /dev/null
@@ -1,16 +0,0 @@
-# Copyright 2022-2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-DESCRIPTION="Shared wheels for ensurepip Python module"
-HOMEPAGE="https://wiki.gentoo.org/wiki/No_homepage"
-
-LICENSE="metapackage"
-SLOT="0"
-KEYWORDS="~alpha amd64 arm arm64 hppa ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris"
-
-RDEPEND="
- dev-python/ensurepip-pip
- dev-python/ensurepip-setuptools
-"
diff --git a/sdk_container/src/third_party/portage-stable/dev-python/ensurepip-wheels/metadata.xml b/sdk_container/src/third_party/portage-stable/dev-python/ensurepip-wheels/metadata.xml
deleted file mode 100644
index 7d421671d88..00000000000
--- a/sdk_container/src/third_party/portage-stable/dev-python/ensurepip-wheels/metadata.xml
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
-
-
- python@gentoo.org
-
-
-
diff --git a/sdk_container/src/third_party/portage-stable/net-dns/bind-tools/bind-tools-9.18.0-r1.ebuild b/sdk_container/src/third_party/portage-stable/net-dns/bind-tools/bind-tools-9.18.0-r1.ebuild
deleted file mode 100644
index 339785debe8..00000000000
--- a/sdk_container/src/third_party/portage-stable/net-dns/bind-tools/bind-tools-9.18.0-r1.ebuild
+++ /dev/null
@@ -1,29 +0,0 @@
-# Copyright 1999-2025 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-DESCRIPTION="bind tools: dig, nslookup, host, nsupdate, dnssec-keygen"
-HOMEPAGE="https://www.isc.org/bind/ https://gitlab.isc.org/isc-projects/bind9"
-
-LICENSE="Apache-2.0 BSD BSD-2 GPL-2 HPND ISC MPL-2.0"
-SLOT="0"
-KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 ~sparc x86 ~amd64-linux ~x86-linux"
-IUSE="+caps doc gssapi idn libedit readline xml"
-
-RDEPEND="=net-dns/bind-9.18*[caps?,doc?,gssapi?,idn?,xml?]"
-
-pkg_postinst() {
- ewarn "net-dns/bind-tools is now merged into net-dns/bind and"
- ewarn "net-dns/bind-tools serves as a dummy package until it is"
- ewarn "eventually removed. The split was already a maintenance burden"
- ewarn "because of lack of build system support for it, but this became"
- ewarn "more severe with >=9.18.0."
- ewarn ""
- ewarn "Please run the following commands:"
- ewarn "* emerge --deselect net-dns/bind-tools"
- ewarn "* emerge --noreplace net-dns/bind instead"
- ewarn ""
- ewarn "For the latest maintained versions, including >=9.20,"
- ewarn "ensure you are using net-dns/bind directly."
-}
diff --git a/sdk_container/src/third_party/portage-stable/net-dns/bind-tools/metadata.xml b/sdk_container/src/third_party/portage-stable/net-dns/bind-tools/metadata.xml
deleted file mode 100644
index b79cb1a4c1d..00000000000
--- a/sdk_container/src/third_party/portage-stable/net-dns/bind-tools/metadata.xml
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
-
-
- chutzpah@gentoo.org
- Patrick McLean
-
-
-
- cpe:/a:isc:bind
-
-
diff --git a/sdk_container/src/third_party/portage-stable/net-libs/libnsl/Manifest b/sdk_container/src/third_party/portage-stable/net-libs/libnsl/Manifest
deleted file mode 100644
index 29ac4d97290..00000000000
--- a/sdk_container/src/third_party/portage-stable/net-libs/libnsl/Manifest
+++ /dev/null
@@ -1,2 +0,0 @@
-DIST libnsl-1.3.0.tar.xz 321488 BLAKE2B 25cb4fa2b3f161ce4cd06ca5cc0a716bf981620de4eb102f464bc1919b8f6d82f7b02a6108260122000bbac0307d9db05d406183dc533dd1b97683d08a7fc5f5 SHA512 a5a6c3ccb2d1e724c8c1f65e55dcd09383eb1ae019c55f4c09441eadf23ffbc2196cfad259805b0ac40ddf3a10af0da453e4d739d67d46829c64d0995dab4e55
-DIST libnsl-2.0.1.tar.xz 281892 BLAKE2B 91ad7558127a675bc861dee11d00d82a999462d34753f579a77c1579a7f8be1ded2eff11ecfde9dc81e2466118c288ee18a8b280453f6548cc2b4528021e1503 SHA512 0ffdf15b4380fc89bf11f4f64b74ed999099c0ab3ee39cafd52f933a5000f9b1ed3987c8c13533a7cd92474aadd4cc9909a2e1eabc9143f0cb11746385e5fc57
diff --git a/sdk_container/src/third_party/portage-stable/net-libs/libnsl/files/libnsl-1.3.0-rpath.patch b/sdk_container/src/third_party/portage-stable/net-libs/libnsl/files/libnsl-1.3.0-rpath.patch
deleted file mode 100644
index 1189dae37cf..00000000000
--- a/sdk_container/src/third_party/portage-stable/net-libs/libnsl/files/libnsl-1.3.0-rpath.patch
+++ /dev/null
@@ -1,16 +0,0 @@
-https://bugs.gentoo.org/732100
-
-Remove invalid shell from config.rpath.
---- a/config.rpath
-+++ b/config.rpath
-@@ -216,9 +216,7 @@ if test "$with_gnu_ld" = yes; then
- ;;
- gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
- if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
-- if $libdir == /usr/lib | $libdir == /usr/lib64; then
-- hardcode_libdir_flag_spec=""
-- fi
-+ :
- else
- ld_shlibs=no
- fi
diff --git a/sdk_container/src/third_party/portage-stable/net-libs/libnsl/libnsl-0-r2.ebuild b/sdk_container/src/third_party/portage-stable/net-libs/libnsl/libnsl-0-r2.ebuild
deleted file mode 100644
index e63b3fc1aef..00000000000
--- a/sdk_container/src/third_party/portage-stable/net-libs/libnsl/libnsl-0-r2.ebuild
+++ /dev/null
@@ -1,19 +0,0 @@
-# Copyright 1999-2025 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-# Used only to populate IUSE, bug 643058
-inherit multilib-build
-
-DESCRIPTION="Public client interface for NIS(YP) and NIS+ in a IPv6 ready version"
-HOMEPAGE="https://github.com/thkukuk/libnsl"
-
-# Fake version to help portage upgrading.
-
-LICENSE="LGPL-2.1+"
-SLOT="0/1"
-KEYWORDS="~alpha amd64 arm arm64 ~hppa ~m68k ~mips ppc ppc64 ~s390 ~sparc x86 ~amd64-linux ~x86-linux"
-
-DEPEND="elibc_glibc? ( =net-libs/libtirpc-1.2.0:=[${MULTILIB_USEDEP}]
-"
-RDEPEND="${DEPEND}
- !=net-libs/libtirpc-1.2.0:=[${MULTILIB_USEDEP}]"
-RDEPEND="
- ${DEPEND}
- !
-
-
-
- toolchain@gentoo.org
- Gentoo Toolchain Project
-
-
- base-system@gentoo.org
- Gentoo Base System Project
-
-
- thkukuk/libnsl
-
-
diff --git a/sdk_container/src/third_party/portage-stable/sys-libs/ldb/Manifest b/sdk_container/src/third_party/portage-stable/sys-libs/ldb/Manifest
deleted file mode 100644
index 9466b0a011a..00000000000
--- a/sdk_container/src/third_party/portage-stable/sys-libs/ldb/Manifest
+++ /dev/null
@@ -1 +0,0 @@
-DIST ldb-2.9.2.tar.gz 1752608 BLAKE2B c5a1e2f8ade531986ff9405dbaaa12d564f48b1839fc288b531cbfc0c832cee0d4e7c1018512cc64404d979e0c8a79d31ecde0007966f965cc17e6e2086111e6 SHA512 05f66fc32b1d7a310d7cd5f4ea9aa45902411d8f0b7cd80b00fe27d8b942fd5f60fa97b86001fc2b45937a317a95d6a7279385557b87f70fdc28d6eb010be6a4
diff --git a/sdk_container/src/third_party/portage-stable/sys-libs/ldb/files/cmocka-config_h.patch b/sdk_container/src/third_party/portage-stable/sys-libs/ldb/files/cmocka-config_h.patch
deleted file mode 100644
index 124928450cd..00000000000
--- a/sdk_container/src/third_party/portage-stable/sys-libs/ldb/files/cmocka-config_h.patch
+++ /dev/null
@@ -1,23 +0,0 @@
---- ./third_party/cmocka/cmocka.h.orig 2024-03-26 10:23:03.378410042 +0100
-+++ ./third_party/cmocka/cmocka.h 2024-03-26 10:24:51.526922405 +0100
-@@ -14,6 +14,11 @@
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-+
-+#ifdef HAVE_CONFIG_H
-+#include "config.h"
-+#endif
-+
- #ifndef CMOCKA_H_
- #define CMOCKA_H_
-
-@@ -111,7 +114,7 @@
- ((LargestIntegralType)(value))
-
- /* Smallest integral type capable of holding a pointer. */
--#if !defined(_UINTPTR_T) && !defined(_UINTPTR_T_DEFINED)
-+#if !defined(HAVE_UINTPTR_T) && !defined(_UINTPTR_T) && !defined(_UINTPTR_T_DEFINED) && !defined(__DEFINED_uintptr_t)
- # if defined(_WIN32)
- /* WIN32 is an ILP32 platform */
- typedef unsigned int uintptr_t;
diff --git a/sdk_container/src/third_party/portage-stable/sys-libs/ldb/files/ldb-1.1.31-fix_PKGCONFIGDIR-when-python-disabled.patch b/sdk_container/src/third_party/portage-stable/sys-libs/ldb/files/ldb-1.1.31-fix_PKGCONFIGDIR-when-python-disabled.patch
deleted file mode 100644
index c45b13feba9..00000000000
--- a/sdk_container/src/third_party/portage-stable/sys-libs/ldb/files/ldb-1.1.31-fix_PKGCONFIGDIR-when-python-disabled.patch
+++ /dev/null
@@ -1,17 +0,0 @@
---- a/wscript 2017-07-05 15:35:52.178964698 -0400
-+++ b/wscript 2017-07-05 15:49:20.137977649 -0400
-@@ -208,6 +208,14 @@
- ldb_headers = ('include/ldb.h include/ldb_errors.h '
- 'include/ldb_module.h include/ldb_handlers.h')
-
-+ # we're not currently linking against the ldap libs, but ldb.pc.in
-+ # has @LDAP_LIBS@
-+ bld.env.LDAP_LIBS = ''
-+
-+ if not 'PACKAGE_VERSION' in bld.env:
-+ bld.env.PACKAGE_VERSION = VERSION
-+ bld.env.PKGCONFIGDIR = '${LIBDIR}/pkgconfig'
-+
- bld.SAMBA_LIBRARY('ldb',
- COMMON_SRC + ' ' + LDB_MAP_SRC,
- deps='tevent LIBLDB_MAIN replace',
diff --git a/sdk_container/src/third_party/portage-stable/sys-libs/ldb/files/ldb-1.5.2-optional_packages.patch b/sdk_container/src/third_party/portage-stable/sys-libs/ldb/files/ldb-1.5.2-optional_packages.patch
deleted file mode 100644
index bdceeb3c434..00000000000
--- a/sdk_container/src/third_party/portage-stable/sys-libs/ldb/files/ldb-1.5.2-optional_packages.patch
+++ /dev/null
@@ -1,40 +0,0 @@
---- ldb-1.5.2/wscript
-+++ ldb-1.5.2/wscript
-@@ -33,6 +33,10 @@
- opt.RECURSE('lib/tevent')
- opt.RECURSE('lib/replace')
- opt.load('python') # options for disabling pyc or pyo compilation
-+ if opt.IN_LAUNCH_DIR():
-+ opt.add_option('--disable-ldap',
-+ help=("disable ldap support"),
-+ action="store_true", dest='disable_ldap', default=False)
-
- opt.add_option('--without-ldb-lmdb',
- help='disable new LMDB backend for LDB',
-@@ -40,6 +44,10 @@
-
-
- def configure(conf):
-+ conf.env.standalone_ldb = conf.IN_LAUNCH_DIR()
-+
-+ conf.env.disable_ldap = getattr(Options.options, 'disable_ldap', False)
-+
- conf.RECURSE('lib/tdb')
- conf.RECURSE('lib/tevent')
-
-@@ -157,9 +165,12 @@
- if conf.env.standalone_ldb:
- conf.CHECK_XSLTPROC_MANPAGES()
-
-- # we need this for the ldap backend
-- if conf.CHECK_FUNCS_IN('ber_flush ldap_open ldap_initialize', 'lber ldap', headers='lber.h ldap.h'):
-- conf.env.ENABLE_LDAP_BACKEND = True
-+ if not conf.env.disable_ldap:
-+ # we need this for the ldap backend
-+ if conf.CHECK_FUNCS_IN('ber_flush ldap_open ldap_initialize', 'lber ldap', headers='lber.h ldap.h'):
-+ conf.env.ENABLE_LDAP_BACKEND = True
-+ else:
-+ conf.env.ENABLE_LDAP_BACKEND = False
-
- # we don't want any libraries or modules to rely on runtime
- # resolution of symbols
diff --git a/sdk_container/src/third_party/portage-stable/sys-libs/ldb/files/ldb-2.4.2-skip-32bit-time_t-tests.patch b/sdk_container/src/third_party/portage-stable/sys-libs/ldb/files/ldb-2.4.2-skip-32bit-time_t-tests.patch
deleted file mode 100644
index 70f34c5f1a5..00000000000
--- a/sdk_container/src/third_party/portage-stable/sys-libs/ldb/files/ldb-2.4.2-skip-32bit-time_t-tests.patch
+++ /dev/null
@@ -1,35 +0,0 @@
-From 38f5e8e09a7ae641b3669068b10c6bd966e46632 Mon Sep 17 00:00:00 2001
-From: Mathieu Parent
-Date: Thu, 4 Nov 2021 22:46:15 +0100
-Subject: [PATCH] Skip failing tests (on 32-bit architectures)
-
-See https://bugzilla.samba.org/show_bug.cgi?id=14558#c17
----
- tests/python/api.py | 4 ++++++
- 1 file changed, 4 insertions(+)
-
-diff --git a/tests/python/api.py b/tests/python/api.py
-index 8d154aa..e1de40c 100755
---- a/tests/python/api.py
-+++ b/tests/python/api.py
-@@ -44,6 +44,8 @@ class NoContextTests(TestCase):
- self.assertEqual("19700101000000.0Z", ldb.timestring(0))
- self.assertEqual("20071119191012.0Z", ldb.timestring(1195499412))
-
-+ self.skipTest('Test failing on 32-bit')
-+
- self.assertEqual("00000101000000.0Z", ldb.timestring(-62167219200))
- self.assertEqual("99991231235959.0Z", ldb.timestring(253402300799))
-
-@@ -62,6 +64,8 @@ class NoContextTests(TestCase):
- self.assertEqual(0, ldb.string_to_time("19700101000000.0Z"))
- self.assertEqual(1195499412, ldb.string_to_time("20071119191012.0Z"))
-
-+ self.skipTest('Test failing on 32-bit')
-+
- self.assertEqual(-62167219200, ldb.string_to_time("00000101000000.0Z"))
- self.assertEqual(253402300799, ldb.string_to_time("99991231235959.0Z"))
-
---
-2.30.2
-
diff --git a/sdk_container/src/third_party/portage-stable/sys-libs/ldb/files/ldb-2.5.2-skip-waf-tevent-check.patch b/sdk_container/src/third_party/portage-stable/sys-libs/ldb/files/ldb-2.5.2-skip-waf-tevent-check.patch
deleted file mode 100644
index 4578435064b..00000000000
--- a/sdk_container/src/third_party/portage-stable/sys-libs/ldb/files/ldb-2.5.2-skip-waf-tevent-check.patch
+++ /dev/null
@@ -1,12 +0,0 @@
---- ldb-1.3.6/lib/tevent/wscript
-+++ ldb-1.3.6/lib/tevent/wscript
-@@ -34,8 +34,7 @@
- if conf.CHECK_BUNDLED_SYSTEM_PKG('tevent', minversion=VERSION,
- onlyif='talloc', implied_deps='replace talloc'):
- conf.define('USING_SYSTEM_TEVENT', 1)
-- if not conf.env.disable_python and \
-- conf.CHECK_BUNDLED_SYSTEM_PYTHON('pytevent', 'tevent', minversion=VERSION):
-+ if not conf.env.disable_python:
- conf.define('USING_SYSTEM_PYTEVENT', 1)
-
- if conf.CHECK_FUNCS('epoll_create', headers='sys/epoll.h'):
diff --git a/sdk_container/src/third_party/portage-stable/sys-libs/ldb/files/ldb-2.9.0-optional_packages.patch b/sdk_container/src/third_party/portage-stable/sys-libs/ldb/files/ldb-2.9.0-optional_packages.patch
deleted file mode 100644
index 791f49c8de6..00000000000
--- a/sdk_container/src/third_party/portage-stable/sys-libs/ldb/files/ldb-2.9.0-optional_packages.patch
+++ /dev/null
@@ -1,41 +0,0 @@
-diff -ur ldb-2.9.0/wscript ldb-2.9.0.new/wscript
---- ldb-2.9.0/wscript 2024-01-29 10:20:28.452400700 -0600
-+++ ldb-2.9.0.new/wscript 2024-04-17 10:49:58.934921251 -0500
-@@ -34,6 +34,10 @@
- opt.RECURSE('lib/tevent')
- opt.RECURSE('lib/replace')
- opt.load('python') # options for disabling pyc or pyo compilation
-+ if opt.IN_LAUNCH_DIR():
-+ opt.add_option('--disable-ldap',
-+ help=("disable ldap support"),
-+ action="store_true", dest='disable_ldap', default=False)
-
- opt.add_option('--without-ldb-lmdb',
- help='disable new LMDB backend for LDB',
-@@ -41,6 +45,10 @@
-
-
- def configure(conf):
-+ conf.env.standalone_ldb = conf.IN_LAUNCH_DIR()
-+
-+ conf.env.disable_ldap = getattr(Options.options, 'disable_ldap', False)
-+
- conf.RECURSE('lib/tdb')
- conf.RECURSE('lib/tevent')
-
-@@ -145,9 +153,12 @@
- if conf.env.standalone_ldb:
- conf.CHECK_XSLTPROC_MANPAGES()
-
-- # we need this for the ldap backend
-- if conf.CHECK_FUNCS_IN('ber_flush ldap_open ldap_initialize', 'lber ldap', headers='lber.h ldap.h'):
-- conf.env.ENABLE_LDAP_BACKEND = True
-+ if not conf.env.disable_ldap:
-+ # we need this for the ldap backend
-+ if conf.CHECK_FUNCS_IN('ber_flush ldap_open ldap_initialize', 'lber ldap', headers='lber.h ldap.h'):
-+ conf.env.ENABLE_LDAP_BACKEND = True
-+ else:
-+ conf.env.ENABLE_LDAP_BACKEND = False
-
- # we don't want any libraries or modules to rely on runtime
- # resolution of symbols
diff --git a/sdk_container/src/third_party/portage-stable/sys-libs/ldb/ldb-2.9.2.ebuild b/sdk_container/src/third_party/portage-stable/sys-libs/ldb/ldb-2.9.2.ebuild
deleted file mode 100644
index afe474cf526..00000000000
--- a/sdk_container/src/third_party/portage-stable/sys-libs/ldb/ldb-2.9.2.ebuild
+++ /dev/null
@@ -1,175 +0,0 @@
-# Copyright 1999-2025 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-PYTHON_COMPAT=( python3_{10..13} )
-PYTHON_REQ_USE="threads(+)"
-inherit python-single-r1 waf-utils multilib-minimal flag-o-matic
-
-DESCRIPTION="LDAP-like embedded database"
-HOMEPAGE="https://ldb.samba.org"
-SRC_URI="https://download.samba.org/pub/${PN}/${P}.tar.gz"
-
-LICENSE="LGPL-3"
-SLOT="0/${PV}"
-KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~mips ppc ppc64 ~riscv ~s390 ~sparc x86"
-IUSE="doc ldap +lmdb python test"
-
-REQUIRED_USE="${PYTHON_REQUIRED_USE}
- test? ( lmdb )"
-
-RESTRICT="!test? ( test )"
-
-TALLOC_VERSION="2.4.2"
-TDB_VERSION="1.4.10"
-TEVENT_VERSION="0.16.1"
-
-RDEPEND="
- dev-libs/libbsd[${MULTILIB_USEDEP}]
- dev-libs/popt[${MULTILIB_USEDEP}]
- >=sys-libs/talloc-${TALLOC_VERSION}[${MULTILIB_USEDEP}]
- >=sys-libs/tdb-${TDB_VERSION}[${MULTILIB_USEDEP}]
- >=sys-libs/tevent-${TEVENT_VERSION}[${MULTILIB_USEDEP}]
- ldap? ( net-nds/openldap:= )
- lmdb? ( >=dev-db/lmdb-0.9.16:=[${MULTILIB_USEDEP}] )
- python? (
- ${PYTHON_DEPS}
- sys-libs/talloc[python,${PYTHON_SINGLE_USEDEP}]
- sys-libs/tdb[python,${PYTHON_SINGLE_USEDEP}]
- sys-libs/tevent[python,${PYTHON_SINGLE_USEDEP}]
- )
-"
-DEPEND="
- ${RDEPEND}
- virtual/libcrypt
- test? ( >=dev-util/cmocka-1.1.3[${MULTILIB_USEDEP}] )
-"
-BDEPEND="${PYTHON_DEPS}
- dev-libs/libxslt
- virtual/pkgconfig
- doc? ( app-text/doxygen )
-"
-
-WAF_BINARY="${S}/buildtools/bin/waf"
-
-MULTILIB_WRAPPED_HEADERS=( /usr/include/pyldb.h )
-
-PATCHES=(
- "${FILESDIR}"/${PN}-2.9.0-optional_packages.patch
- "${FILESDIR}"/${PN}-1.1.31-fix_PKGCONFIGDIR-when-python-disabled.patch
- "${FILESDIR}"/${PN}-2.4.2-skip-32bit-time_t-tests.patch
- "${FILESDIR}"/${PN}-2.5.2-skip-waf-tevent-check.patch
-)
-
-pkg_setup() {
- # Package fails to build with distcc
- export DISTCC_DISABLE=1
- export PYTHONHASHSEED=1
-
- # waf requires a python interpreter
- python-single-r1_pkg_setup
-}
-
-check_samba_dep_versions() {
- actual_talloc_version=$(sed -En '/^VERSION =/{s/[^0-9.]//gp}' lib/talloc/wscript || die)
- if [[ ${actual_talloc_version} != ${TALLOC_VERSION} ]] ; then
- eerror "Source talloc version: ${TALLOC_VERSION}"
- eerror "Ebuild talloc version: ${actual_talloc_version}"
- die "Ebuild needs to fix TALLOC_VERSION!"
- fi
-
- actual_tdb_version=$(sed -En '/^VERSION =/{s/[^0-9.]//gp}' lib/tdb/wscript || die)
- if [[ ${actual_tdb_version} != ${TDB_VERSION} ]] ; then
- eerror "Source tdb version: ${TDB_VERSION}"
- eerror "Ebuild tdb version: ${actual_tdb_version}"
- die "Ebuild needs to fix TDB_VERSION!"
- fi
-
- actual_tevent_version=$(sed -En '/^VERSION =/{s/[^0-9.]//gp}' lib/tevent/wscript || die)
- if [[ ${actual_tevent_version} != ${TEVENT_VERSION} ]] ; then
- eerror "Source tevent version: ${TEVENT_VERSION}"
- eerror "Ebuild tevent version: ${actual_tevent_version}"
- die "Ebuild needs to fix TEVENT_VERSION!"
- fi
-}
-
-src_prepare() {
- default
-
- check_samba_dep_versions
-
- if use test && ! use python ; then
- # We want to be able to run tests w/o Python as it makes
- # automated testing much easier (as USE=python isn't default-enabled).
- truncate -s0 tests/python/{repack,index,api,crash}.py || die
- fi
-
- multilib_copy_sources
-}
-
-multilib_src_configure() {
- # When specifying libs for samba build you must append NONE to the end to
- # stop it automatically including things
- local bundled_libs="NONE"
-
- # We "use" bundled cmocka when we're not running tests as we're
- # not using it anyway. Means we avoid making users install it for
- # no reason. bug #802531
- if ! use test; then
- bundled_libs="cmocka,${bundled_libs}"
- fi
-
- local myconf=(
- $(usex ldap '' --disable-ldap)
- $(usex lmdb '' --without-ldb-lmdb)
- --disable-rpath
- --disable-rpath-install
- --with-modulesdir="${EPREFIX}"/usr/$(get_libdir)/samba
- --bundled-libraries="${bundled_libs}"
- --builtin-libraries=NONE
- )
-
- if ! use python || ! multilib_is_native_abi; then
- myconf+=( --disable-python )
- fi
-
- append-ldflags $(test-flags-CCLD -Wl,--undefined-version) # bug 915199
-
- waf-utils_src_configure "${myconf[@]}"
-}
-
-multilib_src_compile() {
- waf-utils_src_compile
- multilib_is_native_abi && use doc && doxygen Doxyfile
-}
-
-multilib_src_test() {
- if multilib_is_native_abi; then
- WAF_MAKE=1 \
- PATH=buildtools/bin:../../../buildtools/bin:${PATH}:"${BUILD_DIR}"/bin/shared/private/ \
- LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:"${BUILD_DIR}"/bin/shared/private/:"${BUILD_DIR}"/bin/shared \
- waf test || die
- fi
-}
-
-multilib_src_install() {
- waf-utils_src_install
-
- if multilib_is_native_abi && use doc; then
- doman apidocs/man/man3/*.3
- docinto html
- dodoc -r apidocs/html/.
- fi
-
- # bug #726454
- use python && python_optimize
-}
-
-pkg_postinst() {
- if has_version sys-auth/sssd; then
- ewarn "You have sssd installed. It is known to break after ldb upgrades,"
- ewarn "so please try to rebuild it before reporting bugs."
- ewarn "See https://bugs.gentoo.org/404281"
- fi
-}
diff --git a/sdk_container/src/third_party/portage-stable/sys-libs/ldb/metadata.xml b/sdk_container/src/third_party/portage-stable/sys-libs/ldb/metadata.xml
deleted file mode 100644
index 02e87ace94c..00000000000
--- a/sdk_container/src/third_party/portage-stable/sys-libs/ldb/metadata.xml
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
-
-
- samba@gentoo.org
- Samba
-
-
-
diff --git a/sdk_container/src/third_party/portage-stable/virtual/perl-Data-Dumper/metadata.xml b/sdk_container/src/third_party/portage-stable/virtual/perl-Data-Dumper/metadata.xml
deleted file mode 100644
index 1a0d0fb9a80..00000000000
--- a/sdk_container/src/third_party/portage-stable/virtual/perl-Data-Dumper/metadata.xml
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
-
-
- perl@gentoo.org
- Gentoo Perl Project
-
-
-
diff --git a/sdk_container/src/third_party/portage-stable/virtual/perl-Data-Dumper/perl-Data-Dumper-2.189.0.ebuild b/sdk_container/src/third_party/portage-stable/virtual/perl-Data-Dumper/perl-Data-Dumper-2.189.0.ebuild
deleted file mode 100644
index 82ea06aa66b..00000000000
--- a/sdk_container/src/third_party/portage-stable/virtual/perl-Data-Dumper/perl-Data-Dumper-2.189.0.ebuild
+++ /dev/null
@@ -1,15 +0,0 @@
-# Copyright 1999-2025 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-DESCRIPTION="Virtual for ${PN#perl-}"
-SLOT="0"
-KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 ~sparc x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris"
-
-RDEPEND="
- || ( =dev-lang/perl-5.40* ~perl-core/${PN#perl-}-${PV} )
- dev-lang/perl:=
- !perl-core/${PN#perl-}-${PV}-r999
-"
diff --git a/sdk_container/src/third_party/portage-stable/virtual/perl-Data-Dumper/perl-Data-Dumper-2.192.0.ebuild b/sdk_container/src/third_party/portage-stable/virtual/perl-Data-Dumper/perl-Data-Dumper-2.192.0.ebuild
deleted file mode 100644
index 388dff71cb6..00000000000
--- a/sdk_container/src/third_party/portage-stable/virtual/perl-Data-Dumper/perl-Data-Dumper-2.192.0.ebuild
+++ /dev/null
@@ -1,15 +0,0 @@
-# Copyright 1999-2025 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-DESCRIPTION="Virtual for ${PN#perl-}"
-SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris"
-
-RDEPEND="
- || ( =dev-lang/perl-5.42* ~perl-core/${PN#perl-}-${PV} )
- dev-lang/perl:=
- !perl-core/${PN#perl-}-${PV}-r999
-"
diff --git a/sdk_container/src/third_party/portage-stable/virtual/perl-Unicode-Collate/metadata.xml b/sdk_container/src/third_party/portage-stable/virtual/perl-Unicode-Collate/metadata.xml
deleted file mode 100644
index 1a0d0fb9a80..00000000000
--- a/sdk_container/src/third_party/portage-stable/virtual/perl-Unicode-Collate/metadata.xml
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
-
-
- perl@gentoo.org
- Gentoo Perl Project
-
-
-
diff --git a/sdk_container/src/third_party/portage-stable/virtual/perl-Unicode-Collate/perl-Unicode-Collate-1.310.0-r3.ebuild b/sdk_container/src/third_party/portage-stable/virtual/perl-Unicode-Collate/perl-Unicode-Collate-1.310.0-r3.ebuild
deleted file mode 100644
index 852963aa7d8..00000000000
--- a/sdk_container/src/third_party/portage-stable/virtual/perl-Unicode-Collate/perl-Unicode-Collate-1.310.0-r3.ebuild
+++ /dev/null
@@ -1,15 +0,0 @@
-# Copyright 1999-2025 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-DESCRIPTION="Virtual for ${PN#perl-}"
-SLOT="0"
-KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 ~sparc x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris"
-
-RDEPEND="
- || ( =dev-lang/perl-5.42* =dev-lang/perl-5.40* =dev-lang/perl-5.38* ~perl-core/${PN#perl-}-${PV} )
- dev-lang/perl:=
- !perl-core/${PN#perl-}-${PV}-r999
-"