bugGNU Octave - Bugs: bug #67732, parallel make for "pkg...

 
 

bug #67732: parallel make for "pkg install" patch attached

Submitter:  None
Submitted:  Mon 24 Nov 2025 07:22:34 PM UTC
   
 
Category:  Octave Package Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Performance
Status:  None Assigned to:  None
Originator Name:  Originator Email:  -email is unavailable-
Open/Closed:  * Open Release:  * dev
Operating System:  * Any Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Post a Comment

Add a New Comment Rich Markup
   

Discussion

Mon 24 Nov 2025 07:22:34 PM UTC, original submission:  

Hello "pkg install control" is taking very long because no parallel build. This patch makes building parallel. Now "pkg install control" is very fast.


diff --git a/src/mkoctfile.in.cc b/src/mkoctfile.in.cc
--- a/src/mkoctfile.in.cc
+++ b/src/mkoctfile.in.cc
@@ -1215,7 +1215,7 @@ main (int argc, char **sys_argv)
             = (vars["F77"] + " -c " + vars["FPICFLAG"] + ' '
                + vars["ALL_FFLAGS"] + ' ' + incflags + ' ' + defs + ' '
                + pass_on_options + ' ' + quote_path (f)
-               + " -o " + quote_path (o));
+               + " -o " + quote_path (o) + " &");

           int status = run_command (cmd, verbose, printonly);

@@ -1255,7 +1255,7 @@ main (int argc, char **sys_argv)
             = (vars["CC"] + " -c " + vars["CPPFLAGS"] + ' '
                + vars["CPICFLAG"] + ' ' + vars["ALL_CFLAGS"] + ' '
                + pass_on_options + ' ' + incflags + ' ' + defs + ' '
-               + quote_path (f) + " -o " + quote_path (o));
+               + quote_path (f) + " -o " + quote_path (o) + " &");

           int status = run_command (cmd, verbose, printonly);

@@ -1295,7 +1295,7 @@ main (int argc, char **sys_argv)
             = (vars["CXX"] + " -c " + vars["CPPFLAGS"] + ' '
                + vars["CXXPICFLAG"] + ' ' + vars["ALL_CXXFLAGS"] + ' '
                + pass_on_options + ' ' + incflags + ' ' + defs + ' '
-               + quote_path (f) + " -o " + quote_path (o));
+               + quote_path (f) + " -o " + quote_path (o) + " &");

           int status = run_command (cmd, verbose, printonly);


Anonymous

 

Attached Files

This item currently has no attached files.

(Note: upload size limit is set to 4.0MiB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

 

Dependencies

This item does not depend on any other items.

No items depend on this one.

 

Mail Notification Carbon-Copy List

 

Votes

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

Only group members can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

History

No changes have been made to this item

Back to the top

Powered by Savane 3.16-a7ba.
Corresponding source code