FreeBSD Port: php72-7.2.0 : trouble with lang/php72 & libargon2

Oliver Schonrock oliver at schonrocks.com
Thu Dec 7 20:21:16 UTC 2017


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=19$m=1024,t=2,p=2$aDdVOWhvWEFPS3ZEcTVJWQ$VFelNLga/k/d+j74AeA6vPweN7KvA9KGhVVL9dmnfVA
[root at 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=19$m=1024,t=2,p=2$dlh0aS9zcFpuV1FqbWpZbg$BbrqQnU/OcjDBhWz5vDPNZkAQLDlMY6XxPFScweJpj0
[root at zeta libargon2]#  pkg check --dependencies
Checking all packages: 100%
php72 is missing a required shared library: libargon2.so


----

Can anyone shed any light?

Thanks

-- 
Oliver Schönrock
email    : oliver at schonrocks.com

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20171207/51cb5a68/attachment.sig>


More information about the freebsd-ports mailing list