Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 909203 - sys-apps/apparmor-utils: Unnecessary Perl dependency
Summary: sys-apps/apparmor-utils: Unnecessary Perl dependency
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Michael Palimaka (kensington)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-06-26 17:25 UTC by Han Mertens
Modified: 2023-06-26 19:51 UTC (History)
1 user (show)

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


Attachments
Tested patch for sys-apps/apparmor-utils-3.1.4 (no-perl.patch,1.29 KB, patch)
2023-06-26 17:25 UTC, Han Mertens
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Han Mertens 2023-06-26 17:25:06 UTC
Created attachment 864663 [details, diff]
Tested patch for sys-apps/apparmor-utils-3.1.4

All ebuilds for sys-apps/apparmor-utils currently in the tree depend on Perl and several Perl modules, but those dependencies are unnecessary because upstream has rewritten all utilities in Python. The last rewrite was before the 3.0.0 release (https://gitlab.com/apparmor/apparmor/-/commit/a74d7cf51cf5d87d5d362cb7dd279a0034029631) and the README since states
"Perl is no longer needed since none of the utilities shipped to end users depend
on it anymore."

I have attached a patch for sys-apps/apparmor-utils-3.1.4 that removes the Perl dependencies. I've only tested the patch for that version, but since the Perl requirements were lifted for version 3.0.0 it should also work for all other versions in the tree.
Comment 1 Larry the Git Cow gentoo-dev 2023-06-26 19:50:49 UTC
The bug has been closed via the following commit(s):

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

commit 53de69d91fec670e97baa5add1127209147572f8
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-06-26 19:47:43 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-06-26 19:49:24 +0000

    sys-apps/apparmor-utils: drop obsolete Perl dependencies
    
    Quoting Han from the bug:
    """
    All ebuilds for sys-apps/apparmor-utils currently in the tree depend on Perl and several Perl modules,
    but those dependencies are unnecessary because upstream has rewritten all utilities in Python.
    
    The last rewrite was before the 3.0.0 release (https://gitlab.com/apparmor/apparmor/-/commit/a74d7cf51cf5d87d5d362cb7dd279a0034029631)
    and the README since states "Perl is no longer needed since none of the utilities shipped to end users depend
    on it anymore."
    """
    
    Closes: https://bugs.gentoo.org/909203
    Signed-off-by: Sam James <sam@gentoo.org>

 ...ils-3.0.10.ebuild => apparmor-utils-3.0.10-r1.ebuild} | 16 ++++------------
 ...utils-3.1.4.ebuild => apparmor-utils-3.1.4-r1.ebuild} | 16 ++++------------
 2 files changed, 8 insertions(+), 24 deletions(-)
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-06-26 19:51:34 UTC
Thanks! I dropped the PERLDIR usage too as that was using something set by perl_set_version.