[MacPorts] #53942: generaluser-soundfont: update to 1.471

MacPorts noreply at macports.org
Fri Jun 8 22:38:20 UTC 2018


#53942: generaluser-soundfont: update to 1.471
------------------------------------+------------------
  Reporter:  mojca                  |      Owner:  RJVB
      Type:  update                 |     Status:  new
  Priority:  Normal                 |  Milestone:
 Component:  ports                  |    Version:
Resolution:                         |   Keywords:
      Port:  generaluser-soundfont  |
------------------------------------+------------------

Comment (by slewsys):

 In [changeset:"e5a420ccf2ea47e8264ca8a68d899369370317bb/macports-base"
 e5a420ccf2ea47e8264ca8a68d899369370317bb/macports-base] (master):
 {{{
 #!ConfigurableCommitTicketReference repository="macports-base"
 revision="e5a420ccf2ea47e8264ca8a68d899369370317bb"
 portfetch.tcl: Add option fetch.user_agent.

 When MacPorts attempts to fetch from DropBox, it gets HTML instead
 of the requested file. This is because MacPorts sets libcurl's User-Agent
 header in curl.c to "MacPorts/MP_VERSION libcurl/LC_VERSION", which
 DropBox
 responds to as a web brower. The problem was first reported in
 https://trac.macports.org/ticket/53942 with regard to port
 audio/generaluser-soundfont.

 This PR adds an option `fetch.user_agent' which can be set in Portfile
 as needed. For example, in audio/generaluser-soundfont/Portfile, adding:

   fetch.user_agent    curl/MacPorts/4.xx

 allows fetch to work without a custom fetch block.  If `fetch.user_agent'
 is not set, UserAgent as defined in curl.c is used instead.

 In the particular case of DropBox, setting the User-Agent header to
 "libcurl/..."  doesn't work as one might hope, otherwise swapping the
 order of values in curl.c UserAgent variable would be suggested as an
 alternative.
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/53942#comment:3>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list