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
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
Unknown Object (File)
Mon, Aug 4, 12:04 AM
Unknown Object (File)
Sun, Aug 3, 7:21 PM
Unknown Object (File)
Sun, Aug 3, 6:57 PM
Unknown Object (File)
Sat, Aug 2, 6:12 AM
Unknown Object (File)
Tue, Jul 29, 8:53 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 Not Applicable
Unit
Tests Not Applicable

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
91

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.