Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#11762 - [PATCH] core/ncurses: Enable parallell builds

Attached to Project: Arch Linux
Opened by Natanael Copa (ncopa) - Thursday, 16 October 2008, 08:02 GMT
Last edited by Allan McRae (Allan) - Saturday, 18 October 2008, 05:12 GMT
Task Type Feature Request
Category Packages: Core
Status Closed
Assigned To Allan McRae (Allan)
Architecture All
Severity Low
Priority Normal
Reported Version None
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

Attatched patch enables parallell builds for ncurses wich reduces compiletime on dual core build machines.

Additional info:

The patch makes the sources with -j1 (turns of parallell builds) before it builds the rest. This is how Gentoo does too.

Steps to reproduce:
This task depends upon

Closed by  Allan McRae (Allan)
Saturday, 18 October 2008, 05:12 GMT
Reason for closing:  Won't implement
Additional comments about closing:  Parallel builds will work with next upstream release
Comment by Jan de Groot (JGC) - Thursday, 16 October 2008, 08:06 GMT
Be sure to add || return 1 also there, we don't want to have a garbled ncurses because this step failed and parallel build is done anyways in the final make step.
Comment by Natanael Copa (ncopa) - Thursday, 16 October 2008, 11:10 GMT
new patch with || return 1 as requested.

Comment by Allan McRae (Allan) - Thursday, 16 October 2008, 11:21 GMT
This patch saves me less than a minute at the cost of making the PKGBUILD (slightly) more complex. So, is this really needed in a binary distribution?
Comment by Natanael Copa (ncopa) - Thursday, 16 October 2008, 11:56 GMT
It reduced build time with approx 33% on my dual-core. I consider that improvement yes.

If its needed? No its not needed. I just tried to be nice and contribute back.

Sorry for wasting your time.
Comment by Allan McRae (Allan) - Thursday, 16 October 2008, 12:19 GMT
It was not a waste of anybody's time and I appreciate this being brought up. I was just bring up the consideration of packaging simplicity versus gains in speed. However, I do tend to lean towards simpler looking PKGBUILDs.
Comment by Attila (attila) - Thursday, 16 October 2008, 15:50 GMT
I have a dual2core too and i prefer to use MAKEFLAGS="-j4" in my /etc/makepkg.conf. I suggest to use options=(!makeflags) at the beginning (as in the ncurses PKGBUILD) instead of using "make -j1/2/4" in the middle because than it is easier to find and to change it. But this be only my 2c.
Comment by Allan McRae (Allan) - Saturday, 18 October 2008, 05:11 GMT
I have tested the latest upstream snapshot and its seems to compile fine with -j2/4. Whenever the next release is made I will remove the options=(!makeflags) line.

Loading...