Differences between revisions 3 and 5 (spanning 2 versions)
Revision 3 as of 2020-09-16 20:21:39
Size: 1634
Editor: msapiro
Comment: Added more detail.
Revision 5 as of 2020-09-17 03:53:04
Size: 1694
Editor: msapiro
Comment: typo
Deletions are marked like this. Additions are marked like this.
Line 4: Line 4:
[[https://wiki.list.org/DOC/RHEL%20file%20changes%20after%20version%202.1.5-20|This article]] discusses !RedHat's changes to Mailman to make it conformant with FHS. It includes information about where various files have been relocated to and links to a `Mailman-Developers@python.org` post that discusses the motivations for this and contains a patch to implement the changes. Unfortunately, the patch is against a very old base, and detailed instructions are lacking. This article is an attempt to remedy that. [[https://wiki.list.org/DOC/RHEL%20file%20changes%20after%20version%202.1.5-20|Another article]] discusses !RedHat's changes to Mailman to make it conformant with FHS. It includes information about where various files have been relocated to and links to a `Mailman-Developers@python.org` post that discusses the motivations for this and contains a patch to implement the changes. Unfortunately, the patch is against a very old base, and detailed instructions are lacking. This article is an attempt to remedy that.
Line 9: Line 9:
 1. Download and unpack the 2.1.34+ tarball into a directory, or get it with `bzr branch lp:mailman`.
 1. Download the above patch.
 1. In the download directory, apply the patch with `patch -p0 </path/to/
mailman-FHS.patch`.
 1. Download and unpack the 2.1.34+ tarball into a directory, or get it with
 {{{
 
bzr branch lp:mailman
 }}}

 1. Download the [[attachment:mailman-FHS.patch|patch|&do=get]].
 1. In the download directory, apply the patch with
 {{{
 patch -p0 </path/to/mailman-FHS.patch
 }}}
Line 21: Line 27:
The above steps should configure Mailman so that `make` and `sudo make install` will install everything in rhe RHEL FHS locations The above steps should configure Mailman so that `make` and `sudo make install` will install everything in the RHEL FHS locations

How do I upgrade a RHEL/CentOS Mailman package from source.

At the moment this is a work in progress. If you try this and have issues, follow-up on the mailman-users@python.org list https://mail.python.org/mailman3/lists/mailman-users.python.org/.

Another article discusses RedHat's changes to Mailman to make it conformant with FHS. It includes information about where various files have been relocated to and links to a Mailman-Developers@python.org post that discusses the motivations for this and contains a patch to implement the changes. Unfortunately, the patch is against a very old base, and detailed instructions are lacking. This article is an attempt to remedy that.

The RHEL patch, updated for MM 2.1.34+ is here.

To actually do the upgrade, several steps are required.

  1. Download and unpack the 2.1.34+ tarball into a directory, or get it with
     bzr branch lp:mailman
  2. Download the patch.

  3. In the download directory, apply the patch with
     patch -p0 </path/to/mailman-FHS.patch
  4. Run ./configure. At a minimum, this will require the following options:

    • --with-pid-dir=/var/run/mailman/
    • --with-config-dir=/etc/mailman/
    • --with-lock-dir=/var/lock/mailman/
    • --with-queue-dir=/var/spool/mailman/
    • --with-log-dir=/var/log/mailman/
    • --prefix=/usr/lib/mailman/
    • --with-var-prefix=/var/lib/mailman/

The above steps should configure Mailman so that make and sudo make install will install everything in the RHEL FHS locations

MailmanWiki: DOC/How do I upgrade a RHEL/CentOS Mailman package from source. (last edited 2020-09-18 16:44:23 by msapiro)