php 7

This forum is dedicated to advanced help and support :

Ask here your questions about advanced usage of Mageia. For example you may post here all your questions about network and automated installs, complex server configurations, kernel tuning, creating your own Mageia mirrors, and all tasks likely to be touchy even for skilled users.

php 7

Postby cognitus » Sep 8th, '17, 22:24

Hello,

There is a plan for implement php 7 on mageia 6? I ask because now a lot packages require that version for example laravel...
cognitus
 
Posts: 5
Joined: Sep 8th, '17, 22:15

Re: php 7

Postby doktor5000 » Sep 9th, '17, 11:38

Hi, no there are no such plans, especially since mga6 is already released.
If you want you can read some discussion and the reasoning for that on the dev mailing list: http://lists.roundcube.net/pipermail/us ... 11233.html

But there are some people that already built php7 on mga5 for themselves, see e.g. https://itroger.wordpress.com/2017/04/0 ... ond-round/
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 17659
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: php 7

Postby cognitus » Sep 9th, '17, 15:57

mmm so the main reason was swig... after see the issues in github, now swig can be compiled with php7...
so please review support, after all a lot packages by default have minimum requirement php7.

finally, if I compile from source is possible uninstall?
Last edited by doktor5000 on Sep 9th, '17, 16:33, edited 1 time in total.
Reason: removed fullquote
cognitus
 
Posts: 5
Joined: Sep 8th, '17, 22:15

Re: php 7

Postby doktor5000 » Sep 9th, '17, 16:37

cognitus wrote:so please review support, after all a lot packages by default have minimum requirement php7.

As mentioned there are no such plans, so I doubt this will come to mga6. Although you can contribute to cauldron and add php7 support if you really want this. See http://www.mageia.org/contribute/

cognitus wrote:finally, if I compile from source is possible uninstall?

Why shouldn't it be possible? But you would have to check the upstream documentation, good starting point should be https://secure.php.net/manual/en/install.unix.php
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 17659
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: php 7

Postby cognitus » Sep 9th, '17, 22:06

doktor5000 wrote:
cognitus wrote:so please review support, after all a lot packages by default have minimum requirement php7.

As mentioned there are no such plans, so I doubt this will come to mga6. Although you can contribute to cauldron and add php7 support if you really want this. See http://www.mageia.org/contribute/

fine, I ported the package from other distro and it works on Mga6
Spoiler:
Image

so, i'm going to upload for review
cognitus
 
Posts: 5
Joined: Sep 8th, '17, 22:15

Re: php 7

Postby morgano » Sep 9th, '17, 23:41

Way to go. I love when we get new contributors . Welcome! :)
Mandriva since 2006, Mageia 2011 at home & work. Thinkpad T40, T43, T400, T510, Dell M4400, M6300, Acer Aspire 7. Workstation using LVM, LUKS, VirtualBox, BOINC
morgano
 
Posts: 1314
Joined: Jun 15th, '11, 17:51
Location: Kivik, Sweden

Re: php 7

Postby cognitus » Sep 10th, '17, 01:53

after all, it's complex setting up mgarepo :s
I uploaded patch, source and spec file to github https://github.com/cognitus/php7-mga
I tried to set php 7.1.x but has a various new modules(?), so I prefer other user look up for it or maybe import from another distro later...

Ps: sry for eng :@
cognitus
 
Posts: 5
Joined: Sep 8th, '17, 22:15

Re: php 7

Postby flink » Feb 5th, '18, 21:03

How is the current status for porting PHP 7 to Mageia 6?

@cognitus: Did you already provide the rpm package as described under http://www.mageia.org/contribute/ ?

I cannot find a backport testing php7:

E.g. I see this package:

php-mbstring-5.6.30-2.mga6




http://fr.rpmfind.net/linux/RPM/mageia/ ... yName.html

I thought that Mageia 6 would already have PHP 7. I need this new PHP, because the most recent TYPO3 CMS requires PHP 7 as a minimum.
flink
 
Posts: 189
Joined: Mar 3rd, '12, 19:23

Re: php 7

Postby cognitus » Feb 5th, '18, 21:16

flink wrote:How is the current status for porting PHP 7 to Mageia 6?

@cognitus: Did you already provide the rpm package as described under http://www.mageia.org/contribute/ ?

I cannot find a backport testing php7:

E.g. I see this package:

php-mbstring-5.6.30-2.mga6




http://fr.rpmfind.net/linux/RPM/mageia/ ... yName.html

I thought that Mageia 6 would already have PHP 7. I need this new PHP, because the most recent TYPO3 CMS requires PHP 7 as a minimum.


No I don't provide it,

they have ported php 7 to mageia cauldron, i didn't know they have to mageia 6. If you use my repo in github, php works without problem
cognitus
 
Posts: 5
Joined: Sep 8th, '17, 22:15

Re: php 7

Postby doktor5000 » Feb 5th, '18, 23:36

flink wrote:How is the current status for porting PHP 7 to Mageia 6?

See https://bugs.mageia.org/show_bug.cgi?id=19614 and maybe part of https://bugs.mageia.org/show_bug.cgi?id=21916
Current cauldron state can be seen at http://svnweb.mageia.org/packages/cauldron/php/current/

If it's added to the distro, it probably will only be added to cauldron, but not be backported to mga7 via official repos.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 17659
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: php 7

Postby flink » Feb 6th, '18, 23:06

doktor5000 wrote:If it's added to the distro, it probably will only be added to cauldron, but not be backported to mga7 via official repos.

This is still bad news. PHP 7 has been out for more than 2 years already.

https://entwickler.de/online/php/php-7- ... 93110.html

And nobody knows when Mageia 7 will be finally available. It can take more than one year. Cauldron is not stable to be used by now.

What can be done to backport the PHP 7.1 package for Mageia 6?
flink
 
Posts: 189
Joined: Mar 3rd, '12, 19:23

Re: php 7

Postby doktor5000 » Feb 7th, '18, 23:34

flink wrote:What can be done to backport the PHP 7.1 package for Mageia 6?

You can rebuild it yourself under mga6, as with any other package.
I've described briefly how to rebuild an src.rpm here: viewtopic.php?f=4&t=5530
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 17659
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany


Return to Advanced support

Who is online

Users browsing this forum: No registered users and 1 guest