[opensuse-buildservice] how to edit Substitute / Prefer / Ignore?

Hallo. Latest Factory changes require a lot of ugly hacks in nearly all packages in GNOME:STABLE. I guess, that it could be fixed in the Build Service repository configuration in Substitute / Prefer / Ignore tags. But I don't see any way how to edit them without direct access to the BS machines. To be changed: prefer pkg-config over pkgconfig for > 1020 and GNOME:UNSTABLE (soon in GNOME:STABLE, too) libexpat-devel -> replace by expat for <= 1020 dbus-1-glib-devel -> replace by dbus-1-devel dbus-1-glib for < 1020 texlive-devel and texlive -> replace by tetex for <= 1020 python-gtk-devel -> replace by python-gtk for < 1020 libqt4-devel -> replace by qt-devel for < 1020 libbz2-devel -> replace by bzip2 for <= 1020 And maybe also several bug-fixes (missing dependencies in older versions): NetworkManager-glib -> add also NetworkManager-gnome for < 1020 There were more fixes, but these should cover most %if %suse_version in the 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

On Fri, May 04, 2007 at 06:21:54PM +0200, Stanislav Brabec wrote:
Hallo.
Latest Factory changes require a lot of ugly hacks in nearly all packages in GNOME:STABLE.
I guess, that it could be fixed in the Build Service repository configuration in Substitute / Prefer / Ignore tags. But I don't see any way how to edit them without direct access to the BS machines.
To be changed: [...]
Adrian, you recently mentioned that the api allows editing the buildconfig meanwhile. Support on the client side (osc) is missing. Am I assuming correctly that this is what would help Stanislav? I'm looking at https://api.opensuse.org/apidocs, and there is is /source/<project>/_config as well as /build/<project>/<repository>/_buildconfig, The former returns "HTTP Error 501: Not Implemented" to a GET request. The latter is what 'osc buildconfig' uses for building locally. But according to the api docs, it doesn't implement a PUT method. Peter -- Allen Gewalten zum Trutz sich erhalten. SUSE LINUX Products GmbH Research & Development

On Friday, 4. May 2007 23:24, Dr. Peter Poeml wrote:
On Fri, May 04, 2007 at 06:21:54PM +0200, Stanislav Brabec wrote:
Hallo.
Latest Factory changes require a lot of ugly hacks in nearly all packages in GNOME:STABLE.
I guess, that it could be fixed in the Build Service repository configuration in Substitute / Prefer / Ignore tags. But I don't see any way how to edit them without direct access to the BS machines.
To be changed:
[...]
Adrian, you recently mentioned that the api allows editing the buildconfig meanwhile. Support on the client side (osc) is missing. Am I assuming correctly that this is what would help Stanislav?
I'm looking at https://api.opensuse.org/apidocs, and there is is /source/<project>/_config as well as /build/<project>/<repository>/_buildconfig,
The former returns "HTTP Error 501: Not Implemented" to a GET request.
This is the one you're looking for. The backend has it implemented and working, the error is produced by the frontend which is sending strange question marks to the backend. Will be fixed.
The latter is what 'osc buildconfig' uses for building locally. But according to the api docs, it doesn't implement a PUT method.
Peter
-- Andreas Bauer - Novell - SUSE Internal Tools --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org

On Tuesday, 8. May 2007 16:10, Andreas Bauer wrote:
On Friday, 4. May 2007 23:24, Dr. Peter Poeml wrote:
I'm looking at https://api.opensuse.org/apidocs, and there is is /source/<project>/_config as well as /build/<project>/<repository>/_buildconfig,
The former returns "HTTP Error 501: Not Implemented" to a GET request.
This is the one you're looking for. The backend has it implemented and working, the error is produced by the frontend which is sending strange question marks to the backend. Will be fixed.
Works now. Andreas -- Andreas Bauer - Novell - SUSE Internal Tools --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org

Andreas Bauer wrote:
On Tuesday, 8. May 2007 16:10, Andreas Bauer wrote:
On Friday, 4. May 2007 23:24, Dr. Peter Poeml wrote:
I'm looking at https://api.opensuse.org/apidocs, and there is is /source/<project>/_config as well as /build/<project>/<repository>/_buildconfig,
The former returns "HTTP Error 501: Not Implemented" to a GET request.
This is the one you're looking for. The backend has it implemented and working, the error is produced by the frontend which is sending strange question marks to the backend. Will be fixed.
Works now.
And how can I use it? apidocs shows only GET method. I need to modify it: Just now I can only work-around it by a lower mentioned (permanently raising) sed script. More expressions should come to prevent ugly %if %suse_version hell in spec files. /^%prep/i%debug_package 1,/^BuildRequires:/{ /^BuildRequires:/a# Auto added by sync_SuSE_to_BS:\ %if 0%{?opensuse_bs}\nBuildRequires: pkg-config\n%endif } 1,/^BuildRequires:/{ /^BuildRequires:/a# Auto added by sync_SuSE_to_BS:\ BuildRequires: mDNSResponder-devel } /^%prep/i%debug_package s/^\(Requires:.*\) libexpat-devel\(^\| \)/\1\2/ T1 a# Auto modified by sync_SuSE_to_BS:\n%if %suse_version > 1020\nRequires: libexpat-devel\n%else\nRequires: ex pat\n%endif :1 s/^\(BuildRequires:.*\) libexpat-devel\(^\| \)/\1\2/ T2 a# Auto modified by sync_SuSE_to_BS:\n%if %suse_version > 1020\nBuildRequires: libexpat-devel\n%else\nBuildRe quires: expat\n%endif :2 s/^\(Requires:.*\) libopenssl-devel\(^\| \)/\1\2/ T3 a# Auto modified by sync_SuSE_to_BS:\n%if %suse_version > 1020\nRequires: libopenssl-devel\n%else\nRequires: openssl-devel\n%endif :3 s/^\(BuildRequires:.*\) libopenssl-devel\(^\| \)/\1\2/ T4 a# Auto modified by sync_SuSE_to_BS:\n%if %suse_version > 1020\nBuildRequires: libopenssl-devel\n%else\nBuild Requires: openssl-devel\n%endif :4 s/^\(Requires:.*\) texlive-devel\(^\| \)/\1\2/ T5 a# Auto modified by sync_SuSE_to_BS:\n%if %suse_version > 1020\nRequires: texlive-devel\n%else\nRequires: tet ex\n%endif :5 s/^\(BuildRequires:.*\) texlive-devel\(^\| \)/\1\2/ T6 a# Auto modified by sync_SuSE_to_BS:\n%if %suse_version > 1020\nBuildRequires: texlive-devel\n%else\nBuildReq uires: tetex\n%endif :6 s/^\(Requires:.*\) texlive\(^\| \)/\1\2/ T7 a# Auto modified by sync_SuSE_to_BS:\n%if %suse_version > 1020\nRequires: texlive\n%else\nRequires: tetex\n%e ndif :7 s/^\(BuildRequires:.*\) texlive\(^\| \)/\1\2/ T8 a# Auto modified by sync_SuSE_to_BS:\n%if %suse_version > 1020\nBuildRequires: texlive\n%else\nBuildRequires: tetex\n%endif :8 -- 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 Friday, 11. May 2007 15:31, Stanislav Brabec wrote:
Andreas Bauer wrote:
On Tuesday, 8. May 2007 16:10, Andreas Bauer wrote:
On Friday, 4. May 2007 23:24, Dr. Peter Poeml wrote:
I'm looking at https://api.opensuse.org/apidocs, and there is is /source/<project>/_config as well as /build/<project>/<repository>/_buildconfig,
The former returns "HTTP Error 501: Not Implemented" to a GET request.
This is the one you're looking for. The backend has it implemented and working, the error is produced by the frontend which is sending strange question marks to the backend. Will be fixed.
Works now.
And how can I use it?
apidocs shows only GET method. I need to modify it:
No. From https://api.opensuse.org/apidocs#8 : PUT /source/<project>/_config Arguments: * project - Project name Change project configuration It's not very extensive documentation, but it works exactly the same as with the _meta files. GET <resource> to read it, PUT <resource> with data in HTTP body to store it. I can't help with the format of the config file itself, but that's probably not the issue here anyway. -- Andreas Bauer - Novell - SUSE Internal Tools --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
participants (3)
-
Andreas Bauer
-
Dr. Peter Poeml
-
Stanislav Brabec