[opensuse-packaging] How to un-FAIL builds that install stuff into /opt?
Hi, see home:seife:testing/kvm-latest I want to build different versions of kvm, all installed into prefix /opt/kvm-%version/, but buildservice does not let me do that. I am not interested in FHS, I just want to install more than one KVM version to be able to use the one that works for the specific job. How can I override this <censored> check? -- Stefan Seyfried "Any ideas, John?" "Well, surrounding them's out." -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
On 05/06/2010 04:34 PM, Stefan Seyfried wrote:
Hi,
see home:seife:testing/kvm-latest
I want to build different versions of kvm, all installed into prefix /opt/kvm-%version/, but buildservice does not let me do that. I am not interested in FHS, I just want to install more than one KVM version to be able to use the one that works for the specific job.
How can I override this <censored> check?
Most probably rpmbuild the spec file with %dump in it and you will have all the macros used for the build dumped. Then select the right macro, maybe something like "__os_install_post", and redefine it. Regards Dave P -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
Am Donnerstag, 6. Mai 2010 schrieb Stefan Seyfried:
Hi,
see home:seife:testing/kvm-latest
I want to build different versions of kvm, all installed into prefix /opt/kvm-%version/, but buildservice does not let me do that. I am not interested in FHS, I just want to install more than one KVM version to be able to use the one that works for the specific job.
How can I override this <censored> check?
add a rpmlintrc file to your project:
setBadness('<message text here>',0)
and if you want to supress also the resuting warning:
addFilter("
On Thu, 6 May 2010 17:11:07 +0200 oc2pus@arcor.de wrote:
Am Donnerstag, 6. Mai 2010 schrieb Stefan Seyfried:
Hi,
see home:seife:testing/kvm-latest
I want to build different versions of kvm, all installed into prefix /opt/kvm-%version/, but buildservice does not let me do that. I am not interested in FHS, I just want to install more than one KVM version to be able to use the one that works for the specific job.
How can I override this <censored> check?
add a rpmlintrc file to your project: setBadness('<message text here>',0)
I'll try that, but check the build log: it does not complain about badness, I fear this is an error outside of the badness scale :-(
and if you want to supress also the resuting warning: addFilter("
for addFilter you can also use a regex to match the files
Thanks for the hints, I'll try them both. Have fun, seife -- Stefan Seyfried "Any ideas, John?" "Well, surrounding them's out." -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
On Thu, 6 May 2010 16:34:45 +0200
Stefan Seyfried
Hi,
see home:seife:testing/kvm-latest
I want to build different versions of kvm, all installed into prefix /opt/kvm-%version/, but buildservice does not let me do that. I am not interested in FHS, I just want to install more than one KVM version to be able to use the one that works for the specific job.
How can I override this <censored> check?
The exact error is: kvm: "/opt/kvm-0.12.3/share/qemu-kvm/virtio-drivers.iso" is not allowed anymore in FHS 2.2. (with different pathnames, of course). The interesting thing is: this string ("is not allowed anymore in FHS 2.2.") is not present in the rpmlint-mini or rpmlint-Factory package, nor in the osc or build package (they only have a check for FHS 2.3). So I'm wondering where this comes from? I was not able to override it with rpmlintrc. This really pisses me off :-( I'm a 3rd party, I'm not a distribution, so why does the buildservice prevent me from building a package like I want it to? -- Stefan Seyfried "Any ideas, John?" "Well, surrounding them's out." -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
Stefan Seyfried wrote:
The interesting thing is: this string ("is not allowed anymore in FHS 2.2.") is not present in the rpmlint-mini or rpmlint-Factory package, nor in the osc or build package (they only have a check for FHS 2.3). So I'm wondering where this comes from?
It's post-build-checks which reminds me that I forgot to actually remove the check after it got ported to rpmlint ...
I'm a 3rd party, I'm not a distribution, so why does the buildservice prevent me from building a package like I want it to?
Unfortunately there's currently no good and generic way to discriminate between a distribution package (or ones that intend to be become one) and a 3rd party add-on package. Using the rpmlintrc to hide errors is only a cludge. cu Ludwig -- (o_ Ludwig Nussel //\ V_/_ http://www.suse.de/ SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nuernberg) -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
Am Thursday 06 May 2010 16:34:45 schrieb Stefan Seyfried:
Hi,
see home:seife:testing/kvm-latest
I want to build different versions of kvm, all installed into prefix /opt/kvm-%version/, but buildservice does not let me do that. I am not interested in FHS, I just want to install more than one KVM version to be able to use the one that works for the specific job.
How can I override this <censored> check?
http://lists.opensuse.org/opensuse-buildservice/2008-11/msg00061.html Hope it helps. Best, Christopher -- SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) Maxfeldstraße 5, 90409 Nürnberg, Germany
On Thu, 6 May 2010 19:34:13 +0200
Christopher Stender
Am Thursday 06 May 2010 16:34:45 schrieb Stefan Seyfried:
How can I override this <censored> check?
http://lists.opensuse.org/opensuse-buildservice/2008-11/msg00061.html
Hope it helps.
Yes, it did. I did not know about "BuildRequires: -foo" ;-) I was almost ready to build my own post-build-checks package, but this is much easier. Thanks, seife -- Stefan Seyfried "Any ideas, John?" "Well, surrounding them's out." -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
Am Thursday 06 May 2010 20:48:15 schrieb Stefan Seyfried:
On Thu, 6 May 2010 19:34:13 +0200
Christopher Stender
wrote: Am Thursday 06 May 2010 16:34:45 schrieb Stefan Seyfried:
How can I override this <censored> check?
http://lists.opensuse.org/opensuse-buildservice/2008-11/msg00061.html
Hope it helps.
Yes, it did. I did not know about "BuildRequires: -foo" ;-)
I was almost ready to build my own post-build-checks package, but this is much easier.
Good to know that it still works. :-) Best, Christopher -- SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) Maxfeldstraße 5, 90409 Nürnberg, Germany -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
On May 06, 10 20:48:15 +0200, Stefan Seyfried wrote:
On Thu, 6 May 2010 19:34:13 +0200 Christopher Stender
wrote: Am Thursday 06 May 2010 16:34:45 schrieb Stefan Seyfried:
How can I override this <censored> check?
http://lists.opensuse.org/opensuse-buildservice/2008-11/msg00061.html
Hope it helps.
Yes, it did. I did not know about "BuildRequires: -foo" ;-)
I was almost ready to build my own post-build-checks package, but this is much easier.
Stefan, you may also want to reopen BNC#436992 'rpmlint/checks: "/opt/<foo>" is not allowed anymore in FHS 2.2.', this was closed fixed almost a year ago. http://en.opensuse.org/Packaging/RpmLint#Disarming_Fatal_Errors says: Some checks, such as security checks have such a high badness score that a single occurence already fails the build. Packages that are not intended for inclusion in openSUSE may want to turn such fatal errors into warnings. To do that create an rpmlintrc file as described in the previous section but with different content. To build a package that includes an unauthorized permissions file for example add the following line: setBadness('permissions-unauthorized-file', 0) Sounds like this also describes a solution to your case. cheers, JW- -- o \ Juergen Weigert paint it green! __/ _=======.=======_ <V> | jw@suse.de back to ascii! __/ _---|____________\/ \ | 0911 74053-508 __/ (____/ /\ (/) | _____________________________/ _/ \_ vim:set sw=2 wm=8 SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nuernberg) "You are trying to use packages from project 'openSUSE:11.2'. Note that malicious packages can compromise your system." -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
Hi Juergen,
On Fri, 7 May 2010 12:20:28 +0200
Juergen Weigert
Stefan, you may also want to reopen BNC#436992 'rpmlint/checks: "/opt/<foo>" is not allowed anymore in FHS 2.2.', this was closed fixed almost a year ago.
Actually, the title of this bug is alredy wrong wrt. this issue, that's also why it took me so long to find the real problem: This is not rpmlint! It is post-build-checks. Those are a number of scripts, run after boot, and there is no way to disable or disarm them. I was almost ready to build my own version of post-build-checks.rpm in my project, which would have just been empty ;) But I did not want to loose the checks on the other packages.
http://en.opensuse.org/Packaging/RpmLint#Disarming_Fatal_Errors says: Some checks, such as security checks have such a high badness score that a single occurence already fails the build. Packages that are not intended for inclusion in openSUSE may want to turn such fatal errors into warnings. To do that create an rpmlintrc file as described in the previous section but with different content. To build a package that includes an unauthorized permissions file for example add the following line:
setBadness('permissions-unauthorized-file', 0)
Sounds like this also describes a solution to your case.
No, because the failure did not come from rpmlint ;) But AFAICS, Ludwig has already submitted a fixed post-build-checks to Base:System and sr 39595 forwards it to FACTORY, so everything will be fine, soon. Still good to know that you can overrule the dictators by simply not installing it with "BuildRequires: -post-build-checks" ;-) have fun, seife -- Stefan Seyfried "Any ideas, John?" "Well, surrounding them's out." -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
On May 07, 10 15:33:12 +0200, Stefan Seyfried wrote:
Hi Juergen,
On Fri, 7 May 2010 12:20:28 +0200 Juergen Weigert
wrote: Stefan, you may also want to reopen BNC#436992 'rpmlint/checks: "/opt/<foo>" is not allowed anymore in FHS 2.2.', this was closed fixed almost a year ago.
Actually, the title of this bug is alredy wrong wrt. this issue, that's also why it took me so long to find the real problem:
This is not rpmlint!
It is post-build-checks.
Thanks for confirming. I believe that most part-time packagers would use the terms rpmlint and post-build-checks synonymously; the title of BNC#436992 also shows this miscoception. I've added a hint to the intro of /en.opensuse.org/Packaging/RpmLint that there is more than only rpmlint that can triggers errors. cheers, JW- -- o \ Juergen Weigert paint it green! __/ _=======.=======_ <V> | jw@suse.de back to ascii! __/ _---|____________\/ \ | 0911 74053-508 __/ (____/ /\ (/) | _____________________________/ _/ \_ vim:set sw=2 wm=8 SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nuernberg) "You are trying to use packages from project 'openSUSE:11.2'. Note that malicious packages can compromise your system." -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
On Fri, 7 May 2010 16:02:28 +0200
Juergen Weigert
I've added a hint to the intro of /en.opensuse.org/Packaging/RpmLint that there is more than only rpmlint that can triggers errors.
Thanks. I wanted to do that, too (really! ;), because I did spend quite some time to find this out (and I consider myself to be pretty experienced wrt. packaging ;), but got distracted with work and postponed it to "later". have fun, seife -- Stefan Seyfried "Any ideas, John?" "Well, surrounding them's out." -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
On Fri, May 07, 2010 at 09:44:39PM +0200, Stefan Seyfried wrote:
On Fri, 7 May 2010 16:02:28 +0200 Juergen Weigert
wrote: I've added a hint to the intro of /en.opensuse.org/Packaging/RpmLint that there is more than only rpmlint that can triggers errors.
Thanks. I wanted to do that, too (really! ;), because I did spend quite some time to find this out (and I consider myself to be pretty experienced wrt. packaging ;), but got distracted with work and postponed it to "later".
Btw, I think Ludwig has moved the check from post-build-checks to rpmlint now, not sure though. Ciao, Marcus -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
On 2010-05-07 21:51:38 +0200, Marcus Meissner wrote:
On Fri, May 07, 2010 at 09:44:39PM +0200, Stefan Seyfried wrote:
On Fri, 7 May 2010 16:02:28 +0200 Juergen Weigert
wrote: I've added a hint to the intro of /en.opensuse.org/Packaging/RpmLint that there is more than only rpmlint that can triggers errors.
Thanks. I wanted to do that, too (really! ;), because I did spend quite some time to find this out (and I consider myself to be pretty experienced wrt. packaging ;), but got distracted with work and postponed it to "later".
Btw, I think Ludwig has moved the check from post-build-checks to rpmlint now, not sure though.
the check in post-build-checks is removed in factory now. so just rpmlint left. darix -- openSUSE - SUSE Linux is my linux openSUSE is good for you www.opensuse.org -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
What I want to do. Successfully build a .rpm based on paching the 2.6.33 kernel with the reiser4-for-2.6.33.patch.gz patch applied to it, and produce a .rpm as a result. - It wowld need to do the following bits like - zcat ../reiser4-xxxxxx.gz | patch -p1 - make oldconfig - make menuconfig - enable R4 and confgure what you wish - make the rpms what is wanted, a .spec file to do the above steps. Thanks Glenn -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
Stefan Seyfried wrote:
Still good to know that you can overrule the dictators by simply not installing it with "BuildRequires: -post-build-checks" ;-)
Well, those checks are the first (and for many packages the only) level of QA. The checks ensure some basic quality standards at least. Having a different policy for openSUSE and 3rd party packages about what constitutes an error is not implemented currently though. Having to disable post-build-checks entirely just to get rid of the /opt check is really unfortunate as post-build-checks contains quite some checks that are useful even for 3rd party packages. cu Ludwig -- (o_ Ludwig Nussel //\ V_/_ http://www.suse.de/ SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nuernberg) -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
El 06/05/10 10:34, Stefan Seyfried escribió:
Hi,
see home:seife:testing/kvm-latest
I want to build different versions of kvm, all installed into prefix /opt/kvm-%version/, but buildservice does not let me do that. I am not interested in FHS, I just want to install more than one KVM version to be able to use the one that works for the specific job.
How can I override this <censored> check?
workaround is to use /opt/novell as well. -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
participants (10)
-
Christopher Stender
-
Cristian Rodríguez
-
Dave Plater
-
doiggl@velocitynet.com.au
-
Juergen Weigert
-
Ludwig Nussel
-
Marcus Meissner
-
Marcus Rueckert
-
oc2pus@arcor.de
-
Stefan Seyfried