Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 780666 - dev-libs/OpenNI2 Add ARM64 patches
Summary: dev-libs/OpenNI2 Add ARM64 patches
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: ARM64 Linux
: Normal enhancement (vote)
Assignee: Alexis Ballier
Keywords: PATCH, PullRequest
Depends on:
Blocks: 881653
  Show dependency tree
Reported: 2021-04-06 20:55 UTC by Niklaus 'vimja' Hofer
Modified: 2022-12-22 21:56 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Niklaus 'vimja' Hofer 2021-04-06 20:55:08 UTC
The latest upstream release of dev-libs/OpenNI2 does not include support for arm64. Neither does the upstream repository at

However, patches to add support for arm64 have been available for a while. Other distributions have since created their own releases of OpenNI2 that appear to include a multitude of patches that have been submitted, but never accepted, to the upstream repository.

Simply by modifying the -9999 ebuild and switching the source to the "aarch64-and-ppc-develop" branch of, I was able to build the library on arm64 and use it to build and run OpenSCAD.

It would be great if the patches could either be included in the ebuild, or the -9999 ebuild be switched over to a fork that is not quite so abandoned.
Comment 1 Roy Bamford gentoo-dev 2022-11-19 20:11:29 UTC
Using the HEAD commit from the "aarch64-and-ppc-develop" branch of, removing one hunk and and turning it into a separate patch as the codebase has been refactored, allows  dev-libs/OpenNI2-2.2_beta2-r1 to build on arm64.

It may build on PPC too as the patches address both. I can't test that.

The patches are in my devspace at
Comment 2 Niklaus 'vimja' Hofer 2022-11-22 12:41:12 UTC
I can confirm that adding Roy's patches to the 2.2_beta2 ebuild enables me to build the package on ARM64.