Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 847436 - udev.eclass - insufficient documentation on function udev_reload?
Summary: udev.eclass - insufficient documentation on function udev_reload?
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo systemd Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 842069 842996
  Show dependency tree
 
Reported: 2022-05-25 12:49 UTC by Sebastian Pipping
Modified: 2022-06-08 13:01 UTC (History)
1 user (show)

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 Sebastian Pipping gentoo-dev 2022-05-25 12:49:28 UTC
Hi systemd team,

I'm coming here from bug #847268.  Related to function udev_reload I noticed
that:

- Many ebuilds only call udev_reload from pkg_postinst but not from pkg_postrm
  and the docs of function udev_reload in the eclass do not say when or when
  not to call udev_reload.  I'd personally expect a call from pkg_postrm as well
  but I'm not sure, and I found others not doing that.

- The example code in the eclass header does not use udev_reload anywhere
  but it could, and my vote for it.

I'm happy to make a pull request for review once I understand what the
requirements are, but feel free to take over implementation, if you like.

Thanks and best, Sebastian
Comment 1 Larry the Git Cow gentoo-dev 2022-06-08 00:25:20 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9b977bfdb07b76e108bd962c998421353a40e131

commit 9b977bfdb07b76e108bd962c998421353a40e131
Author:     Mike Gilbert <floppym@gentoo.org>
AuthorDate: 2022-06-04 13:47:29 +0000
Commit:     Mike Gilbert <floppym@gentoo.org>
CommitDate: 2022-06-08 00:24:56 +0000

    udev.eclass: document when udev_reload should be called
    
    Closes: https://bugs.gentoo.org/847436
    Signed-off-by: Mike Gilbert <floppym@gentoo.org>

 eclass/udev.eclass | 14 ++++++++++++--
 1 file changed, 12 insertions(+), 2 deletions(-)

Additionally, it has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ae1fda4dc09564cba28db147d4c682e0397756ff

commit ae1fda4dc09564cba28db147d4c682e0397756ff
Author:     Mike Gilbert <floppym@gentoo.org>
AuthorDate: 2022-06-04 14:18:07 +0000
Commit:     Mike Gilbert <floppym@gentoo.org>
CommitDate: 2022-06-08 00:24:58 +0000

    install-qa-check.d/60udev-eclass: check for udev_reload in pkg_postrm
    
    Bug: https://bugs.gentoo.org/847436
    Signed-off-by: Mike Gilbert <floppym@gentoo.org>

 metadata/install-qa-check.d/60udev-eclass | 5 +++++
 1 file changed, 5 insertions(+)
Comment 2 Sebastian Pipping gentoo-dev 2022-06-08 13:01:05 UTC
Very nice, thank you!