more robust: ensure that Nginx is not superseded by implicit Apache dependencies (Ubuntu 24.04);
authorwenzelm
Sun, 05 Jan 2025 15:04:42 +0100
changeset 81727 4ab59fef89ea
parent 81726 27ba0fed2071
child 81728 6e25f82056ad
more robust: ensure that Nginx is not superseded by implicit Apache dependencies (Ubuntu 24.04);
src/Pure/Tools/phabricator.scala
--- a/src/Pure/Tools/phabricator.scala	Sun Jan 05 13:24:17 2025 +0100
+++ b/src/Pure/Tools/phabricator.scala	Sun Jan 05 15:04:42 2025 +0100
@@ -42,13 +42,11 @@
       // mercurial build packages
       "make", "gcc", "gettext", "python3", "python3-dev", "python3-docutils", "python3-setuptools")
 
-  def packages(webserver: Webserver): List[String] = {
+  def system_packages(): List[String] = {
     val release = Linux.Release()
-    val pkgs =
-      if (release.is_ubuntu_22_04) packages_ubuntu_22_04
-      else if (release.is_ubuntu_24_04) packages_ubuntu_24_04
-      else error("Bad Linux version: expected Ubuntu 20.04 or 22.04 or 24.04 LTS")
-    pkgs ::: webserver.packages()
+    if (release.is_ubuntu_22_04) packages_ubuntu_22_04
+    else if (release.is_ubuntu_24_04) packages_ubuntu_24_04
+    else error("Bad Linux version: expected Ubuntu 20.04 or 22.04 or 24.04 LTS")
   }
 
 
@@ -372,7 +370,8 @@
       Linux.check_reboot_required()
     }
 
-    Linux.package_install(packages(webserver), progress = progress)
+    Linux.package_install(webserver.packages(), progress = progress)
+    Linux.package_install(system_packages(), progress = progress)
     Linux.check_reboot_required()