Skip to content

feat(gmsh): add gmsh (info.gmsh.gmsh) - #835

Merged
jing2uo merged 1 commit into
flatpark:mainfrom
rhgKc2yp:add/info.gmsh.gmsh
Oct 25, 2026
Merged

jing2uo merged 1 commit into
flatpark:mainfrom
rhgKc2yp:add/info.gmsh.gmsh

Conversation

@rhgKc2yp

Copy link
Copy Markdown
Contributor

What

Adds Gmsh 4.15.2, a finite element mesh generator with geometry and
post-processing tools, using upstream's AppStream ID info.gmsh.gmsh.

Packaging

  • Downloads the official x86_64 Linux tarball from gmsh.info
    as extra-data at install time, pinned by SHA-256 and size. Upstream files run unmodified.
  • Uses org.freedesktop.Platform 26.08, with Mesa GLU supplied as a separate
    Debian trixie extra-data download in a managed Debian pin block.
  • Sets Gmsh's documented GMSH_HOME to its persistent XDG config directory
    and adds the GLU directory to the library search path.
  • Uses upstream's icon and screenshots. The resolver follows stable releases
    on the official download page, excluding snapshots and SDK archives.

Sandbox

Grants X11 and IPC for FLTK, DRI for OpenGL, and Documents for opening and
saving models through the native file chooser. No high-risk permissions are granted.

The metainfo documents optional access to other model directories and networking
for remote ONELAB clients, with a reset command:

flatpak override --user --filesystem=/path/to/models info.gmsh.gmsh
flatpak override --user --share=network info.gmsh.gmsh
flatpak override --user --reset info.gmsh.gmsh

External solvers and text editors must be available inside the sandbox;
host-installed programs are unavailable.

Tested

Application tests used the package installed from a signed local repository.

  • Descriptor audit, AppStream/desktop validation, and all seven package links passed.

  • check-apply-extra.sh verified both pins and unpacked the downloads offline
    as root without capabilities. publish.sh --verify built, signed and installed
    the package, including the final build.

  • GUI rendering on private Xwayland; generated a 2D mesh from t1.geo, saved
    it in Documents, and reopened it through the native file chooser.

  • A saved preference survived quitting and restarting from an initially fresh
    profile. The measured window class matches StartupWMClass=FLTK.

  • Home, autostart and local application-directory listings were unchanged.
    Bus logging showed no filtered ownership requests. Tray/media checks are not applicable.

  • OpenCASCADE tutorial t16.geo generated and saved a 3D mesh with 3,133 nodes
    and 18,643 elements inside the sandbox.

  • Repository tests passed; five scripts skipped OSTree-dependent checks because
    the host lacks ostree. The real build/install and publish end-to-end fixture passed.

  • Live update resolution passed, including rejection of missing-release and SDK-only fixtures.

  • ONELAB TCP numeric and string parameter round trips passed between the installed
    Flatpak and a host client using the bundled official onelab.py, with the
    documented optional network permission enabled for that run.

  • Gmsh launched the official GetDP 3.5.0 solver through ONELAB using -run,
    solved the supplied magnetostatic example and loaded its results. The computed
    field was then reopened and rendered in the GUI. GetDP was supplied through
    a temporary read-only filesystem grant; it is not bundled with this package.

  • Geometry > Edit script launched the runtime nano editor with a test PTY helper;
    a model edit was saved and its complete contents verified.

  • A separately downloaded official Gmsh 4.15.2 SDK passed a Python API smoke test
    inside the same sandbox: generated a mesh with 98 nodes and 162 surface elements
    and saved it. The SDK is not included in this desktop package.

Remaining scope: ONELAB across separate machines or over SSH, other solvers and
editors, and SDK bindings other than Python were not tested.
Temporary test installations, profiles, model files and the private display were removed.

Flathub

Checks during packaging found no standalone Gmsh listing in Flathub's full
x86_64 AppStream catalog; its endpoint for info.gmsh.gmsh returned 404.
Searches found no earlier submission to flathub/flathub or issue/PR in
flatpark/flatpark. This is a user-requested community package; upstream
approval is not claimed.

Upstream approval is not claimed.

Prepared with OpenAI Codex.

Thanks.

@jing2uo

jing2uo commented Oct 25, 2026

Copy link
Copy Markdown
Collaborator

Thanks @rhgKc2yp. This one is clean, and I have only nits.

Nits (optional)

Review table

# Check Verdict Evidence
0 Static only ✅ Nothing executed
1.1/1.2 Scope ✅ New app dir only
2.1 Submitter ⚠️ Account created 2026-10-22, three FlatPark PRs
2.2 Source ✅ gmsh.info, the official site of a long-established upstream project
2.6 Tier 1 GPL-2.0-or-later
3.1 Sources ✅ Gmsh tgz and Debian libglu1-mesa are extra-data with sha256 and size. Debian pin in a managed block.
3.1b /app ✅ install of local files only
3.2 finish-args ✅ x11, ipc, dri, xdg-documents. Network and other directories are documented as opt-in.
3.4 apply_extra ✅ Unpacks the tarball and the deb's data.tar only. No maintainer scripts. Upstream tree unchanged. The wrapper sets GMSH_HOME and LD_LIBRARY_PATH for GLU (external adaptation).
3.6 app-id ✅ info.gmsh.gmsh, the upstream AppStream ID
3.7/4.2 Resolver ✅ Scrapes gmsh.info for exactly one "Current stable release", requires the matching bin/Linux/gmsh-<v>-Linux64.tgz href, prints JSON. Nothing is evaluated.
3.10 Testing record ✅ Detailed, with gaps stated
4.1/4.3 Runtime ✅ No fetching. onelab.py uses Unix/TCP sockets for ONELAB only.
5.1 sha256 ✅ Gmsh 6c62116e…4745 == pin. GLU a834280c…306b == pin == Debian trixie Packages entry for 9.0.2-1.1+b3.
5.2 Inspection ✅ tgz: 431 entries under one root, no setuid, traversal or symlinks. deb: libGLU.so.1.3.1 plus soname link and docs.
5.4 Official ✅ Re-fetched from gmsh.info and deb.debian.org
5.5 Runtime libs ✅ Against the local fd 26.08 runtime, gmsh NEEDED resolves except libGLU.so.1, which is exactly what the GLU pin supplies. libOpenGL.so.0 (GLU's dependency) is in the runtime.
5.6 IOC ✅ Clean. The only ELF's RPATH has upstream build-host leftovers (/petsc-3.14.4/…, /usr/local/lib), which can't be planted inside the sandbox, so this is benign.
6.1 Purpose ✅ FEM mesher
7.1 Verdict PASS

read-descriptor and audit-descriptor pass locally. CI hasn't run yet; it needs workflow approval.

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