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

Drop architecture from %builddir path #3069

Merged
merged 1 commit into from
Apr 30, 2024

Conversation

pmatilai
Copy link
Member

@pmatilai pmatilai commented Apr 30, 2024

This causes more issues than it solves, at least presently. For one, when BuildArch is used it typically causes the path to disagree with the actual arch (eg on noarch packages). Which looks weird and causes yet other issues in turn. The other issue, raised by Neal Gompa, is that it can cause superfluous path differences in noarch subpackages, which sharing the noarch package across multiple architectures in at least koji.

Use -build suffix instead of %{_arch}. -build may seem redundant since by default it's in BUILD directory already, but this makes it more obvious in cases where the default is overridden (eg fedpkg overrides to current directory), and helps differentiating it from the %buildsubdir directory commonly created by %setup.

Suggested-by: Neal Gompa [email protected]

@pmatilai pmatilai force-pushed the builddir-name branch 2 times, most recently from 658bc4f to 885c1f5 Compare April 30, 2024 05:52
This causes more issues than it solves, at least presently. For one,
when BuildArch is used it typically causes the path to disagree with the
actual arch (eg on noarch packages). Which looks weird and causes yet
other issues in turn. The other issue, raised by Neal Gompa, is that
it can cause superfluous path differences in noarch subpackages, which
sharing the noarch package across multiple architectures in at least
koji.

Use -build suffix instead of %{_arch}. -build may seem redundant since
by default it's in BUILD directory already, but this makes it more
obvious in cases where the default is overridden (eg fedpkg overrides to
current directory), and helps differentiating it from the %buildsubdir
directory commonly created by %setup.

Suggested-by: Neal Gompa <[email protected]>
@pmatilai pmatilai merged commit dde4fe5 into rpm-software-management:master Apr 30, 2024
1 check passed
@pmatilai pmatilai deleted the builddir-name branch April 30, 2024 06:07
@Conan-Kudo
Copy link
Member

Oh hey, thanks for that! 😅

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.

None yet

2 participants