Opened 16 years ago
Closed 15 years ago
#18304 closed enhancement (fixed)
MacPorts doesn't build port "nice" if build.cmd contains a space
Reported by: | ryandesign (Ryan Carsten Schmidt) | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | MacPorts 1.9.0 |
Component: | base | Version: | 1.7.0 |
Keywords: | haspatch | Cc: | |
Port: |
Description
MacPorts can build ports "nice" so that they allow other CPU-intensive processes to take precedence. When this feature was added to MacPorts, it broke some ports, such as ocaml, because of the way they were setting build.cmd; see #16091. The solution to that ticket was to disable the nice build in this case, but I think we can do better and enable nice builds even in this case.
Attachments (1)
Change History (5)
comment:1 Changed 15 years ago by lperry (Perry Lee)
comment:2 Changed 15 years ago by lperry (Perry Lee)
Keywords: | haspatch added |
---|
Changed 15 years ago by lperry (Perry Lee)
Attachment: | patch-portbuild.tcl.diff added |
---|
comment:3 Changed 15 years ago by lperry (Perry Lee)
I've updated the patch to make it a tad smarter than before. Does this look good enough where I can commit it to trunk?
comment:4 Changed 15 years ago by raimue (Rainer Müller)
Milestone: | MacPorts Future → MacPorts 1.9.0 |
---|---|
Resolution: | → fixed |
Status: | new → closed |
Committed a completely different approach for this by using setpriority(2) in proc system instead of /usr/bin/nice
. This works now correctly with any shell command.
Fixed in r65076.
Note: See
TracTickets for help on using
tickets.
I've attached a patch that seems to work for tmux (uses an "uncreative" build.cmd) and ocaml (uses a "creative" build.cmd).