You are not logged in.

#1 2012-03-22 22:32:10

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,731
Website

modifying makepkg to use a nice level by default

I opened a task requesting this behavior but wanted to try to modify and submit a patch myself.  After reading through /usr/bin/makepkg I must admit that I am somewhat baffled how to do it.

Let's assume we make a new variable in /etc/makepkg.conf called "MAKEPKGNICENESS" and it is set to a number of the user's choosing.

grep MAKEPKGNICENESS /etc/makepkg.conf
MAKEPKGNICENESS=19

On line 886 of /usr/bin/makepkg we need to add this variable to the line to make sure all build variables are exported.

...this is as far as I've gotten smile

Since the PKGBUILD dictates what happens in the actual build, I don't know how to cause makepkg to renice build steps like 'make' or 'python' etc.  Love to learn from folks with greater understanding with the goal of submitting a patch to that flyspray I linked.

Thanks!

Offline

#2 2012-03-30 16:53:14

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: modifying makepkg to use a nice level by default

Your task has been closed as a duplicate. The previous task (it even included a patch) has been closed as 'Won't implement' because in Allan's opinion an alias is sufficient and more flexible.

Offline

Board footer

Powered by FluxBB