[MacPorts] #49948: python-1.0.tcl: destroot.env not always modified
#49948: python-1.0.tcl: destroot.env not always modified ------------------------+-------------------------------- Reporter: mcalhoun@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Keywords: haspatch | Port: ------------------------+-------------------------------- destroot.env is modified in {{{pre-build}}}, which means that it will not be modified with the commands {{{port build && port destroot}}}.[[BR]] Attached is a proposed solution. -- Ticket URL: <https://trac.macports.org/ticket/49948> MacPorts <https://www.macports.org/> Ports system for OS X
#49948: python-1.0.tcl: destroot.env not always modified -------------------------+-------------------------------- Reporter: mcalhoun@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: haspatch Port: | -------------------------+-------------------------------- Changes (by jmr@…): * cc: jeremyhu@… (added) Comment: r130565 was certainly incorrect to add the destroot stuff in pre-build. However I could never reproduce the problem that it supposedly solved. -- Ticket URL: <https://trac.macports.org/ticket/49948#comment:2> MacPorts <https://www.macports.org/> Ports system for OS X
#49948: python-1.0.tcl: destroot.env not always modified -------------------------+-------------------------------- Reporter: mcalhoun@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: haspatch Port: | -------------------------+-------------------------------- Changes (by jmr@…): * cc: jmr@… (added) -- Ticket URL: <https://trac.macports.org/ticket/49948#comment:3> MacPorts <https://www.macports.org/> Ports system for OS X
#49948: python-1.0.tcl: destroot.env not always modified -------------------------+-------------------------------- Reporter: mcalhoun@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: haspatch Port: | -------------------------+-------------------------------- Comment (by michaelld@…): +1 looks good to me. -Always- best programming technique to keep phases separate. -- Ticket URL: <https://trac.macports.org/ticket/49948#comment:4> MacPorts <https://www.macports.org/> Ports system for OS X
#49948: python-1.0.tcl: destroot.env not always modified -------------------------+-------------------------------- Reporter: mcalhoun@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: haspatch Port: | -------------------------+-------------------------------- Comment (by jmr@…): I'm inclined to simply remove the destroot.env unless someone can demonstrate a problem caused by that. -- Ticket URL: <https://trac.macports.org/ticket/49948#comment:6> MacPorts <https://www.macports.org/> Ports system for OS X
#49948: python-1.0.tcl: destroot.env not always modified -------------------------+-------------------------------- Reporter: mcalhoun@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: haspatch Port: | -------------------------+-------------------------------- Changes (by ryandesign@…): * cc: ryandesign@… (added) Comment: Jeremy evidently thought there was a problem that r130565 fixed, so I'd err on the side of caution and fix it as Marcus proposed in his patch. -- Ticket URL: <https://trac.macports.org/ticket/49948#comment:7> MacPorts <https://www.macports.org/> Ports system for OS X
#49948: python-1.0.tcl: destroot.env not always modified -------------------------+-------------------------------- Reporter: mcalhoun@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: haspatch Port: | -------------------------+-------------------------------- Comment (by michaelld@…): I'm with Ryan here. Given then # of ports that this change will impact, I think we're all better off erring on the side of caution. -- Ticket URL: <https://trac.macports.org/ticket/49948#comment:8> MacPorts <https://www.macports.org/> Ports system for OS X
#49948: python-1.0.tcl: destroot.env not always modified -------------------------+-------------------------------- Reporter: mcalhoun@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: haspatch Port: | -------------------------+-------------------------------- Comment (by jmr@…): I tested the examples he gave at the time and the change did nothing. https://lists.macosforge.org/pipermail/macports- dev/2015-January/029391.html Adding a chunk of code that does nothing is a bad idea. -- Ticket URL: <https://trac.macports.org/ticket/49948#comment:9> MacPorts <https://www.macports.org/> Ports system for OS X
#49948: python-1.0.tcl: destroot.env not always modified -------------------------+-------------------------------- Reporter: mcalhoun@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: haspatch Port: | -------------------------+-------------------------------- Comment (by jeremyhu@…): IIRC, having them differnet caused the destroot phase to *rebuild* the port with the new settings rather than just install what was previously built. -- Ticket URL: <https://trac.macports.org/ticket/49948#comment:11> MacPorts <https://www.macports.org/> Ports system for OS X
#49948: python-1.0.tcl: destroot.env not always modified -------------------------+-------------------------------- Reporter: mcalhoun@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: haspatch Port: | -------------------------+-------------------------------- Comment (by michaelld@…): OK; yeah. What Jeremy writes sounds correct. Maybe we need duplicate build and destroot phase settings: both in both areas so that the builds are consistent no matter which phase one starts in? Redundant, yes; but, maybe better than the alternative. Hmmm ... Wishing whoever put that code in place also included a link to a ticket or something useful as to why it's there. Ah well; here we are now! -- Ticket URL: <https://trac.macports.org/ticket/49948#comment:12> MacPorts <https://www.macports.org/> Ports system for OS X
#49948: python-1.0.tcl: destroot.env not always modified -------------------------+-------------------------------- Reporter: mcalhoun@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: haspatch Port: | -------------------------+-------------------------------- Comment (by jmr@…): Replying to [comment:11 jeremyhu@…]:
IIRC, having them different caused the destroot phase to *rebuild* the port with the new settings rather than just install what was previously built.
If you can reproduce that, fine. But I can't. See the link in comment:9. -- Ticket URL: <https://trac.macports.org/ticket/49948#comment:13> MacPorts <https://www.macports.org/> Ports system for OS X
#49948: python-1.0.tcl: destroot.env not always modified -------------------------+-------------------------------- Reporter: mcalhoun@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: haspatch Port: | -------------------------+-------------------------------- Comment (by jeremyhu@…): I was reproducing it myself. I don't have logs from that. If you want to remove it, go ahead, and if/when it crops back up, we can re-explore it. -- Ticket URL: <https://trac.macports.org/ticket/49948#comment:14> MacPorts <https://www.macports.org/> Ports system for OS X
#49948: python-1.0.tcl: destroot.env not always modified -------------------------+-------------------------------- Reporter: mcalhoun@… | Owner: macports-tickets@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: fixed | Keywords: haspatch Port: | -------------------------+-------------------------------- Changes (by mcalhoun@…): * status: new => closed * resolution: => fixed Comment: The proposed patch was applied in r143449.[[BR]] To modify destroot.env the is now an option (r143452).[[BR]] It is turned on by default to maintain current behavior. py-numpy apparently has trouble if build.env and destroot.env are inconsistent (#34562). -- Ticket URL: <https://trac.macports.org/ticket/49948#comment:15> MacPorts <https://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts