[Midnightbsd-cvs] [MidnightBSD/mports] df375d: lang/php84: teach the installed libtool.m4 about M...

Lucas Holt noreply at github.com
Sun Aug 16 20:42:57 EDT 2026


  Branch: refs/heads/master
  Home:   https://github.com/MidnightBSD/mports
  Commit: df375d4cbd68f3af050cd74a4b7555a37c9c543b
      https://github.com/MidnightBSD/mports/commit/df375d4cbd68f3af050cd74a4b7555a37c9c543b
  Author: Lucas Holt <luke at foolishgames.com>
  Date:   2026-08-16 (Sun, 16 Aug 2026)

  Changed paths:
    M lang/php84/Makefile

  Log Message:
  -----------
  lang/php84: teach the installed libtool.m4 about MidnightBSD

libtool only lists freebsd* and dragonfly* as hosts that can build shared
libraries.  On MidnightBSD host_os is midnightbsd4, so the libtool that phpize
generates for every extension sets build_libtool_libs=no.  The link step then
silently produces a .la with no .so behind it and still exits 0, and the port
fails later in fake:

  libtool: func_fatal_configuration: not found
  install: .../modules/opencc.so: No such file or directory

lang/php82 and lang/php83 already rewrite dragonfly to midnightbsd in the
installed build/libtool.m4; carry the same fix forward.  Verified by patching
the installed libtool.m4 by hand and rebuilding chinese/php-opencc, which then
produces opencc.so and packages.

AI-Assisted-by: Claude Opus 5 (1M context) <noreply at anthropic.com>
Signed-off-by: Lucas Holt <luke at foolishgames.com>


  Commit: 4f1db64e6317166a05e24c1c54c4221b14453034
      https://github.com/MidnightBSD/mports/commit/4f1db64e6317166a05e24c1c54c4221b14453034
  Author: Lucas Holt <luke at foolishgames.com>
  Date:   2026-08-16 (Sun, 16 Aug 2026)

  Changed paths:
    M lang/php85/Makefile

  Log Message:
  -----------
  lang/php85: teach the installed libtool.m4 about MidnightBSD

libtool only lists freebsd* and dragonfly* as hosts that can build shared
libraries.  On MidnightBSD host_os is midnightbsd4, so the libtool that phpize
generates for every extension sets build_libtool_libs=no.  The link step then
silently produces a .la with no .so behind it and still exits 0, and the port
fails later in fake:

  libtool: func_fatal_configuration: not found
  install: .../modules/opencc.so: No such file or directory

lang/php82 and lang/php83 already rewrite dragonfly to midnightbsd in the
installed build/libtool.m4; carry the same fix forward.  Verified by patching
the installed libtool.m4 by hand and rebuilding chinese/php-opencc, which then
produces opencc.so and packages.

AI-Assisted-by: Claude Opus 5 (1M context) <noreply at anthropic.com>
Signed-off-by: Lucas Holt <luke at foolishgames.com>


  Commit: 7a7c9ab1df0715d5c94cd74892c151243032997a
      https://github.com/MidnightBSD/mports/commit/7a7c9ab1df0715d5c94cd74892c151243032997a
  Author: Lucas Holt <luke at foolishgames.com>
  Date:   2026-08-16 (Sun, 16 Aug 2026)

  Changed paths:
    A security/pecl-mcrypt/files/patch-php84

  Log Message:
  -----------
  security/pecl-mcrypt: fix the build against PHP 8.4 and later

1.0.7 still includes ext/standard/php_rand.h, which PHP 8.4 removed:

  mcrypt.c:41:10: fatal error: 'ext/standard/php_rand.h' file not found

Import FreeBSD's patch, which selects ext/random/php_random.h from 8.4 on.
The hunk is guarded by PHP_VERSION_ID >= 80400, so php82 and php83 are
unaffected.

AI-Assisted-by: Claude Opus 5 (1M context) <noreply at anthropic.com>
Signed-off-by: Lucas Holt <luke at foolishgames.com>


Compare: https://github.com/MidnightBSD/mports/compare/3300e94d9527...7a7c9ab1df07

To unsubscribe from these emails, change your notification settings at https://github.com/MidnightBSD/mports/settings/notifications


More information about the Midnightbsd-cvs mailing list