Closed vanyasem closed 3 years ago
uname -m
can return armv7l
, aarch64
, i686
, x86_64
Unfortunately uname -m
is not a sufficient replacement here, as the values needed are not what uname gives. For example, we need armhf
instead of armv7l
and amd64
instead of x86_64
.
@dobey you can replace them in a switch statement for compatibility reasons. sticking to dpkg-architecture
is worse, as it only works on debian-based systems
@vanyasem What I mean is, we can't straight up replace them, and depending on what the usage is, there's probably a far better thing to do. Running uname -m
and then replacing with the correct values seems wrong, especially if it's something we'd have to copy around to multiple trees.
@dobey you're welcome to suggest a better solution. In any case, there is no solution implemented yet, and no PRs open
Ubuntu UI Toolkit has moved to https://gitlab.com/ubports/core/lomiri-ui-toolkit. If this issue is still relevant, please file it again at https://gitlab.com/ubports/core/lomiri-ui-toolkit/-/issues.
Some test like
tests/unit/runtest.sh
rundpkg-architecture
to determine host's architecture.That's not the best solution, as
dpkg-architecture
is Debian-specific, and not available on Arch GNU/Linux, for example.A possible solution would be to replace
dpkg-architecture
withuname -m
.