# --- T2-COPYRIGHT-BEGIN --- # t2/package/*/systemtap/hotfix-no-groupadd.patch # Copyright (C) 2025 The T2 SDE Project # SPDX-License-Identifier: GPL-2.0 or patched project license # --- T2-COPYRIGHT-END --- --- systemtap-5.3/stapbpf/Makefile.in.vanilla 2025-05-09 11:46:53.408558636 +0100 +++ systemtap-5.3/stapbpf/Makefile.in 2025-05-09 11:47:42.305599697 +0100 @@ -925,7 +925,7 @@ # Why the "id -u" condition? This way, an unprivileged user can run # make install, and have "sudo stap ...." or "sudo stapbpf ...." work later. @HAVE_BPF_DECLS_TRUE@install-exec-hook: -@HAVE_BPF_DECLS_TRUE@ if [ `id -u` -eq 0 ] && (getent group stapusr >/dev/null \ +@HAVE_BPF_DECLS_TRUE@ if false && (getent group stapusr >/dev/null \ @HAVE_BPF_DECLS_TRUE@ || groupadd -f -g 156 -r stapusr); then \ @HAVE_BPF_DECLS_TRUE@ chgrp stapusr "$(DESTDIR)$(bindir)/stapbpf" \ @HAVE_BPF_DECLS_TRUE@ && chmod 04110 "$(DESTDIR)$(bindir)/stapbpf"; \