[MacPorts] #66857: alex 3.2.7.1 fails to build

MacPorts noreply at macports.org
Sun Feb 26 13:41:09 UTC 2023


#66857: alex 3.2.7.1 fails to build
----------------------+--------------------
  Reporter:  jsalort  |      Owner:  (none)
      Type:  defect   |     Status:  new
  Priority:  Normal   |  Milestone:
 Component:  ports    |    Version:  2.8.1
Resolution:           |   Keywords:
      Port:  alex     |
----------------------+--------------------

Comment (by jsalort):

 I have tried to fix the Portfile, but I do not have experience with
 Haskell build systems. I only need alex because it is a build dependency
 of pandoc.

 This is what I tried:

 {{{
 configure.ldflags-append \
     -L${configure.sdkroot}/usr/lib -liconv
 destroot.env-append \
     "LDFLAGS=${configure.ldflags}"
 configure.args-append \
     --extra-lib-dirs=${configure.sdkroot}/usr/lib \
     --ghc-options="-L${configure.sdkroot}/usr/lib -liconv"
 build.args-append \
     --extra-lib-dirs=${configure.sdkroot}/usr/lib \
     --ghc-options="-L${configure.sdkroot}/usr/lib -liconv"
 }}}

 Are there other ways to provide link options ?

 Side note: there is also a "stack" variant, and it yields the same iconv
 link error.

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


More information about the macports-tickets mailing list