Install this version:
emerge -a =dev-libs/libgpiod-2.3.1
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =dev-libs/libgpiod-2.3.1
Or alternatively:
emerge --autounmask-write -a =dev-libs/libgpiod-2.3.1
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit meson linux-info
DESCRIPTION="C library and tools for interacting with the linux GPIO character device"
HOMEPAGE="https://git.kernel.org/pub/scm/libs/libgpiod/libgpiod.git/"
SRC_URI="https://mirrors.edge.kernel.org/pub/software/libs/libgpiod/${P}.tar.xz"
LICENSE="LGPL-2.1"
# Reflects the ABI of libgpiod.so
SLOT="0/3"
KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86"
IUSE="+tools cxx dbus introspection glib python test"
RESTRICT="!test? ( test )"
DEPEND="
dev-libs/libedit
dbus? ( sys-apps/dbus )
glib? (
dev-libs/libgudev
>=dev-libs/glib-2.80
>=dev-util/glib-utils-2.80
>=dev-util/gdbus-codegen-2.80
)
introspection? ( dev-libs/gobject-introspection )
test? (
>=dev-libs/glib-2.80
>=sys-apps/kmod-18
>=sys-apps/util-linux-2.33.1
>=virtual/libudev-215
cxx? ( <dev-cpp/catch-3.5:0 )
)
"
pkg_setup() {
CONFIG_CHECK="~GPIO_CDEV_V1"
linux-info_pkg_setup
}
src_configure() {
local emesonargs=(
$(meson_feature test tests)
$(meson_feature tools)
$(meson_feature cxx bindings-cxx)
$(meson_feature python bindings-python)
$(meson_feature dbus)
$(meson_feature glib bindings-glib)
$(meson_feature introspection)
-Dexamples=enabled
-Dgpioset-interactive=enabled
-Dbindings-rust=disabled
-Dprofiling=false
)
meson_src_configure
}
Manage flags for this package:
euse -i <flag> -p dev-libs/libgpiod |
euse -E <flag> -p dev-libs/libgpiod |
euse -D <flag> -p dev-libs/libgpiod
dev-libs/libedit dbus? ( sys-apps/dbus ) glib? ( dev-libs/libgudev >=dev-libs/glib-2.80 >=dev-util/glib-utils-2.80 >=dev-util/gdbus-codegen-2.80 ) introspection? ( dev-libs/gobject-introspection ) test? ( >=dev-libs/glib-2.80 >=sys-apps/kmod-18 >=sys-apps/util-linux-2.33.1 >=virtual/libudev-215 cxx? ( <dev-cpp/catch-3.5:0 ) )
| Type | File | Size | Source URLs |
|---|---|---|---|
| DIST | libgpiod-2.3.1.tar.xz | 235616 bytes | https://mirrors.edge.kernel.org/pub/software/libs/libgpiod/libgpiod-2.3.1.tar.xz |