mariancerny / freebsd-ports-php56

FreeBSD ports subtree to build unsupported (EoL) PHP 5.6
21 stars 11 forks source link

Illegal option -o pipefail #4

Open xm74 opened 3 years ago

xm74 commented 3 years ago

I'm trying to install PHP 5.6 from your repo but getting. Do you have any ideas how to deal with this?

root@php56:/usr/local/ports/php56/lang/php56 # make install
set: Illegal option -o pipefail
===> Options unchanged
/!\ WARNING /!\

Ports Collection support for your FreeBSD version has ended, and no ports are
guaranteed to build on this system. Please upgrade to a supported release.

===>   NOTICE:

This port is deprecated; you may wish to reconsider installing it:

Security Support ends on 31 Dec 2018.

It is scheduled to be removed on or after 2019-01-01.

===>  License PHP301 accepted by the user
set: Illegal option -o pipefail
*** Error code 2

Stop.
make[1]: stopped in /usr/local/ports/php56/lang/php56
*** Error code 1

Stop.
make: stopped in /usr/local/ports/php56/lang/php56
mariancerny commented 3 years ago

Sounds strange. What FreeBSD version? Today I have tested the build on FreeBSD 12.1-RELEASE-p9 and it works fine. (I have submitted a fix for devel/pecl-intl, but that is not your case.) There is no set -o pipefail in this repository, so it probably comes from FreeBSD's /usr/ports build system (e.g. Mk/Scripts). However -o pipefail is supported in FreeBSD's /bin/sh, so I don't understand why you are getting this error.

xm74 commented 3 years ago

Yes, this is quite strange. I tried to build your three in the jail with FreeBSD 11.2-RELEASE (host system is latest 12.2-RELEASE) when got this error message. Because I wasn't successful to solve this issue I've went on slightly different way and used standard FreeBSD ports tree on latest revision where PHP 5.6 was available with 12.0-RELEASE.

svnlite co -r 488289 http://svn.freebsd.org/ports/head /usr/ports

Then I built pkg from ports and PHP after this. Everything went well and now I have PHP 5.6 installed in jailed environment.