have pkg-config poll something that exists (#5220)

This commit is contained in:
Max Howell 2024-02-15 10:20:34 -05:00 committed by GitHub
parent 8b5a41aeb4
commit 2279dde92c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,5 +1,5 @@
distributable: distributable:
url: https://pkgconfig.freedesktop.org/releases/pkg-config-{{version}}.tar.gz url: https://pkgconfig.freedesktop.org/releases/{{version.tag}}.tar.gz
strip-components: 1 strip-components: 1
provides: provides:
@ -13,23 +13,21 @@ provides:
# platform environments. # platform environments.
versions: versions:
github: freedesktop/pkg-config/tags gitlab: gitlab.freedesktop.org:pkg-config/pkg-config/tags
strip: /^pkg-config-/ strip: /^pkg-config-/
build: build:
script: |- script:
./configure $ARGS - ./configure
make --jobs {{ hw.concurrency }} install --prefix="{{ prefix }}"
--disable-debug
--disable-host-tool
--with-internal-glib
--with-pc-path=/usr/lib/pkgconfig:/usr/share/pkgconfig # otherwise the defaults are based on our {{prefix}}
- make --jobs {{ hw.concurrency }} install
env: env:
ARGS:
- --prefix="{{ prefix }}"
- --disable-debug
- --disable-host-tool
- --with-internal-glib
# otherwise the defaults are based on our {{prefix}}
- --with-pc-path=/usr/lib/pkgconfig:/usr/share/pkgconfig
# llvm15 changed this to hard error # llvm15 changed this to hard error
CFLAGS: -Wno-error=int-conversion $CFLAGS CFLAGS: -Wno-error=int-conversion $CFLAGS
test: test:
script: pkg-config --version pkg-config --version