Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 933375 - app-admin/needrestart-3.6: make dependency on sys-apps/init-system-helpers optional
Summary: app-admin/needrestart-3.6: make dependency on sys-apps/init-system-helpers op...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Craig Andrews
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-06-01 17:35 UTC by Wicher Minnaard
Modified: 2024-06-02 15:03 UTC (History)
2 users (show)

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


Attachments
app-admin/needrestart-3.6 -> app-admin/needrestart-3.6-r1 (file_933375.txt,755 bytes, text/plain)
2024-06-01 17:35 UTC, Wicher Minnaard
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Wicher Minnaard 2024-06-01 17:35:21 UTC
Created attachment 894884 [details]
app-admin/needrestart-3.6 -> app-admin/needrestart-3.6-r1

On my server I was unhappy with the following (unavoidable via USE flags) dependency tree, as it was suddenly pulling in pillow.

app-admin/needrestart-3.6
  sys-apps/init-system-helpers-1.60
    dev-python/docutils-0.21.2
      dev-python/pillow-10.3.0


It turns out that on systemd systems, needrestart works well without init-system-helpers present. So it shouldn't be a hard dependency. The hard dependency was questioned back in 2017 when it was added ( #639004 ).


The attached patch (which creates app-admin/needrestart-3.6-r1) makes the dependency on init-system-helpers optional; to be specific, it'll be pulled in when the "systemd" USE flag is deactivated.
Comment 1 Craig Andrews gentoo-dev 2024-06-02 15:02:19 UTC
Thank you!
Comment 2 Larry the Git Cow gentoo-dev 2024-06-02 15:03:24 UTC
The bug has been closed via the following commit(s):

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

commit e2c99eaf625e0013ce4523cdc35a32fdc51aaa49
Author:     Craig Andrews <candrews@gentoo.org>
AuthorDate: 2024-06-02 15:01:43 +0000
Commit:     Craig Andrews <candrews@gentoo.org>
CommitDate: 2024-06-02 15:03:21 +0000

    app-admin/needrestart: make sys-apps/init-system-helpers optional
    
    Closes: https://bugs.gentoo.org/933375
    Signed-off-by: Craig Andrews <candrews@gentoo.org>

 app-admin/needrestart/needrestart-3.6-r1.ebuild | 42 +++++++++++++++++++++++++
 app-admin/needrestart/needrestart-9999.ebuild   |  6 ++--
 2 files changed, 45 insertions(+), 3 deletions(-)