Problem/Motivation

Imagine creating a distro that supports two different types of sites: a blog style site and a news style site. Now imagine that you create a custom commenting module for this distro that is appropriate for both. Where should this module live? It can live in sites/all, but best practices say this should live in the profiles/my_profile/modules folder since you want the module to remain pristine and only be updated during a profile update. Right now, because there are two profile folders in my example, you need to have two copies of the custom commenting module or you need to create a shared folder somewhere and symlink to it.

Niether is ideal.

UPDATE: it turns out that if you use a symlink and put modules in some other location, that their simpletests will not run. This patch solves that issue as well...

Proposed resolution

Simply by adding one line to drupal_system_listing() function this can be accomplished.

Remaining tasks

Needs discussion, review, & documentation

CommentFileSizeAuthor
#1 1617860_d7-do-not-test.patch1.36 KBbleen
profiles-all.patch1.71 KBbleen

Comments

bleen’s picture

StatusFileSize
new1.36 KB

This is a D7 backport of the origin patch

attiks’s picture

Status: Needs review » Reviewed & tested by the community

It's working for me, I assume there's no easy way to let testbot test this? If there is, maybe add a test to be sure.

bleen’s picture

Issue tags: +Needs backport to D7

re: #2 ... I couldn't think of a way.

I hope I'm not stretching it with a D7 backport, but I cant see the possible harm... and I really want a backport :)

attiks’s picture

@bleen18, same here D7 would be awesome.

tstoeckler’s picture

Status: Reviewed & tested by the community » Needs review

I don't think this should be committed as is, so marking back to "needs review".
I think we should go ahead with #562042: Search for install profiles in sites/[all|site]/profiles folders, and move core profiles into /core/profiles first. This issue should be updated in light of that.
We will have a sites/all/profiles folder, but I don't know how that works with profile-specific modules.

David_Rothstein’s picture

This looks like a duplicate of #295434: Support contrib being placed in profiles/all, except that was already marked "won't fix" in favor of #562042: Search for install profiles in sites/[all|site]/profiles folders, and move core profiles into /core/profiles....

So yeah, this is a confusing set of issues :)

patcon’s picture

Might a base inheritable install profile be a possible alternative?
#1356276: Allow profiles to define a base/parent profile

bleen’s picture

Status: Needs review » Postponed

Re #6: I think this is the identical solution proposed in #295434: Support contrib being placed in profiles/all but for a different reason.

Re #7: I think #1356276: Allow profiles to define a base/parent profile looks to be a solid alternative to the approach in this issue.

So.... given the other issues mentioned in 5, 6, & 7 I'm going to mark this as postponed to see if one of those issues (or a combination of them) ends up solving the problem outlined here.

tstoeckler’s picture

Yes postponed sounds great. I had not thought of the relation to #1356276: Allow profiles to define a base/parent profile, but with that and #562042: Search for install profiles in sites/[all|site]/profiles folders, and move core profiles into /core/profiles, I tend to think this is a duplicate of the combination of those. Does not hurt to leave this at postponed for now, though, so we can revisit later.

sun’s picture

Title: We should have a /profiles/all folder for distributions that include multiple install profiles. » /profiles/all folder for distributions that include multiple install profiles
Component: base system » install system
Status: Postponed » Active
Issue tags: -Needs backport to D7 +Needs issue summary update

#562042: Search for install profiles in sites/[all|site]/profiles folders, and move core profiles into /core/profiles landed. :)

However, this issue is still highly confusing. I actually have no idea what it wants to change/propose. We badly need a proper issue summary here.

The revised issue summary should make sure to clarify crystal clearly how this proposal here relates to (or differs from) the following issues:
#562042: Search for install profiles in sites/[all|site]/profiles folders, and move core profiles into /core/profiles
#1356276: Allow profiles to define a base/parent profile
#295434: Support contrib being placed in profiles/all

Also, there's no way on earth this can be backported ;)

sun’s picture

Issue summary: View changes

Updated issue summary with note about symlinking causing problems with simpletests

Version: 8.0.x-dev » 8.1.x-dev

Drupal 8.0.6 was released on April 6 and is the final bugfix release for the Drupal 8.0.x series. Drupal 8.0.x will not receive any further development aside from security fixes. Drupal 8.1.0-rc1 is now available and sites should prepare to update to 8.1.0.

Bug reports should be targeted against the 8.1.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.2.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.1.x-dev » 8.2.x-dev

Drupal 8.1.9 was released on September 7 and is the final bugfix release for the Drupal 8.1.x series. Drupal 8.1.x will not receive any further development aside from security fixes. Drupal 8.2.0-rc1 is now available and sites should prepare to upgrade to 8.2.0.

Bug reports should be targeted against the 8.2.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.3.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.2.x-dev » 8.3.x-dev

Drupal 8.2.6 was released on February 1, 2017 and is the final full bugfix release for the Drupal 8.2.x series. Drupal 8.2.x will not receive any further development aside from critical and security fixes. Sites should prepare to update to 8.3.0 on April 5, 2017. (Drupal 8.3.0-alpha1 is available for testing.)

Bug reports should be targeted against the 8.3.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.4.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.3.x-dev » 8.4.x-dev

Drupal 8.3.6 was released on August 2, 2017 and is the final full bugfix release for the Drupal 8.3.x series. Drupal 8.3.x will not receive any further development aside from critical and security fixes. Sites should prepare to update to 8.4.0 on October 4, 2017. (Drupal 8.4.0-alpha1 is available for testing.)

Bug reports should be targeted against the 8.4.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.5.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.4.x-dev » 8.5.x-dev

Drupal 8.4.4 was released on January 3, 2018 and is the final full bugfix release for the Drupal 8.4.x series. Drupal 8.4.x will not receive any further development aside from critical and security fixes. Sites should prepare to update to 8.5.0 on March 7, 2018. (Drupal 8.5.0-alpha1 is available for testing.)

Bug reports should be targeted against the 8.5.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.6.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.5.x-dev » 8.6.x-dev

Drupal 8.5.6 was released on August 1, 2018 and is the final bugfix release for the Drupal 8.5.x series. Drupal 8.5.x will not receive any further development aside from security fixes. Sites should prepare to update to 8.6.0 on September 5, 2018. (Drupal 8.6.0-rc1 is available for testing.)

Bug reports should be targeted against the 8.6.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.7.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.6.x-dev » 8.8.x-dev

Drupal 8.6.x will not receive any further development aside from security fixes. Bug reports should be targeted against the 8.8.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.9.x-dev branch. For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

Version: 8.8.x-dev » 8.9.x-dev

Drupal 8.8.7 was released on June 3, 2020 and is the final full bugfix release for the Drupal 8.8.x series. Drupal 8.8.x will not receive any further development aside from security fixes. Sites should prepare to update to Drupal 8.9.0 or Drupal 9.0.0 for ongoing support.

Bug reports should be targeted against the 8.9.x-dev branch from now on, and new development or disruptive changes should be targeted against the 9.1.x-dev branch. For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

Version: 8.9.x-dev » 9.2.x-dev

Drupal 8 is end-of-life as of November 17, 2021. There will not be further changes made to Drupal 8. Bugfixes are now made to the 9.3.x and higher branches only. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 9.2.x-dev » 9.3.x-dev

Version: 9.3.x-dev » 9.4.x-dev

Drupal 9.3.15 was released on June 1st, 2022 and is the final full bugfix release for the Drupal 9.3.x series. Drupal 9.3.x will not receive any further development aside from security fixes. Drupal 9 bug reports should be targeted for the 9.4.x-dev branch from now on, and new development or disruptive changes should be targeted for the 9.5.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 9.4.x-dev » 9.5.x-dev

Drupal 9.4.9 was released on December 7, 2022 and is the final full bugfix release for the Drupal 9.4.x series. Drupal 9.4.x will not receive any further development aside from security fixes. Drupal 9 bug reports should be targeted for the 9.5.x-dev branch from now on, and new development or disruptive changes should be targeted for the 10.1.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

smustgrave’s picture

Issue summary: View changes
Status: Active » Closed (duplicate)

Brought this up in #yes-no-queue in slack. And @catch brought up

think this can probably be marked duplicate of recipes. The custom commenting module would be a recipe probably.

So going to do that but if not the same please reopen updating issue summary with how this is unique.

Thanks!