lang/php72 needed

Paul Procacci pprocacci at gmail.com
Mon Jun 7 04:32:40 UTC 2021


Having lots of php72 is no problem if you `find | xargs`.
I tried this and didn't _really_ run into any problems.
I didn't try any of the extensions however.

This is what I did:
# svn co -r r559730  https://svn.freebsd.org/port/head /tmp/ports
# cd /tmp/ports
# find . -iname "php72*" -type d -print0 | xargs -0 -I% cp -R % /usr/ports/%
# cd /usr/ports/lang/php72
# make install

There were some errors, but they were easily cleaned up by installing the
missing pieces via pkg.  Just to name one:
# pkg install p5-Locale-gettext

After the errors were cleaned up, I `make clean install` and viola:

# php -v
PHP 7.2.34 (cli) (built: Jun  7 2021 00:30:54) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies

# uname -a
FreeBSD nas.myhome 12.2-RELEASE-p4 FreeBSD 12.2-RELEASE-p4 r369444 GENERIC
 amd64

Extensions would be similar, but I didn't try any.

~Paul

On Mon, Jun 7, 2021 at 12:00 AM Victor Sudakov <vas at sibptus.ru> wrote:

> Hello Paul,
>
> There are so many php72-* subdirs scattered over the ports tree (in
> www, graphics, databases etc) plus there may be references in ports/Mk/*
> so if someone has already done the tedious job I'd happily avoid it.
>
> Paul Procacci wrote:
> > Just curious.
> >
> > Have you tried moving the php72 port from the latest revision it was
> > available (r559730) over to a modern port and tried compiling it?
> > I'd imagine if you grabbed all the necessary php72-* ports, moved them
> over
> > and tried compiling, you might get pretty far.
> > I personally haven't tried it, but I imagine that would probably be what
> > you need to do.
> >
> > ~Paul
> >
> > On Sun, Jun 6, 2021 at 10:58 PM Victor Sudakov <vas at sibptus.ru> wrote:
> >
> > > Dear Colleagues,
> > >
> > > Can you recommend an (unofficial) repository with the PHP 7.2 port? I
> > > need it to support a legacy installation of Moodle, but would not want
> > > to use an outdated ports tree snapshot.
> > >
> > > --
> > > Victor Sudakov VAS4-RIPE
> > > http://vas.tomsk.ru/
> > > 2:5005/49 at fidonet
> > >
> >
> >
> > --
> > __________________
> >
> > :(){ :|:& };:
>
> --
> Victor Sudakov VAS4-RIPE
> http://vas.tomsk.ru/
> 2:5005/49 at fidonet
>


-- 
__________________

:(){ :|:& };:


More information about the freebsd-questions mailing list