Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37850277
en ru br
ALT Linux repositórios
S:4.4.0-alt2
5.0: 3.81-alt2
4.1: 3.81-alt2
4.0: 3.81-alt2
3.0: 3.81beta3-alt4

Group :: Desenvolvimento/Outros
RPM: make

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Patch: make-3.81-alt-job_slots.patch
Download


--- make-3.81/main.c
+++ make-3.81/main.c
@@ -1641,6 +1641,21 @@ main (int argc, char **argv, char **envp)
       error (NILF, _("Resetting to single job (-j1) mode."));
       job_slots = 1;
     }
+#else
+# if defined(PIPE_BUF)
+#  define MAX_JOB_SLOTS PIPE_BUF
+# elif defined(_POSIX_PIPE_BUF)
+#  define MAX_JOB_SLOTS _POSIX_PIPE_BUF
+# else
+#  define MAX_JOB_SLOTS 512
+# endif
+  if (job_slots > MAX_JOB_SLOTS)
+    {
+      error (NILF,
+	     _("Requested more parallel jobs (-jN) than this platform can handle."));
+      error (NILF, _("Resetting to single job (-j1) mode."));
+      job_slots = 1;
+    }
 #endif
 
 #ifdef MAKE_JOBSERVER
 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009