[MacPorts] #48035: py27-chainer fails destroot
#48035: py27-chainer fails destroot ----------------------------+-------------------------------- Reporter: mschamschula@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Keywords: h | Port: py27-chainer ----------------------------+-------------------------------- https://trac.macports.org/changeset/137459 broke the destroot phase, see attached main.log.gz. Adding /${subport} to the copy target fixes the issue. -- Ticket URL: <https://trac.macports.org/ticket/48035> MacPorts <https://www.macports.org/> Ports system for OS X
#48035: py27-chainer fails destroot -----------------------------+---------------------- Reporter: mschamschula@… | Owner: hum@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: haspatch Port: py-chainer | -----------------------------+---------------------- Changes (by mf2k@…): * keywords: h => haspatch * owner: macports-tickets@… => hum@… * port: py27-chainer => py-chainer -- Ticket URL: <https://trac.macports.org/ticket/48035#comment:1> MacPorts <https://www.macports.org/> Ports system for OS X
#48035: py27-chainer fails destroot -----------------------------+---------------------- Reporter: mschamschula@… | Owner: hum@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: haspatch Port: py-chainer | -----------------------------+---------------------- Changes (by larryv@…): * cc: ryandesign@… (added) Comment: The `docdir` path already ends with `$subport`. Wouldn’t this change install the examples to `$prefix/share/doc/$subport/$subport`? -- Ticket URL: <https://trac.macports.org/ticket/48035#comment:2> MacPorts <https://www.macports.org/> Ports system for OS X
#48035: py27-chainer fails destroot -----------------------------+---------------------- Reporter: mschamschula@… | Owner: hum@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: haspatch Port: py-chainer | -----------------------------+---------------------- Changes (by larryv@…): * cc: hum@… (removed) -- Ticket URL: <https://trac.macports.org/ticket/48035#comment:3> MacPorts <https://www.macports.org/> Ports system for OS X
#48035: py27-chainer fails destroot -----------------------------+---------------------- Reporter: mschamschula@… | Owner: hum@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: haspatch Port: py-chainer | -----------------------------+---------------------- Comment (by larryv@…): The `python-1.0` portgroup creates the “examples” directory in a pre- destroot script. I think this would work. {{{ #!diff diff --git a/dports/python/py-chainer/Portfile b/dports/python/py- chainer/Portfile index 0f4cbee..158ae7e 100644 --- a/dports/python/py-chainer/Portfile +++ b/dports/python/py-chainer/Portfile @@ -35,7 +35,7 @@ if {${name} ne ${subport}} { LICENSE README.md \ ${destroot}${docdir} # install examples - copy ${worksrcpath}/examples ${destroot}${docdir} + copy -force ${worksrcpath}/examples ${destroot}${docdir} } livecheck.type none }}} -- Ticket URL: <https://trac.macports.org/ticket/48035#comment:4> MacPorts <https://www.macports.org/> Ports system for OS X
#48035: py27-chainer fails destroot -----------------------------+---------------------- Reporter: mschamschula@… | Owner: hum@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: haspatch Port: py-chainer | -----------------------------+---------------------- Comment (by mschamschula@…): Replying to [comment:4 larryv@…]:
The `python-1.0` portgroup creates the “examples” directory in a pre- destroot script. I think this would work. {{{ #!diff diff --git a/dports/python/py-chainer/Portfile b/dports/python/py- chainer/Portfile index 0f4cbee..158ae7e 100644 --- a/dports/python/py-chainer/Portfile +++ b/dports/python/py-chainer/Portfile @@ -35,7 +35,7 @@ if {${name} ne ${subport}} { LICENSE README.md \ ${destroot}${docdir} # install examples - copy ${worksrcpath}/examples ${destroot}${docdir} + copy -force ${worksrcpath}/examples ${destroot}${docdir} }
livecheck.type none }}}
When experimenting I tried this very syntax, and it failed with the same error in the log. -- Ticket URL: <https://trac.macports.org/ticket/48035#comment:5> MacPorts <https://www.macports.org/> Ports system for OS X
#48035: py27-chainer fails destroot -----------------------------+---------------------- Reporter: mschamschula@… | Owner: hum@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: haspatch Port: py-chainer | -----------------------------+---------------------- Comment (by larryv@…): Okay. The file(n) man page is not very precise about what `-force` does. What about this? {{{ #!diff diff --git a/dports/python/py-chainer/Portfile b/dports/python/py- chainer/Portfile index 0f4cbee..46ce3e8 100644 --- a/dports/python/py-chainer/Portfile +++ b/dports/python/py-chainer/Portfile @@ -35,6 +35,7 @@ if {${name} ne ${subport}} { LICENSE README.md \ ${destroot}${docdir} # install examples + delete ${destroot}${docdir}/examples copy ${worksrcpath}/examples ${destroot}${docdir} } }}} -- Ticket URL: <https://trac.macports.org/ticket/48035#comment:6> MacPorts <https://www.macports.org/> Ports system for OS X
#48035: py27-chainer fails destroot -----------------------------+---------------------- Reporter: mschamschula@… | Owner: hum@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: haspatch Port: py-chainer | -----------------------------+---------------------- Comment (by mschamschula@…): Replying to [comment:6 larryv@…]:
Okay. The file(n) man page is not very precise about what `-force` does.
What about this? {{{ #!diff diff --git a/dports/python/py-chainer/Portfile b/dports/python/py- chainer/Portfile index 0f4cbee..46ce3e8 100644 --- a/dports/python/py-chainer/Portfile +++ b/dports/python/py-chainer/Portfile @@ -35,6 +35,7 @@ if {${name} ne ${subport}} { LICENSE README.md \ ${destroot}${docdir} # install examples + delete ${destroot}${docdir}/examples copy ${worksrcpath}/examples ${destroot}${docdir} }
}}}
This patch works! -- Ticket URL: <https://trac.macports.org/ticket/48035#comment:7> MacPorts <https://www.macports.org/> Ports system for OS X
#48035: py27-chainer fails destroot -----------------------------+---------------------- Reporter: mschamschula@… | Owner: hum@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: fixed | Keywords: haspatch Port: py-chainer | -----------------------------+---------------------- Changes (by khindenburg@…): * status: new => closed * resolution: => fixed Comment: looks like this was fixed last summer -- Ticket URL: <https://trac.macports.org/ticket/48035#comment:10> MacPorts <https://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts