D10 provision needs packages10inc

Created on 8 December 2023, 7 months ago
Updated 12 February 2024, 5 months ago

Problem/Motivation

Unable to include file packages10inc or packagesinc from !path.
-
Unable to include the drupal engine packages from /var/aegir/.drush/commands/provision/platform/drupal.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

3.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States SocialNicheGuru

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @SocialNicheGuru
  • πŸ‡ΊπŸ‡ΈUnited States SocialNicheGuru
  • πŸ‡¨πŸ‡¦Canada llamech

    In validating @steven-jones's recent work on https://www.drupal.org/project/hosting_deploy/issues/3420075 πŸ› Default value of field is incorrect Fixed , we found that all we had to do was symlink `/var/aegir/.drush/provision/platform/drupal/packages_10.inc` to `/var/aegir/.drush/provision/platform/drupal/packages_9.inc` -- presumably that's not the correct long term solution, but with that, I was able to verify a D10 platform.

  • πŸ‡ΊπŸ‡ΈUnited States SocialNicheGuru

    @llamech was the site able to run?

    I am not sure how to have duel php versions available
    php7.4 for Drupal 7, and php8.16+ for D10. Do you?

  • πŸ‡¦πŸ‡ΊAustralia ac Perth

    Here is a basic patch to give you the files you need for d10

  • πŸ‡¦πŸ‡ΊAustralia ac Perth

    To switch PHP versions for different platforms we use hook_provision_apache_vhost_config in /var/aegir/.drush/modvhost.drush.inc

    Our default version of php for the server is 8.1 so this only uses 7.4 if the platform name starts with hostmaster or php7

    <?php
    function modvhost_provision_apache_vhost_config($uri, $data) {
      $query = '@platform_php7';
      $hostmaster = '@platform_hostmaster';
      if ((substr(d()->platform->name, 0, strlen($query)) === $query) || (substr(d()->platform->name, 0, strlen($hostmaster)) === $hostmaster)) {
        return array('Include /etc/apache2/conf-available/php7.4-fpm.conf');
      } else {
        return array('Include /etc/apache2/conf-available/php8.1-fpm.conf');
      }
    }
    
  • πŸ‡ΊπŸ‡ΈUnited States SocialNicheGuru

    is there a similar one for nginx?

  • πŸ‡¦πŸ‡ΊAustralia ac Perth

    I believe so.

  • πŸ‡¨πŸ‡¦Canada llamech

    @SocialNicheGuru This is with Aegir 3 installed via our Ansible playbook from head on the 7.x-3.x branch, with PHP 8.2. With @steven-jones's fix for πŸ› Default value of field is incorrect Fixed , I'm able to create and verify a D10 platform. However I can't install a site due to drush 12's enforced promiscuity, as @colan's "require-dev" trick from πŸ› Aegir 3 is incompatible with Drush 9+ Active no longer appears to work. If I find a way to get past that (or if Steven Jones does, as that seems to be his goal), then maybe this issue can be resolved by either the symlink trick I described above or by copying the contents of packages_9.inc holus bolus into a new packages_10.inc.

  • πŸ‡ΊπŸ‡ΈUnited States SocialNicheGuru

    In my composer post-install I rm -rf vendor/drush relying on the global drush only.
    Would that work for you?

  • πŸ‡¨πŸ‡¦Canada llamech

    If I downgrade to PHP 8.1 the "require dev" trick works. However I run into a Symfony problem which I believe Steven Jones has a solution for -- awaiting his next blog post!

Production build 0.69.0 2024