[opensuse-packaging] Can I do 2 local "osc build" processes at the same time?
All, I was doing a local kernel build in support of the Evergreen project. It seemed to be moving along, but in another konsole I started a obs build on a small package. The kernel build seemed to die at that point. I did both a "osc build", and a "osc build --clean" in the small project, so either one or both of those may of been the culprit. Regardless, is there a safe way to do 2 simultaneous local builds? Thanks Greg -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
On Thu, Jun 2, 2011 at 19:21, Greg Freemyer <greg.freemyer@gmail.com> wrote:
All,
I was doing a local kernel build in support of the Evergreen project. It seemed to be moving along, but in another konsole I started a obs build on a small package.
The kernel build seemed to die at that point.
I did both a "osc build", and a "osc build --clean" in the small project, so either one or both of those may of been the culprit.
Regardless, is there a safe way to do 2 simultaneous local builds?
Thanks Greg
You can, kind of, but not by default. In your .oscrc file you have to change the build-root. I have mine set to: /home/osc/osc_roots/build-root-%(repo)s-%(arch)s You can also add things like %(project)s, %(package)s. So, as long as both packages you want to build don't match the same criteria of your build-root then you can build both at the same time. In fact, you can build as many as your computer can handle. Cheers, Stephen -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
Stephen, Awesome information, this also made up my day! Thanks for sharing... NM On Fri, Jun 3, 2011 at 4:05 AM, Stephen Shaw <sshaw@decriptor.com> wrote:
On Thu, Jun 2, 2011 at 19:21, Greg Freemyer <greg.freemyer@gmail.com> wrote:
All,
I was doing a local kernel build in support of the Evergreen project. It seemed to be moving along, but in another konsole I started a obs build on a small package.
The kernel build seemed to die at that point.
I did both a "osc build", and a "osc build --clean" in the small project, so either one or both of those may of been the culprit.
Regardless, is there a safe way to do 2 simultaneous local builds?
Thanks Greg
You can, kind of, but not by default. In your .oscrc file you have to change the build-root. I have mine set to:
/home/osc/osc_roots/build-root-%(repo)s-%(arch)s
You can also add things like %(project)s, %(package)s.
So, as long as both packages you want to build don't match the same criteria of your build-root then you can build both at the same time. In fact, you can build as many as your computer can handle.
Cheers, Stephen -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
-- Nelson Marques /* As cicatrizes lembram-nos de onde estivemos, mas não ditam para onde vamos */ -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
On Thu, Jun 2, 2011 at 21:13, Nelson Marques <nmo.marques@gmail.com> wrote:
Stephen,
Awesome information, this also made up my day! Thanks for sharing...
NM
More than happy to share. Maybe I'll blog about it tomorrow. Cheers, Stephen -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
On Thu, Jun 02, 2011 at 09:05:52PM -0600, Stephen Shaw wrote:
On Thu, Jun 2, 2011 at 19:21, Greg Freemyer <greg.freemyer@gmail.com> wrote:
All,
I was doing a local kernel build in support of the Evergreen project. It seemed to be moving along, but in another konsole I started a obs build on a small package.
The kernel build seemed to die at that point.
I did both a "osc build", and a "osc build --clean" in the small project, so either one or both of those may of been the culprit.
Regardless, is there a safe way to do 2 simultaneous local builds?
Thanks Greg
You can, kind of, but not by default. In your .oscrc file you have to change the build-root. I have mine set to:
/home/osc/osc_roots/build-root-%(repo)s-%(arch)s
You can also add things like %(project)s, %(package)s.
You can also temporarily override build-root directory with OSC_BUILD_ROOT variable: ~> OSC_BUILD_ROOT=/var/tmp/build-root-temp/ osc build <args>
So, as long as both packages you want to build don't match the same criteria of your build-root then you can build both at the same time. In fact, you can build as many as your computer can handle.
Petr -- Petr Uzel IRC: ptr_uzl @ freenode
On Thu, 2 Jun 2011 21:05:52 -0600, Stephen Shaw <sshaw@decriptor.com> wrote:
You can, kind of, but not by default. In your .oscrc file you have to change the build-root.
You don't even need to change your .oscrc file. Just set the appropriate environment variable and export it (Or pass it to the process running osc). The name escapes me atm but it's listed when you call 'osc help build'. Philipp -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
Hi and you could make use of some useful "aliases". # some obs aliases alias oscb_C='osc build -x tree --no-verify -k /srv/osbuild-packagecache/local/CentOS_5 -p /srv/osbuild-packagecache/local/CentOS_5 CentOS_5 x86_64' alias oscb_Ci='osc build -x tree --no-verify -k /srv/osbuild-packagecache/local/CentOS_5 -p /srv/osbuild-packagecache/local/CentOS_5 CentOS_5 i586' alias oscb_Fe='osc build -x tree --no-verify -k /srv/osbuild-packagecache/local/Fedora_14 -p /srv/osbuild-packagecache/local/Fedora_14 Fedora_14 x86_64' alias oscb_F='osc build -x tree -x vim --no-verify -k /srv/osbuild-packagecache/local/Factory -p /srv/osbuild-packagecache/local/Factory openSUSE_Factory x86_64' alias oscb_11='osc build -x tree -x vim --no-verify -k /srv/osbuild-packagecache/local/SLE_11 -p /srv/osbuild-packagecache/local/SLE_11 SLE_11 x86_64' alias oscb_11i='osc build -x tree -x vim --no-verify -k /srv/osbuild-packagecache/local/SLE_11 -p /srv/osbuild-packagecache/local/SLE_11 SLE_11 i586' alias oscb_10='osc build -x tree -x vim --no-verify -k /srv/osbuild-packagecache/local/SLE_10 -p /srv/osbuild-packagecache/local/SLE_10 SLE_10 x86_64' alias oscb_10i='osc build -x tree -x vim --no-verify -k /srv/osbuild-packagecache/local/SLE_10 -p /srv/osbuild-packagecache/local/SLE_10 SLE_10 i586' alias oscb_100i='osc build -x tree -x vim --no-verify -k /srv/osbuild-packagecache/local/SL_10.0 -p /srv/osbuild-packagecache/local/SL_10.0 SL_10.0 i586' alias oscb_103='osc build -x tree -x vim --no-verify -k /srv/osbuild-packagecache/local/SUSE_10.3 -p /srv/osbuild-packagecache/local/SUSE_10.3 SUSE_10.3 x86_64' alias oscb_103i='osc build -x tree -x vim --no-verify -k /srv/osbuild-packagecache/local/SUSE_10.3 -p /srv/osbuild-packagecache/local/SUSE_10.3 SUSE_10.3 i586' alias oscb_110='osc build -x tree -x vim --no-verify -k /srv/osbuild-packagecache/local/openSUSE_11.0 -p /srv/osbuild-packagecache/local/openSUSE_11.0 openSUSE_11.0 x86_64' alias oscb_111='osc build -x tree -x vim --no-verify -k /srv/osbuild-packagecache/local/openSUSE_11.1 -p /srv/osbuild-packagecache/local/openSUSE_11.1 openSUSE_11.1 x86_64' alias oscb_112='osc build -x tree -x vim --no-verify -k /srv/osbuild-packagecache/local/openSUSE_11.2 -p /srv/osbuild-packagecache/local/openSUSE_11.2 openSUSE_11.2 x86_64' alias oscb_112i='osc build -x tree -x vim --no-verify -k /srv/osbuild-packagecache/local/openSUSE_11.2 -p /srv/osbuild-packagecache/local/openSUSE_11.2 openSUSE_11.2 i586' alias oscb_113='osc build -x tree -x vim --no-verify -k /srv/osbuild-packagecache/local/openSUSE_11.3 -p /srv/osbuild-packagecache/local/openSUSE_11.3 openSUSE_11.3 x86_64' alias oscb_113i='osc build -x tree -x vim --no-verify -k /srv/osbuild-packagecache/local/openSUSE_11.3 -p /srv/osbuild-packagecache/local/openSUSE_11.3 openSUSE_11.3 i586' alias oscb_114='osc build -x tree -x vim --no-verify -k /srv/osbuild-packagecache/local/openSUSE_11.4 -p /srv/osbuild-packagecache/local/openSUSE_11.4 openSUSE_11.4 x86_64' alias oscupmfs='osc -A $(cat .osc/_apiurl) updatepacmetafromspec' alias oscmprj='osc -A $(cat .osc/_apiurl) meta -e prj $(cat .osc/_project)' alias oscmprjconf='osc -A $(cat .osc/_apiurl) meta -e prjconf $(cat .osc/_project)' alias oscmpkg='osc -A $(cat .osc/_apiurl) meta -e pkg $(cat .osc/_project) $(cat .osc/_package)' alias oscrdiff='osc -A obs rdiff openSUSE:Factory $(cat .osc/_package) $(cat .osc/_project) $(cat .osc/_package)' Am 03.06.2011 05:05, schrieb Stephen Shaw:
On Thu, Jun 2, 2011 at 19:21, Greg Freemyer<greg.freemyer@gmail.com> wrote:
All,
I was doing a local kernel build in support of the Evergreen project. It seemed to be moving along, but in another konsole I started a obs build on a small package.
The kernel build seemed to die at that point.
I did both a "osc build", and a "osc build --clean" in the small project, so either one or both of those may of been the culprit.
Regardless, is there a safe way to do 2 simultaneous local builds?
Thanks Greg You can, kind of, but not by default. In your .oscrc file you have to change the build-root. I have mine set to:
/home/osc/osc_roots/build-root-%(repo)s-%(arch)s
You can also add things like %(project)s, %(package)s.
So, as long as both packages you want to build don't match the same criteria of your build-root then you can build both at the same time. In fact, you can build as many as your computer can handle.
Cheers, Stephen
-- Christian --------------------------------------------------- Der ultimative shop für Sportbekleidung und Zubehör http://www.sc24.de --------------------------------------------------- -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
participants (6)
-
Christian
-
Greg Freemyer
-
Nelson Marques
-
Petr Uzel
-
Philipp Thomas
-
Stephen Shaw