Mailinglist Archive: opensuse-buildservice (327 mails)

< Previous Next >
[opensuse-buildservice] Re: [opensuse-buildservice] Re: obs violates the debian policy §4.9.1
On Thu, Apr 14, 2011 at 10:56:09PM +0200, peer wrote:
On 04/14/2011 10:46 PM, Michal Marek wrote:
On 14.4.2011 22:04, Hans-Peter Jansen wrote:
Stephan, you probably misunderstood me. Given, debian require BS to
build their stuff with a single CPU by default, no problem, just
penalize these builds in the scheduler by _lowering_ their priority
with _factor_ 10 (est. avg. 6 CPUs, e.g. estimated to hog a build node
10 times longer than other projects packages, iow. 10 RPM builds and
then one "single CPU" debian build).
It's 2011. So how about just passing -j1 to the one or two packages
that still don't work,
Is that something I should do as end-user? Via local build? How do I
publish that package then?

You should patch the build scripts to pass -j1 to make. Looking at the
package in question,

diff --git a/1/class/makefile-vars.mk.in b/1/class/makefile-vars.mk.in
index 4cdc2c1..9154fbc 100644
--- a/1/class/makefile-vars.mk.in
+++ b/1/class/makefile-vars.mk.in
@@ -31,7 +31,7 @@ DEB_MAKE_PARALLEL ?= $(and
$(DEB_BUILD_PARALLEL),$(DEB_PARALLEL_JOBS),-j$(DEB_PA
# should set this variable to empty.
DEB_MAKE_EXTRA_ARGS ?= CFLAGS="$(or $(CFLAGS_$(cdbs_curpkg)),$(CFLAGS))"
CXXFLAGS="$(or $(CXXFLAGS_$(cdbs_curpkg)),$(CXXFLAGS))" CPPFLAGS="$(or
$(CPPFLAGS_$(cdbs_curpkg)),$(CPPFLAGS))" LDFLAGS="$(or
$(LDFLAGS_$(cdbs_curpkg)),$(LDFLAGS))" $(DEB_MAKE_PARALLEL)

-DEB_MAKE_INVOKE ?= $(DEB_MAKE_ENVVARS) $(MAKE) $(if $(DEB_MAKE_MAKEFILE), -f
$(DEB_MAKE_MAKEFILE),) -C $(cdbs_make_curbuilddir) $(DEB_MAKE_EXTRA_ARGS)
+DEB_MAKE_INVOKE ?= $(DEB_MAKE_ENVVARS) $(MAKE) $(if $(DEB_MAKE_MAKEFILE), -f
$(DEB_MAKE_MAKEFILE),) -C $(cdbs_make_curbuilddir) $(DEB_MAKE_EXTRA_ARGS) -j1

DEB_MAKE_BUILD_TARGET ?= $(DEB_BUILD_MAKE_TARGET)


--
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-buildservice+help@xxxxxxxxxxxx

< Previous Next >