Repository navigation
add OpenModelica, a Modelica simulation environment (org.openmodelica.OpenModelica) - #808
Conversation
feat(openmodelica): add OpenModelica, a Modelica simulation environment (org.openmodelica.OpenModelica) Package the official stable 1.27.1 Trixie binaries from upstream's versioned release archive as extra-data. Include the offline Modelica library cache and the Debian runtime dependencies absent from KDE 6.11. OpenModelica generates and compiles native simulation code, so use the KDE SDK as the runtime. This keeps the required GCC toolchain inside the sandbox instead of depending on host commands.
|
Hi @rhgKc2yp, thanks for the PR, and sorry for leaving it without a reply for a few days. The delay came from What I'd suggest instead is a release repository, e.g.
References for this setup:
The package stays on Happy to help once the release repo is up. Ping here and I'll review the workflow and the reworked manifest. |
Replace the build-time Qt WebEngine BaseApp with a single versioned OMEdit release bundle containing the official OpenModelica binaries, runtime dependencies, and Qt WebEngine. Keep simulations on KDE SDK 6.11 and track dependency rebuilds through the release resolver. Reduce the stored Flatpak tree to approximately 172 KiB. Verified all 99 ELF dependencies, offline simulation, system-install extraction, and GUI startup with WebEngine sandboxing enabled
2f2afac to
e417a79
Compare
|
Hi @jing2uo , thanks for your reply and the explanation. I’ve released the release repository workflow and reworked the FlatPark package to use one extra-data archive, keeping org.kde.Sdk//6.11 as the runtime. The workflow verifies the Debian package hashes, pins the BaseApp commit, and includes source provenance. Local tests passed for all 99 shipped ELF files, an offline simulation, system-install extraction, and OMEdit startup with WebEngine sandboxing enabled. The stored Flatpak tree is now about 172 KiB. Please let me know if i've misunderstood anything. Thanks again for your guidance. |
The previous pin named v1.27.1-rd726246728a1dab8, a locally built archive that was never published (404). v1.27.1-rf73b8a535a8ca199 is the bundle the release workflow built and published from OMEdit-release 920ff27.
The bundle ships OMEdit, OMC and OMSimulator but not OMNotebook, and the desktop entry starts OMEdit, which can't open .onb notebooks.
|
Thanks for building the release repo, @rhgKc2yp. I reviewed Fixed on your branchTo save you another round, I made the remaining changes myself:
Suggestion for the release repo (not blocking)
Review table
Not covered: running the app. I relied on your testing record for that. |
|
Thanks so much, @jing2uo . I'll follow your suggestion. Sorry for leaving it without a reply for a few days. I’ve been busy over the last few days testing the newly released software and fixing a few bugs. |
What
OpenModelica is an open-source Modelica modeling and simulation environment for academic and industrial use. This package provides its OMEdit graphical interface, compiler, simulation libraries, and offline Modelica Standard Library cache.
This is an independent community package; upstream approval has not been obtained.
Packaging
One
extra-datadownload: a release bundle fromrhgKc2yp/OMEdit-release, pinned by URL, SHA-256 and size.apply_extraonly extracts it.The bundle is assembled by that repo's GitHub Actions workflow, which compiles and patches nothing:
.debpackages from upstream's versioned release archive;io.qt.qtwebengine.BaseApp//6.11Flathub commit.Every
.debis checked against itsPackagesSHA-256 and size. No Debian maintainer scripts run.SOURCESandSOURCES.lock.jsonin the bundle record every input.Before publishing, the workflow runs a release gate inside
org.kde.Sdk//6.11:lddover every ELF,omc --version, and an offline headless simulation. The gate runs on the assembled tree and again after extracting the finished archive.No BaseApp is copied into our ref. The stored Flatpak tree holds only the wrapper, desktop file, metainfo and icon.
Runtime is
org.kde.Sdk//6.11, because simulations generate and compile native code. GCC, binutils, Make and headers stay inside the sandbox. The bundle'sclang/clang++launchers call the SDK's GCC, because the Debian build defaults to clang.resolve-update.shfollows the release repo's latest release. The repo rebuilds when upstream, Debian packages, the BaseApp or the SDK change.Sandbox
Granted:
--persist=.openmodelicafor downloaded Modelica libraries and package-manager data.Not granted:
homeorhostfilesystem access.Files outside the sandbox can be opened and saved through the desktop file chooser.
Tested
On the release bundle:
omcreports 1.27.1, and a headless simulation finishes. It passed both on the assembled tree and after extracting the archive.On the earlier per-package layout, with the same upstream binaries and runtime:
OMEditmatchesStartupWMClass.~/.openmodelicacreated on the host.Testing covered x86_64. Advanced workflows such as FMI import/export, debugging, and visualization were not exercised.
Flathub
No existing Flathub application was found under
org.openmodelica.OpenModelica.Assisted by Codex
Thank you for creating Flatpark.