[opensuse-buildservice] ANN: osc local build support
Hi, the latest osc package (0.7) in openSUSE:Tools has support for local builds. usage: 1. osc build <platform> <arch> <specfile> [--clean|--noinit] 2. BUILD_DIST=... osc build <specfile> [--clean|--noinit] where BUILD_DIST equals <platform>-<arch> When you call it for the first time, it will tell you how to add some configuration to ~/.oscrc. You may want to configure sudo with option NOPASSWD for /usr/bin/build and set su-wrapper to 'sudo' in .oscrc. Let me know how it works you. Regards, Peter -- SUSE LINUX Products GmbH Thought is limitation. Research & Development Free your mind.
hehehe thats some retaliation to my "would be nice to support local build" great job ;)
On Mon, Jul 17, 2006 at 04:09:08PM +0200, Dr. Peter Poeml wrote:
the latest osc package (0.7) in openSUSE:Tools has support for local builds.
usage: 1. osc build <platform> <arch> <specfile> [--clean|--noinit]
Unfortunately this does *not* work. # osc build SUSE_Factory i586 xorg-x11-libX11.spec ['/usr/bin/osc', 'build', 'i38', 'i386', 'SUSE_Factory', 'i586', 'xorg-x11-libX11.spec'] Error: specfile 'SUSE_Factory' does not exist.
2. BUILD_DIST=... osc build <specfile> [--clean|--noinit] where BUILD_DIST equals <platform>-<arch>
Works. :-)
Let me know how it works you.
Mixed results. :-) Best regards, Stefan Public Key available ------------------------------------------------------ Stefan Dirsch (Res. & Dev.) SUSE LINUX Products GmbH Tel: 0911-740 53 0 Maxfeldstraße 5 FAX: 0911-740 53 479 D-90409 Nürnberg http://www.suse.de Germany ------------------------------------------------------ --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
On Mon, Aug 14, 2006 at 02:51:28PM +0200, Stefan Dirsch wrote:
On Mon, Jul 17, 2006 at 04:09:08PM +0200, Dr. Peter Poeml wrote:
the latest osc package (0.7) in openSUSE:Tools has support for local builds.
usage: 1. osc build <platform> <arch> <specfile> [--clean|--noinit]
Unfortunately this does *not* work.
# osc build SUSE_Factory i586 xorg-x11-libX11.spec ['/usr/bin/osc', 'build', 'i38', 'i386', 'SUSE_Factory', 'i586', 'xorg-x11-libX11.spec'] Error: specfile 'SUSE_Factory' does not exist.
BUILD_DIST must *not* be set! Could you add this information to the 'osc help build' text? Best regards, Stefan P.S.: Matthias, thanks for the hint. I simply forgot that I've set BUILD_DIST=$(uname -i) since years. Public Key available ------------------------------------------------------ Stefan Dirsch (Res. & Dev.) SUSE LINUX Products GmbH Tel: 0911-740 53 0 Maxfeldstraße 5 FAX: 0911-740 53 479 D-90409 Nürnberg http://www.suse.de Germany ------------------------------------------------------ --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
On 2006-08-15 02:30:06 +0200, Stefan Dirsch wrote:
Unfortunately this does *not* work.
# osc build SUSE_Factory i586 xorg-x11-libX11.spec ['/usr/bin/osc', 'build', 'i38', 'i386', 'SUSE_Factory', 'i586', 'xorg-x11-libX11.spec'] Error: specfile 'SUSE_Factory' does not exist.
BUILD_DIST must *not* be set! Could you add this information to the 'osc help build' text?
actually i requested that it should honor BUILD_DIST and BUILD_ROOT so you can do [[[ export BUILD_DIST="SUSE_Factory-i586" export BUILD_ROOT="/var/tmp/osbuild-$BUILD_DIST" osc build *spec ]]] I agree the error handling in osc could be better.;) -- 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
Hi, with osc release 0.8, the local build feature is more useful. So far, the local spec/dsc file was not used for the calculation of BuildRequires and the like; it always used the checked-in version. Now it is possible to upload the local specfile to the server for that purpose, and this is what osc now does. There is also a few other changes in this release, some of which have already been sitting in svn for a while: - build: let envvars OSC_SU_WRAPPER and OSC_BUILD_ROOT override config - build: allow 'dynamical' build-root setting by using %(repo)s and %(arch)s - add 'createpac/editpac' and 'createprj/editprj' subcommands which are similar to 'editmeta' but should be more logical to find - added 'deletepac' subcommand - added 'linkpac' subcommand - added 'buildhistory' subcommand (formerly 'history'). This gives out some raw xml at this time - added ".git" to the excluded files - fixed issue with uploading files when an intercepting web proxy was in between osc and the api server - fixed creation of new packages/projects The release is available at http://software.opensuse.org/download/openSUSE:/Tools/ or from the svn https://forgesvn1.novell.com/svn/opensuse/trunk/buildservice/src/clientlib/p... Regards, Peter -- SUSE LINUX Products GmbH Bug, bogey, bugbear, bugaboo: Research & Development A malevolent monster (not true?); Some mischief microbic; What makes someone phobic; The work one does not want to do. From: Chris Young (The Omnificent English Dictionary In Limerick Form)
On Mon, Sep 18, 2006 at 01:46:16PM +0200, Dr. Peter Poeml wrote:
Hi,
with osc release 0.8, the local build feature is more useful. So far, the local spec/dsc file was not used for the calculation of BuildRequires and the like; it always used the checked-in version. Now it is possible to upload the local specfile to the server for that purpose, and this is what osc now does.
There is also a few other changes in this release, some of which have already been sitting in svn for a while:
- build: let envvars OSC_SU_WRAPPER and OSC_BUILD_ROOT override config - build: allow 'dynamical' build-root setting by using %(repo)s and %(arch)s - add 'createpac/editpac' and 'createprj/editprj' subcommands which are similar to 'editmeta' but should be more logical to find - added 'deletepac' subcommand - added 'linkpac' subcommand - added 'buildhistory' subcommand (formerly 'history'). This gives out some raw xml at this time - added ".git" to the excluded files - fixed issue with uploading files when an intercepting web proxy was in between osc and the api server - fixed creation of new packages/projects
The release is available at http://software.opensuse.org/download/openSUSE:/Tools/ or from the svn https://forgesvn1.novell.com/svn/opensuse/trunk/buildservice/src/clientlib/p...
Hmm ... after updating I cannot use any longer the local build feature of osc. :-( BUILD_DIST=SUSE_Factory-i586 osc build Mesa.spec ['/usr/bin/osc', 'build', 'SUSE_Factory', 'i586', 'Mesa.spec'] Getting buildinfo from server Error: can't get 'http://api.opensuse.org/rpm/xorg7/SUSE_Factory/i586/Mesa/buildinfo' HTTP Error 500: Internal Server Error wrong repo/arch? I attach the "w3m -dump http://api.opensuse.org/rpm/xorg7/SUSE_Factory/i586/Mesa/buildinfo" output. Best regards, Stefan Public Key available ------------------------------------------------------ Stefan Dirsch (Res. & Dev.) SUSE LINUX Products GmbH Tel: 0911-740 53 0 Maxfeldstraße 5 FAX: 0911-740 53 479 D-90409 Nürnberg http://www.suse.de Germany ------------------------------------------------------
On Mon, Sep 18, 2006 at 02:38:30PM +0200, Stefan Dirsch wrote:
Hmm ... after updating I cannot use any longer the local build feature of osc. :-(
BUILD_DIST=SUSE_Factory-i586 osc build Mesa.spec ['/usr/bin/osc', 'build', 'SUSE_Factory', 'i586', 'Mesa.spec'] Getting buildinfo from server Error: can't get 'http://api.opensuse.org/rpm/xorg7/SUSE_Factory/i586/Mesa/buildinfo' HTTP Error 500: Internal Server Error wrong repo/arch?
I can reproduce that here with the xorg7 Mesa package.
I attach the "w3m -dump http://api.opensuse.org/rpm/xorg7/SUSE_Factory/i586/Mesa/buildinfo" output.
Which looks normal, since no spec file was posted by w3m and then the internal server error doesn't seem to happen. Andreas, any idea? It worked on Friday ;) Peter -- SUSE LINUX Products GmbH Bug, bogey, bugbear, bugaboo: Research & Development A malevolent monster (not true?); Some mischief microbic; What makes someone phobic; The work one does not want to do. From: Chris Young (The Omnificent English Dictionary In Limerick Form)
On Mon, Sep 18, 2006 at 02:46:49PM +0200, Dr. Peter Poeml wrote:
On Mon, Sep 18, 2006 at 02:38:30PM +0200, Stefan Dirsch wrote:
Hmm ... after updating I cannot use any longer the local build feature of osc. :-(
BUILD_DIST=SUSE_Factory-i586 osc build Mesa.spec ['/usr/bin/osc', 'build', 'SUSE_Factory', 'i586', 'Mesa.spec'] Getting buildinfo from server Error: can't get 'http://api.opensuse.org/rpm/xorg7/SUSE_Factory/i586/Mesa/buildinfo' HTTP Error 500: Internal Server Error wrong repo/arch?
I can reproduce that here with the xorg7 Mesa package.
I attach the "w3m -dump http://api.opensuse.org/rpm/xorg7/SUSE_Factory/i586/Mesa/buildinfo" output.
Which looks normal, since no spec file was posted by w3m and then the internal server error doesn't seem to happen.
Andreas, any idea?
It worked on Friday ;)
I shortly looked at it again, and all I can say is that it works for home:poeml/python-pyinotify and openSUSE:Tools/osc, but it fails for xorg7/Mesa and Apache/apache2. I have enriched osc in svn so it prints out the server response when it replies with 500 (internal server error), but unfortunately, this time it is not a helpful ruby stack trace: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <body> <h1>Application error (Apache)</h1> <p>Change this error message for exceptions thrown outside of an action (like in Dispatcher setups or broken Ruby code) in public/500.html</p> </body> </html> Regards, Peter -- SUSE LINUX Products GmbH Bug, bogey, bugbear, bugaboo: Research & Development A malevolent monster (not true?); Some mischief microbic; What makes someone phobic; The work one does not want to do. From: Chris Young (The Omnificent English Dictionary In Limerick Form)
On Mon, Sep 18, 2006 at 06:56:54PM +0200, Dr. Peter Poeml wrote:
On Mon, Sep 18, 2006 at 02:46:49PM +0200, Dr. Peter Poeml wrote:
On Mon, Sep 18, 2006 at 02:38:30PM +0200, Stefan Dirsch wrote:
Hmm ... after updating I cannot use any longer the local build feature of osc. :-(
BUILD_DIST=SUSE_Factory-i586 osc build Mesa.spec ['/usr/bin/osc', 'build', 'SUSE_Factory', 'i586', 'Mesa.spec'] Getting buildinfo from server Error: can't get 'http://api.opensuse.org/rpm/xorg7/SUSE_Factory/i586/Mesa/buildinfo' HTTP Error 500: Internal Server Error wrong repo/arch?
I can reproduce that here with the xorg7 Mesa package.
I attach the "w3m -dump http://api.opensuse.org/rpm/xorg7/SUSE_Factory/i586/Mesa/buildinfo" output.
Which looks normal, since no spec file was posted by w3m and then the internal server error doesn't seem to happen.
Andreas, any idea?
It worked on Friday ;)
I shortly looked at it again, and all I can say is that it works for home:poeml/python-pyinotify and openSUSE:Tools/osc, but it fails for xorg7/Mesa and Apache/apache2.
Hmm. Maybe it depends on the (amount of) data you send to the server? Best regards, Stefan Public Key available ------------------------------------------------------ Stefan Dirsch (Res. & Dev.) SUSE LINUX Products GmbH Tel: 0911-740 53 0 Maxfeldstraße 5 FAX: 0911-740 53 479 D-90409 Nürnberg http://www.suse.de Germany ------------------------------------------------------ --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
On Mon, Sep 18, 2006 at 08:31:50 +0200, Stefan Dirsch wrote:
On Mon, Sep 18, 2006 at 06:56:54PM +0200, Dr. Peter Poeml wrote:
On Mon, Sep 18, 2006 at 02:46:49PM +0200, Dr. Peter Poeml wrote:
On Mon, Sep 18, 2006 at 02:38:30PM +0200, Stefan Dirsch wrote:
Hmm ... after updating I cannot use any longer the local build feature of osc. :-(
BUILD_DIST=SUSE_Factory-i586 osc build Mesa.spec ['/usr/bin/osc', 'build', 'SUSE_Factory', 'i586', 'Mesa.spec'] Getting buildinfo from server Error: can't get 'http://api.opensuse.org/rpm/xorg7/SUSE_Factory/i586/Mesa/buildinfo' HTTP Error 500: Internal Server Error wrong repo/arch?
I can reproduce that here with the xorg7 Mesa package.
I attach the "w3m -dump http://api.opensuse.org/rpm/xorg7/SUSE_Factory/i586/Mesa/buildinfo" output.
Which looks normal, since no spec file was posted by w3m and then the internal server error doesn't seem to happen.
Andreas, any idea?
It worked on Friday ;)
I shortly looked at it again, and all I can say is that it works for home:poeml/python-pyinotify and openSUSE:Tools/osc, but it fails for xorg7/Mesa and Apache/apache2.
Hmm. Maybe it depends on the (amount of) data you send to the server?
Seemingly, the content of the spec file seems to play a role, so it works for some. But Andreas has added a workaround, and it works for now :-) Regards, Peter -- SUSE LINUX Products GmbH Bug, bogey, bugbear, bugaboo: Research & Development A malevolent monster (not true?); Some mischief microbic; What makes someone phobic; The work one does not want to do. From: Chris Young (The Omnificent English Dictionary In Limerick Form)
On Mon, Sep 18, 2006 at 09:19:16PM +0200, Dr. Peter Poeml wrote:
On Mon, Sep 18, 2006 at 08:31:50 +0200, Stefan Dirsch wrote:
On Mon, Sep 18, 2006 at 06:56:54PM +0200, Dr. Peter Poeml wrote:
On Mon, Sep 18, 2006 at 02:46:49PM +0200, Dr. Peter Poeml wrote:
On Mon, Sep 18, 2006 at 02:38:30PM +0200, Stefan Dirsch wrote:
Hmm ... after updating I cannot use any longer the local build feature of osc. :-(
BUILD_DIST=SUSE_Factory-i586 osc build Mesa.spec ['/usr/bin/osc', 'build', 'SUSE_Factory', 'i586', 'Mesa.spec'] Getting buildinfo from server Error: can't get 'http://api.opensuse.org/rpm/xorg7/SUSE_Factory/i586/Mesa/buildinfo' HTTP Error 500: Internal Server Error wrong repo/arch?
I can reproduce that here with the xorg7 Mesa package.
I attach the "w3m -dump http://api.opensuse.org/rpm/xorg7/SUSE_Factory/i586/Mesa/buildinfo" output.
Which looks normal, since no spec file was posted by w3m and then the internal server error doesn't seem to happen.
Andreas, any idea?
It worked on Friday ;)
I shortly looked at it again, and all I can say is that it works for home:poeml/python-pyinotify and openSUSE:Tools/osc, but it fails for xorg7/Mesa and Apache/apache2.
Hmm. Maybe it depends on the (amount of) data you send to the server?
Seemingly, the content of the spec file seems to play a role, so it works for some.
But Andreas has added a workaround, and it works for now :-)
Indeed. Thanks! Stefan Public Key available ------------------------------------------------------ Stefan Dirsch (Res. & Dev.) SUSE LINUX Products GmbH Tel: 0911-740 53 0 Maxfeldstraße 5 FAX: 0911-740 53 479 D-90409 Nürnberg http://www.suse.de Germany ------------------------------------------------------ --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
On Tue, Sep 19, 2006 at 01:14:37PM +0200, Stefan Dirsch wrote:
But Andreas has added a workaround, and it works for now :-)
Indeed. Thanks!
There is another problem, which occurs ONLY with Fedora Core. <buildinfo project="openSUSE:Tools" repository="Fedora_Core_4" package="osc"> <arch>i586</arch> <error>expansion error: nothing provides dpkg</error> <path project="openSUSE:Tools" repository="Fedora_Core_4" /> <path project="Fedora:Core4" repository="standard" /> </buildinfo> Peter -- SUSE LINUX Products GmbH Bug, bogey, bugbear, bugaboo: Research & Development A malevolent monster (not true?); Some mischief microbic; What makes someone phobic; The work one does not want to do. From: Chris Young (The Omnificent English Dictionary In Limerick Form)
On Tue, Sep 19, 2006 at 02:27:31PM +0200, Dr. Peter Poeml wrote:
On Tue, Sep 19, 2006 at 01:14:37PM +0200, Stefan Dirsch wrote:
But Andreas has added a workaround, and it works for now :-)
Indeed. Thanks!
There is another problem, which occurs ONLY with Fedora Core.
<buildinfo project="openSUSE:Tools" repository="Fedora_Core_4" package="osc"> <arch>i586</arch> <error>expansion error: nothing provides dpkg</error> <path project="openSUSE:Tools" repository="Fedora_Core_4" /> <path project="Fedora:Core4" repository="standard" /> </buildinfo>
True. Stupid typo, used "rpm" instead of "spec". Now it works. Cheers, Michael. -- Michael Schroeder mls@suse.de 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
participants (5)
-
Dr. Peter Poeml
-
Jonathan Arson
-
Marcus Rueckert
-
Michael Schroeder
-
Stefan Dirsch