[opensuse-buildservice] Problem with patching spec file: gconf2-rpm-macros and %gconf_schemas_prereq
Hello, I'm trying to rebuild pidgin for openSUSE 10.2, and noted that it uses %gconf_schemas_prereq, which is not available in stock 10.2 (it is in GNOME:unstable and openSUSE 10.3/Factory). I imported gconf2-rpm-macros from GNOME:Community, and then uploaded the following patch file for pidgin, marking it as a patch to the spec. However, building still fails when parsing the spec file, when %gconf_schemas_prereq is encountered. Moreover, gconf2-rpm-macros is never installed by the build server! Which was the problem: the version detection, or the way I created the patch? Also, what does the following do: || 0%{?opensuse_bs} Presumably %suse_version does not work on build service, and the opensuse_bs is a work-around? Won't it cause problem (for pidgin anyway) if I were to build it for, say, 10.3, if it tries to BuildReq: on gconf2-rpm-macros just because the package is built on the build server? --- pidgin.spec.old 2007-08-06 10:08:01.000000000 +0700 +++ pidgin.spec 2007-08-09 00:09:23.000000000 +0700 @@ -52,6 +52,9 @@ %if %suse_version >= 1021 || 0%{?opensuse_bs} BuildRequires: avahi-compat-howl-devel silc-toolkit-devel %endif +%if %suse_version <= 1020 +BuildRequires: gconf2-rpm-macros +%endif BuildRoot: %{_tmppath}/%{name}-%{version}-build %gconf_schemas_prereq Thanks, -- Michel --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
On 8/8/07, Michel Salim <michel.sylvan@gmail.com> wrote:
Hello,
I'm trying to rebuild pidgin for openSUSE 10.2, and noted that it uses %gconf_schemas_prereq, which is not available in stock 10.2 (it is in GNOME:unstable and openSUSE 10.3/Factory).
See X11:XGL project, almost all compiz packages there are built using new gconf macro. Cheers -J --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
On 09/08/2007, CyberOrg <jigish.gohil@gmail.com> wrote:
On 8/8/07, Michel Salim <michel.sylvan@gmail.com> wrote:
Hello,
I'm trying to rebuild pidgin for openSUSE 10.2, and noted that it uses %gconf_schemas_prereq, which is not available in stock 10.2 (it is in GNOME:unstable and openSUSE 10.3/Factory).
See X11:XGL project, almost all compiz packages there are built using new gconf macro.
Thanks. The only difference I see in compiz.spec is that you use %if %suse_version <= 1021 BuildRequires: gconf2-rpm-macros %endif so for suse_version less than or equal to 1021 (what is 1021, actually? 1020 is standard 10.2, presumably), rather than 1020 which I was using. Build still fails with the same result! The patch spec does not seem to be applied, so the build server did not install gconf2-rpm-macros. Going to try and just upload the full pidgin.spec rather than a diff. Hopefully that works. Any other suggestions? Thanks, -- Michel --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
On 8/8/07, Michel Salim <michel.sylvan@gmail.com> wrote:
On 09/08/2007, CyberOrg <jigish.gohil@gmail.com> wrote:
See X11:XGL project, almost all compiz packages there are built using new gconf macro.
Thanks. The only difference I see in compiz.spec is that you use
%if %suse_version <= 1021 BuildRequires: gconf2-rpm-macros %endif
so for suse_version less than or equal to 1021 (what is 1021, actually? 1020 is standard 10.2, presumably), rather than 1020 which I was using.
<= 1021 means less than and including 10.2 but not anything over that. That should install gconf2-rpm-macros on 10.2. Check the logs to see if it is. Ciao -J --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
On 09/08/2007, CyberOrg <jigish.gohil@gmail.com> wrote:
On 8/8/07, Michel Salim <michel.sylvan@gmail.com> wrote:
On 09/08/2007, CyberOrg <jigish.gohil@gmail.com> wrote:
See X11:XGL project, almost all compiz packages there are built using new gconf macro.
Thanks. The only difference I see in compiz.spec is that you use
%if %suse_version <= 1021 BuildRequires: gconf2-rpm-macros %endif
so for suse_version less than or equal to 1021 (what is 1021, actually? 1020 is standard 10.2, presumably), rather than 1020 which I was using.
<= 1021 means less than and including 10.2 but not anything over that.
That should install gconf2-rpm-macros on 10.2. Check the logs to see if it is.
So my second hypothesis is correct: the build service does not quite like spec patches. I uploaded the full pidgin.spec and things were building -- to a point. pidgin-2.1.0 depends on avahi-devel, which is in the # usedforbuild list, but is not mentioned in any BuildRequires: line. I'll try adding it manually, but what is the # usedforbuild list actually for? It seems to be ignored by the build server. Thanks again, -- Michel --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
Michel Salim wrote:
Which was the problem: the version detection, or the way I created the patch? Also, what does the following do:
|| 0%{?opensuse_bs}
OR it is built in Build Service
Presumably %suse_version does not work on build service, and the opensuse_bs is a work-around?
No. Some %if %suse_version were intended for rebuild in older environment. But in GNOME:UNSTABLE, where these packages reside, needed packages are updated, so plain %if %suse_version would cause problems. So I need a switch: If it is an old SuSE version or the package is built in Build Service. It is not absolutely accurate, exactly it would be: If it is an old SuSE version or the package is built in GNOME:UNSTABLE. But just now there is no chance to specify it. -- 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
Stanislav Brabec wrote:
But in GNOME:UNSTABLE, where these packages reside, needed packages are updated, so plain %if %suse_version would cause problems. So I need a switch:
If it is an old SuSE version or the package is built in Build Service.
It is not absolutely accurate, exactly it would be:
If it is an old SuSE version or the package is built in GNOME:UNSTABLE.
But just now there is no chance to specify it.
Actually it should be possible. In the bs, %distribution is contains something like "$project / $repository". Or you could define a special macro in GNOME:UNSTABLE config and test for it in the spec file. Michal --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
participants (4)
-
CyberOrg
-
Michal Marek
-
Michel Salim
-
Stanislav Brabec