[opensuse-buildservice] Poor man's rpmlint integration
Hi, As you probably know, we use rpmlint internally in autobuild since some time. I wrote a hack to allow something similar in the buildservice (yes, I know that proper rpmlint integration is planned in the bs). Use <repository name="openSUSE_Factory"> <path repository="openSUSE_Factory" project="home:michal-m:rpmlint"/> <arch>i586</arch> <arch>x86_64</arch> </repository> in your project config to run rpmlint after each build. Unfortunately this only works for packages that have a %clean section and only for 10.3 and Factory builds. Also please note that the repositories can be broken at any time :) For example usage, see the home:michal-m:test project. have fun, Michal --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
Hi, Michal Marek wrote:
As you probably know, we use rpmlint internally in autobuild since some time. I wrote a hack to allow something similar in the buildservice (yes, I know that proper rpmlint integration is planned in the bs).
Use
<repository name="openSUSE_Factory"> <path repository="openSUSE_Factory" project="home:michal-m:rpmlint"/> <arch>i586</arch> <arch>x86_64</arch> </repository>
in your project config to run rpmlint after each build. Unfortunately this only works for packages that have a %clean section and only for 10.3 and Factory builds. Also please note that the repositories can be broken at any time :) For example usage, see the home:michal-m:test project.
I can't easily base my builds on your project (since I need Java) but I would be interested to get that working locally with osc builds. Can I just install rpmlint and rpmlint-bs with osc's --extra-pkgs parameter? And another question: What does that mean in your prjconf: Support: rpmlint-bs Thanks, Wolfgang --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
Wolfgang Rosenauer wrote:
Hi,
Michal Marek wrote:
As you probably know, we use rpmlint internally in autobuild since some time. I wrote a hack to allow something similar in the buildservice (yes, I know that proper rpmlint integration is planned in the bs).
Use
<repository name="openSUSE_Factory"> <path repository="openSUSE_Factory" project="home:michal-m:rpmlint"/> <arch>i586</arch> <arch>x86_64</arch> </repository>
in your project config to run rpmlint after each build. Unfortunately this only works for packages that have a %clean section and only for 10.3 and Factory builds. Also please note that the repositories can be broken at any time :) For example usage, see the home:michal-m:test project.
I can't easily base my builds on your project (since I need Java)
I could add the Java repos to the project.
but I would be interested to get that working locally with osc builds. Can I just install rpmlint and rpmlint-bs with osc's --extra-pkgs parameter?
Yes, that should work. Remember that you need to have a '%clean' section in the spec for rpmlint to run at all.
And another question: What does that mean in your prjconf: Support: rpmlint-bs
The same as --extra-pkgs rpmlint-bs when doing a local build, it adds the rpmlint-bs package to the chroot (but doesn't trigger a rebuild when rpmlint-bs changes), see http://en.opensuse.org/Build_Service/Tips_and_Tricks#How_is_a_buildenvironme... Michal --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
Michal Marek wrote:
Wolfgang Rosenauer wrote:
I can't easily base my builds on your project (since I need Java)
I could add the Java repos to the project.
Actually, you should be able to combine the Java:* and the rpmlint repos in your project. Does <repository name="openSUSE_Factory"> <path repository="openSUSE_Factory" project="home:michal-m:rpmlint"/> <path repository="openSUSE_Factory" project="Java:Sun-Java-1.5"/> <arch>i586</arch> <arch>x86_64</arch> </repository> work for you? --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
Michal Marek wrote:
Michal Marek wrote:
Wolfgang Rosenauer wrote:
I can't easily base my builds on your project (since I need Java) I could add the Java repos to the project.
Actually, you should be able to combine the Java:* and the rpmlint repos in your project.
Does
<repository name="openSUSE_Factory"> <path repository="openSUSE_Factory" project="home:michal-m:rpmlint"/> <path repository="openSUSE_Factory" project="Java:Sun-Java-1.5"/> <arch>i586</arch> <arch>x86_64</arch> </repository>
work for you?
That works, thanks. But I wonder how one-click installation interacts with that setting now. I guess one-click would like to add your repository as well now what would be confusing and not necessary :-( Wolfgang --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
On Monday 21 January 2008 12:17:24 wrote Wolfgang Rosenauer:
Michal Marek wrote:
Michal Marek wrote:
Wolfgang Rosenauer wrote:
I can't easily base my builds on your project (since I need Java)
I could add the Java repos to the project.
Actually, you should be able to combine the Java:* and the rpmlint repos in your project.
Does
<repository name="openSUSE_Factory"> <path repository="openSUSE_Factory" project="home:michal-m:rpmlint"/> <path repository="openSUSE_Factory" project="Java:Sun-Java-1.5"/> <arch>i586</arch> <arch>x86_64</arch> </repository>
work for you?
That works, thanks.
But I wonder how one-click installation interacts with that setting now. I guess one-click would like to add your repository as well now what would be confusing and not necessary :-(
Right, why do you think it is not needed ? You need also java at runtime. -- Adrian Schroeter SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) email: adrian@suse.de --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
Adrian Schröter wrote:
On Monday 21 January 2008 12:17:24 wrote Wolfgang Rosenauer:
Michal Marek wrote:
Michal Marek wrote: Does
<repository name="openSUSE_Factory"> <path repository="openSUSE_Factory" project="home:michal-m:rpmlint"/> <path repository="openSUSE_Factory" project="Java:Sun-Java-1.5"/> <arch>i586</arch> <arch>x86_64</arch> </repository>
work for you? That works, thanks.
But I wonder how one-click installation interacts with that setting now. I guess one-click would like to add your repository as well now what would be confusing and not necessary :-(
Right, why do you think it is not needed ? You need also java at runtime.
Yeah but you don't need home:michal-m:rpmlint at runtime. No idea what to do about that though. Michal --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
Michal Marek wrote:
Michal Marek wrote:
Wolfgang Rosenauer wrote:
I can't easily base my builds on your project (since I need Java) I could add the Java repos to the project.
Actually, you should be able to combine the Java:* and the rpmlint repos in your project.
Does
<repository name="openSUSE_Factory"> <path repository="openSUSE_Factory" project="home:michal-m:rpmlint"/> <path repository="openSUSE_Factory" project="Java:Sun-Java-1.5"/> <arch>i586</arch> <arch>x86_64</arch> </repository>
work for you?
Aehm, and one more thing. Where to report false positives for rpmlint. Quite some checks seem to be just wrong. Wolfgang --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
On 2008-01-21 12:21:14 +0100, Wolfgang Rosenauer wrote:
Aehm, and one more thing. Where to report false positives for rpmlint. Quite some checks seem to be just wrong.
opensuse-packaging -- openSUSE - SUSE Linux is my linux openSUSE is good for you www.opensuse.org --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
Wolfgang Rosenauer wrote:
Aehm, and one more thing. Where to report false positives for rpmlint. Quite some checks seem to be just wrong.
home:michal-m:rpmlint/rpmlint is a link to home:dirkmueller. Dirk also maintains the rpmlint package internally. Michal --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
participants (4)
-
Adrian Schröter
-
Marcus Rueckert
-
Michal Marek
-
Wolfgang Rosenauer