Skip to content

Using configure options yields "No package was requested for installation" #423

@flavioheleno

Description

@flavioheleno

Hey folks, I'm running into an odd issue when trying to build extensions using PIE.

If I use configure options, PIE fails with "No package was requested for installation", even though I'm passing a valid package name and version.

I've tested with two different extensions, both fail the same way:

pie build \
  --skip-enable-extension \
  --with-mongodb-system-libs=/usr/include/libmongoc-1.0 \
  -- mongodb/mongodb-extension:^2.1
pie build \
  --skip-enable-extension \
  --enable-brotli \
  --with-brotli-dir=/usr \
  --enable-cares \
  --enable-mysqlnd \
  --enable-openssl \
  --with-openssl-dir=/usr \
  --enable-sockets \
  --enable-swoole-curl \
  --enable-swoole-pgsql \
  --enable-swoole-sqlite \
  -- swoole/swoole:^5.1

Both commands produce:

🥧 PHP Installer for Extensions (PIE) 1.2.1, from The PHP Foundation
You are running PHP 8.3.28
Target PHP installation: 8.3.28 nts, on Linux/OSX/etc x86_64 (from /usr/local/bin/php)

In CommandHelper.php line 235:
                                             
  No package was requested for installation  
                                             

build [-j|--make-parallel-jobs MAKE-PARALLEL-JOBS] [--skip-enable-extension] [--force] [-d|--working-dir WORKING-DIR] [--with-php-config WITH-PHP-CONFIG] [--with-php-path WITH-PHP-PATH] [--with-phpize-path WITH-PHPIZE-PATH] [--] [<requested-package-and-version>]

I also confirmed the issue is fixed if I remove all extension flags and keep just --skip-enable-extension.


Environment:

  • OS: Alpine Linux 3.22.2 (container)
  • PHP: 8.3.28 (built from source)
  • PIE: 1.2.1 (copied from ghcr.io/php/pie:1.2.1-bin)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions