Skip to content

configure.ac: Fix selinux PKG_CHECK_MODULES#342

Closed
perfinion wants to merge 1 commit intocontainers:mainfrom
perfinion:configure-selinux
Closed

configure.ac: Fix selinux PKG_CHECK_MODULES#342
perfinion wants to merge 1 commit intocontainers:mainfrom
perfinion:configure-selinux

Conversation

@perfinion
Copy link

The first time PKG_CHECK_MODULES is called also checks for pkg-config.
If that first call is in an optional block then later calls to
PKG_CHECK_MODULES will fail.

See https://autotools.io/pkgconfig/pkg_check_modules.html
Section 3.4. Optional Modules

Test with:
This fails:
./autogen.sh --with-bash-completion-dir=/usr/share/bash-completion/completions --enable-selinux

This succeeds:
./autogen.sh --with-bash-completion-dir=yes --enable-selinux

Signed-off-by: Jason Zaman [email protected]

The first time PKG_CHECK_MODULES is called also checks for pkg-config.
If that first call is in an optional block then later calls to
PKG_CHECK_MODULES will fail.

See https://autotools.io/pkgconfig/pkg_check_modules.html
Section 3.4. Optional Modules

Test with:
This fails:
./autogen.sh --with-bash-completion-dir=/usr/share/bash-completion/completions --enable-selinux

This succeeds:
./autogen.sh --with-bash-completion-dir=yes --enable-selinux

Signed-off-by: Jason Zaman <[email protected]>
@perfinion
Copy link
Author

Whoops, I just saw this PR which fixes the same issue: #316

Can one of these be merged?

@rh-atomic-bot
Copy link

Can one of the admins verify this patch?
I understand the following commands:

  • bot, add author to whitelist
  • bot, test pull request
  • bot, test pull request once

@smcv
Copy link
Collaborator

smcv commented Oct 27, 2022

I've merged #441 which is basically the same idea as this.

@smcv smcv closed this Oct 27, 2022
@smcv
Copy link
Collaborator

smcv commented Oct 27, 2022

(Also, consider using the new Meson build system, available since 0.6.0, which avoids Autotools quirks by not being Autotools; the Autotools build system will probably be removed at some point.)

zeyuwzy added a commit to zeyuwzy/bubblewrap-annotated that referenced this pull request Nov 8, 2022
bubblewrap 0.7.0

New features:

* `--size` option controls the size of a subsequent `--tmpfs` (containers#509)
* Better error messages if a mount operation fails (containers#472)
* Better error message if creating the new user namespace fails with
  `ENOSPC` (containers#487)
* When building as a Meson subproject, a `RUNPATH` can be set on the
  executable to make it easier to bundle its `libcap` dependency

Bug fixes:

* When building with Autotools, ensure initial setup for `pkg-config`
  is not disabled by `--with-bash-completion-dir=PATH` (containers#316, containers#342, containers#441)
* Fix test failures when running as uid 0 but with limited capabilities
  (containers#510)
* Use POSIX `command -v` in preference to non-standard `which` (containers#527)
* Fix a copy/paste error in `--help` (containers#531)

Git-EVTag-v0-SHA512: f4f6e2a92493461c2c39bacc1c3003167162113c88d2142f2041dcb830f3bd3a7df541aad361d1e6ce99576d66bd7eac1065340406e294cd4769b9c4c81c2a2c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants