Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 851255 - sys-fs/eudev: pkg_postinst() still tests for sys-apps/hwids
Summary: sys-fs/eudev: pkg_postinst() still tests for sys-apps/hwids
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: eudev team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-06-11 20:11 UTC by Guillermo D. H.
Modified: 2023-10-11 20:04 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.