public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] make and wrappers
@ 2005-07-11 12:20 Diego 'Flameeyes' Pettenò
  2005-07-11 12:32 ` Henrik Brix Andersen
  2005-07-11 12:32 ` Ciaran McCreesh
  0 siblings, 2 replies; 8+ messages in thread
From: Diego 'Flameeyes' Pettenò @ 2005-07-11 12:20 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 1313 bytes --]

Following the discussion me and Azarah had about make commands, I've started 
thinking of a way to fix this without being too intrusive and I found a bit 
of a solution following Az's suggestion to use a wrapper script.

Let's see: we already have an emake script, but using it for "make install" is 
a no-go because it uses -jX from make.conf and that's not good.
A solution can be to improve emake wrapper to check if "install" is in its 
commandline, in which case it can automatically add a -j1 to be safe.

The the ebuilds can just use emake install to do the work, and let the profile 
define the default MAKE variable (gmake or make, we'll see in the mean time).
BDEPEND in this case should not list any kind of make.
If somethign needs exactly GNU make, it will list gmake in BDEPEND 
(sys-libs/make), and will set MAKE="gmake" in the ebuild, so that emake will 
use it.
The same when we'll have something needing bsdmake, we'll add a 
dev-util/bsdmake ebuild sometime in the future, and then just BDEPEND on || 
( sys-apps/freebsd-ubin dev-util/bsdmake ) [or just bsdmake depending if the 
bsdmake ebuild will be used on g/fbsd, too].

Comments?
-- 
Diego "Flameeyes" Pettenò
Gentoo Developer - http://dev.gentoo.org/~flameeyes/
(Gentoo/FreeBSD, Video, Gentoo/AMD64, Sound, PAM)

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-dev] make and wrappers
  2005-07-11 12:20 [gentoo-dev] make and wrappers Diego 'Flameeyes' Pettenò
@ 2005-07-11 12:32 ` Henrik Brix Andersen
  2005-07-11 13:00   ` Ciaran McCreesh
  2005-07-11 15:50   ` Kito
  2005-07-11 12:32 ` Ciaran McCreesh
  1 sibling, 2 replies; 8+ messages in thread
From: Henrik Brix Andersen @ 2005-07-11 12:32 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 541 bytes --]

On Mon, 2005-07-11 at 14:20 +0200, Diego 'Flameeyes' Pettenò wrote:
> Let's see: we already have an emake script, but using it for "make install" is 
> a no-go because it uses -jX from make.conf and that's not good.
> A solution can be to improve emake wrapper to check if "install" is in its 
> commandline, in which case it can automatically add a -j1 to be safe.

What is the problem with using -jX for `make install`?

Regards,
Brix
-- 
Henrik Brix Andersen <brix@gentoo.org>
Gentoo Metadistribution | Mobile computing herd

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-dev] make and wrappers
  2005-07-11 12:20 [gentoo-dev] make and wrappers Diego 'Flameeyes' Pettenò
  2005-07-11 12:32 ` Henrik Brix Andersen
@ 2005-07-11 12:32 ` Ciaran McCreesh
  2005-07-11 12:41   ` Diego 'Flameeyes' Pettenò
  1 sibling, 1 reply; 8+ messages in thread
From: Ciaran McCreesh @ 2005-07-11 12:32 UTC (permalink / raw
  To: gentoo-dev

On Mon, 11 Jul 2005 14:20:20 +0200 "Diego 'Flameeyes' Pettenò"
<flameeyes@gentoo.org> wrote:
| Let's see: we already have an emake script, but using it for "make
| install" is  a no-go because it uses -jX from make.conf and that's not
| good. A solution can be to improve emake wrapper to check if "install"
| is in its  commandline, in which case it can automatically add a -j1
| to be safe.

Why not check which phase you're in instead?

-- 
Ciaran McCreesh

-- 
gentoo-dev@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-dev] make and wrappers
  2005-07-11 12:32 ` Ciaran McCreesh
@ 2005-07-11 12:41   ` Diego 'Flameeyes' Pettenò
  0 siblings, 0 replies; 8+ messages in thread
From: Diego 'Flameeyes' Pettenò @ 2005-07-11 12:41 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 271 bytes --]

On Monday 11 July 2005 14:32, Ciaran McCreesh wrote:
> Why not check which phase you're in instead?
That also can be done, true.

-- 
Diego "Flameeyes" Pettenò
Gentoo Developer - http://dev.gentoo.org/~flameeyes/
(Gentoo/FreeBSD, Video, Gentoo/AMD64, Sound, PAM)

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-dev] make and wrappers
  2005-07-11 12:32 ` Henrik Brix Andersen
@ 2005-07-11 13:00   ` Ciaran McCreesh
  2005-07-11 13:02     ` Henrik Brix Andersen
  2005-07-11 15:50   ` Kito
  1 sibling, 1 reply; 8+ messages in thread
From: Ciaran McCreesh @ 2005-07-11 13:00 UTC (permalink / raw
  To: gentoo-dev

On Mon, 11 Jul 2005 14:32:06 +0200 Henrik Brix Andersen
<brix@gentoo.org> wrote:
| On Mon, 2005-07-11 at 14:20 +0200, Diego 'Flameeyes' Pettenò wrote:
| > Let's see: we already have an emake script, but using it for "make
| > install" is  a no-go because it uses -jX from make.conf and that's
| > not good. A solution can be to improve emake wrapper to check if
| > "install" is in its  commandline, in which case it can automatically
| > add a -j1 to be safe.
| 
| What is the problem with using -jX for `make install`?

Anything using a standardish autotools install can potentially explode
when parallelised.

-- 
Ciaran McCreesh

-- 
gentoo-dev@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-dev] make and wrappers
  2005-07-11 13:00   ` Ciaran McCreesh
@ 2005-07-11 13:02     ` Henrik Brix Andersen
  2005-07-11 13:16       ` Ciaran McCreesh
  0 siblings, 1 reply; 8+ messages in thread
From: Henrik Brix Andersen @ 2005-07-11 13:02 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 294 bytes --]

On Mon, 2005-07-11 at 14:00 +0100, Ciaran McCreesh wrote:
> Anything using a standardish autotools install can potentially explode
> when parallelised.

That wasn't very informative...

./Brix
-- 
Henrik Brix Andersen <brix@gentoo.org>
Gentoo Metadistribution | Mobile computing herd

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-dev] make and wrappers
  2005-07-11 13:02     ` Henrik Brix Andersen
@ 2005-07-11 13:16       ` Ciaran McCreesh
  0 siblings, 0 replies; 8+ messages in thread
From: Ciaran McCreesh @ 2005-07-11 13:16 UTC (permalink / raw
  To: gentoo-dev

On Mon, 11 Jul 2005 15:02:52 +0200 Henrik Brix Andersen
<brix@gentoo.org> wrote:
| On Mon, 2005-07-11 at 14:00 +0100, Ciaran McCreesh wrote:
| > Anything using a standardish autotools install can potentially
| > explode when parallelised.
| 
| That wasn't very informative...

Feel free to hire me to research and write a twenty page essay on the
exact details of the numerous dependency bugs for install targets
generated by automake.

-- 
Ciaran McCreesh
-- 
gentoo-dev@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-dev] make and wrappers
  2005-07-11 12:32 ` Henrik Brix Andersen
  2005-07-11 13:00   ` Ciaran McCreesh
@ 2005-07-11 15:50   ` Kito
  1 sibling, 0 replies; 8+ messages in thread
From: Kito @ 2005-07-11 15:50 UTC (permalink / raw
  To: gentoo-dev


On Jul 11, 2005, at 7:32 AM, Henrik Brix Andersen wrote:

> On Mon, 2005-07-11 at 14:20 +0200, Diego 'Flameeyes' Pettenò wrote:
>
>> Let's see: we already have an emake script, but using it for "make  
>> install" is
>> a no-go because it uses -jX from make.conf and that's not good.
>> A solution can be to improve emake wrapper to check if "install"  
>> is in its
>> commandline, in which case it can automatically add a -j1 to be safe.
>>
>
> What is the problem with using -jX for `make install`?
>

THink about what happens in most `make install` phases, files get put  
in their DESTROOT, and many times permissions are set etc. when its  
done in parallel the chances of the makefile trying to operate on non- 
existent targets is quite high, and things start to explode.

> Regards,
> Brix
> -- 
> Henrik Brix Andersen <brix@gentoo.org>
> Gentoo Metadistribution | Mobile computing herd
>


-- 
gentoo-dev@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2005-07-11 15:52 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-11 12:20 [gentoo-dev] make and wrappers Diego 'Flameeyes' Pettenò
2005-07-11 12:32 ` Henrik Brix Andersen
2005-07-11 13:00   ` Ciaran McCreesh
2005-07-11 13:02     ` Henrik Brix Andersen
2005-07-11 13:16       ` Ciaran McCreesh
2005-07-11 15:50   ` Kito
2005-07-11 12:32 ` Ciaran McCreesh
2005-07-11 12:41   ` Diego 'Flameeyes' Pettenò

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox