Re: installation von php71 ports

From: Harold Gutch <logix(at)foobar.franken.de>
Date: Tue, 17 Oct 2017 17:59:14 +0200

On Tue, Oct 17, 2017 at 04:19:09PM +0200, Sascha Hüdepohl wrote:
> Hallo!
>
> * Harold Gutch (logix(at)foobar.franken.de) schrieb:
>
> > - Sind deine Ports aktuell?
>
> portsnap fetch update habe ich vorher gemacht.
> Es ist ein frisches Jail.
>
> > - Verweist MASTERDIR in /usr/ports/converters/php71-mbstring/Makefile auf
> > "...lang/php71"?
>
> ja
>
> > - Was sagt "make -VPHP_VER" in /usr/ports/converters/php71-mbstring?
>
> 70

Das ist dann doch seltsam, zumindest wenn du kein /etc/make.conf hast.

OK, dann eben die Holzhammermethode: "make -dpFstdout -VPHP_VER | less".
Das sollte dir sagen wo PHP_VER gesetzt wird. Wenn ich das in
converters/php70-mbstring mache, gibt das bei mir folgendes aus:

[...]
Parse_SetInput: file /usr/ports/converters/php70-mbstring/../../lang/php70/Makefile.ext, line 0, fd -1, nextbuf 0x4145f0, arg 0x800a73900
ParseReadLine (7): 'PHP_VER= 70'

und später gibt es noch ein

Parse_SetInput: file /usr/ports/Mk/Uses/tar.mk, line 0, fd -1, nextbuf 0x4145f0, arg 0x800a 84810
ParseSetParseFile: ${.PARSEDIR} = `/usr/ports/Mk/Uses' ${.PARSEFILE} = `tar.mk'
ParseReadLine (116): 'PHP_VER?= ${DEFAULT_PHP_VER}'

aber hier ist PHP_VER ja schon gesetzt ist, daher gibt wird es hier
nicht überschrieben.

In converters/php71-mbstring passiert:

Parse_SetInput: file /usr/ports/converters/php71-mbstring/../../lang/php71/Makefile.ext, line 0, fd -1, nextbuf 0x4145f0, arg 0x800a73900
ParseReadLine (7): 'PHP_VER= 71'

und wenn ich in /etc/make.conf PHP_VER auf irgendwas setze (egal ob
das nun ein sinnvoller Wert für die Ports ist oder nicht), passiert
das hier:

Parse_SetInput: file /etc/make.conf, line 0, fd -1, nextbuf 0x4145f0, arg 0x800a735d0
ParseReadLine (2): 'PHP_VER=4711'

... aber wenn ich das ganze in converters/php71-mbstring mache wird
später dann dennoch PHP_VER=71 gesetzt.

Damit solltest du herausfinden können was bei dir PHP_VER auf 70 setzt
bzw. in welcher Datei das passiert.

Gruß,
  Harold

To Unsubscribe: send mail to majordomo(at)de.FreeBSD.org
with "unsubscribe de-bsd-questions" in the body of the message
Received on Tue 17 Oct 2017 - 17:59:24 CEST

search this site