Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

MAKEOPTS and >-j1

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
2 posts • Page 1 of 1
Author
Message
Xake
Guru
Guru
User avatar
Posts: 588
Joined: Wed Feb 11, 2004 10:14 am
Location: Göteborg, the rainy part of scandinavia

MAKEOPTS and >-j1

  • Quote

Post by Xake » Thu Mar 01, 2007 7:53 pm

I have a network with some slow machines (pentiumII) and some MUCH faster machines (pentium4/AMD Turion 2x) and are using distcc to compile packages on my slower machines.
Today I ran distccmon-gnome on one of the slow ones to see how distcc behaved and saw some big packages (like metacity) not being distributed to other machines.
Looking at the ebuild I found

Code: Select all

MAKEOPTS="${MAKEOPTS} -j1"
and the question raising in my head is:

Is this due to bad Makefiles or is the example above the ONLY workaround?

If it is not: why do we allow us this workaround? Would it not be better to bug upstream to get their Makefiles right or patch it?

I think the above example is the wrong way to go since it gives problems with distcc, SMPs will not have their full potentials used and last but don't least: sometimes this "fix" is kept even when the problem is fixed upstream.

For example metacity: in the bugtracker there is in the bugreport for the issue of having parallel buildings at least one comment from a person who did not have problems compiling metacity-2.6.* (a package from 2003) with parallel processes. On my machine a edited ebuild (2.16.* and 2.17.*) worked with distcc and MAKEOPTS="-j" and that spawned an AWFUL lot of processes threaded over at least three diffrent machines and it compiled fine.

So is it time to place a QA for

Code: Select all

MAKEOPTS="${MAKEOPTS} -j1"
and fix this in the source rather than having a workaround in the ebuilds?
Top
moocha
Watchman
Watchman
Posts: 5722
Joined: Tue Oct 21, 2003 6:45 pm

Re: MAKEOPTS and >-j1

  • Quote

Post by moocha » Fri Mar 02, 2007 9:40 pm

Xake wrote:Is this due to bad Makefiles
Yes.
Xake wrote:Would it not be better to bug upstream to get their Makefiles right or patch it?
Definitely yes.
Xake wrote:sometimes this "fix" is kept even when the problem is fixed upstream.
True.
Xake wrote:So is it time to place a QA for

Code: Select all

MAKEOPTS="${MAKEOPTS} -j1"
and fix this in the source rather than having a workaround in the ebuilds?
The right thing to do is to find the bug that caused the workaround to be inserted in the first place and reopen it, or to open a new bug about it if no such bug could be found. Please see Gentoo Bugzilla for details.
Military Commissions Act of 2006: http://tinyurl.com/jrcto

"Those who would give up essential liberty to purchase a little temporary safety deserve neither liberty nor safety."
-- attributed to Benjamin Franklin
Top
Post Reply

2 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic