PHP53 port
Peter Hodur
petehodur at gmail.com
Wed May 2 16:51:14 CEST 2018
Pozdravujem,
viem, ze to bude drsne, ale naozaj potrebujem zkompilovat PHP53 z portov.
Naposledy som to robil pred rokom a este to slo. Teraz uz nie. Mozno niekto
dostane napad ako na to.
Spravil som to nasledovne:
1. cez portsnap fetch/extract/update normalne stiahnem porty a pouzivam
2. potom som stiahol archiv:
/usr/bin/svnlite checkout https://svn.FreeBSD.org/ports/branches/2015Q2
/usr/ports-2015Q2
oklamal som bulding process tymto:
/bin/cp /usr/ports-2015Q2/Mk/bsd.php.mk /usr/ports/Mk/bsd.php.mk
a rucne na hulvata nakopiroval porty
/bin/cp -R /usr/ports-2015Q2/lang/php53 /usr/ports/lang/php53
/bin/cp -R /usr/ports-2015Q2/lang/php53-extensions
/usr/ports/lang/php53-extensions
/bin/cp -R /usr/ports-2015Q2/math/php53-bcmath /usr/ports/math/php53-bcmath
atd.
spravil som si dva patche:
--- /usr/ports/lang/php53/distinfo.orig 2016-03-15 18:02:36.667693741 +0100
+++ /usr/ports/lang/php53/distinfo 2016-03-15 18:03:42.487287466 +0100
@@ -2,5 +2,5 @@
SIZE (php-5.3.29.tar.bz2) = 11396771
SHA256 (suhosin-patch-5.3.x-0.9.10.5.patch.gz) =
5de84149facbf3c3f752a907c19e69e0f569d71facb034ce938c97004f19376b
SIZE (suhosin-patch-5.3.x-0.9.10.5.patch.gz) = 40805
-SHA256 (php-5.3.x-mail-header.patch) =
5a677448b32d9f592703e2323a33facdb45e5c237dcca04aaea8ec3287f7db84
-SIZE (php-5.3.x-mail-header.patch) = 3325
+SHA256 (php-5.3.x-mail-header.patch) =
56d05ba157c79b4baf61db9e875a1bef6c5621c8d76565dafb4f7262ede2cf47
+SIZE (php-5.3.x-mail-header.patch) = 4423
a
--- /usr/ports/lang/php53/Makefile.ext.orig 2016-03-15 17:53:13.027178138
+0100
+++ /usr/ports/lang/php53/Makefile.ext 2016-03-15 17:56:41.134762717 +0100
@@ -125,7 +125,7 @@
.endif
.if ${PHP_MODNAME} == "iconv"
-CONFIGURE_ARGS+=--with-iconv
+CONFIGURE_ARGS+=--with-iconv=/usr/local/lib/
USES+= iconv:translit
.endif
@@ -524,7 +524,7 @@
.if ${PHP_MODNAME} == "mbstring"
. if ${PORT_OPTIONS:MREGEX}
LIB_DEPENDS+= libonig.so.1:${PORTSDIR}/devel/oniguruma4
-CONFIGURE_ARGS+=--with-onig=${LOCALBASE}
+CONFIGURE_ARGS+=--with-onig=/usr/local/php/5_3_29/
. else
CONFIGURE_ARGS+=--disable-mbregex
. endif
ten prvy je uz si nepamatam preco, ale jednoducho nesedel hash. Rucne som
to pozrel a takto som to fixol. Ten druhy suvisi s oniguruma a iconv
cestami. Pri kompilacii to nevedelo najst spravne verzie kniznic.
Dokompiloval som stary onigurama4
cd /usr/ports/devel/oniguruma4
/usr/bin/make DISABLE_VULNERABILITIES=yes PREFIX=/usr/local/php/5_3_29/
install clean
este jedna mala zmena:
/bin/ln -s /usr/local/include/freetype2/freetype/freetype.h
/usr/local/include/freetype2/freetype.h
a toto zbehlo:
cd /usr/ports/lang/php53-extensions
/usr/bin/make config-recursive
/usr/bin/make DISABLE_VULNERABILITIES=yes install clean
dnes mi to ale napisalo nieco ... comu som ozaj nerozumel:
===> php53-5.3.29_5 depends on file: /usr/local/sbin/pkg - found
===> Fetching all distfiles required by php53-5.3.29_5 for building
===> Extracting for php53-5.3.29_5
=> SHA256 Checksum OK for php-5.3.29.tar.bz2.
=> SHA256 Checksum OK for suhosin-patch-5.3.x-0.9.10.5.patch.gz.
=> SHA256 Checksum OK for php-5.3.x-mail-header.patch.
===> Patching for php53-5.3.29_5
===> Applying distribution patches for php53-5.3.29_5
===> Applying FreeBSD patches for php53-5.3.29_5
No such line 2759 in input file, ignoring
===> php53-5.3.29_5 depends on shared library: libpcre.so - found
(/usr/local/lib/libpcre.so)
===> php53-5.3.29_5 depends on shared library: libxml2.so - found
(/usr/local/lib/libxml2.so)
===> Configuring for php53-5.3.29_5
===> FreeBSD 10 autotools fix applied to
/usr/ports/lang/php53/work/php-5.3.29/build/libtool.m4
===> FreeBSD 10 autotools fix applied to
/usr/ports/lang/php53/work/php-5.3.29/aclocal.m4
===> Building for php53-5.3.29_5
make[2]: cannot open Makefile.
make[2]: stopped in /usr/ports/lang/php53/work/php-5.3.29
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1
Stop.
make[1]: stopped in /usr/ports/lang/php53
*** Error code 1
Stop.
make: stopped in /usr/ports/lang/php53
MAKE_JOBS_UNSAFE=yes v /etc/make.conf nepomohlo :(
Nejaky napad? A nebite ma, keby som to nepotreboval tak to fakt nerobim...
btw oniguruma4 som normalne nainstaloval z
https://svn.FreeBSD.org/ports/branches/2017Q4... to zbehlo.
dakujem
Peter Hodur ml.
More information about the Users-l
mailing list