[MacPorts] #64522: lighttpd @1.4.64_0 fails to build on < 10.12

MacPorts noreply at macports.org
Wed Jan 26 08:09:56 UTC 2022


#64522: lighttpd @1.4.64_0 fails to build on < 10.12
---------------------------+------------------------
  Reporter:  barracuda156  |      Owner:  ryandesign
      Type:  defect        |     Status:  accepted
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:  2.7.1
Resolution:                |   Keywords:  legacy-os
      Port:  lighttpd      |
---------------------------+------------------------

Comment (by jmroot):

 I don't really want to create a redmine account just for this, so I'll say
 this here:

 I don't think the man page can possibly be correct about `COPYFILE_EXCL |
 COPYFILE_ACL | COPYFILE_STAT | COPYFILE_XATTR | COPYFILE_DATA |
 COPYFILE_NOFOLLOW_SRC` being equivalent to `COPYFILE_CLONE_FORCE`, because
 it says that for both `COPYFILE_CLONE_FORCE` and `COPYFILE_CLONE`, and
 because they're not actually defined that way in the header, they each set
 a distinct bit:
 {{{
 #define COPYFILE_CLONE          (1<<24)
 #define COPYFILE_CLONE_FORCE    (1<<25)
 }}}

 So I think if the intent is to clone the file and fail if that's not
 possible, that simply can't be done on older than 10.12, and the check to
 detect that would be simply `#ifdef COPYFILE_CLONE_FORCE`.

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


More information about the macports-tickets mailing list