You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Support Rocky and AlmaLinux in MythTV configure script
The MythTV script has a check for centos for the libbluray dependency due to "issues" with the library and development headers (see trac ticket 13520 for a bit of the background).
To support building on Rocky and AlmaLinux the configure script needs to add tests for those EL clones in addition to CentOS.
Rocky and AlmaLinux also changed the /etc/os-release VERSION_ID value from the base EL value of 8 to an 8.n value making it no longer an integer, so we extract the major version value for version test purposes.
Lightly tested (only for a test Rocky build in mock) patch is:
diff --git a/mythtv/configure b/mythtv/configure
index dad07b53a6..19f2a5c404 100755
--- a/mythtv/configure
+++ b/mythtv/configure
@@ -5948,8 +5948,8 @@ if enabled libbluray_external; then
# following case statement. This list should only
# shrink over time.
case $ID in
- centos)
- if test $VERSION_ID -gt 8; then
+ centos|rocky|almalinux)
+ if test ${VERSION_ID%\.*} -gt 8; then
die "ERROR: can not find libbluray."
fi
;;
The text was updated successfully, but these errors were encountered:
It was written against master (sorry, I should have stated that in the proposed patch), but eventually I would not be surprised if someone will want a backport for fixes/31.
Long(er) discussion follows:
However, it turns out to be even more complicated. Due to "issues" centos, which is el compatible, does not ship libbluray-devel even in the devel (bootroot) repo (there is a long history which comes down to libbluray should probably have not been shipped in el itself, but that ship sailed, and one cannot undo that). Neither does rocky, which is trying to follow the centos lead. However, almalinux does ship libbluray-devel in its devel (buildroot) repo even though neither el, centos, nor rocky does (which makes almalinux more like el8++, which is possibly going to be problematic at some future point). For compatibility across all el8 variants, I think that not failing if one builds on almalinux even if one did not install the libbluray-devel there (and if one took the existing ansible scripts and replaced rocky with almalinux, you would not install libbluray-devel), is the appropriate choice, so the code should probably continue to include the almalinux test (although removing almalinux from the case is arguably also correct).
Note that my test mock build with almalinux fails due to a modularity install artifact (which I think is upstream, but I have not bothered to dig into it (modularity is a great idea in theory, until you have to actually deal with some of the actual results), which is why the patch was only successfully tested with rocky).
And, of course, since, in theory, el8 (and derivatives) should remain ABI compatible across its life, it should be possible to build in mock against centos-8 until eol and run on el8, centos-8, centos-stream-8, rocky-8, and almalinux-8. Maybe.
Support Rocky and AlmaLinux in MythTV configure script
The MythTV script has a check for centos for the libbluray dependency due to "issues" with the library and development headers (see trac ticket 13520 for a bit of the background).
To support building on Rocky and AlmaLinux the configure script needs to add tests for those EL clones in addition to CentOS.
Rocky and AlmaLinux also changed the /etc/os-release VERSION_ID value from the base EL value of 8 to an 8.n value making it no longer an integer, so we extract the major version value for version test purposes.
Lightly tested (only for a test Rocky build in mock) patch is:
The text was updated successfully, but these errors were encountered: