Skip to content

Comments

DM-54164: Switch uname from p to m to fix a linux x86 bug#350

Merged
roceb merged 1 commit intomainfrom
tickets/DM-54164
Feb 16, 2026
Merged

DM-54164: Switch uname from p to m to fix a linux x86 bug#350
roceb merged 1 commit intomainfrom
tickets/DM-54164

Conversation

@roceb
Copy link
Contributor

@roceb roceb commented Feb 14, 2026

No description provided.

|| fail "Unable to determine conda env"
platform="$(uname -s)"
arch="$(uname -p)"
arch="$(uname -m)"
Copy link
Member

Choose a reason for hiding this comment

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

Does this mean that the check against $arch below in the Darwin section needs to be arm64 instead of arm?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

On my mac, it still worked, but I think switching to arm64 is a better idea.

Copy link
Member

Choose a reason for hiding this comment

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

$ uname -p
arm
$ uname -m
arm64

so not at all clear how this would have passed the test below which was looking for arm.

Copy link
Member

@timj timj left a comment

Choose a reason for hiding this comment

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

I guess this is fine but I have no idea what the motivation is for doing any of it.

-p and -m make no difference on x86_64. Please justify the change in the commit message and on the jira ticket.

|| fail "Unable to determine conda env"
platform="$(uname -s)"
arch="$(uname -p)"
arch="$(uname -m)"
Copy link
Member

Choose a reason for hiding this comment

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

$ uname -p
arm
$ uname -m
arm64

so not at all clear how this would have passed the test below which was looking for arm.

v30_0_0.env Outdated
@@ -0,0 +1,797 @@
# This file may be used to create an environment using:
Copy link
Member

Choose a reason for hiding this comment

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

Was this committed by mistake?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, I was testing with it.

@roceb roceb force-pushed the tickets/DM-54164 branch 2 times, most recently from ad5b9d7 to 8e5047b Compare February 16, 2026 16:26
uname -p would report as unknown on some linux x86 machines
@roceb roceb changed the title DM-54164: Switch uname from p to m DM-54164: Switch uname from p to m to fix a linux x86 bug Feb 16, 2026
@roceb roceb merged commit ac92003 into main Feb 16, 2026
8 checks passed
@roceb roceb deleted the tickets/DM-54164 branch February 16, 2026 16:43
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.

2 participants