[MacPorts] #58117: Arduino: should fetch files in fetch phase and not in build phase

MacPorts noreply at macports.org
Sat Feb 23 12:01:37 UTC 2019


#58117: Arduino: should fetch files in fetch phase and not in build phase
-------------------------+---------------------
 Reporter:  giansalvo    |      Owner:  (none)
     Type:  enhancement  |     Status:  new
 Priority:  Normal       |  Milestone:
Component:  ports        |    Version:  2.5.4
 Keywords:               |       Port:  Arduino
-------------------------+---------------------
 The Arduino port is fetching supplementary files apart from the main
 tarball during the build phase. This should be avoided.
 I tried to modify the Portfile using curl in the post-fetch phase:
 {{{
 post-fetch {
     system "curl -O https://downloads.arduino.cc/appbundler-1.0ea-
 arduino4.jar.zip"
 }
 }}}

 but I get this error:
 {{{
 Error: Failed to fetch Arduino: can not find channel named
 "/opt/local/var/macports/build/_private_var_tmp_Arduino/Arduino/work
 /Arduino-2b11e94afe85888bd5ebd507de6c6e0220a49bf3"
 }}}

 I'm not sure if using curl is the right way either. Is there any other
 Portfile I can look at?
 Please advise about the correct way for downloading extra files in the
 fetch phase.

-- 
Ticket URL: <https://trac.macports.org/ticket/58117>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list