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

build: Build universal macOS binary #130

Closed
wants to merge 3 commits into from

Conversation

cfergeau
Copy link
Collaborator

@cfergeau cfergeau commented Jul 13, 2022

This PR changes two things:

  • It generates a universal binary for the gvproxy
    For this it makes use of github.com/randall77/makefat in order to generate a gvproxy-darwin binary containing both the amd64 and arm64 binaries.
  • It fixes a test case

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jul 13, 2022

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: cfergeau

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@cfergeau cfergeau force-pushed the universal branch 2 times, most recently from c4c226b to a444f4c Compare July 13, 2022 13:13
cfergeau added 3 commits July 13, 2022 15:32
This will be useful on the new M1 machines to avoid the use of rosetta.

Signed-off-by: Christophe Fergeau <cfergeau@redhat.com>
This makes use of github.com/randall77/makefat in order to generate a
gvproxy-darwin binary containing both the amd64 and arm64 binaries.

Signed-off-by: Christophe Fergeau <cfergeau@redhat.com>
Tests are currently failing because of an unexpected 'src 192.168.127.2'
appearance in 'ip route show' output. It's likely unrelated to
gvisor-tap-vsock and caused by a change in the underlying OS.
Thi commit ignores this extra output if it's preset, which fixes the
tests.

Signed-off-by: Christophe Fergeau <cfergeau@redhat.com>
@praveenkumar
Copy link
Contributor

Test fix commit message has typo
Thi => This commit ignores this extra output if it's preset => present, which fixes the tests.

@praveenkumar
Copy link
Contributor

/close

merged by #132

@gbraad
Copy link
Member

gbraad commented Jul 21, 2022

This should resolve #122

However, the lack of proper tests prevents me to create a release at the moment. Running manual tests

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants