Page MenuHomeFreeBSD

krb5: Use sh to run mk_cmds
ClosedPublic

Authored by markj on Fri, Nov 21, 5:58 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Dec 8, 8:09 AM
Unknown Object (File)
Sun, Dec 7, 4:00 AM
Unknown Object (File)
Sat, Nov 29, 12:17 PM
Unknown Object (File)
Wed, Nov 26, 12:27 AM
Unknown Object (File)
Tue, Nov 25, 10:02 AM
Unknown Object (File)
Tue, Nov 25, 4:31 AM
Unknown Object (File)
Mon, Nov 24, 3:00 PM
Unknown Object (File)
Mon, Nov 24, 3:00 PM
Subscribers

Details

Summary

This is a bandaid, we shouldn't have these explicit targets at all. I
think what's happening in the PR is that etcupdate is running "make
installconfig", which is triggering rebuilds of unrelated things. Using
sh explicitly works around that.

PR: 291043

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 68787
Build 65670: arc lint + arc unit

Event Timeline

markj requested review of this revision.Fri, Nov 21, 5:58 PM

the problem reported in the PR is:

make[4]: exec(./mk_cmds): Permission denied

i don't see how this change can fix it. why isn't mk_cmds executable? the target clearly runs chmod 755 on it.

also from the PR:

===> krb5/util/ss (obj,all,install)
[Creating objdir /var/db/etcupdate/etcupdate-3aVqeOA/usr/obj/usr/src/amd64.amd64/tmp/obj-tools/krb5/util/ss...]

the reporter has /var/db mounted noexec, which explains the problem. but is this supported or expected behaviour?

Yes, having a separate noexec /var/db is common practice and should be supported, and the real bug is that mk_cmds is not needed by installconfig and should not be run at all. This is just a workaround to unbreak etcupdate until the Makefiles can be cleaned up. We might additionally look into having etcupdate use a different MAKEOBJDIRPREFIX.

This revision is now accepted and ready to land.Sat, Nov 22, 6:51 PM

okay, that sounds reasonable.

cy added a subscriber: cy.

LGTM

This revision was automatically updated to reflect the committed changes.