Closed Bug 1851352 Opened 1 year ago Closed 6 months ago

Missing dependencies: Email::Address

Categories

(Bugzilla :: Installation & Upgrading, defect)

defect

Tracking

()

RESOLVED FIXED
Bugzilla 4.4

People

(Reporter: justdave, Assigned: justdave)

References

Details

Attachments

(3 files, 2 obsolete files)

After checksetup.pl said all dependencies were resolved, my fresh install on a fresh server of Bugzilla 5.2 crashed complaining that it couldn't find Email::Address.

I then tried to run the tests, and the tests died complaining that it couldn't find POD::Coverage.

This was on an Ubuntu 22.04 server with most of the Perl modules installed via apt (and the few that apt couldn't find installed by install-module.pl --all.

Some diving with git blame shows that Email::Address has been a core dependency since version 3.3.2, and POD::Coverage has been an optional dependency for running tests since 4.5.1.

My best guess is that something else that we require used to pull these as dependencies and no longer does. But since they're not getting pulled automatically anymore, we need to have checksetup.pl looking for them.

Affected branches:

  • Email::Address: 4.4, 5.0.4, 5.2, master(5.1) (harmony already checks for it)
  • POD::Coverage: 5.0.4, 5.2 (none of 4.4, harmony, or master has this test)

(In reply to Dave Miller [:justdave] from comment #0)

After checksetup.pl said all dependencies were resolved, my fresh install on a fresh server of Bugzilla 5.2 crashed complaining that it couldn't find Email::Address.

My best guess is that something else that we require used to pull these as dependencies and no longer does. But since they're not getting pulled automatically anymore, we need to have checksetup.pl looking for them.

It looks like you have the latest version of Email::Sender (2.600). Per https://metacpan.org/dist/Email-Sender/changes, Email::Sender 2.600 now uses Email::Address::XS instead of Email::Address, which has some security flaws in versions 1.909 and older, see https://metacpan.org/pod/Email::Address#DESCRIPTION and https://metacpan.org/pod/Email::Address::XS#DESCRIPTION.

Note that both modules recommend to use Email::Address::XS instead of Email::Address. I then suggest that Bugzilla 5.2 and newer also do this move. There are very few places to fix and per https://metacpan.org/pod/Email::Address::XS#DESCRIPTION :

"Existing applications that use Email::Address module could be easily switched to Email::Address::XS module. In most cases only changing use Email::Address to use Email::Address::XS and replacing every Email::Address occurrence with Email::Address::XS is sufficient."

For Bugzilla 5.0.4 and 4.4, you would have to check if Email::Address is installed as moving to Email::Address::XS would not be acceptable on stable branches. But do you want to blacklist all versions older than 1.910 (release date: 2018-12-17)?

About POD::Coverage, there is already bug 929579 opened for that, which affects 5.0 and newer only, see bug 784072. Maybe rename your bug to focus on Email::Address only, and use bug 929579 to check POD::Coverage.

(In reply to Frédéric Buclin from comment #1)

About POD::Coverage, there is already bug 929579 opened for that, which affects 5.0 and newer only, see bug 784072. Maybe rename your bug to focus on Email::Address only, and use bug 929579 to check POD::Coverage.

I'll go with this.
Bug 1853137 filed to deal with the POD Coverage test being missing on Harmony.

We'll just deal with the Email::Address situation here.

Summary: Missing dependencies: Email::Address, POD::Coverage → Missing dependencies: Email::Address

Bug 1853138 filed for 5.2 and Harmony to switch to Email::Address::XS
That leaves this bug dealing with the older branches looking for Email::Address

No longer blocks: bugzilla-5.2
Attachment #9401271 - Flags: merged+
Attachment #9401272 - Flags: merged+
Attachment #9401273 - Attachment is obsolete: true
Attachment #9401276 - Attachment is obsolete: true
Attachment #9401275 - Flags: merged+
Assignee: installation → justdave
Status: NEW → RESOLVED
Closed: 6 months ago
Resolution: --- → FIXED
Target Milestone: --- → Bugzilla 4.4
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: