Skip to content

Bug: ext-gnupg fails to install on PHP 8.5 #1021

@spaze

Description

@spaze

Describe the bug

I'm using the gnupg extension in my workflows as follows:

    - name: "Install PHP"
      uses: shivammathur/setup-php@v2
      with:
        coverage: "none"
        php-version: ${{ matrix.php-version }}
        extensions: gnupg

It works fine with PHP 8.4, but with PHP 8.5 it fails. The log below.

Is that something you can fix on your side, or is it the extension itself? Their changelog says that 1.5.4 should support PHP 8.5, but I see that's already used in the setup.

Version

  • v2
  • v1

Runners

GitHub Hosted

Operating systems

ubuntu-latest

PHP versions

PHP 8.5

To Reproduce

      with:
        php-version: "8.5"
        extensions: gnupg

Expected behavior

ext-gnupg installs finie and is usable

Screenshots/Logs

==> Setup gnupg-1.5.4
phpize
  Configuring for:
  PHP Version:             8.5
  PHP Api Version:         20250925
  Zend Module Api No:      20250925
  Zend Extension Api No:   420250925
  configure.ac:154: warning: The macro `AC_PROG_LIBTOOL' is obsolete.
  configure.ac:154: You should run autoupdate.
  build/libtool.m4:100: AC_PROG_LIBTOOL is expanded from...
  configure.ac:154: the top level
configure
  checking for grep that handles long lines and -e... /usr/bin/grep
  checking for egrep... /usr/bin/grep -E
  checking for a sed that does not truncate output... /usr/bin/sed
  checking build system type... x86_64-pc-linux-gnu
  checking host system type... x86_64-pc-linux-gnu
  checking target system type... x86_64-pc-linux-gnu
  shtool:echo:Warning: unable to determine terminal sequence for bold mode
  shtool:echo:Warning: unable to determine terminal sequence for bold mode
  checking for gawk... gawk
  checking for pkg-config... /usr/bin/pkg-config
  checking pkg-config is at least version 0.9.0... yes
  checking for cc... cc
  checking whether the C compiler works... yes
  checking for C compiler default output file name... a.out
  checking for suffix of executables... 
  checking whether we are cross compiling... no
  checking for suffix of object files... o
  checking whether the compiler supports GNU C... yes
  checking whether cc accepts -g... yes
  checking for cc option to enable C11 features... none needed
  checking how to run the C preprocessor... cc -E
  checking for icc... no
  checking for suncc... no
  checking for system library directory... lib
  checking if compiler supports -Wl,-rpath,... yes
  checking for PHP prefix... /usr
  checking for PHP includes... -I/usr/include/php/20250925 -I/usr/include/php/20250925/main -I/usr/include/php/20250925/TSRM -I/usr/include/php/20250925/Zend -I/usr/include/php/20250925/ext -I/usr/include/php/20250925/ext/date/lib
  checking for PHP extension directory... /usr/lib/php/20250925
  checking for PHP installed headers prefix... /usr/include/php/20250925
  checking if debugging is enabled... no
  checking if PHP is built with thread safety (ZTS)... no
  
  Configuring extension
  checking for gnupg support... yes, shared
  checking for gnupg files in default path... not found
  configure: error: Please reinstall the gpgme distribution
✗ gnupg-1.5.4 Could not install gnupg-1.5.4 on PHP 8.5.0-dev
✗ gnupg Could not install gnupg on PHP 8.5.0-dev

Additional context

SEtup PHP using the workflow snippet above

Are you willing to submit a PR?

Yes

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions