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

patch-not-applied when using %forgeautosetup macro that wraps %autosetup #1074

Open
kaechele opened this issue Jun 15, 2023 · 4 comments
Open

Comments

@kaechele
Copy link

When a macro wraps another macro that applies patches (as with %forgeautosetup which wraps %autosetup in Fedora), patches should be deemed applied.

@damaestro
Copy link

I've also ran into this during package review.

I had split back out to %forgesetup and %autopatch -p1 to address this finding. When going through review, it was requested to change back to %forgeautosetup -p1.

rpmlint should be updated for this as %forgeautosetup does correctly apply patches.

@Conan-Kudo
Copy link
Member

As %forgeautosetup is not an upstream RPM macro, it is not eligible to be included in rpmlint code.

@damaestro
Copy link

damaestro commented Apr 21, 2024

Well... darn. Does that mean we (packagers) should use %forgesetup and %autopatch -p1? Does that mean that all reviewers of packages need to now know that %forgeautosetup is also working but not in conformance?

@Conan-Kudo
Copy link
Member

All packagers do need to be aware that %forgeautosetup is fine despite the error, yes. The way %forgeautosetup expands makes it so rpmlint can't see that it uses %autosetup underneath, maybe check with the forge-srpm-macros developer or the rpm folks to see if there's a solution.

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

No branches or pull requests

3 participants