Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: work around issues between pkg_rpm and rpmbuild after 4.20 #4652

Merged
merged 1 commit into from
Nov 20, 2024

Conversation

jiceatscion
Copy link
Contributor

@jiceatscion jiceatscion commented Nov 18, 2024

Since rpmbuild v4.20, the _builddir variable is forcefully set to <chosen_builddir>/<pkg_name> (which is created if it doesn't exist). Any files that are not built/copied by the %prep% phase must be already present in <chosen_builddir>/<pkg_name>/[%buildsubdir].

pkg_rpm doesn't expect that and places the files to be packaged in <chosen_builddir>. Since %buildsubdir is not used (=="."), we compensate by setting it to "..". As a result <chosen_builddir>/<pkg_name>/[%buildsubdir] evaluates to <chosen_buildir> thereby restoring pre-4.20 behavior.

Since 4.20, debug-info rpms are built by default. We don't support or want that, so we now set "don't-do-it" explicitly.

Fixes #4653

Since rpmbuild 4.20 the _builddir variable is forcefully set to
<chosen_builddir>/<pkg_name> (which is created if it doesn't exist.
Any files that are not built/copied by the %prep% phase must be already
present in <chosen_builddir>/<pkg_name>/[%buildsubdir].

pkg_rpm doesn't expect that and places the files to be packaged in
<chosen_builddir>. Since %buildsubdir is not used (=="."), we compensate
by setting it to "..". As a result <chosen_builddir>/<pkg_name>/[%buildsubdir]
evaluates to <chosen_buildir> thereby restoring pre-4.20 behaviour.

Since 4.20 build-info rpms are buld by default. We don't support or want that,
so set "don't-do-it" explicitly.
@jiceatscion
Copy link
Contributor Author

This change is Reviewable

@jiceatscion jiceatscion requested a review from a team November 18, 2024 15:52
Copy link
Contributor

@oncilla oncilla left a comment

Choose a reason for hiding this comment

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

Reviewed 1 of 1 files at r1, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @jiceatscion)

@jiceatscion jiceatscion merged commit 8109a33 into scionproto:master Nov 20, 2024
6 checks passed
@jiceatscion jiceatscion deleted the rpmbuild_4_20 branch November 20, 2024 13:34
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.

buildrpm 4.20 and later are not supported
2 participants