Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 98390 - net-libs/gnutls compiles and installs with a little help on OSX
Summary: net-libs/gnutls compiles and installs with a little help on OSX
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Mac OSX (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo for Mac OS X
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-08 13:21 UTC by Fabian Groffen
Modified: 2006-04-12 10:53 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
patch made to the gnutls ebuild to get it to successful install on OSX (gnutls-1.2.4.ebuild.patch,1.05 KB, patch)
2005-07-08 13:24 UTC, Fabian Groffen
Details | Diff
A more careful replacement patch for the gnutls-1.2.4 ebuild (gnutls-1.2.4.ebuild.patch,956 bytes, patch)
2005-07-09 00:55 UTC, Fabian Groffen
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Fabian Groffen gentoo-dev 2005-07-08 13:21:51 UTC
gnutls compiles fine out of the box, but has a problem installing when using
multiple parallel makes.  Forcing make install to use only a single invocation
("-j1") solves this installation problem on OSX.

Reproducible: Always
Steps to Reproduce:
1. emerge gnutls
2.
3.

Actual Results:  
emerge failed on install phase

Expected Results:  
just install fine

apparently some sort of race condition persist due to make not being able to
completely figure out the right dependencies on OSX when using multiple parallel
make processes (with -jx where x > 1).  Simply forcing it to be "-j1" fixes the
issue.
Comment 1 Fabian Groffen gentoo-dev 2005-07-08 13:24:28 UTC
Created attachment 62953 [details, diff]
patch made to the gnutls ebuild to get it to successful install on OSX

patch showing the addition of the ppc-macos arch and the forcement of the
installation phase using a single make process.
Comment 2 Lina Pezzella (RETIRED) gentoo-dev 2005-07-08 19:42:54 UTC
Unless you can verify that parallel makes die on all other archs, you really can't universally force -j1. Safest
thing to do here would be to conditional it to ppc-macos. Also, do you need to inherit libtool?
Comment 3 Fabian Groffen gentoo-dev 2005-07-09 00:55:55 UTC
Created attachment 62984 [details, diff]
A more careful replacement patch for the gnutls-1.2.4 ebuild

Indeed, libtool is not necessary, it was a leftover of previous experiments to
get it working.
I figured that forcing -j1 on the install phase wouldn't hurt, as it is in
general the cheapest phase after the hard work has been done.  However, maybe
you are right and should other arch maintainers add their arch to my if, if it
solves the same problem for them.  Only ppc-macos is now forced to "-j1" on the
"make install" phase only.
Comment 4 Lina Pezzella (RETIRED) gentoo-dev 2005-07-10 10:22:06 UTC
inCVS.