Install this version:
emerge -a =sys-libs/libudev-zero-1.0.4
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =sys-libs/libudev-zero-1.0.4
Or alternatively:
emerge --autounmask-write -a =sys-libs/libudev-zero-1.0.4
# Copyright 2024-2026 Haelwenn (lanodan) Monnier <contact@hacktivis.me>
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit toolchain-funcs
DESCRIPTION="Daemonless replacement for libudev"
HOMEPAGE="https://github.com/illiliti/libudev-zero"
SRC_URI="https://github.com/illiliti/libudev-zero/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="ISC"
SLOT="0"
KEYWORDS="~amd64 ~arm64"
IUSE="static-libs"
RDEPEND="
!sys-apps/systemd-utils[udev]
sys-apps/hwdata
"
src_compile() {
tc-export CC
emake libudev.so.1
use static-libs && emake AR="$(tc-getAR)" libudev.a
}
src_install() {
local makeflags=(
DESTDIR="${D}" PREFIX=/usr LIBDIR=/usr/"$(get_libdir)"
)
emake "${makeflags[@]}" install-shared
use static-libs && emake "${makeflags[@]}" install-static
}
Manage flags for this package:
euse -i <flag> -p sys-libs/libudev-zero |
euse -E <flag> -p sys-libs/libudev-zero |
euse -D <flag> -p sys-libs/libudev-zero
| Type | File | Size | Source URLs |
|---|---|---|---|
| DIST | libudev-zero-1.0.4.tar.gz | 15308 bytes | https://github.com/illiliti/libudev-zero/archive/refs/tags/1.0.4.tar.gz |