LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 12-04-2016, 06:13 AM   #1
RafaBR
LQ Newbie
 
Registered: Aug 2014
Location: Brazil
Distribution: Slackware Current_x64
Posts: 25

Rep: Reputation: Disabled
Question Php 7.1.0


Hi everyone,

I'm trying to upgrade my PHP 7.0.13 with the new PHP 7.1.0 version, but some happens during the compilation (fail).

Quote:
Hmm... Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|--- ./php.ini-development.orig 2012-07-18 01:19:16.000000000 -0500
|+++ ./php.ini-development 2012-08-08 20:06:33.512546116 -0500
--------------------------
patching file php.ini-production
Using Plan A...
Hunk #1 succeeded at 883 with fuzz 1 (offset 24 lines).
Hunk #2 succeeded at 1395 with fuzz 2 (offset -39 lines).
done
Hmm... Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|--- ./sapi/fpm/php-fpm.conf.in.orig 2016-08-17 21:50:48.000000000 +0200
|+++ ./sapi/fpm/php-fpm.conf.in 2016-09-07 09:49:54.005406811 +0200
--------------------------
patching file sapi/fpm/php-fpm.conf.in
Using Plan A...
patch unexpectedly ends in middle of line
Hunk #1 FAILED at 14.
1 out of 1 hunk FAILED -- saving rejects to file sapi/fpm/php-fpm.conf.in.rej
done
root /home/rafael/Documentos/LinuxPackages/php7 #
Someone can help me?

Thanks.
 
Old 12-04-2016, 06:52 AM   #2
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Rep: Reputation: Disabled
The offending patch in the source/ directory of the Slackware repository is against a file ./sapi/fpm/php-fpm.conf.in that dates back 2012.

Maybe this file has changed in such a way that the patch does not apply to it as is any more.

To check, a comparison between the current and the previous versions of php-fpm.conf.in should help.

After that, possibly rewrite the patch diff-ing the current file with its expected content after patching it (this shouldn't be difficult, the current patch is very short and what is does is easy to understand) then try again to build the package.

EDIT. I realize now that you want to upgrade from a version already newer than the one shipped in -current. Nevertheless the advice stands.

Last edited by Didier Spaier; 12-04-2016 at 07:01 AM.
 
1 members found this post helpful.
Old 12-04-2016, 07:36 AM   #3
Darth Vader
Senior Member
 
Registered: May 2008
Location: Romania
Distribution: DARKSTAR Linux 2008.1
Posts: 2,727

Rep: Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247
Quote:
Originally Posted by RafaBR View Post
Someone can help me?
Nope. Not until you explain from where you obtained the SlackBuild for the version 7.0.x, which is not officially supported anyway.

BTW, the crap in discussion is called PHP, not Php, because is the short for "Page Hypertext Processor", as initially the PHP was tough as some ultimate HTML template engine...

Last edited by Darth Vader; 12-04-2016 at 07:47 AM.
 
1 members found this post helpful.
Old 12-04-2016, 12:52 PM   #4
Skaendo
Senior Member
 
Registered: Dec 2014
Location: West Texas, USA
Distribution: Slackware64-14.2
Posts: 1,445

Rep: Reputation: Disabled
Quote:
Originally Posted by RafaBR View Post
Hi everyone,

I'm trying to upgrade my PHP 7.0.13 with the new PHP 7.1.0 version, but some happens during the compilation (fail).
Sorry that I cannot help right now, but please keep us posted since I was considering upgrading mine from 7.0.10.
 
Old 12-04-2016, 02:08 PM   #5
RafaBR
LQ Newbie
 
Registered: Aug 2014
Location: Brazil
Distribution: Slackware Current_x64
Posts: 25

Original Poster
Rep: Reputation: Disabled
I used PHP Slackbuild from: http://mirrors.slackware.com/slackwa.../source/n/php/.
So, I just modified php.Slackbuild (version 5.6.27 to 7.0.X).

But, with this new version (7.1.0), it doesn't work anymore ...

Rafael
 
Old 12-04-2016, 02:19 PM   #6
Skaendo
Senior Member
 
Registered: Dec 2014
Location: West Texas, USA
Distribution: Slackware64-14.2
Posts: 1,445

Rep: Reputation: Disabled
Quote:
Originally Posted by RafaBR View Post
I used PHP Slackbuild from: http://mirrors.slackware.com/slackwa.../source/n/php/.
So, I just modified php.Slackbuild (version 5.6.27 to 7.0.X).

But, with this new version (7.1.0), it doesn't work anymore ...

Rafael
Scratch all that, it will need a new patch file since php-fpm.conf.in has changed a lot.

Last edited by Skaendo; 12-04-2016 at 04:04 PM.
 
Old 12-04-2016, 02:19 PM   #7
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Rep: Reputation: Disabled
Then, as already suggested, check the file to be patched in the source archive to understand why patch fails.

EDIT. It seems that Skaendo just did it for you...

Last edited by Didier Spaier; 12-04-2016 at 02:20 PM.
 
Old 12-04-2016, 02:36 PM   #8
RafaBR
LQ Newbie
 
Registered: Aug 2014
Location: Brazil
Distribution: Slackware Current_x64
Posts: 25

Original Poster
Rep: Reputation: Disabled
Hi everyone,

Now, PHP 7.1.0 was compiled and instaled successfully !

Thanks Didier Spaier for your suggest and Skaendo for solution.

Quote:
Verifying package php-7.1.0-x86_64-1.txz.
Installing package php-7.1.0-x86_64-1.txz:
PACKAGE DESCRIPTION:
# php (HTML-embedded scripting language)
#
# PHP is an HTML-embedded scripting language. It shares syntax
# characteristics with C, Java, and Perl. The primary objective behind
# this language is to make a fast and easy-to-use scripting language
# for dynamic web sites.
#
# More information can be found online at http://www.php.net/
#
Executing install script for php-7.1.0-x86_64-1.txz.
Package php-7.1.0-x86_64-1.txz installed.

Package php-7.0.13-x86_64-1 upgraded with new package /tmp/php-7.1.0-x86_64-1.txz.
 
Old 12-04-2016, 02:41 PM   #9
Skaendo
Senior Member
 
Registered: Dec 2014
Location: West Texas, USA
Distribution: Slackware64-14.2
Posts: 1,445

Rep: Reputation: Disabled
Quote:
Originally Posted by RafaBR View Post
Hi everyone,

Now, PHP 7.1.0 was compiled and instaled successfully !

Thanks Didier Spaier for your suggest and Skaendo for solution.
You might want to rebuild it with the patch that I attached above, and leaving the SlackBuild as is. There are a few more patches in there than just the one.

Last edited by Skaendo; 12-04-2016 at 02:43 PM.
 
Old 12-04-2016, 02:44 PM   #10
Skaendo
Senior Member
 
Registered: Dec 2014
Location: West Texas, USA
Distribution: Slackware64-14.2
Posts: 1,445

Rep: Reputation: Disabled
Quote:
Originally Posted by Didier Spaier View Post
Then, as already suggested, check the file to be patched in the source archive to understand why patch fails.

EDIT. It seems that Skaendo just did it for you...
Yea, I am reconfiguring hardware on my server right now so I was going to have to look at it anyways. Might as well fix it now.
 
Old 12-04-2016, 02:58 PM   #11
RafaBR
LQ Newbie
 
Registered: Aug 2014
Location: Brazil
Distribution: Slackware Current_x64
Posts: 25

Original Poster
Rep: Reputation: Disabled
Skaendo, I did as you told me, but during compilation it stops :

Quote:
Using Plan A...
Hunk #1 succeeded at 883 with fuzz 1 (offset 24 lines).
Hunk #2 succeeded at 1395 with fuzz 2 (offset -39 lines).
done
Hmm... Looks like a unified diff to me...
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|php-fpm.conf.diff000644 001750 000144 00000001264 13021076675 014341 0ustar00endousers000000 000000 --- php-fpm.conf.in 2016-12-01 20:07:48.000000000 -0600
|+++ php-fpm.conf.in2 2016-12-04 14:33:12.321160666 -0600
--------------------------
File to patch:
 
Old 12-04-2016, 03:48 PM   #12
Skaendo
Senior Member
 
Registered: Dec 2014
Location: West Texas, USA
Distribution: Slackware64-14.2
Posts: 1,445

Rep: Reputation: Disabled
Quote:
Originally Posted by RafaBR View Post
Skaendo, I did as you told me, but during compilation it stops :
I see that. When it asks for the file to patch I just had to put in:
Code:
/tmp/php-7.1.0/sapi/fpm/php-fpm.conf.in
and it continued on as normal. I don't know why it's doing this, but I will figure it out here quick.

EDIT: Ok here it is fixed. (Again, remove the ".txt")
Attached Files
File Type: txt php-fpm.conf.diff.gz.txt (408 Bytes, 39 views)

Last edited by Skaendo; 12-04-2016 at 04:13 PM.
 
1 members found this post helpful.
Old 12-04-2016, 04:33 PM   #13
RafaBR
LQ Newbie
 
Registered: Aug 2014
Location: Brazil
Distribution: Slackware Current_x64
Posts: 25

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Skaendo View Post
I see that. When it asks for the file to patch I just had to put in:
Code:
/tmp/php-7.1.0/sapi/fpm/php-fpm.conf.in
and it continued on as normal. I don't know why it's doing this, but I will figure it out here quick.

EDIT: Ok here it is fixed. (Again, remove the ".txt")
OK, now it works fine!!

Thank you
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Installing Lighttpd with PHP 7 (PHP-FPM) and MySQL 5.7 on Ubuntu 16.04 LTS LXer Syndicated Linux News 0 05-10-2016 09:51 PM
After upgrading php 5.3.8 to php 5.4.30 php files are not being executed kingkashif Linux - Server 5 06-26-2014 10:15 AM
[SOLVED] Am trying to install packages like net-snmp, php-mysql, php-snmp, php but with errors Maj Linux - Newbie 1 07-26-2013 02:12 PM
want to disable htaccess from updating the default php values set in php.ini nikeshp Linux - Software 2 05-26-2013 08:09 PM
php apache or php cgi - php learner rblampain Linux - Security 3 12-17-2004 11:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:00 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration