Pacman

Historical bug tracker for the Pacman package manager.

The pacman bug tracker has moved to gitlab:
https://gitlab.archlinux.org/pacman/pacman/-/issues

This tracker remains open for interaction with historical bugs during the transition period. Any new bugs reports will be closed without further action.
Tasklist

FS#27752 - [makepkg] support nice for makepkg

Attached to Project: Pacman
Opened by Christian Hesse (eworm) - Wednesday, 28 December 2011, 17:53 GMT
Last edited by Allan McRae (Allan) - Monday, 23 January 2012, 22:14 GMT
Task Type Feature Request
Category General
Status Closed
Assigned To Allan McRae (Allan)
Architecture All
Severity Low
Priority Normal
Reported Version 4.0.1
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No

Details

makepkg needs a lot of system resources. I would like it to be able to nice itself.
Patch is attached and works for me.
This task depends upon

Closed by  Allan McRae (Allan)
Monday, 23 January 2012, 22:14 GMT
Reason for closing:  Won't implement
Additional comments about closing:  an alias is sufficient and more flexible
Comment by Allan McRae (Allan) - Thursday, 29 December 2011, 13:24 GMT
What is the advantage of doing it this way compared to:

alias makepkg="nice -n5 makepkg"

With the alias, you can at least run without nice using "\makepkg" and not requiring the editing of a configuration file.
Comment by Christian Hesse (eworm) - Thursday, 29 December 2011, 14:08 GMT
I use makepkg in a number of scripts that do not get my aliases.

On the other side I would prefer to call "NICE=0 makepkg" to have it not nice itself. (Attached a new patch to support that.)
Comment by Dan McGee (toofishes) - Thursday, 29 December 2011, 15:09 GMT
alias makepkgnice='nice -n5 makepkg'

It does seem we are overcomplicating something very simple here. The nice tool is built for and can wrap around any command out there.
Comment by Tomas Mudrunka (harvie) - Wednesday, 09 May 2012, 02:42 GMT
I've found better solution. Simply added following line to makepkg.conf:
renice -n 9 -p $$
can you please add it (commented) to distribution of makepkg.conf so other users will not have to reinvent it?
Comment by Christian Hesse (eworm) - Wednesday, 09 May 2012, 08:43 GMT
That works? Sure, the file is sourced from makepkg... Really great! Thanks a lot!
Comment by Tomas Mudrunka (harvie) - Monday, 21 May 2012, 15:57 GMT
This works much better as makepkg.conf is not sourced only from makepkg:

[ "$0" = '/usr/bin/makepkg' ] && renice -n 9 -p $$


I am even sourcing it from profile.d to have system-wide cflags which turned out to be a problem:

. /etc/makepkg.conf
export CARCH CHOST CFLAGS CXXFLAGS LDFLAGS MAKEFLAGS;

Loading...