Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 851255

Summary: sys-fs/eudev: pkg_postinst() still tests for sys-apps/hwids
Product: Gentoo Linux Reporter: Guillermo D. H. <gdiazhartusch>
Component: Current packagesAssignee: eudev team <eudev>
Status: RESOLVED OBSOLETE    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Guillermo D. H. 2022-06-11 20:11:31 UTC
In all current ebuilds, pkg_postinst() contains this:

RDEPEND="${DEPEND}
# ...
	!sys-apps/hwids[udev]"
# ...
pkg_postinst() {
	# ...
	if has_version 'sys-apps/hwids[udev]'; then
		udevadm hwdb --update --root="${ROOT}"

		# ...
	fi
	# ...
}

This looks inconsistent, everything in this if ... fi block should either be unconditionally executed (as for sys-apps/systemd-utils), or not present at all, depending on whether upstream *.hwdb files are installed or not.