SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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 #
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.
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.
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.
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.
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:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.