Discussion:
lang/php72 needed
Victor Sudakov
2021-06-07 02:58:38 UTC
Permalink
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/***@fidonet
Paul Procacci
2021-06-07 03:42:41 UTC
Permalink
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
Post by Victor Sudakov
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/
--
__________________

:(){ :|:& };:
Victor Sudakov
2021-06-07 04:00:25 UTC
Permalink
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.
Post by Paul Procacci
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
Post by Victor Sudakov
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/
--
__________________
--
Victor Sudakov VAS4-RIPE
http://vas.tomsk.ru/
2:5005/***@fidonet
Paul Procacci
2021-06-07 04:32:26 UTC
Permalink
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
Post by Victor Sudakov
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.
Post by Paul Procacci
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
Post by Paul Procacci
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
Post by Victor Sudakov
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/
--
__________________
--
Victor Sudakov VAS4-RIPE
http://vas.tomsk.ru/
--
__________________

:(){ :|:& };:
Victor Sudakov
2021-06-07 05:38:16 UTC
Permalink
This post might be inappropriate. Click to display it.
Paul Procacci
2021-06-07 06:13:29 UTC
Permalink
I'm not sure if it's either strange nor alarming like you claim.
That version of php is EOL from the vendor afterall.
The specific topic of maintaining support for old software, or retaining
backwards compatibility has been hashed before not only here, but in most
venerable software.

Your packages.sury.org example exists because someone out in the world ( Ondřej
Surý ) has a need for it on Linux and makes his packages available to all.
He happens to not only have a need for it, he's actually one of the Debian
developers as well; though I digress.
In the same vein, if you have a need for it, `make package` on your FreeBSD
version, work through the kinks and also make it available.
The next bloke who's looking for a package will find yours and be grateful.

In the case of Moodle, I'm not going to question your reason for using old
software, but will kindly point out that they have a version that's
compatible w/ more recent versions of php.
Without knowing your evaluation process or conclusion thereof, I'd suggest
upgrading Moodle instead.

Sorry I can't be of any further help. Take Care.
~Paul
Post by Paul Procacci
Post by Paul Procacci
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.
# 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/%
Post by Paul Procacci
# cd /usr/ports/lang/php72
# make install
There were some errors, but they were easily cleaned up by installing the
# pkg install p5-Locale-gettext
This will not work in poudriere. I'd like to have a reproducible build,
if possible, not some kind of one-time hack.
[dd]
Post by Paul Procacci
Extensions would be similar, but I didn't try any.
There may be many dependencies to fix.
I have already tried going your way with the php52 port on a recent
FreeBSD, this turned out to be an unpleasant manual process of fixing
dependencies etc, and eventually I failed to overcome the problem.
It's strange and alarming that nobody cares in the FreeBSD world. In
Linux, you can install all versions from packages.sury.org, and what's
more, you can even have different versions simultaneously on one system.
--
Victor Sudakov VAS4-RIPE
http://vas.tomsk.ru/
--
__________________

:(){ :|:& };:
Victor Sudakov
2021-06-07 07:12:48 UTC
Permalink
Post by Paul Procacci
I'm not sure if it's either strange nor alarming like you claim.
That version of php is EOL from the vendor afterall.
The specific topic of maintaining support for old software, or retaining
backwards compatibility has been hashed before not only here, but in most
venerable software.
Your packages.sury.org example exists because someone out in the world ( Ondřej
SurÜ ) has a need for it on Linux and makes his packages available to all.
That's exactly what I meant by "strange and alarming". It's about
FreeBSD's user base. If a large community of admins really had a need
for PHP on FreeBSD, two problems would have been solved already, if not
by the FreeBSD team, then by enthusiasts like Ondřej:

1. A possibility to install multiple versions of PHP simultaneously.

2. A repository for older packages.
Post by Paul Procacci
He happens to not only have a need for it, he's actually one of the Debian
developers as well; though I digress.
There is a similar repo for RPM-based Linuxes, Remi's Repo I guess. Because
enough people need it.
Post by Paul Procacci
In the same vein, if you have a need for it, `make package` on your FreeBSD
version, work through the kinks and also make it available.
The next bloke who's looking for a package will find yours and be grateful.
Actually, I am that bloke who is looking for a package and an
opportunity to be grateful.

Not actually for a package though, but for a Poudriere-ready tree.
Post by Paul Procacci
In the case of Moodle, I'm not going to question your reason for using old
software, but will kindly point out that they have a version that's
compatible w/ more recent versions of php.
Without knowing your evaluation process or conclusion thereof, I'd suggest
upgrading Moodle instead.
Those Moodle installations are out of my responsibility. I don't exactly
know why they want the older versions, maybe there are some local
patches, or maybe because "don't fix what ain't broken". Really no idea.
But it might be easier for me eventually to migrate those VMs to Debian.
--
Victor Sudakov VAS4-RIPE
http://vas.tomsk.ru/
2:5005/***@fidonet
Odhiambo Washington
2021-06-07 07:07:51 UTC
Permalink
Post by Paul Procacci
Post by Paul Procacci
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.
# 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/%
Post by Paul Procacci
# cd /usr/ports/lang/php72
# make install
There were some errors, but they were easily cleaned up by installing the
# pkg install p5-Locale-gettext
This will not work in poudriere. I'd like to have a reproducible build,
if possible, not some kind of one-time hack.
And suddenly you introduce another condition to your original request!


[dd]
Post by Paul Procacci
Post by Paul Procacci
Extensions would be similar, but I didn't try any.
There may be many dependencies to fix.
I have already tried going your way with the php52 port on a recent
FreeBSD, this turned out to be an unpleasant manual process of fixing
dependencies etc, and eventually I failed to overcome the problem.
It's strange and alarming that nobody cares in the FreeBSD world. In
Linux, you can install all versions from packages.sury.org, and what's
more, you can even have different versions simultaneously on one system.
Then what stops you from migrating the legacy moodle to Linux??
If anything, just virtualize the Linux on the same server and you're home
and dry.
--
Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+254 7 3200 0004/+254 7 2274 3223
"Oh, the cruft.", egrep -v "^$|^.*#" :-)
Victor Sudakov
2021-06-07 07:21:25 UTC
Permalink
Post by Odhiambo Washington
Post by Victor Sudakov
Post by Paul Procacci
There were some errors, but they were easily cleaned up by installing the
# pkg install p5-Locale-gettext
This will not work in poudriere. I'd like to have a reproducible build,
if possible, not some kind of one-time hack.
And suddenly you introduce another condition to your original request!
My original request was:

"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."

I think it's quite clear that the request was about a ports tree I can
build from. If not, sorry about that.

[dd]
Post by Odhiambo Washington
Post by Victor Sudakov
It's strange and alarming that nobody cares in the FreeBSD world. In
Linux, you can install all versions from packages.sury.org, and what's
more, you can even have different versions simultaneously on one system.
Then what stops you from migrating the legacy moodle to Linux??
Nothing, actually, except my long-term preference for FreeBSD.

It just saddens me to see migrations from FreeBSD to Linux and never vice versa.
--
Victor Sudakov VAS4-RIPE
http://vas.tomsk.ru/
2:5005/***@fidonet
Odhiambo Washington
2021-06-07 08:20:53 UTC
Permalink
Post by Paul Procacci
Post by Odhiambo Washington
Post by Victor Sudakov
Post by Paul Procacci
There were some errors, but they were easily cleaned up by
installing the
Post by Odhiambo Washington
Post by Victor Sudakov
Post by Paul Procacci
# pkg install p5-Locale-gettext
This will not work in poudriere. I'd like to have a reproducible build,
if possible, not some kind of one-time hack.
And suddenly you introduce another condition to your original request!
"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."
I think it's quite clear that the request was about a ports tree I can
build from. If not, sorry about that.
I did not know that there are "poudriere" unofficial repos. I thought those
were personal builds.
Post by Paul Procacci
[dd]
Post by Odhiambo Washington
Post by Victor Sudakov
It's strange and alarming that nobody cares in the FreeBSD world. In
Linux, you can install all versions from packages.sury.org, and what's
more, you can even have different versions simultaneously on one
system.
Post by Odhiambo Washington
Then what stops you from migrating the legacy moodle to Linux??
Nothing, actually, except my long-term preference for FreeBSD.
It just saddens me to see migrations from FreeBSD to Linux and never vice versa.
Solutions come in all forms. Inadequacies too.
So what FreeBSD cannot solve, Linux will probably solve. FreeBSD loses a
follower as Linux gains one.
In this case, though, you are taking the wrong approach - insisting on
running outdated code/
Your developer should update the code. If not, just look for the right
forum and share the problematic code and
you might get advice on how to update it.
--
Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+254 7 3200 0004/+254 7 2274 3223
"Oh, the cruft.", egrep -v "^$|^.*#" :-)
Victor Sudakov
2021-06-07 08:30:03 UTC
Permalink
Odhiambo Washington wrote:

[dd]
Post by Odhiambo Washington
I did not know that there are "poudriere" unofficial repos. I thought those
were personal builds.
It's a terminological question mostly. For the present, I've googled
this up: https://github.com/simplerezo/freebsd-ports-php-vintages
I'll try if it works (in a dedicated poudriere tree).

[dd]
Post by Odhiambo Washington
Post by Victor Sudakov
Post by Odhiambo Washington
Post by Victor Sudakov
It's strange and alarming that nobody cares in the FreeBSD world. In
Linux, you can install all versions from packages.sury.org, and what's
more, you can even have different versions simultaneously on one
system.
Post by Odhiambo Washington
Then what stops you from migrating the legacy moodle to Linux??
Nothing, actually, except my long-term preference for FreeBSD.
It just saddens me to see migrations from FreeBSD to Linux and never vice versa.
Solutions come in all forms. Inadequacies too.
So what FreeBSD cannot solve, Linux will probably solve. FreeBSD loses a
follower as Linux gains one.
In this case, though, you are taking the wrong approach - insisting on
running outdated code/
Your developer should update the code. If not, just look for the right
forum and share the problematic code and
you might get advice on how to update it.
I'm not the one to dictate to developers. I actually spoke with the guy,
he is pretty much OS-agnostic, and he told me "I don't see why this is a
problem for you, there are all versions of PHP available for Linux, or
you can always use Docker."

I did not tell him that we don't have Docker either.
--
Victor Sudakov VAS4-RIPE
http://vas.tomsk.ru/
2:5005/***@fidonet
Odhiambo Washington
2021-06-07 08:33:41 UTC
Permalink
Post by Victor Sudakov
[dd]
Post by Odhiambo Washington
I did not know that there are "poudriere" unofficial repos. I thought
those
Post by Odhiambo Washington
were personal builds.
It's a terminological question mostly. For the present, I've googled
this up: https://github.com/simplerezo/freebsd-ports-php-vintages
I'll try if it works (in a dedicated poudriere tree).
Nice one.
Just to be clear, I have never paid much attention to the likes of
poudriere as I have never had a need.
Post by Victor Sudakov
[dd]
Post by Odhiambo Washington
Post by Victor Sudakov
Post by Odhiambo Washington
Post by Victor Sudakov
It's strange and alarming that nobody cares in the FreeBSD world.
In
Post by Odhiambo Washington
Post by Victor Sudakov
Post by Odhiambo Washington
Post by Victor Sudakov
Linux, you can install all versions from packages.sury.org, and
what's
Post by Odhiambo Washington
Post by Victor Sudakov
Post by Odhiambo Washington
Post by Victor Sudakov
more, you can even have different versions simultaneously on one
system.
Post by Odhiambo Washington
Then what stops you from migrating the legacy moodle to Linux??
Nothing, actually, except my long-term preference for FreeBSD.
It just saddens me to see migrations from FreeBSD to Linux and never
vice
Post by Odhiambo Washington
Post by Victor Sudakov
versa.
Solutions come in all forms. Inadequacies too.
So what FreeBSD cannot solve, Linux will probably solve. FreeBSD loses a
follower as Linux gains one.
In this case, though, you are taking the wrong approach - insisting on
running outdated code/
Your developer should update the code. If not, just look for the right
forum and share the problematic code and
you might get advice on how to update it.
I'm not the one to dictate to developers. I actually spoke with the guy,
he is pretty much OS-agnostic, and he told me "I don't see why this is a
problem for you, there are all versions of PHP available for Linux, or
you can always use Docker."
True.
Post by Victor Sudakov
I did not tell him that we don't have Docker either.
True, but we have byhve, no?
--
Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+254 7 3200 0004/+254 7 2274 3223
"Oh, the cruft.", egrep -v "^$|^.*#" :-)
Loading...