Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 881653 - media-gfx/freecad (and dependencies): arm64 keywording
Summary: media-gfx/freecad (and dependencies): arm64 keywording
Status: IN_PROGRESS
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Keywording (show other bugs)
Hardware: ARM64 Linux
: Normal minor (vote)
Assignee: Paul Zander
URL:
Whiteboard:
Keywords: CC-ARCHES, KEYWORDREQ, PullRequest
Depends on: 780666
Blocks:
  Show dependency tree
 
Reported: 2022-11-17 13:48 UTC by Niklaus 'vimja' Hofer
Modified: 2024-03-22 23:52 UTC (History)
9 users (show)

See Also:
Package list:
sci-libs/med ~arm64 media-libs/quarter ~arm64 sci-libs/orocos_kdl ~arm64 dev-python/pivy ~arm64 dev-libs/OpenNI2 ~arm64 media-gfx/freecad ~arm64 media-libs/SoQt ~arm64 sci-libs/pcl ~arm64 dev-libs/OpenNI ~arm64 media-gfx/openscad ~arm64 media-gfx/netgen ~arm64
Runtime testing required: ---
nattka: sanity-check-


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Niklaus 'vimja' Hofer 2022-11-17 13:48:07 UTC
I have successfully built and run media-gfx/freecad on arm64, specifically version 0.20.1. I think the ebuild should support arm64 officially.

Note however, that for that purpose, I had to build OpenNI2 from an alternative source that includes patches for arm64. Basically I used the same source as is used on Debian. I have opened a bug on that here: https://bugs.gentoo.org/780666

Here is the list of rules I added to accept_keywords:
sci-libs/med **
media-libs/quarter **
sci-libs/orocos_kdl **
dev-python/pivy **
media-gfx/freecad **


Reproducible: Always

Steps to Reproduce:
1. Add ** keyword (see above)
2. emerge www-apps/hugo
3. Run hugo

Actual Results:  
It works!

Expected Results:  
It works!
Comment 1 NATTkA bot gentoo-dev 2022-11-17 13:56:15 UTC Comment hidden (obsolete)
Comment 2 Bernd 2022-11-18 10:02:15 UTC
I like the idea, although I'm not having a arm64 based machine. I think it should be doable, as upstream officially supports OSX builds and I remember some posts about building on the new arm64 based Apple architectures (M 1?) on their forums.

If there are no objections from the arm64 arch team, I'd say let's give it a try.
Comment 3 NATTkA bot gentoo-dev 2022-11-18 10:04:15 UTC Comment hidden (obsolete)
Comment 4 NATTkA bot gentoo-dev 2022-11-18 10:16:15 UTC Comment hidden (obsolete)
Comment 5 Bernd 2022-11-18 11:35:31 UTC
CC maintainers of dependent packages
Comment 6 Niklaus 'vimja' Hofer 2022-11-18 16:04:54 UTC
In the "steps to reproduce" section, of course, it should not say "www-apps/hugo" but "media-gfx/freecad". Copy & paste error. Sorry about that.
Comment 7 Roy Bamford gentoo-dev 2022-11-19 11:57:30 UTC
Portage won't let me build both dev-libs/OpenNI2 and dev-libs/OpenNI, so I've opted for dev-libs/OpenNI2. 

Meanwhile I've found bug 881995 so  media-gfx/openscad won't build for me.
Comment 8 Bernd 2022-11-19 12:07:59 UTC
(In reply to Roy Bamford from comment #7)
> Portage won't let me build both dev-libs/OpenNI2 and dev-libs/OpenNI, so
> I've opted for dev-libs/OpenNI2. 

sci-libs/pcl has USE flags for openni2 and openni, but AFAIR they can't be used together. To be able to successfully keyword pcl, I think we still need to keyword both packages.
Comment 9 Roy Bamford gentoo-dev 2022-11-19 19:01:43 UTC
There are two patches in my devspace at  https://dev.gentoo.org/~neddyseagoon/OpenNI2/ that apply to dev-libs/OpenNI2-2.2_beta2-r1 and let it build an arm64.

Its the head commit from aarch64-and-ppc-develop with one hunk removed and recreated separately because the code had been refactored.

They apply from /etc/portage/patches/dev-libs/OpenNI2/ for me.

Oh, I'm not an ebuild qualified dev. Only a forums admin.
Comment 10 Roy Bamford gentoo-dev 2022-11-19 20:47:33 UTC
(In reply to Bernd from comment #8)
> (In reply to Roy Bamford from comment #7)
> > Portage won't let me build both dev-libs/OpenNI2 and dev-libs/OpenNI, so
> > I've opted for dev-libs/OpenNI2. 
> 
> sci-libs/pcl has USE flags for openni2 and openni, but AFAIR they can't be
> used together. To be able to successfully keyword pcl, I think we still need
> to keyword both packages.

dev-libs/OpenNI2 needs patches to build on arm64.
sci-libs/pcl will need a package.use.mask on openni, so that it cannot be selected.
media-gfx/freecad will need a package.use.mask on openscad see comment 7.

All this means that media-gfx/freecad looks promising for ~arm64.
Comment 11 Roy Bamford gentoo-dev 2022-11-22 21:17:55 UTC
With bug 881995 fixed, the PR needs to be updated.
I should get to that by the weekend.
Comment 12 Bernd 2022-12-17 01:52:21 UTC
*** Bug 886101 has been marked as a duplicate of this bug. ***
Comment 13 Bernd 2022-12-18 01:23:00 UTC
*** Bug 886101 has been marked as a duplicate of this bug. ***
Comment 14 Roy Bamford gentoo-dev 2022-12-22 21:53:27 UTC
Its now PR 28768
Comment 15 NATTkA bot gentoo-dev 2023-02-23 11:28:43 UTC Comment hidden (obsolete)
Comment 16 NATTkA bot gentoo-dev 2023-02-23 11:36:27 UTC Comment hidden (obsolete)
Comment 17 NATTkA bot gentoo-dev 2024-03-09 10:20:49 UTC Comment hidden (obsolete)
Comment 18 NATTkA bot gentoo-dev 2024-03-21 23:44:42 UTC Comment hidden (obsolete)
Comment 19 NATTkA bot gentoo-dev 2024-03-22 23:52:43 UTC
Sanity check failed:

> media-gfx/freecad-0.21.2-r2
>   depend ~arm64 stable profile default/linux/arm64/23.0 (12 total)
>     dev-python/pyside6[gui,python_targets_python3_10(-),svg,webchannel,webengine]
>     dev-python/pyside6[gui,python_targets_python3_11(-),svg,webchannel,webengine]
>     dev-python/shiboken6[python_targets_python3_10(-)]
>     dev-python/shiboken6[python_targets_python3_11(-)]
>   depend ~arm64 dev profile default/linux/arm64/23.0/hardened (10 total)
>     dev-python/pyside6[gui,python_targets_python3_10(-),svg,webchannel,webengine]
>     dev-python/pyside6[gui,python_targets_python3_11(-),svg,webchannel,webengine]
>     dev-python/shiboken6[python_targets_python3_10(-)]
>     dev-python/shiboken6[python_targets_python3_11(-)]
>   rdepend ~arm64 stable profile default/linux/arm64/23.0 (12 total)
>     dev-python/pyside6[gui,python_targets_python3_10(-),svg,webchannel,webengine]
>     dev-python/pyside6[gui,python_targets_python3_11(-),svg,webchannel,webengine]
>     dev-python/shiboken6[python_targets_python3_10(-)]
>     dev-python/shiboken6[python_targets_python3_11(-)]
>   rdepend ~arm64 dev profile default/linux/arm64/23.0/hardened (10 total)
>     dev-python/pyside6[gui,python_targets_python3_10(-),svg,webchannel,webengine]
>     dev-python/pyside6[gui,python_targets_python3_11(-),svg,webchannel,webengine]
>     dev-python/shiboken6[python_targets_python3_10(-)]
>     dev-python/shiboken6[python_targets_python3_11(-)]