Skip to content

[dev] Staging of 1338 + 1341 + 1342#1343

Closed
gouttegd wants to merge 14 commits into
masterfrom
staging
Closed

[dev] Staging of 1338 + 1341 + 1342#1343
gouttegd wants to merge 14 commits into
masterfrom
staging

Conversation

@gouttegd

@gouttegd gouttegd commented May 4, 2026

Copy link
Copy Markdown
Contributor

/!\ Do not merge, for development purpose only!

This PR combines the following three ongoing PRs:

into a single branch, for easier testing. Those PRs are all independent of each other but they do overlap (especially regarding Python constraints).

A build of ODKFull from that branch has been tested to successfully build

  • Uberon;
  • CL;
  • DPO;
  • and FBbi.

gouttegd and others added 14 commits April 28, 2026 23:31
Use the new Ubuntu 26.04 as the base image for:

* computing the new Python constraints;
* building the `builder` image;
* building the `odklite` image.
One of the things the update-constraints.sh script must do is to get a
list of the Python packages that are installed as *Debian packages*
(i.e. installed via `apt-get` rather than via `pip`).

For now this is done by `find`ing and `grep`ing the contents of the
Python dist-packages directory, but we can instead just use `pip` to do
that. Much easier and much less prone to errors.
With Ubuntu 26.04, we must explicitly install `python-setuptools` (which
is deprecated and therefore no longer automatically installed, but some
of the packages we are dependent on still need it).

We must also explicitly install `typing-extensions` in ODKLite, because
it is installed in ODKBuild (and therefore _not_ installed when we
install all our Python packages).
The x86_64 version of Konclude has a runtime dependency on libpcre3,
which is no longer provided by Ubuntu 26.04. We circumvent the issue by
using the "Docker build" of Konclude 0.7.0-1138, which is statically
linked against the library so that we don't need the shared library at
runtime.

The arm64 version is not affected, because it was not built against
libpcre3 to begin with.
ODK versions up to 1.6 had included two small helper scripts:

* check-rdfxml, to check RDF/XML artefacts for correctness;
* context2csv, to convert a JSON-based context file to a CSV file.

In ODK 1.7, as part of the migration to the ODK-Core system, those
scripts were consolidated into a single `odk-helper` script. Makefiles
generated with ODK 1.7 will automatically call this new `odk-helper`
script.

But of course, Makefiles that were generated with a pre-1.7 ODK will
still attempt to call the original individual scripts. To make sure that
standard workflows from a pre-1.7 ODK instance can still be run with a
ODK 1.7 image, we must provide wrapper scripts, which is what we do
here.

closes #1339
Another thing that has changed with the switch to ODK-Core is the
location of:

* the ROBOT plugins (from /tools/robot-plugins to
  /odk/resources/robot/plugins);
* the templates (from /tools/templates to within the ODK-Core Python
  package).

In 1.7-generated Makefiles, we have explicit variables to refer to these
locations, but in pre-1.7 Makefiles, they were hardcoded. So to allow
pre-1.7 repositories to keep working with a ODK 1.7 image prior to being
updated, we need symlinks linking the old locations to the new ones.
We do _not_ to `exec` the odk-helper script here, because we need the
final `rm` command to be executed once the script has finished.
ODK-Core now depends specifically on linkml >= 1.10.0, so we need to
recompute the Python constraints.
@gouttegd gouttegd self-assigned this May 4, 2026
@gouttegd

gouttegd commented May 4, 2026

Copy link
Copy Markdown
Contributor Author

@matentzn This is primarily intended for you, in case you want to actually test the changes in the mentioned PRs, instead of simply reviewing them. :)

@gouttegd

gouttegd commented May 6, 2026

Copy link
Copy Markdown
Contributor Author

No longer needed now that #1341 and #1342 have been merged.

@gouttegd gouttegd closed this May 6, 2026
@gouttegd gouttegd deleted the staging branch May 6, 2026 14:19
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.

1 participant