oerdnj / deb.sury.org

Public bugreports for anything ppa:ondrej/*
835 stars 26 forks source link

Ubuntu 22.04 LTS Support #1761

Closed oerdnj closed 2 years ago

oerdnj commented 2 years ago

Ubuntu 22.04 LTS has introduced OpenSSL 3.0.0 and the older PHP versions don't compile straight away. It's a work in progress and it will be done when it will be done. Don't upgrade if you depend on having PHP 5.6 available.

oerdnj commented 2 years ago

A bit of positive news - I had to scrape a minimal patch to wrap the RSA_SSLV23_PADDING into #ifdef and add -DOPENSSL_SUPPRESS_DEPRECATED to the CFLAGS, and that solved the OpenSSL 3.0.0 compilation.

However, ICU 70.1 became a more significant problem because it has dropped its own UBool type, and custom TRUE/FALSE constants were also not defined. A couple of hours later, I stitched parts of the upstream changes together with some extra code, and even PHP 5.6 can be compiled on Ubuntu 22.04.

Now, the more entangled part - compile all the PECL extensions in the proper order.

jadeops commented 2 years ago

Is nginx-mainline going to be added for 22.04 ? https://launchpad.net/~ondrej/+archive/ubuntu/nginx-mainline

ZatsuneNoMokou commented 2 years ago

Will apache going to be added for 22.04 https://launchpad.net/~ondrej/+archive/ubuntu/apache2 ?

oerdnj commented 2 years ago

Looks like Ubuntu added fake libapache2-mod-php7.4 to universe, so I'll have to bump the epoch for php7.4 version. Darn it.

oerdnj commented 2 years ago

I've bumped the epoch for PHP 7.4 and uploaded nginx and apache2 repositories.

The support for Ubuntu 22.04 LTS should be more or less complete now.

arcanisgk commented 2 years ago

@oerdnj this happened to you because you ignored me... 3 days ago I mentioned it to you here... https://github.com/oerdnj/deb.sury.org/issues/1767

oerdnj commented 2 years ago

@arcanisgk I didn't ignored you, I've asked you to use the issue template to fill-in all the needed information, which in turn ignored and picked a fight.

arcanisgk commented 2 years ago

@oerdnj I don't fight with someone... :blush:

jonathanbossenger commented 2 years ago

@oerdnj thank you for your work on supporting Ubuntu 22.04 LTS.

I am experiencing a possible problem when I try to install PHP 8.0 on Ubuntu 22.04 LTS. I am using your apache2 ppa, and I have both PHP 8.1 and 7.4 installed. When I try to install PHP 8.0 and associated packages with the following command:

sudo apt install php8.0 libapache2-mod-php8.0 php8.0-common php8.0-mysql php8.0-xml php8.0-xmlrpc php8.0-curl php8.0-gd php8.0-imagick php8.0-cli php8.0-dev php8.0-imap php8.0-mbstring php8.0-soap php8.0-zip -y

I get the following error:

Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libapache2-mod-php8.0 : Depends: php8.1-common (= 8.1.2-1ubuntu2) but 8.1.5-1+ubuntu22.04.1+deb.sury.org+1.1 is to be installed
E: Unable to correct problems, you have held broken packages.

I'm not sure if this is related to this issue, or if it's separate and I should create a new issue, so I thought I'd ask you first here.

arcanisgk commented 2 years ago

@jonathanbossenger is related to this: https://github.com/oerdnj/deb.sury.org/issues/1767 some installation of multiple version of php and package of libapache2-mod-php is falling broke ... and you ar unable to use a2enmod php.*

shivammathur commented 2 years ago

Hi, @oerdnj The mongodb build for PHP 7.1 is missing on ubuntu 22.04, for the rest of the php versions it is there. Let me know if I should create a new issue for it.

$ apt-cache policy php7.1-mongodb
N: Unable to locate package php7.1-mongodb
N: Couldn't find any package by glob 'php7.1-mongodb'
N: Couldn't find any package by regex 'php7.1-mongodb'
$ apt-cache policy php7.0-mongodb
php7.0-mongodb:
  Installed: (none)
  Candidate: 1.13.0+1.9.2+1.7.5-1+ubuntu22.04.1+deb.sury.org+1
  Version table:
     1.13.0+1.9.2+1.7.5-1+ubuntu22.04.1+deb.sury.org+1 500
        500 https://ppa.launchpadcontent.net/ondrej/php/ubuntu jammy/main amd64 Packages
oerdnj commented 2 years ago

The mongodb build for PHP 7.1 is missing on ubuntu 22.04, for the rest of the php versions it is there. Let me know if I should create a new issue for it.

Nah, I've uploaded the package, so let's see if it builds.

shivammathur commented 2 years ago

@oerdnj

Seems like php7.1-mongodb was missing in the build itself. https://launchpad.net/~ondrej/+archive/ubuntu/php/+build/23612705

Also, would it be possible to add phalcon3 packages for 22.04?

oerdnj commented 2 years ago

@oerdnj

Seems like php7.1-mongodb was missing in the build itself.

https://launchpad.net/~ondrej/+archive/ubuntu/php/+build/23612705

Also, would it be possible to add phalcon3 and phalcon4 packages for 22.04?

Please fill new issues for this - one for mongodb (that's weird) and one for phalcon packages. Thanks.

saidbakr commented 7 months ago

image