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

set makefile target internal/mkcw/embed/entrypoint.gz as .PHONY on non x86_64 #5183

Merged

Conversation

dcermak
Copy link
Contributor

@dcermak dcermak commented Nov 20, 2023

The target internal/mkcw/embed/entrypoint is only built on x86_64, but internal/mkcw/embed/entrypoint.gz is run on all arches. This causes build failures on anything non x86_64 as internal/mkcw/embed/entrypoint is not build.

What type of PR is this?

/kind bug

What this PR does / why we need it:

To support running make on anything non x86_64.

How to verify it

Run make on a non-x86_64 machine.

Which issue(s) this PR fixes:

None

Special notes for your reviewer:

Does this PR introduce a user-facing change?

None

@openshift-ci openshift-ci bot added the kind/bug Categorizes issue or PR as related to a bug. label Nov 20, 2023
@flouthoc
Copy link
Collaborator

@dcermak Could you please reduce the length of commit message.

@flouthoc
Copy link
Collaborator

I think @giuseppe @nalind @mtrmac were working on a similar issue so it'll be best to tag them.

@dcermak
Copy link
Contributor Author

dcermak commented Nov 20, 2023

@dcermak Could you please reduce the length of commit message.

done

@rhatdan
Copy link
Member

rhatdan commented Nov 20, 2023

LGTM
But not sure why this is not needed to be build on non x86 arches?

Copy link
Collaborator

@mtrmac mtrmac left a comment

Choose a reason for hiding this comment

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

This is not really the topic of this PR — fixing the build is much more important: When we commit the built .gz into git, I’m wondering about the risk of the source and the binary (accidentally or intentionally) getting out of sync.

It Would Be Nice™️ if our CI builds always validated that the .s and .gz, as they are checked into git, match.

Makefile Outdated Show resolved Hide resolved
The target internal/mkcw/embed/entrypoint is only built on x86_64, but
internal/mkcw/embed/entrypoint.gz is run on all arches. This causes build
failures on anything non x86_64 as internal/mkcw/embed/entrypoint is not build.

Signed-off-by: Dan Čermák <dcermak@suse.com>
@rhatdan
Copy link
Member

rhatdan commented Nov 21, 2023

/approve
/lgtm

Copy link
Contributor

openshift-ci bot commented Nov 21, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: dcermak, rhatdan

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

The pull request process is described 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

@openshift-merge-bot openshift-merge-bot bot merged commit a9a581a into containers:main Nov 21, 2023
36 checks passed
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 20, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
approved kind/bug Categorizes issue or PR as related to a bug. lgtm locked - please file new issue/PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants