Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

aircrack-ng: add patch for arm64 #19307

Merged
merged 1 commit into from
Sep 13, 2023
Merged

Conversation

i0ntempest
Copy link
Member

taken from openwall/john@c9825e6

Description

Type(s)
  • bugfix
  • enhancement
  • security fix
Tested on

macOS 14.0 23A5276g arm64
Xcode 15.0 15A5161b

Verification

Have you

  • followed our Commit Message Guidelines?
  • squashed and minimized your commits?
  • checked that there aren't other open pull requests for the same change?
  • referenced existing tickets on Trac with full URL?
  • checked your Portfile with port lint --nitpick?
  • tried existing tests with sudo port test?
  • tried a full install with sudo port -vst install?
  • tested basic functionality of all binary files?
  • checked that the Portfile's most important variants haven't been broken?

@macportsbot
Copy link

Notifying maintainers:
@ryandesign for port aircrack-ng.

@macportsbot macportsbot added type: enhancement maintainer: open Affects an openmaintainer port by: member Created by a member with commit rights labels Jul 2, 2023
if {${configure.build_arch} eq "arm64"} {
patchfiles-append \
patch-psedo_intrinsics.patch
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there any reason not to apply this patch unconditionally?

Applying conditionally based on build_arch will not do the right thing when the universal variant is used.

Is this patch known to upstream? Is there an upstream PR or bug report? The URL you mentioned taking this patch from is not upstream.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see the patch was proposed to upstream two years ago with no comment yet:

aircrack-ng/aircrack-ng#1957 (comment)

I see the patch was proposed to Homebrew two years ago and they decided not to use it:

Homebrew/homebrew-core#76993

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Patch is now changed to be applied unconditionally.
I think homebrew didn't take it because they require patches to be upstreamed first? There's also another patch in that PR which the author thought wasn't good enough that he ultimately closed it.
I have tested some of the binaries (especially aircrack-ng, with a test pcap file) on M2 and they seem to work fine. What doesn't work (capturing and stuff) doesn't work on x86 either.

security/aircrack-ng/files/patch-psedo_intrinsics.patch Outdated Show resolved Hide resolved
@i0ntempest
Copy link
Member Author

Can we merge this now?

@i0ntempest i0ntempest merged commit c332556 into macports:master Sep 13, 2023
@i0ntempest i0ntempest deleted the aircrack branch September 13, 2023 21:40
@ryandesign
Copy link
Contributor

This patch did not fix anything in the arm64 code; instead, it introduced syntax errors into the powerpc code: https://trac.macports.org/ticket/71326

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
by: member Created by a member with commit rights maintainer: open Affects an openmaintainer port type: enhancement
Development

Successfully merging this pull request may close these issues.

3 participants