Page MenuHomeFreeBSD

krb5: Rename the ALIGN macro in aestab.h
ClosedPublic

Authored by ivy on Sun, Jul 27, 5:08 PM.
Tags
None
Referenced Files
F126077717: D51574.id159618.diff
Thu, Aug 14, 8:28 PM
Unknown Object (File)
Thu, Aug 14, 12:29 AM
Unknown Object (File)
Wed, Aug 13, 12:17 PM
Unknown Object (File)
Mon, Aug 11, 6:13 AM
Unknown Object (File)
Sun, Aug 10, 9:08 AM
Unknown Object (File)
Thu, Aug 7, 5:14 AM
Unknown Object (File)
Wed, Aug 6, 5:13 PM
Unknown Object (File)
Mon, Aug 4, 12:39 AM
Subscribers

Details

Summary

This conflicts with ALIGN() from <sys/param.h>. Rather than trying
to excise <sys/param.h> from all of krb5, rename the macro.

Diff Detail

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

Event Timeline

ivy requested review of this revision.Sun, Jul 27, 5:08 PM

this appears to fix the gcc build and should be acceptable upstream, so we can reduce our local diffs later. i haven't fully tested it because gcc buildworld is broken for other reasons right now.

This revision is now accepted and ready to land.Sat, Aug 2, 12:21 AM
cy requested changes to this revision.Sat, Aug 2, 2:41 AM

Please no. This is a gratuitous change that will cause merge conflict next vendor import. Unlike Heimdal that was imported once and never updated. We intend to update MIT KRB5 every upstream release. This change and more changes like this will accumulate to make me more work. Do not do commit this.

This revision now requires changes to proceed.Sat, Aug 2, 2:41 AM

On second thought we might not have the choice. <sigh>

crypto/krb5/src/lib/crypto/builtin/aes/aestab.h
90

Please add a comment here for the next person importing an update what and why this change. People don't look at git logs when working on merge conflicts.

This revision is now accepted and ready to land.Sat, Aug 2, 2:44 AM

the best way to avoid merge conflicts is to submit our local changes to MIT so they're in the next upstream release. however, we should wait until all the issues are fixed before doing that, so we're sure our changes are right...

This revision was automatically updated to reflect the committed changes.

Note that the ALIGN and EXTERN macros are intended solely for internal use by this header, not for use in translation units that #include it, so when we submit this upstream, we should a) rename EXTERN as well, b) use a KRB5 prefix instead of AES, and c) #undef them at the end.