[MacPorts] #54474: expat 2.2.2 fails to build on Snow Leopard -- missing arc4random_buf

classic Classic list List threaded Threaded
17 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[MacPorts] #54474: expat 2.2.2 fails to build on Snow Leopard -- missing arc4random_buf

MacPorts
#54474: expat 2.2.2 fails to build on Snow Leopard -- missing arc4random_buf
--------------------+-------------------
 Reporter:  gnw3    |      Owner:
     Type:  defect  |     Status:  new
 Priority:  Normal  |  Milestone:
Component:  ports   |    Version:  2.4.1
 Keywords:          |       Port:  expat
--------------------+-------------------
 {{{
 lib/xmlparse.c:56:3: error: #error You do not have support for any sources
 of high quality entropy enabled. For end user security, that is probably
 not what you want. Your options include:
  * Linux + glibc >=2.25 (getrandom): HAVE_GETRANDOM,
  * Linux + glibc <2.25 (syscall SYS_getrandom): HAVE_SYSCALL_GETRANDOM,
  * BSD / macOS (arc4random_buf): HAVE_ARC4RANDOM_BUF,
  * libbsd (arc4random_buf): HAVE_ARC4RANDOM_BUF + HAVE_LIBBSD,
  * Windows (RtlGenRandom): _WIN32.
 If insist on not using any of these, bypass this error by defining
 XML_POOR_ENTROPY; you have been warned. For CMake, one way to pass the
 define is: cmake -DCMAKE_C_FLAGS="-pipe -O2 -DHAVE_SYSCALL_GETRANDOM" . If
 you have reasons to patch this detection code away or need changes to the
 build system, please open a bug. Thank you!
 }}}

 A workaround is to append {{{-DXML_POOR_ENTROPY}}} to {{{CPPFLAGS}}} in
 the generated Makefile.

--
Ticket URL: <https://trac.macports.org/ticket/54474>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [MacPorts] #54474: expat 2.2.2 fails to build on Snow Leopard -- missing arc4random_buf

MacPorts
#54474: expat 2.2.2 fails to build on Snow Leopard -- missing arc4random_buf
---------------------+-------------------------
  Reporter:  gnw3    |      Owner:  ryandesign
      Type:  defect  |     Status:  assigned
  Priority:  Normal  |  Milestone:
 Component:  ports   |    Version:  2.4.1
Resolution:          |   Keywords:  snowleopard
      Port:  expat   |
---------------------+-------------------------
Changes (by mf2k):

 * keywords:   => snowleopard
 * owner:   => ryandesign
 * status:  new => assigned
 * cc: ryandesign@… (removed)
 * cc: ryandesign (added)


--
Ticket URL: <https://trac.macports.org/ticket/54474#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [MacPorts] #54474: expat 2.2.2 fails to build on Snow Leopard -- missing arc4random_buf

MacPorts
In reply to this post by MacPorts
#54474: expat 2.2.2 fails to build on Snow Leopard -- missing arc4random_buf
---------------------+-------------------------
  Reporter:  gnw3    |      Owner:  ryandesign
      Type:  defect  |     Status:  assigned
  Priority:  Normal  |  Milestone:
 Component:  ports   |    Version:  2.4.1
Resolution:          |   Keywords:  snowleopard
      Port:  expat   |
---------------------+-------------------------

Comment (by udbraumann):

 The same error occurs on 10.5.8 PPC. Does it mean that the respective
 Xcode is too old to have an acceptable arc4random, or is it missing at
 all?

--
Ticket URL: <https://trac.macports.org/ticket/54474#comment:3>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [MacPorts] #54474: expat 2.2.2 fails to build on Snow Leopard -- missing arc4random_buf

MacPorts
In reply to this post by MacPorts
#54474: expat 2.2.2 fails to build on Snow Leopard -- missing arc4random_buf
---------------------+---------------------------------------
  Reporter:  gnw3    |      Owner:  ryandesign
      Type:  defect  |     Status:  accepted
  Priority:  Normal  |  Milestone:
 Component:  ports   |    Version:  2.4.1
Resolution:          |   Keywords:  snowleopard leopard tiger
      Port:  expat   |
---------------------+---------------------------------------
Changes (by ryandesign):

 * cc: ryandesign (removed)
 * keywords:  snowleopard => snowleopard leopard tiger
 * status:  assigned => accepted


Comment:

 It's the operating system (not Xcode) that's missing `arc4random_buf`.

 I'll see what we can do about this.

--
Ticket URL: <https://trac.macports.org/ticket/54474#comment:4>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [MacPorts] #54474: expat 2.2.2 fails to build on Snow Leopard -- missing arc4random_buf

MacPorts
In reply to this post by MacPorts
#54474: expat 2.2.2 fails to build on Snow Leopard -- missing arc4random_buf
---------------------+---------------------------------------
  Reporter:  gnw3    |      Owner:  ryandesign
      Type:  defect  |     Status:  accepted
  Priority:  Normal  |  Milestone:
 Component:  ports   |    Version:  2.4.1
Resolution:          |   Keywords:  snowleopard leopard tiger
      Port:  expat   |
---------------------+---------------------------------------

Comment (by udbraumann):

 Thanks. expat 2.2.1_1 however could be built on 10.5.8, so the
 requirements must have changed very recently.

--
Ticket URL: <https://trac.macports.org/ticket/54474#comment:5>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [MacPorts] #54474: expat 2.2.2 fails to build on Snow Leopard -- missing arc4random_buf

MacPorts
In reply to this post by MacPorts
#54474: expat 2.2.2 fails to build on Snow Leopard -- missing arc4random_buf
---------------------+---------------------------------------
  Reporter:  gnw3    |      Owner:  ryandesign
      Type:  defect  |     Status:  accepted
  Priority:  Normal  |  Milestone:
 Component:  ports   |    Version:  2.4.1
Resolution:          |   Keywords:  snowleopard leopard tiger
      Port:  expat   |
---------------------+---------------------------------------

Comment (by ballapete):

 And, needless to mention, the same also happens on PPC Tiger, Mac OS X
 10.4.11.

--
Ticket URL: <https://trac.macports.org/ticket/54474#comment:6>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [MacPorts] #54474: expat 2.2.2 fails to build on Snow Leopard -- missing arc4random_buf

MacPorts
In reply to this post by MacPorts
#54474: expat 2.2.2 fails to build on Snow Leopard -- missing arc4random_buf
---------------------+---------------------------------------
  Reporter:  gnw3    |      Owner:  ryandesign
      Type:  defect  |     Status:  accepted
  Priority:  Normal  |  Milestone:
 Component:  ports   |    Version:  2.4.1
Resolution:          |   Keywords:  snowleopard leopard tiger
      Port:  expat   |
---------------------+---------------------------------------
Changes (by ballapete):

 * Attachment "main.log" added.

 main.log from PPC Tiger

--
Ticket URL: <https://trac.macports.org/ticket/54474>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [MacPorts] #54474: expat 2.2.2 fails to build on Snow Leopard -- missing arc4random_buf

MacPorts
In reply to this post by MacPorts
#54474: expat 2.2.2 fails to build on Snow Leopard -- missing arc4random_buf
---------------------+---------------------------------------
  Reporter:  gnw3    |      Owner:  ryandesign
      Type:  defect  |     Status:  accepted
  Priority:  Normal  |  Milestone:
 Component:  ports   |    Version:  2.4.1
Resolution:          |   Keywords:  snowleopard leopard tiger
      Port:  expat   |
---------------------+---------------------------------------

Comment (by ballapete):

 The supplied patch file fixes the build of expat 2.2.2.

--
Ticket URL: <https://trac.macports.org/ticket/54474#comment:8>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [MacPorts] #54474: expat 2.2.2 fails to build on Snow Leopard -- missing arc4random_buf

MacPorts
In reply to this post by MacPorts
#54474: expat 2.2.2 fails to build on Snow Leopard -- missing arc4random_buf
---------------------+---------------------------------------
  Reporter:  gnw3    |      Owner:  ryandesign
      Type:  defect  |     Status:  accepted
  Priority:  Normal  |  Milestone:
 Component:  ports   |    Version:  2.4.1
Resolution:          |   Keywords:  snowleopard leopard tiger
      Port:  expat   |
---------------------+---------------------------------------
Changes (by ballapete):

 * Attachment "Makefile-XML_POOR_ENTROPY.patch" added.

 Work around missing system functions

--
Ticket URL: <https://trac.macports.org/ticket/54474>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [MacPorts] #54474: expat 2.2.2 fails to build on Snow Leopard -- missing arc4random_buf

MacPorts
In reply to this post by MacPorts
#54474: expat 2.2.2 fails to build on Snow Leopard -- missing arc4random_buf
---------------------+---------------------------------------
  Reporter:  gnw3    |      Owner:  ryandesign
      Type:  defect  |     Status:  accepted
  Priority:  Normal  |  Milestone:
 Component:  ports   |    Version:  2.4.1
Resolution:          |   Keywords:  snowleopard leopard tiger
      Port:  expat   |
---------------------+---------------------------------------

Comment (by kencu):

 Perhaps this is something that could/should be added to snowleopardfixes
 as well, to get the proper functionality.

 `arc4random.c` is available on apple open source.

--
Ticket URL: <https://trac.macports.org/ticket/54474#comment:9>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [MacPorts] #54474: expat 2.2.2 fails to build on Snow Leopard -- missing arc4random_buf

MacPorts
In reply to this post by MacPorts
#54474: expat 2.2.2 fails to build on Snow Leopard -- missing arc4random_buf
---------------------+---------------------------------------
  Reporter:  gnw3    |      Owner:  ryandesign
      Type:  defect  |     Status:  accepted
  Priority:  Normal  |  Milestone:
 Component:  ports   |    Version:  2.4.1
Resolution:          |   Keywords:  snowleopard leopard tiger
      Port:  expat   |
---------------------+---------------------------------------

Comment (by ballapete):

 Replying to [comment:9 kencu]:
 >
 > `arc4random.c` is available on apple open source.

 The needed funktion is `arc4random_buf()`.

--
Ticket URL: <https://trac.macports.org/ticket/54474#comment:10>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [MacPorts] #54474: expat 2.2.2 fails to build on Snow Leopard -- missing arc4random_buf

MacPorts
In reply to this post by MacPorts
#54474: expat 2.2.2 fails to build on Snow Leopard -- missing arc4random_buf
---------------------+---------------------------------------
  Reporter:  gnw3    |      Owner:  ryandesign
      Type:  defect  |     Status:  accepted
  Priority:  Normal  |  Milestone:
 Component:  ports   |    Version:  2.4.1
Resolution:          |   Keywords:  snowleopard leopard tiger
      Port:  expat   |
---------------------+---------------------------------------

Comment (by kencu):

 Yep; that, and about 10 related, are all in that one C file.

--
Ticket URL: <https://trac.macports.org/ticket/54474#comment:11>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [MacPorts] #54474: expat 2.2.2 fails to build on Snow Leopard -- missing arc4random_buf

MacPorts
In reply to this post by MacPorts
#54474: expat 2.2.2 fails to build on Snow Leopard -- missing arc4random_buf
---------------------+---------------------------------------
  Reporter:  gnw3    |      Owner:  ryandesign
      Type:  defect  |     Status:  accepted
  Priority:  Normal  |  Milestone:
 Component:  ports   |    Version:  2.4.1
Resolution:          |   Keywords:  snowleopard leopard tiger
      Port:  expat   |
---------------------+---------------------------------------

Comment (by ryandesign):

 Replying to [comment:8 ballapete]:
 > The supplied patch file fixes the build of expat 2.2.2.

 I don't want to add `-DXML_POOR_ENTROPY` unconditionally, only when
 building for 10.6 or earlier.

 See also the [https://github.com/libexpat/libexpat/issues/81 upstream bug
 report] and [https://github.com/libexpat/libexpat/pull/84 pull request]
 that might solve this better in a future version of expat.

--
Ticket URL: <https://trac.macports.org/ticket/54474#comment:14>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [MacPorts] #54474: expat 2.2.2 fails to build on Snow Leopard -- missing arc4random_buf

MacPorts
In reply to this post by MacPorts
#54474: expat 2.2.2 fails to build on Snow Leopard -- missing arc4random_buf
---------------------+---------------------------------------
  Reporter:  gnw3    |      Owner:  ryandesign
      Type:  defect  |     Status:  closed
  Priority:  Normal  |  Milestone:
 Component:  ports   |    Version:  2.4.1
Resolution:  fixed   |   Keywords:  snowleopard leopard tiger
      Port:  expat   |
---------------------+---------------------------------------
Changes (by ryandesign):

 * status:  accepted => closed
 * resolution:   => fixed


Comment:

 In [changeset:"b2b6b1e03b126df77195029670197b7ce1396f32/macports-ports"
 b2b6b1e03b126df77195029670197b7ce1396f32/macports-ports]:
 {{{
 #!ConfigurableCommitTicketReference repository="macports-ports"
 revision="b2b6b1e03b126df77195029670197b7ce1396f32"
 expat: Work around build failure on 10.6 and earlier

 Acknowledge lack of arc4random_buf.

 Closes: https://trac.macports.org/ticket/54474
 }}}

--
Ticket URL: <https://trac.macports.org/ticket/54474#comment:15>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [MacPorts] #54474: expat 2.2.2 fails to build on Snow Leopard -- missing arc4random_buf

MacPorts
In reply to this post by MacPorts
#54474: expat 2.2.2 fails to build on Snow Leopard -- missing arc4random_buf
---------------------+---------------------------------------
  Reporter:  gnw3    |      Owner:  ryandesign
      Type:  defect  |     Status:  closed
  Priority:  Normal  |  Milestone:
 Component:  ports   |    Version:  2.4.1
Resolution:  fixed   |   Keywords:  snowleopard leopard tiger
      Port:  expat   |
---------------------+---------------------------------------

Comment (by ryandesign):

 Has duplicate #54503.

--
Ticket URL: <https://trac.macports.org/ticket/54474#comment:16>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [MacPorts] #54474: expat 2.2.2 fails to build on Snow Leopard -- missing arc4random_buf

MacPorts
In reply to this post by MacPorts
#54474: expat 2.2.2 fails to build on Snow Leopard -- missing arc4random_buf
---------------------+---------------------------------------
  Reporter:  gnw3    |      Owner:  ryandesign
      Type:  defect  |     Status:  closed
  Priority:  Normal  |  Milestone:
 Component:  ports   |    Version:  2.4.1
Resolution:  fixed   |   Keywords:  snowleopard leopard tiger
      Port:  expat   |
---------------------+---------------------------------------

Comment (by ballapete):

 It built on Mac OS X 10.6.8, Snow Leopard.

--
Ticket URL: <https://trac.macports.org/ticket/54474#comment:17>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [MacPorts] #54474: expat 2.2.2 fails to build on Snow Leopard -- missing arc4random_buf

MacPorts
In reply to this post by MacPorts
#54474: expat 2.2.2 fails to build on Snow Leopard -- missing arc4random_buf
---------------------+---------------------------------------
  Reporter:  gnw3    |      Owner:  ryandesign
      Type:  defect  |     Status:  closed
  Priority:  Normal  |  Milestone:
 Component:  ports   |    Version:  2.4.1
Resolution:  fixed   |   Keywords:  snowleopard leopard tiger
      Port:  expat   |
---------------------+---------------------------------------

Comment (by ballapete):

 It also built on PPC Tiger, Mac OS X 10.4.11.

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