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.
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.
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
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
|
Detailsmakepkg 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
Monday, 23 January 2012, 22:14 GMT
Reason for closing: Won't implement
Additional comments about closing: an alias is sufficient and more flexible
makepkg-nice.patch
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.
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.)
It does seem we are overcomplicating something very simple here. The nice tool is built for and can wrap around any command out there.
renice -n 9 -p $$
can you please add it (commented) to distribution of makepkg.conf so other users will not have to reinvent it?
[ "$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;