Skip to content

feat(ingetrazo): add IngeTrazo 3D modeler (com.ingetrazo.IngeTrazo) - #581

Merged
jing2uo merged 2 commits into
flatpark:mainfrom
3ddruck12:add/com.ingetrazo.IngeTrazo
Oct 8, 2026
Merged

jing2uo merged 2 commits into
flatpark:mainfrom
3ddruck12:add/com.ingetrazo.IngeTrazo

Conversation

@3ddruck12

Copy link
Copy Markdown
Contributor

Adds IngeTrazo 0.5.7, a free 3D modeler for architecture and engineering.

Upstream already publishes an official Flatpak (com.ingetrazo.IngeTrazo), including a single-file .flatpak bundle on each GitHub release. That bundle has no update channel. This package exists so an install from FlatPark follows new releases: resolve-update.sh reads the official IngeTrazo-<version>-linux-x86_64.tar.gz from ingelibre/ingetrazo releases, and update-check can re-pin it.

Packaging

  • App id com.ingetrazo.IngeTrazo, the same id as upstream's own Flatpak.
  • Runtime org.freedesktop.Platform//26.08. The tarball is a self-contained PyInstaller tree (its own Python 3.12 and Qt 6). ldd inside that runtime reports no missing libraries.
  • extra-data is the official Linux tarball, unpacked unmodified with tar --no-same-owner. The archive is owned by uid 1001.
  • Not on Flathub (/api/v2/appstream/com.ingetrazo.IngeTrazo returns 404). GPL-3.0-or-later.

Sandbox

Granted: Wayland and X11 (the app restarts under xcb when Wayland EGL cannot create the desktop-GL context, so --socket=fallback-x11 would hide the socket it needs), dri, ipc, network (base-map tiles, elevation, geocoding), and xdg-documents, xdg-download, xdg-pictures.

Not granted, documented as flatpak override in the metainfo: home, removable media, the spacenav socket, CUPS, and --talk-name=org.freedesktop.Flatpak for launching a host Blender.

Verification

  • read-descriptor.mjs and audit-descriptor.mjs exit 0
  • appstreamcli compose printed Success during flatpak-builder
  • resolve-update.sh resolves 0.5.7 and the official tarball URL
  • scripts/check-apply-extra.sh — apply_extra OK as root with no capabilities
  • Installed with flatpak-builder --install, then flatpak run com.ingetrazo.IngeTrazo --check printed OK (shaders, translations, components, DWG converter, extensions)
  • GUI stayed open on this X11 session until killed after 15 seconds
  • Did not exercise modelling, sheet export, terrain download, or a .skp import

Made with Cursor

3ddruck and others added 2 commits October 8, 2026 10:36
Track the official Linux tarball so FlatPark can publish updates from
GitHub releases without rebuilding the app from source.

Co-authored-by: Cursor <[email protected]>
Render with Blender writes the job to the real ~/.cache/IngeTrazo/render
when running in a Flatpak (core/render_blender.py work_base()), so the
host Blender can read it. The talk-name alone leaves that path inside the
sandbox's private home.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@jing2uo

jing2uo commented Oct 8, 2026

Copy link
Copy Markdown
Collaborator

Thanks for this. I reviewed it statically per docs/pr-review.md: nothing from the PR or the tarball was run. Recommendation: PASS. I pushed one small metainfo fix to your branch (3358d85, see "Fix pushed"), and will merge once CI is green.

Checks performed

# Check Result Evidence
0 Static only ✅ Tarball downloaded as bytes into an isolated dir, listed before extracting, extracted with --no-same-owner --no-same-permissions. Nothing executed.
1.1 Scope ✅ New app: 9 files, all under registry/com.ingetrazo.IngeTrazo/
1.2 High-scrutiny surface ✅ No .github/, scripts/, config/ or existing-resolver edits. guard-infra passed. The resolver is part of the new app dir.
2.1 Submitter ✅ @3ddruck12: account from 2021-05, 32 public repos, Linux packaging PRs elsewhere (cline, linuxmint spices, flathub). First FlatPark PR.
2.2 Upstream repo ✅ ingelibre/ingetrazo: created 2026-06-06, 725★, 108 forks, GPL-3.0, active (last push 2026-10-01). ingetrazo.com links back to github.com/ingelibre/ingetrazo.
2.3 Commit identity ✅ c6d3984 is by 3ddruck <[email protected]>, a well-formed address
2.4 Timeline ✅ Upstream has had months of releases (v0.5.3 → v0.5.7). v0.5.7 is the current releases/latest.
2.5 Trust tier ✅ Unknown but plausible
2.6 Provenance tier ✅ Tier 2: official upstream prebuilt. The asset was uploaded by github-actions[bot] on upstream's release.
3.1 Pinning ✅ One extra-data source with sha256 + size 160169811. All other sources are local files.
3.1b Bytes in /app ✅ Only in-repo wrapper/desktop/metainfo/mime/icon are installed. The payload is extra-data.
3.2 finish-args ✅ wayland + x11, ipc, dri, network, xdg-documents/xdg-download/xdg-pictures. No escape permissions, no home. x11 (not fallback-x11) matches upstream's own manifest and their reason for it (GL fallback to xcb). This is narrower than upstream's own --filesystem=home.
3.3 policy: ✅ proprietary: false is correct (GPL-3.0-or-later). dangerous_permissions: [] is correct: the Flatpak talk-name appears only as a documented override.
3.4 build-commands ✅ Six install lines and nothing else. No patch, no sed on the payload.
3.5 Source URLs ✅ github.com/ingelibre/ingetrazo/releases/download/v0.5.7/…
3.6 App id ✅ com.ingetrazo.IngeTrazo is the id upstream uses in packaging/flatpak/com.ingetrazo.IngeTrazo.yml, and the vendor owns ingetrazo.com. Metainfo clearly labels this a community package.
3.7 update.command ✅ ./resolve-update.sh
3.8 Download host ✅ Upstream repo releases, not the submitter's account
3.9 Optional caps ⚠️ home, /run/media, spnav, CUPS and the Flatpak talk-name are documented as overrides. The Blender line was incomplete; fixed in 3358d85, see below.
3.10 Local test ✅ Build, install and --check were run, with the GUI kept open for 15 seconds. Untested areas are listed (modelling, sheet export, terrain, .skp).
4.1 Runtime fetch-and-exec ✅ None in the packaging. Notes on the app itself: (a) the opt-in AI assistant / MCP bridge execs model-written Python against the document (core/ai.py, run_transactional), and user plugins load from $XDG_DATA_HOME/ingetrazo/plugins. Both are app features the user turns on. Neither is a packaging mechanism, and the sandbox limits both.
4.2 Resolver as code ✅ curl of api.github.com/…/releases/latest and jq to select the linux-x86_64.tar.gz asset. It writes no files, has no eval, and contacts no other host.
4.3 Network × filesystem ✅ Network is used for tiles, DEM and geocoding, plus optional AI providers (Groq/OpenAI/Anthropic/Gemini/OpenRouter/DeepSeek, local Ollama) when the user configures a key. Filesystem is limited to three XDG dirs.
5.1 sha256 / size ✅ Re-downloaded: d3c6c894…94b3, 160169811 bytes. This matches the pin and GitHub's asset digest.
5.2 Archive listing ✅ 1080 entries: 933 files, 115 dirs, 32 symlinks, all under one top dir IngeTrazo-0.5.7/. No absolute paths, no .., no setuid/setgid. All 32 symlinks are _internal/lib*.so → PySide6/…, numpy.libs/… or shapely.libs/… and resolve inside the tree.
5.3 Tier 1 diff ➖ Tier 2
5.4 Artifact == official ✅ Same hash as the upstream asset. apply_extra.sh only untars, renames the top dir, checks that the launcher and _internal/ exist, and removes the archive. The shipped icon is byte-identical to the tarball's ingetrazo_256.png (4e281dbd…).
5.5 Bundled prebuilts ✅ A PyInstaller tree from upstream CI: Python 3.12, PySide6 6.11, numpy/shapely wheels, and bundled krb5/gssapi (which upstream's own manifest builds separately).
5.6 IOC scan ✅ No autostart/cron/.bashrc, miner, /dev/tcp or nc -e strings. The 274 ELFs are all PyInstaller payload. Some non-$ORIGIN RUNPATHs are build-host leftovers (/opt/hostedtoolcache/Python/3.12.14/x64/lib on libpython and lib-dynload; /tmp/tmpi6my9zi_/wheel/platlib/lib64 on manifold3d). These are upstream build leakage, not injection.
6.1 Purpose ✅ A 3D CAD/BIM modeler
6.2 License ✅ GPL-3.0-or-later

Fix pushed (3358d85)

The Blender override alone did not work. core/render_blender.py work_base() writes the render job to the real ~/.cache/IngeTrazo/render when it runs in a Flatpak, so that the host's (or Flathub's) Blender can read it. Without --filesystem=home, the sandbox has no view of that path. The metainfo override now also grants that directory:

flatpak override --user --talk-name=org.freedesktop.Flatpak --filesystem=~/.cache/IngeTrazo:create com.ingetrazo.IngeTrazo

Non-blocking notes

  • apply_extra.sh and the wrapper both read Exec= from the tarball's desktop file and accept an absolute path. That works, and the bytes are pinned, but a fixed ingetrazo/ingetrazo would be simpler, and update-check + the apply_extra gate would catch a rename anyway. Your call.
  • core/platform_choice.py reads ~/.config/monitors.xml / kwin config through Path.home(), which the sandbox can't see, so the automatic xcb choice for fractional scaling / KDE won't trigger. QT_QPA_PLATFORM via override still works. This is behaviour inside the app, not a packaging problem.

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