Skip to content

installation: adjust make option - #626

Open
stefanfrede wants to merge 1 commit into
containers:mainfrom
stefanfrede:install/building-from-source
Open

installation: adjust make option#626
stefanfrede wants to merge 1 commit into
containers:mainfrom
stefanfrede:install/building-from-source

Conversation

@stefanfrede

@stefanfrede stefanfrede commented Aug 3, 2026

Copy link
Copy Markdown

Podman's Makefile declares BUILDTAGS ?= as a computed list that includes $(shell hack/systemd_tag.sh), which emits systemd when the libsystemd headers are present.

Setting BUILDTAGS= on the command line replaces that list rather than adding to it, so systemd is dropped.

Concisely describe the change

Use EXTRA_BUILDTAGS to append to the computed defaults.

BUILDTAGS is replacing them.

Before screenshot / screen recording

After screenshot / screen recording

Checklist

Ensure you have completed the following checklist for your pull request to be reviewed:

  • Certify you wrote the patch or otherwise have the right to pass it on as an open-source patch by signing all
    commits. (git commit -s). (If needed, use git commit -s --amend). The author email must match
    the sign-off email address. See CONTRIBUTING.md
    for more information.
  • Referenced issues using Fixes: #00000 in commit message (if applicable)
  • PR description, commit message, and GitHub comments are human-written, per LLM Policy

Podman's Makefile declares `BUILDTAGS ?=` as a computed list that
includes `$(shell hack/systemd_tag.sh)`, which emits `systemd` when the
libsystemd headers are present.

Setting `BUILDTAGS=` on the command line **replaces** that list rather
than adding to it, so `systemd` is dropped.
Comment thread docs/installation.md
```

Podman supports optional build tags for compiling support of various features.
To add build tags to the make option the `BUILDTAGS` variable must be set, for example:

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you want

Suggested change
To add build tags to the make option the `BUILDTAGS` variable must be set, for example:
To add build tags while keeping auto-detected defaults, set EXTRA_BUILDTAGS, for example:

Comment thread docs/installation.md

If you are building on RHEL8 you'll need to build without btrfs support due to [it being removed](https://docs.redhat.com/en/documentation/red_hat_enterprise_linux/8/html/considerations_in_adopting_rhel_8/file-systems-and-storage_considerations-in-adopting-rhel-8#btrfs-has-been-removed_file-systems-and-storage):
```
make BUILDTAGS="btrfs_noversion exclude_graphdriver_btrfs"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You need EXTRA_BUILDTAGS here too

Suggested change
make EXTRA_BUILDTAGS="btrfs_noversion exclude_graphdriver_btrfs"

Please search for other instances.

Comment thread docs/installation.md
git clone https://github.com/opencontainers/runc.git $GOPATH/src/github.com/opencontainers/runc
cd $GOPATH/src/github.com/opencontainers/runc
make BUILDTAGS="selinux seccomp"
make EXTRA_BUILDTAGS="selinux seccomp"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
make EXTRA_BUILDTAGS="selinux seccomp"
make RUNC_BUILDTAGS="selinux"

runc default already includes seccomp

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.

2 participants