Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#77529 - [systemd] enable ukify (add python to makedepends and optdepends)

Attached to Project: Arch Linux
Opened by Mike Yuan (YHNdnzj) - Tuesday, 14 February 2023, 15:49 GMT
Last edited by Christian Hesse (eworm) - Wednesday, 08 March 2023, 15:13 GMT
Task Type Feature Request
Category Packages: Testing
Status Closed
Assigned To Christian Hesse (eworm)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No

Details

Description:

The ukify build option defaults to 'auto', which detects whether python exists in the build environment.

Consider adding python to makedepends and optdepends for ukify support?

Additional info:
* package version(s) 253rc3-2
This task depends upon

Closed by  Christian Hesse (eworm)
Wednesday, 08 March 2023, 15:13 GMT
Reason for closing:  Implemented
Additional comments about closing:  systemd 253.1-3
Comment by Christian Hesse (eworm) - Wednesday, 15 February 2023, 00:34 GMT
The package installs `/usr/lib/systemd/ukify`. So everything is in place, except that an (optional) dependency is missing?
Comment by Mike Yuan (YHNdnzj) - Friday, 17 February 2023, 01:17 GMT
Oops, I missed that, sorry. However, it seems that it needs `python-pefile` too, otherwise it results in `ModuleNotFoundError: No module named 'pefile'`.
Comment by Balló György (City-busz) - Sunday, 26 February 2023, 21:19 GMT
The following packages are needed for ukify, please add them to optdepends:
- It imports the 'pefile' module from the 'python-pefile' package.
- It also needs 'readelf' and 'objcopy' commands from the 'binutils' package.
- If the '--sign-kernel' option specified, it needs 'sbsign' and 'sbverify' commands from the 'sbsigntools' package.


Other things:
- I would suggest to update the description of libmicrohttpd to make it more clear:
* from: 'libmicrohttpd: remote journald capabilities'
* to: 'libmicrohttpd: systemd-journal-gatewayd and systemd-journal-remote'
- I found that 'gnutls' might not strictly need to be in optdepends, because it's pulled in by 'libmicrohttpd'.
- 'curl' is pulled in by the 'libelf' dependency, so it might can be moved from optdepends to depends, since it's installed anyway.
- And 'curl' pulls in 'libp11-kit' via 'ca-certificates-utils', so it might can be moved from optdepends to depends too.
Comment by Christian Hesse (eworm) - Friday, 03 March 2023, 14:56 GMT
Cluttering the optional dependencies with several packages for just a single tool is really ugly...
Is there an elegant solution we could take? Possibly splitting ukify to a separate package?
Comment by Balló György (City-busz) - Friday, 03 March 2023, 15:20 GMT
Yes, I think splitting would be a better solution. It's simple, because only two files need to be added to a separated package:
- usr/lib/systemd/ukify
- usr/share/man/man1/ukify.1.gz

The dependencies for this package:
depends=('binutils' 'python-pefile' 'systemd')
optdepends=('python-pillow: Show the size of splash image'
'sbsigntools: Sign the embedded kernel')
Comment by Toolybird (Toolybird) - Tuesday, 07 March 2023, 21:09 GMT
Dupe  FS#77765 

Loading...