Bug 2038302 - When updating to the latest wordpress in rawhide there is a conflict with php-phpmailer6
Summary: When updating to the latest wordpress in rawhide there is a conflict with php...
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: wordpress
Version: 36
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Remi Collet
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On: 1835424
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-01-07 18:19 UTC by stan
Modified: 2022-06-22 20:35 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug


Attachments (Terms of Use)

Description stan 2022-01-07 18:19:30 UTC
Description of problem: Subject says it.  There is a file conflict between wordpress and php-phpmailer in rawhide when trying to update wordpress.


Version-Release number of selected component (if applicable):
wordpress-5.8.2-2.fc36.noarch

How reproducible:
Every time.

Steps to Reproduce:
1.  Have rawhide with php-phpmailer and wordpress 5.8.2.1 installed
2.  Run a dnf update
3.

Actual results:
Error: Transaction test error:
  file /usr/share/wordpress/wp-includes/PHPMailer/Exception.php from install of wordpress-5.8.2-2.fc36.noarch conflicts with file from package php-phpmailer6-6.5.3-1.fc36.noarch
  file /usr/share/wordpress/wp-includes/PHPMailer/PHPMailer.php from install of wordpress-5.8.2-2.fc36.noarch conflicts with file from package php-phpmailer6-6.5.3-1.fc36.noarch
  file /usr/share/wordpress/wp-includes/PHPMailer/SMTP.php from install of wordpress-5.8.2-2.fc36.noarch conflicts with file from package php-phpmailer6-6.5.3-1.fc36.noarch


Expected results:
wordpress updates to latest version

Additional info:

Comment 1 Remi Collet 2022-01-08 07:26:18 UTC
Known dnf issue, see https://pagure.io/packaging-committee/issue/1139 and bug #1835424

Workaround, before the update:

rm /usr/share/wordpress/wp-includes/PHPMailer

Comment 2 stan 2022-01-10 15:33:48 UTC
That worked. Thanks!

Comment 3 Ben Cotton 2022-02-08 21:13:42 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 36 development cycle.
Changing version to 36.

Comment 4 Eugene A. Pivnev 2022-05-27 19:03:54 UTC
Same during upgrading F35 to F36

Comment 5 Greg Scott 2022-06-18 22:55:54 UTC
A variation on the same theme. I just tried an in-place upgrade from f35 to f36 with Wordpress 5.9 to Wordpress 6.0.1.

[root@www ~]# dnf system-upgrade download --refresh --releasever=36
.
. (lots of output)
.
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing 'dnf clean packages'.
Error: Transaction test error:
  file /usr/share/php/PHPMailer/PHPMailer6/PHPMailer.php conflicts between attempted installs of php-phpmailer6-6.6.0-1.fc36.noarch and wordpress-6.0-1.fc36.noarch

[root@www ~]#

The workaround from comment 1 above,
rm /usr/share/wordpress/wp-includes/PHPMailer

worked.

Looks like Wordpress 6.0.1 has its own copy of /usr/share/wordpress/wp-includes/PHPmailer/ instead of a symlink to /usr/share/php/PHPMailer/PHPMailer6/.


Note You need to log in before you can comment on or make changes to this bug.