As of pesign 113-12, most of macros.pesign was refactored into a helper script[1]. However, the new script only checks for a pesign daemon socket if the environment matches that of koji, breaking previous functionality and erroneously falling back to calling pesign directly even if the daemon is running. (This breaks my current local build setup where I run the pesign daemon pointed to a custom NSS directory prior to building the kernel.) Fixing the issue is as simple as moving L330-333 of the patch out of the parent `if` block such that it looks like the following: local socket="" || : if [[ -S /run/pesign/socket ]] ; then socket=/run/pesign/socket elif [[ -S /var/run/pesign/socket ]]; then socket=/var/run/pesign/socket elif grep -q ID=fedora /etc/os-release \ && [[ "${rhelver}" -lt 7 ]] \ && [[ "${USERNAME}" = "mockbuild" ]] \ && [[ "${vendor}" = "Fedora Project" ]] \ && [[ "${HOSTNAME}" =~ bkernel.* ]] then [...] As an aside, it's difficult to triangulate how such a change was introduced when the upstream project, owned by an RH org, reflects no such change, and it's instead stuffed into a patch in the package repo alongside many other patches. [1]: https://src.fedoraproject.org/rpms/pesign/blob/master/f/0008-Move-most-of-macros.pesign-to-pesign-rpmbuild-helper.patch
Still broken as of Fedora 33.
I had to work this around in order to build a self-signed kernel, please fix. Thanks.
No change on F34.
No change on F35.
Looks like there has been some activity at upstream. I have submitted a PR: https://github.com/rhboot/pesign/pull/84
@will, do you mind if I added you as suggested-by to the patch?
(In reply to Julian Sikorski from comment #6) > @will, do you mind if I added you as suggested-by to the patch? Fine by me.