[opensuse-buildservice] BuildRequires and Requires handling in OBS (was: [opensuse-packaging] automatic backporting of Factory packages)
Hi all! A week ago there was a discussion on packaging ml about "backporting of Factory packages" initiated by Stanislav Brabec. He wrote that he has script to handle BuildRequires and Requires replacements in spec files. (That means, automatic adding of %if %suse_version when needed). We learned that BuildService already does this but only for BuildRequires. Stanislav Brabec wrote:
It would be nice to adapt Requires, too. It's not so complicated and the fixing rule is exactly the same as BuildRequires need, so it should be trivial.
What about Requires? Any news on this issue? It would be really great if BuildService took care of both BuildRequires and Requires changes. More and more -devel packages are being created in Factory and -devel packages tend to require another -devel packages, which complicates building against older repositories. Global package mapping should be made publicly visible and there should be an easy way how to add new mappings to this global list (contact to competent person is sufficient). -- Best Regards / S pozdravom, Pavol RUSNAK SUSE LINUX, s.r.o Package Maintainer Lihovarska 1060/12 PGP 0xA6917144 19000 Praha 9, CR prusnak[at]suse.cz http://www.suse.cz --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
On Wed, May 30, 2007 at 04:51:36PM +0200, Pavol Rusnak wrote:
What about Requires? Any news on this issue? It would be really great if BuildService took care of both BuildRequires and Requires changes.
Maybe, but I'm not sure if I can use the "Substitute" mechanism for this. Substitute is not only used for renames, it is also often used to add packages to the BuildRequires. It might be wrong to also add those packages to "Requires". Cheers, Michael. -- Michael Schroeder mls@suse.de SUSE LINUX Products GmbH, GF Markus Rex, HRB 16746 AG Nuernberg main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);} --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
Michael Schroeder wrote:
On Wed, May 30, 2007 at 04:51:36PM +0200, Pavol Rusnak wrote:
What about Requires? Any news on this issue? It would be really great if BuildService took care of both BuildRequires and Requires changes.
Maybe, but I'm not sure if I can use the "Substitute" mechanism for this. Substitute is not only used for renames, it is also often used to add packages to the BuildRequires. It might be wrong to also add those packages to "Requires".
If the package name is listed in Requires of particular package and is also part of Substitute as left side, it is nearly sure, that package will break dependent builds. If you replace Requires item from the left side of Substitute by the right side, you may introduce unneeded dependencies, but package will not require additional hacks and will not break anything. So I think its better to replace. Otherwise I have to clone your BS scripts by backport-factory, which does the same, but with Requires. -- Best Regards / S pozdravem, Stanislav Brabec software developer --------------------------------------------------------------------- SUSE LINUX, s. r. o. e-mail: sbrabec@suse.cz Lihovarská 1060/12 tel: +420 284 028 966 190 00 Praha 9 fax: +420 284 028 951 Czech Republic http://www.suse.cz/ --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
On Thu, May 31, 2007 at 11:50:27AM +0200, Stanislav Brabec wrote:
Michael Schroeder wrote:
On Wed, May 30, 2007 at 04:51:36PM +0200, Pavol Rusnak wrote:
What about Requires? Any news on this issue? It would be really great if BuildService took care of both BuildRequires and Requires changes.
Maybe, but I'm not sure if I can use the "Substitute" mechanism for this. Substitute is not only used for renames, it is also often used to add packages to the BuildRequires. It might be wrong to also add those packages to "Requires".
If the package name is listed in Requires of particular package and is also part of Substitute as left side, it is nearly sure, that package will break dependent builds.
If you replace Requires item from the left side of Substitute by the right side, you may introduce unneeded dependencies, but package will not require additional hacks and will not break anything.
So I think its better to replace. Otherwise I have to clone your BS scripts by backport-factory, which does the same, but with Requires.
Okay, substitutions now also replace "Requires" lines. If the need arises, I'll add "BuildSubstitutes" (fingers crossed). Cheers, Michael. -- Michael Schroeder mls@suse.de SUSE LINUX Products GmbH, GF Markus Rex, HRB 16746 AG Nuernberg main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);} --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
Michael Schroeder wrote:
So I think its better to replace. Otherwise I have to clone your BS scripts by backport-factory, which does the same, but with Requires.
Okay, substitutions now also replace "Requires" lines. If the need arises, I'll add "BuildSubstitutes" (fingers crossed).
Looks nice. Now there is no expansion error and no hacks applied in GNOME:UNSTABLE. -- Best Regards / S pozdravem, Stanislav Brabec software developer --------------------------------------------------------------------- SUSE LINUX, s. r. o. e-mail: sbrabec@suse.cz Lihovarská 1060/12 tel: +420 284 028 966 190 00 Praha 9 fax: +420 284 028 951 Czech Republic http://www.suse.cz/ --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
participants (3)
-
Michael Schroeder
-
Pavol Rusnak
-
Stanislav Brabec