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

rpm 4.20 declarative build: rpmlint warns about missing sections #1311

Open
DimStar77 opened this issue Feb 1, 2025 · 0 comments
Open

rpm 4.20 declarative build: rpmlint warns about missing sections #1311

DimStar77 opened this issue Feb 1, 2025 · 0 comments

Comments

@DimStar77
Copy link
Contributor

openSUSE Tumbleweed has just been updated to RPM 4.20 and I started testing/playing the new declarative build system

a simple package can be found at
https://build.opensuse.org/package/show/home:dimstar:meson/libspelling

(note the BuildSystem: meson part, which in turn means the simplest of packages can skipt prep/conf/build/install/check phases (all done implicit by the BuildSystem expansion)

So far the theory - and in practice, this works (as one can see, the package builds successful and is usable)

RPMLint though does not know/understand this concept (yet) and warns about:

libspelling.spec: W: no-%prep-section
The spec file does not contain a %prep section.  Even if some packages don't
directly need it, section markers may be overridden in rpm's configuration to
provide additional 'under the hood' functionality.  Add the section, even if
empty.

libspelling.spec: W: no-%check-section
The spec file does not contain an %check section. Please check if the package
has a testsuite and what it takes to enable the testsuite as part of the
package build. If it is not possible to run it in the build environment
(OBS/koji) or no testsuite exists, then please ignore this warning. You should
not insert an empty %check section.

libspelling.spec: W: no-%build-section
The spec file does not contain a %build section.  Even if some packages don't
directly need it, section markers may be overridden in rpm's configuration to
provide additional 'under the hood' functionality, such as injection of
automatic -debuginfo subpackages.  Add the section, even if empty.

Technically, it's true, there are no such sections in the spec file - but as said: they don't have to be there unless one wants to override them

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

1 participant