gentoo-ebuilds/app-emulation/hercules/files/hercules-3.13-user-install.patch
Mike Frysinger e2db52c0bb
app-emulation/hercules: fix building as non-root user
Move the chown/chgrp/setuid logic to the ebuild so it works as non-root.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2021-11-18 02:59:44 -05:00

21 lines
655 B
Diff

the ebuild will handle these, so no need to do it directly which will fail when
building as non-root.
--- a/Makefile.am
+++ b/Makefile.am
@@ -730,15 +730,6 @@ endif
(cd $(DESTDIR)$(bindir); @LN_S@ ./dasdcopy$(EXEEXT) cfba2fba$(EXEEXT))
rm -f $(DESTDIR)$(bindir)/cckd2ckd$(EXEEXT)
(cd $(DESTDIR)$(bindir); @LN_S@ ./dasdcopy$(EXEEXT) cckd2ckd$(EXEEXT))
-if SETUID_HERCIFC
- chown root $(DESTDIR)$(bindir)/hercifc
-if HERCIFC_GROUPSET
- chgrp $(HERCIFC_GROUPNAME) $(DESTDIR)$(bindir)/hercifc
-endif
- chmod 0750 $(DESTDIR)$(bindir)/hercifc
- chmod +s $(DESTDIR)$(bindir)/hercifc
- rm hercifc
-endif
uninstall-local: