commit: 01b03088b7f2a28ce82bb16c5b8966ea0c8184ba Author: Christopher Byrne <salah.coronya <AT> gmail <DOT> com> AuthorDate: Sat Jun 28 00:29:03 2025 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Sat Jun 28 02:14:19 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=01b03088
sys-libs/libnbd: Remove rust bindings Rust doesn't support native system shared libraries so it can't work Closes: https://bugs.gentoo.org/959135 Signed-off-by: Christopher Byrne <salah.coronya <AT> gmail.com> Part-of: https://github.com/gentoo/gentoo/pull/42782 Closes: https://github.com/gentoo/gentoo/pull/42782 Signed-off-by: Sam James <sam <AT> gentoo.org> sys-libs/libnbd/libnbd-1.22.2.ebuild | 14 ++++---------- sys-libs/libnbd/libnbd-1.23.4.ebuild | 14 ++++---------- sys-libs/libnbd/metadata.xml | 3 --- 3 files changed, 8 insertions(+), 23 deletions(-) diff --git a/sys-libs/libnbd/libnbd-1.22.2.ebuild b/sys-libs/libnbd/libnbd-1.22.2.ebuild index 1aa213a6484b..645dd03f5c77 100644 --- a/sys-libs/libnbd/libnbd-1.22.2.ebuild +++ b/sys-libs/libnbd/libnbd-1.22.2.ebuild @@ -3,11 +3,9 @@ EAPI=8 -RUST_OPTIONAL=1 -RUST_REQ_USE="rustfmt" PYTHON_COMPAT=( python3_{10..13} ) -inherit autotools bash-completion-r1 python-single-r1 rust +inherit autotools bash-completion-r1 python-single-r1 MY_PV_1="$(ver_cut 1-2)" MY_PV_2="$(ver_cut 2)" @@ -20,7 +18,7 @@ SRC_URI="https://download.libguestfs.org/libnbd/${MY_PV_1}-${SD}/${P}.tar.gz" LICENSE="LGPL-2.1+" SLOT="0" KEYWORDS="~amd64 ~ppc64 ~sparc ~x86" -IUSE="examples fuse gnutls go ocaml python rust test" +IUSE="examples fuse gnutls go ocaml python test" REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" RESTRICT="!test? ( test )" @@ -43,8 +41,7 @@ DEPEND=" ocaml? ( dev-ml/findlib[ocamlopt] ) ) " -BDEPEND="dev-lang/perl - rust? ( ${RUST_DEPEND} )" +BDEPEND="dev-lang/perl" PATCHES=( "${FILESDIR}/${PN}-1.22.2-build-Remove-automagic-compiling-of-examples.patch" @@ -52,9 +49,6 @@ PATCHES=( ) pkg_setup() { - if use rust; then - rust_pkg_setup - fi if use python; then python_setup fi @@ -79,8 +73,8 @@ src_configure() { $(use_enable go golang) $(use_enable ocaml) $(use_enable python) - $(use_enable rust) $(use_with gnutls) + --disable-rust --disable-ublk # Not in portage --with-libxml2 ) diff --git a/sys-libs/libnbd/libnbd-1.23.4.ebuild b/sys-libs/libnbd/libnbd-1.23.4.ebuild index 1aa213a6484b..645dd03f5c77 100644 --- a/sys-libs/libnbd/libnbd-1.23.4.ebuild +++ b/sys-libs/libnbd/libnbd-1.23.4.ebuild @@ -3,11 +3,9 @@ EAPI=8 -RUST_OPTIONAL=1 -RUST_REQ_USE="rustfmt" PYTHON_COMPAT=( python3_{10..13} ) -inherit autotools bash-completion-r1 python-single-r1 rust +inherit autotools bash-completion-r1 python-single-r1 MY_PV_1="$(ver_cut 1-2)" MY_PV_2="$(ver_cut 2)" @@ -20,7 +18,7 @@ SRC_URI="https://download.libguestfs.org/libnbd/${MY_PV_1}-${SD}/${P}.tar.gz" LICENSE="LGPL-2.1+" SLOT="0" KEYWORDS="~amd64 ~ppc64 ~sparc ~x86" -IUSE="examples fuse gnutls go ocaml python rust test" +IUSE="examples fuse gnutls go ocaml python test" REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" RESTRICT="!test? ( test )" @@ -43,8 +41,7 @@ DEPEND=" ocaml? ( dev-ml/findlib[ocamlopt] ) ) " -BDEPEND="dev-lang/perl - rust? ( ${RUST_DEPEND} )" +BDEPEND="dev-lang/perl" PATCHES=( "${FILESDIR}/${PN}-1.22.2-build-Remove-automagic-compiling-of-examples.patch" @@ -52,9 +49,6 @@ PATCHES=( ) pkg_setup() { - if use rust; then - rust_pkg_setup - fi if use python; then python_setup fi @@ -79,8 +73,8 @@ src_configure() { $(use_enable go golang) $(use_enable ocaml) $(use_enable python) - $(use_enable rust) $(use_with gnutls) + --disable-rust --disable-ublk # Not in portage --with-libxml2 ) diff --git a/sys-libs/libnbd/metadata.xml b/sys-libs/libnbd/metadata.xml index 7f4fe7c56247..67433ebdc158 100644 --- a/sys-libs/libnbd/metadata.xml +++ b/sys-libs/libnbd/metadata.xml @@ -15,8 +15,5 @@ <flag name="go"> Build bindings for <pkg>dev-lang/go</pkg> </flag> - <flag name="rust"> - Build bindings for <pkg>dev-lang/rust</pkg> - </flag> </use> </pkgmetadata>
