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

get_sysType() returns incorrect value for 32 bit userspace with 64 bit kernel #4777

Closed
1 of 5 tasks
stuartf opened this issue Nov 1, 2023 · 0 comments · Fixed by #4784
Closed
1 of 5 tasks

get_sysType() returns incorrect value for 32 bit userspace with 64 bit kernel #4777

stuartf opened this issue Nov 1, 2023 · 0 comments · Fixed by #4784

Comments

@stuartf
Copy link
Contributor

stuartf commented Nov 1, 2023

What kind of issue is this?

  • Question.
    This issue tracker is not the place for questions. If you want to ask how to do something,
    or to understand why something isn't working the way you expect it to,
    use Community Forums or Premium Support

  • PlatformIO IDE.
    All issues related to PlatformIO IDE should be reported to the
    PlatformIO IDE for VSCode repository

  • Development Platform or Board.
    All issues (building, uploading, adding new boards, etc.) related to PlatformIO development platforms
    should be reported to appropriate repository related to your hardware
    https://github.com/topics/platformio-platform

  • Feature Request.
    Start by telling us what problem you’re trying to solve. Often a solution
    already exists! Don’t send pull requests to implement new features without first getting our
    support. Sometimes we leave features out on purpose to keep the project small.

  • PlatformIO Core.
    If you’ve found a bug, please provide an information below.

You can erase any parts of this template not applicable to your Issue.


Configuration

Operating system: Raspbian 12.1

PlatformIO Version (platformio --version): 6.1.11

Description of problem

get_systype() in platformio/util.py returns the wrong architecture when run in docker on a 64 bit kernel with 32 bit userspace

Steps to Reproduce

  1. docker run -it python /bin/bash
  2. pip install platformio
  3. python
  4. from platformio import util
  5. util.get_systype()

Actual Results

'linux_aarch64'

Expected Results

'linux_armv7l'

Related issues

esphome/issues#3092
esphome/issues#4959

stuartf added a commit to stuartf/platformio-core that referenced this issue Nov 13, 2023
@ivankravets ivankravets added this to the 6.1.12 milestone Nov 16, 2023
ivankravets pushed a commit that referenced this issue Nov 16, 2023
fix get_systype on raspbian

fixes #4777
ivankravets added a commit that referenced this issue Nov 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants