On Monday 2009-12-21 17:26, Marcus Meissner wrote:
On Sun, Dec 20, 2009 at 06:40:41PM +0100, Jan Engelhardt wrote:
This would be straightforward to change in .rpmmacros (and/or build's equivalents, respectively):
%_smp_mflags -l24
SUSE's specfiles however use a hardcoded %{?jobs:-j%jobs} (historic reasons?) which makes it impossible to easily change to other make flags. To that end, I am suggesting to change all %{?jobs:-j%jobs} found in specfiles by %_smp_mflags. It should be possible to do this in an automated fashion[...] Thoughts?
What do the Packaging Guidelines say about it?
"This text was imported from [[Fedora Guidelines]] and should not be used for openSUSE packaging before review!" "Please follow the [[SUSE Packaging rules]] for now." (which only link back to [[Packaging/Guidelines]]) "Whenever possible, invocations of make should be done as -j%jobs". I have no idea who came up with the idea of imposing a limitation like -j%jobs onto builders.
And btw, this is after you submitted 100+ packages already with the old style? :((
I was only going with what your packaging guidelines set forth. Consider that what I did is marking packages that are "good" for parallel builds.
It will be quite a time waster to do it again.
As I mentioned, I believe that the resubstitution can be automated. Something along the lines of for_all_projects; osc co $i for j in *.spec *.spec.in; do perl -i -pe 's/\%{\?jobs:-j\%jobs}/\%_smp_mflags/g' $j; done; echo "* ..." >>x.changes osc ci done; Now I can either do that, generating a lot of SR noise, or a powerful maintainer (global write permission) -coolo?- directly commits this to the packages without the intermittent SR step. Jan -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org