rpmlint icon indicating copy to clipboard operation
rpmlint copied to clipboard

Allow rpmlint to perform some checks on %buildroot

Open scop opened this issue 12 years ago • 2 comments

(From http://rpmlint.zarb.org/cgi-bin/trac.cgi/ticket/46, nanardon)

For some tests over binaries, rpmlint extract the rpm content into a temporary directory and find error in files.

In rpm it is possible to run any script as %post_install, the exit status of this script can be used to make the build failing.

So it came to me an idea. Why not having a rpmlint mode to perform not from a rpm but from a directory. This would allow to run it automatically as after all other scripts created by vendor and so giving immediately to the packager rpmlint error/warning.

WDYT ?

Changed 7 years ago by misc

rpmlint already have a mode to test for installed packages, but it access through the rpm db, so this is painless.

rpmlint also also have a mode check for every rpm in the directory, when given a directory, so this would requires a new option.

I fear this mode of operation will bring too much false positive ( ie check on non empty description ) or too much exceptions in the current code ( ie to avoid the previous example ).

Changed 3 years ago by scop

I'm not sure I understand what's requested here, but rpm.org rpm 4.7.0 has an option to run external tools on built packages:

http://www.rpm.org/wiki/Releases/4.7.0#Packagebuilding http://www.rpm.org/ticket/2

Does that implement what was requested here?

Original comment by: scop

scop avatar Apr 02 '13 19:04 scop

  • Milestone: 1.5 --> 1.7

Original comment by: scop

scop avatar Jul 19 '14 13:07 scop

  • Milestone: 1.7 --> future

Original comment by: scop

scop avatar Jan 24 '15 09:01 scop