PHP53 port
Dan Lukes
dan at obluda.cz
Wed May 2 23:51:10 CEST 2018
Peter Hodur wrote on 2. 5. 2018 16:51:
> viem, ze to bude drsne, ale naozaj potrebujem zkompilovat PHP53 z portov.
Ponechme stranou otazku - proc z portu ...
> /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
Ono neni ani nutne, aby "port" byl ve stromu portu, ale nicemu to nevadi.
> spravil som si dva patche:
> -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
To neni nutne, staci v adresari spustit 'make makesum' a in ti je vyrobi
sam.
> Dokompiloval som stary onigurama4
>
> cd /usr/ports/devel/oniguruma4
> /usr/bin/make DISABLE_VULNERABILITIES=yes PREFIX=/usr/local/php/5_3_29/
> install clean
Jestli to funguje takhle, tak dobra, ale podle me bys mel vetsi sanci
nemit problemy kdybys proste odinstaloval PHP, ktere v systemu mas
(pokud nejake mas), a PHP53 prekladal a instaloval do standardnich cest.
> 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
Neco je spatne. Patch se snazi upravit radek v souboru, ktery neni tak
dlouhy, aby v nem ten radek vubec byl. To se normalne nestava a nutne
tim vznika podezreni, zda mas adresar portu konzistentni - skoro to
vypada, ze se v nem nachazeji soubory, ktere k some nepatri.
Jestli to nahodou nejak nesouvisi s tim "proste mi nesedel hash" ...
Doporucuju porovnat "tvuj" adresar s porty s touhle:
> https://svnweb.freebsd.org/ports/head/lang/php53/?pathrev=384185
> ===> 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
Nevidim tam vubec probehnout "configure" fazi. A protoze Makefiel vznika
pri ni neni nasledujici ...
> ===> Building for php53-5.3.29_5
> make[2]: cannot open Makefile.
... uz prekvapenim.
Bud' je treba zjistit proc se configure nezavola, nebo je, mozna,
jedndussi vykaslat se na analyzu problemu a resit pouze symptomu - a
proste to configure se spravnymi parametry vyctenymi z Makefile rucne
pustit pred build fazi ...
Dan
More information about the Users-l
mailing list