diff options
author | Michael Cummings <mcummings@gentoo.org> | 2005-02-06 12:51:23 +0000 |
---|---|---|
committer | Michael Cummings <mcummings@gentoo.org> | 2005-02-06 12:51:23 +0000 |
commit | e5db547a75bb24ecb80793caa84e2b98ba3c92f0 (patch) | |
tree | fde8b01bcf8e8f87af7cee09ccf476d297a2c603 /dev-perl/BSD-Resource/files | |
parent | Removed old versions. (diff) | |
download | gentoo-2-e5db547a75bb24ecb80793caa84e2b98ba3c92f0.tar.gz gentoo-2-e5db547a75bb24ecb80793caa84e2b98ba3c92f0.tar.bz2 gentoo-2-e5db547a75bb24ecb80793caa84e2b98ba3c92f0.zip |
Bug 79329
(Portage version: 2.0.51-r13)
Diffstat (limited to 'dev-perl/BSD-Resource/files')
-rw-r--r-- | dev-perl/BSD-Resource/files/portage_niceness.patch | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/dev-perl/BSD-Resource/files/portage_niceness.patch b/dev-perl/BSD-Resource/files/portage_niceness.patch new file mode 100644 index 000000000000..c85836c9c09b --- /dev/null +++ b/dev-perl/BSD-Resource/files/portage_niceness.patch @@ -0,0 +1,16 @@ +--- t/getpriority.t 1997-04-08 02:54:17.000000000 -0400 ++++ t/getpriority.t.new 2005-02-06 07:37:07.092780984 -0500 +@@ -12,6 +12,13 @@ + + # AIX without BSD libs has 0..39 priorities, not -20..20. + $okpriopat = $Config{'osname'} eq 'aix' ? '0|19' : '0'; ++my $priority = 0; ++if (defined($ENV{'PORTAGE_NICENESS'})) { ++ $priority = int($ENV{'PORTAGE_NICENESS'}) ++} else { ++ $priority = 19 ++} ++$okpriopat = defined($priority) ? "0|$priority" : '0'; + + $okpriopat = "^($okpriopat)"; + |