php mailparse module does not work.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
php-mailparse (Ubuntu) |
Fix Released
|
Undecided
|
Athos Ribeiro | ||
Noble |
Fix Committed
|
Undecided
|
Unassigned |
Bug Description
[ Impact ]
The package is unusable in noble because the shared object cannot be loaded.
[ Test Plan ]
install the package
$ sudo apt install php-mailparse
and list the compile in modules with
$ php -m
You will get the following warning:
PHP Warning: PHP Startup: Unable to load dynamic library 'mailparse.so' (tried: /usr/lib/
and "mailparse" will not be in the compiled in modules list.
Then, install php-mailparse with the proposed fix and run the command again:
$ php -m
Now, you will not get the warning and "mailparse" will be in the list.
Alternatively, just install php-mailparse and run
$ php -m | grep '^mailparse$'
This command should fail for affected versions of the package.
[ Where problems could occur ]
The fix consists of substituting the mbfl deprecated API calls for the new ones. If any bugs are found in those new implementations, we will need to fix them in php8.3 in noble. Note that, currently, the extension cannot be loaded at all.
[ Other Info ]
I am also including a simple smoketest as a DEP8 test here, which is testing what we described in the test plan above. This is also being included in oracular for completeness. Finally, I will propose to Debian that all php native extensions should perform this smoketest in autopkgtest
[ Original message ]
$ php -m
PHP Warning: PHP Startup: Unable to load dynamic library 'mailparse.so' (tried: /usr/lib/
....
ProblemType: Bug
DistroRelease: Ubuntu 24.04
Package: php8.3-mailparse 3.1.4+2.
ProcVersionSign
Uname: Linux 6.8.0-31-generic x86_64
NonfreeKernelMo
ApportVersion: 2.28.1-0ubuntu3
Architecture: amd64
CasperMD5CheckR
CurrentDesktop: ubuntu:GNOME
Date: Tue May 28 11:27:00 2024
InstallationDate: Installed on 2024-05-26 (2 days ago)
InstallationMedia: Ubuntu 24.04 LTS "Noble Numbat" - Release amd64 (20240424)
ProcEnviron:
LANG=en_US.UTF-8
PATH=(custom, no user)
SHELL=/bin/bash
TERM=xterm-
XDG_RUNTIME_
SourcePackage: php-mailparse
UpgradeStatus: No upgrade log present (probably fresh install)
Related branches
- git-ubuntu bot: Approve
- Utkarsh Gupta (community): Approve
- Canonical Server Reporter: Pending requested
-
Diff: 119 lines (+93/-0)4 files modifieddebian/changelog (+7/-0)
debian/patches/php83-support.patch (+82/-0)
debian/patches/series (+1/-0)
debian/tests/control (+3/-0)
description: | updated |
Changed in php-mailparse (Ubuntu): | |
assignee: | nobody → Athos Ribeiro (athos-ribeiro) |
Changed in php-mailparse (Ubuntu): | |
status: | New → In Progress |
PHP removed the `mbfl_name2no_ encoding` symbol in this 8.3.0rc1 commit: /github. com/php/ php-src/ commit/ a85adb170cf831e 742c4be2333c886 d054ca738c
https:/