[MacPorts] #57723: installing tinc on mojave

classic Classic list List threaded Threaded
12 messages Options
Reply | Threaded
Open this post in threaded view
|

[MacPorts] #57723: installing tinc on mojave

MacPorts
#57723: installing tinc on mojave
--------------------+--------------------
 Reporter:  mriyah  |      Owner:  (none)
     Type:  defect  |     Status:  new
 Priority:  Normal  |  Milestone:
Component:  ports   |    Version:  2.5.4
 Keywords:          |       Port:
--------------------+--------------------
 tuntaposx as a dependency failed to build with the following
 fatal error: 'kern/locks.h' file not found.
 Regards.

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

Re: [MacPorts] #57723: installing tinc on mojave

MacPorts
#57723: installing tinc on mojave
------------------------+--------------------
  Reporter:  mriyah     |      Owner:  (none)
      Type:  defect     |     Status:  new
  Priority:  Normal     |  Milestone:
 Component:  ports      |    Version:  2.5.4
Resolution:             |   Keywords:
      Port:  tuntaposx  |
------------------------+--------------------
Changes (by mf2k):

 * port:   => tuntaposx


Old description:

> tuntaposx as a dependency failed to build with the following
> fatal error: 'kern/locks.h' file not found.
> Regards.

New description:

 tuntaposx as a dependency failed to build with the following
 {{{
 fatal error: 'kern/locks.h' file not found.
 }}}
 Regards.

--

Comment:

 In the future, please use WikiFormatting, fill in the Port field and add
 the port maintainer(s) to Cc ({{{port info --maintainers tuntaposx}}}), if
 any.

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

Re: [MacPorts] #57723: installing tinc on mojave

MacPorts
In reply to this post by MacPorts
#57723: installing tinc on mojave
------------------------+--------------------
  Reporter:  mriyah     |      Owner:  (none)
      Type:  defect     |     Status:  new
  Priority:  Normal     |  Milestone:
 Component:  ports      |    Version:  2.5.4
Resolution:             |   Keywords:
      Port:  tuntaposx  |
------------------------+--------------------

Comment (by mf2k):

 Please attach the main.log file after cleaning the port ({{{sudo port
 clean tuntaposx}}}).

--
Ticket URL: <https://trac.macports.org/ticket/57723#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #57723: installing tinc on mojave

MacPorts
In reply to this post by MacPorts
#57723: installing tinc on mojave
------------------------+--------------------
  Reporter:  mriyah     |      Owner:  (none)
      Type:  defect     |     Status:  new
  Priority:  Normal     |  Milestone:
 Component:  ports      |    Version:  2.5.4
Resolution:             |   Keywords:
      Port:  tuntaposx  |
------------------------+--------------------
Changes (by mriyah):

 * Attachment "main.log" added.


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

Re: [MacPorts] #57723: tuntaposx @20150118: fatal error: 'kern/locks.h' file not found (was: installing tinc on mojave)

MacPorts
In reply to this post by MacPorts
#57723: tuntaposx @20150118: fatal error: 'kern/locks.h' file not found
------------------------+--------------------
  Reporter:  mriyah     |      Owner:  (none)
      Type:  defect     |     Status:  new
  Priority:  Normal     |  Milestone:
 Component:  ports      |    Version:  2.5.4
Resolution:             |   Keywords:  mojave
      Port:  tuntaposx  |
------------------------+--------------------
Changes (by ryandesign):

 * keywords:   => mojave


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

Re: [MacPorts] #57723: tuntaposx @20150118: fatal error: 'kern/locks.h' file not found

MacPorts
In reply to this post by MacPorts
#57723: tuntaposx @20150118: fatal error: 'kern/locks.h' file not found
------------------------+--------------------
  Reporter:  mriyah     |      Owner:  (none)
      Type:  defect     |     Status:  new
  Priority:  Normal     |  Milestone:
 Component:  ports      |    Version:  2.5.4
Resolution:             |   Keywords:  mojave
      Port:  tuntaposx  |
------------------------+--------------------
Changes (by mf2k):

 * cc: jackiezhangcn (added)


Comment:

 Has duplicate #57819.

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

Re: [MacPorts] #57723: tuntaposx @20150118: fatal error: 'kern/locks.h' file not found

MacPorts
In reply to this post by MacPorts
#57723: tuntaposx @20150118: fatal error: 'kern/locks.h' file not found
------------------------+--------------------
  Reporter:  mriyah     |      Owner:  (none)
      Type:  defect     |     Status:  new
  Priority:  Normal     |  Milestone:
 Component:  ports      |    Version:  2.5.4
Resolution:             |   Keywords:  mojave
      Port:  tuntaposx  |
------------------------+--------------------

Comment (by Equidamoid):

 The build uses incorrect path for kernel headers:

 `-I/System/Library/Frameworks/Kernel.framework/Headers`

 instead of the one that made it compile for me:

 `-I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Kernel.framework/Versions/A/Headers`

 I have no idea (for now) how to fix it properly in macports way, but here
 is the hack that may help someone before proper fix is available:

 Run `port edit tuntaposx` and replace

 `reinplace "s|@ARCHFLAGS@|[get_canonical_archflags cc]|" ${f}`

 with

 `reinplace "s|@ARCHFLAGS@|[get_canonical_archflags cc]
 -I/Library/Developer/CommandLineTools/SDKs/MacOSX.
 sdk/System/Library/Frameworks/Kernel.framework/Versions/A/Headers|" ${f}`

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

Re: [MacPorts] #57723: tuntaposx @20150118: fatal error: 'kern/locks.h' file not found

MacPorts
In reply to this post by MacPorts
#57723: tuntaposx @20150118: fatal error: 'kern/locks.h' file not found
------------------------+--------------------
  Reporter:  mriyah     |      Owner:  (none)
      Type:  defect     |     Status:  new
  Priority:  Normal     |  Milestone:
 Component:  ports      |    Version:  2.5.4
Resolution:             |   Keywords:  mojave
      Port:  tuntaposx  |
------------------------+--------------------

Comment (by Equidamoid):

 I believe this line in `src/{tun,tap}/Makefile can be patched for a better
 fix:

 `INCLUDE = -I.. -I/System/Library/Frameworks/Kernel.framework/Headers`

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

Re: [MacPorts] #57723: tuntaposx @20150118: fatal error: 'kern/locks.h' file not found

MacPorts
In reply to this post by MacPorts
#57723: tuntaposx @20150118: fatal error: 'kern/locks.h' file not found
------------------------+--------------------
  Reporter:  mriyah     |      Owner:  (none)
      Type:  defect     |     Status:  new
  Priority:  Normal     |  Milestone:
 Component:  ports      |    Version:  2.5.4
Resolution:             |   Keywords:  mojave
      Port:  tuntaposx  |
------------------------+--------------------

Comment (by Equidamoid):

 Created PR https://github.com/macports/macports-ports/pull/3696

--
Ticket URL: <https://trac.macports.org/ticket/57723#comment:7>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #57723: tuntaposx @20150118: fatal error: 'kern/locks.h' file not found

MacPorts
In reply to this post by MacPorts
#57723: tuntaposx @20150118: fatal error: 'kern/locks.h' file not found
------------------------+------------------------
  Reporter:  mriyah     |      Owner:  Equidamoid
      Type:  defect     |     Status:  closed
  Priority:  Normal     |  Milestone:
 Component:  ports      |    Version:  2.5.4
Resolution:  fixed      |   Keywords:  mojave
      Port:  tuntaposx  |
------------------------+------------------------
Changes (by Equidamoid):

 * status:  new => closed
 * owner:  (none) => Equidamoid
 * resolution:   => fixed


Comment:

 In [changeset:"7640a4aa1377008845014c2bdfab91900d031fd5/macports-ports"
 7640a4aa1377008845014c2bdfab91900d031fd5/macports-ports] (master):
 {{{
 #!ConfigurableCommitTicketReference repository="macports-ports"
 revision="7640a4aa1377008845014c2bdfab91900d031fd5"
 Fix tuntaposx build on Mojave

 * updated kernel headers path in Makefies

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

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

Re: [MacPorts] #57723: tuntaposx @20150118: fatal error: 'kern/locks.h' file not found

MacPorts
In reply to this post by MacPorts
#57723: tuntaposx @20150118: fatal error: 'kern/locks.h' file not found
------------------------+------------------------
  Reporter:  mriyah     |      Owner:  Equidamoid
      Type:  defect     |     Status:  reopened
  Priority:  Normal     |  Milestone:
 Component:  ports      |    Version:  2.5.4
Resolution:             |   Keywords:  mojave
      Port:  tuntaposx  |
------------------------+------------------------
Changes (by jmroot):

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


Comment:

 Build still fails on Mojave:
 https://build.macports.org/builders/ports-10.14_x86_64-builder/builds/24556

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

Re: [MacPorts] #57723: tuntaposx @20150118: fatal error: 'kern/locks.h' file not found

MacPorts
In reply to this post by MacPorts
#57723: tuntaposx @20150118: fatal error: 'kern/locks.h' file not found
------------------------+------------------------
  Reporter:  mriyah     |      Owner:  Equidamoid
      Type:  defect     |     Status:  closed
  Priority:  Normal     |  Milestone:
 Component:  ports      |    Version:  2.5.4
Resolution:  fixed      |   Keywords:  mojave
      Port:  tuntaposx  |
------------------------+------------------------
Changes (by ken-cunningham-webuse):

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


Comment:

 In [changeset:"085ffd96809875035301b00a728c98783f773e19/macports-ports"
 085ffd96809875035301b00a728c98783f773e19/macports-ports] (master):
 {{{
 #!ConfigurableCommitTicketReference repository="macports-ports"
 revision="085ffd96809875035301b00a728c98783f773e19"
 tuntaposx: use configure.sdkroot to set SDK path

 closes: https://trac.macports.org/ticket/57723

 when this port is next updated, these patches and
 reinplace bits should all be rolled into one.
 }}}

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