Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 Dec 2017 20:21:05 +0000
From:      Oliver Schonrock <oliver@schonrocks.com>
To:        tz@FreeBSD.org
Cc:        ports <ports@FreeBSD.org>
Subject:   FreeBSD Port: php72-7.2.0 : trouble with lang/php72 & libargon2
Message-ID:  <6a2752ce-ee15-84a4-bd2b-150f614cf1a2@schonrocks.com>

next in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--BrvdMWDCNl28jcScxNqafMdLO2ieU7hNv
Content-Type: multipart/mixed; boundary="q700l0feMm9qB95QHbdeeOAA3KM3Id9TD";
 protected-headers="v1"
From: Oliver Schonrock <oliver@schonrocks.com>
To: tz@FreeBSD.org
Cc: ports <ports@FreeBSD.org>
Message-ID: <6a2752ce-ee15-84a4-bd2b-150f614cf1a2@schonrocks.com>
Subject: FreeBSD Port: php72-7.2.0 : trouble with lang/php72 & libargon2

--q700l0feMm9qB95QHbdeeOAA3KM3Id9TD
Content-Type: text/plain; charset=utf-8
Content-Language: en-GB
Content-Transfer-Encoding: quoted-printable

I am having some trouble with the libargon2 dependency for lang/php72

Summary, for full details see below:

1. In the worst case (when built on remote poudriere) php72 crashes when
using the PASSWORD_ARGON2I algo for password_hash. pkg check
--dependencies reports problem.

2. On a separate machine. When building from local ports,
password_hash(...PASSWORD_ARGON2I) works but pkg check --dependencies
still reports problem.

3. On yet another machine, installing "latest" packages from central
FreeBSD repo, it behaves exactly like the install from ports.

All machined are fully upgraded FBSD 11.1


1. BAD: from poudriere
----------------------
# on poudiere machine
# poudriere ports -u
# poudriere bulk -j111amd64 -C lang/php72 security/libargon2

# then on machine which is using the poudriere repo
# pkg upgrade -f php72 libargon2
# php -r 'echo password_hash("password", PASSWORD_ARGON2I). "\n";'
Illegal instruction (core dumped)
# php -r 'echo password_hash("password", PASSWORD_DEFAULT). "\n";'
$2y$10$G7sfHPrxSMdYhRj.mt4Xgur3B8nX7Im.TOwVjFjM/somdMLHaAev2
# pkg check --dependencies
Checking all packages: 100%
php72 is missing a required shared library: libargon2.so

2. BETTER, BUT STILL NOT GOOD: from ports
-----------------------------------------
# # on a third clean machine, build from local ports
# cd /usr/ports/lang/php72
# make clean install
# php -r 'echo password_hash("password", PASSWORD_ARGON2I). "\n";'
$argon2i$v=3D19$m=3D1024,t=3D2,p=3D2$aDdVOWhvWEFPS3ZEcTVJWQ$VFelNLga/k/d+=
j74AeA6vPweN7KvA9KGhVVL9dmnfVA
[root@zeta php72]#  pkg check --dependencies
Checking all packages: 100%
php72 is missing a required shared library: libargon2.so

3. SAME AS ABOVE: from FreeBSD repo packages
--------------------------------------------
# pkg install php72
New packages to be INSTALLED:
        php72: 7.2.0
        libargon2: 20161029

Number of packages to be installed: 2

# php -r 'echo password_hash("password", PASSWORD_ARGON2I). "\n";'
$argon2i$v=3D19$m=3D1024,t=3D2,p=3D2$dlh0aS9zcFpuV1FqbWpZbg$BbrqQnU/OcjDB=
hWz5vDPNZkAQLDlMY6XxPFScweJpj0
[root@zeta libargon2]#  pkg check --dependencies
Checking all packages: 100%
php72 is missing a required shared library: libargon2.so


----

Can anyone shed any light?

Thanks

--=20
Oliver Sch=C3=B6nrock
email    : oliver@schonrocks.com


--q700l0feMm9qB95QHbdeeOAA3KM3Id9TD--

--BrvdMWDCNl28jcScxNqafMdLO2ieU7hNv
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJaKaKxAAoJEF6SumULDx4PrHUH/jY0jfLoWi27Bg3WQ3Lu4MHX
Wb13s0/+mktWRDldawJD2w/MfNB0xn2V1K6jzA1h4zIO7AsWVA0ccIhkZ/MtwfCp
XYM3FvhKAqnc8qGZB7We3LZyEIIzert2vLKg98PKrqGQ4ttRTPO6guoQhnZG7nOM
Zl3q4UhaaDUXeG6HJ2cEkqwYiXjGhQiv3m4ottRjmMps0afLZcnIGi6AjxBLZH15
GJeIDG67GcRbxpwwLek3oXowFkCJWbx/MRk833ZyK1n5YKCepILVMPyE8GZ0rIcO
wFv1tgcsxqNNQ7jkChonySz8fqU1EuiHrFdmZToFHr7uQd8f2JFDvL4+vDm2aTA=
=J2sc
-----END PGP SIGNATURE-----

--BrvdMWDCNl28jcScxNqafMdLO2ieU7hNv--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6a2752ce-ee15-84a4-bd2b-150f614cf1a2>