[MacPorts] #15530: port build: assembled command missing parallel build argument

MacPorts noreply at macports.org
Fri Jun 6 02:04:26 PDT 2008


#15530: port build: assembled command missing parallel build argument
-------------------------------------+--------------------------------------
 Reporter:  ryandesign at macports.org  |       Owner:  afb at macports.org  
     Type:  defect                   |      Status:  new               
 Priority:  Normal                   |   Milestone:  MacPorts base bugs
Component:  base                     |     Version:  1.7.0             
 Keywords:                           |  
-------------------------------------+--------------------------------------
 I have `buildmakejobs` set to `2` and `buildnicevalue` set to `1` in my
 `macports.conf`. I'm using MacPorts trunk (@37400), Xcode 2.4.1, Mac OS X
 10.4.11, MacBook Pro. When I build e.g. apr with debug output I see this:

 {{{
 --->  Building apr with target all
 DEBUG: Executing org.macports.build (apr)
 DEBUG: port allows a parallel build
 DEBUG: Environment: "MACOSX_DEPLOYMENT_TARGET"='10.4'
 DEBUG: Assembled command: 'cd
 "/mp/var/macports/build/_Users_rschmidt_macports_dports_devel_apr/work/apr-1.2.12"
 && nice -n 1 make all'
 }}}

 The problem is it doesn't show the `-j2` argument to the make command, but
 the port does allow parallel building, and I can tell from my CPU monitor
 that the port is building in parallel. So it seems the command it says it
 assembled isn't the command it's actually running.

 In r36907 it was working properly:

 {{{
 DEBUG: Assembled command: 'cd
 "/mp/var/macports/build/_Users_rschmidt_macports_dports_devel_apr/work/apr-1.2.12"
 && nice -n 1 make -j2 all'
 [snip proper build output]
 }}}

 In r36913 and r36914 port no longer builds, and `-j2` has disappeared from
 the advertised assembled command:

 {{{
 DEBUG: Assembled command: 'cd
 "/mp/var/macports/build/_Users_rschmidt_macports_dports_devel_apr/work/apr-1.2.12"
 && make all'
 make: *** No rule to make target `all'.  Stop.
 Error: Target org.macports.build returned: shell command "nice -n 1  cd
 "/mp/var/macports/build/_Users_rschmidt_macports_dports_devel_apr/work/apr-1.2.12"
 && make all  -j2" returned error 2
 }}}

 In r36915 it builds but `-j2` is still absent from the command shown:

 {{{
 DEBUG: Assembled command: 'cd
 "/mp/var/macports/build/_Users_rschmidt_macports_dports_devel_apr/work/apr-1.2.12"
 && nice -n 1 make all'
 [snip proper build output]
 }}}

 We should fix this, but I'm also curious why the command we're running
 isn't the command we're printing. Why don't the two come from the same
 variable?

-- 
Ticket URL: <http://trac.macports.org/ticket/15530>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list