Changes between Initial Version and Version 2 of Ticket #48224
- Timestamp:
- Jul 2, 2015, 2:37:08 PM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #48224
- Property Owner changed from macports-tickets@… to cal@…
-
Property
Summary
changed from
potential thinko in ghc Portfile
toghc @7.8.3_2: setting compiler.cpath and compiler.library_path is potential no-op
-
Ticket #48224 – Description
initial v2 1 1 While adapting the MacPorts ghc-bootstrap/ghc to create matching fink packages to build ghc from source for adding rootless support to 7.8.3, I noticed what appears to be a thinko in the current ghc Portfile. Specially, the section... 2 2 {{{ 3 3 # OK so because the bootstrap binary has been prebuilt for libraries 4 4 # in /usr/lib we search these before macports stuff to prevent … … 7 7 compiler.cpath /usr/include 8 8 compiler.library_path /usr/lib 9 10 seems to be a pointless no-op since it adds those directories to the search list *after* the -I and -L entries are processed. 9 }}} 10 seems to be a pointless no-op since it adds those directories to the search list *after* the -I and -L entries are processed.\\ 11 11 In the fink packaging, it was desired to mimic the upstream ghc binaries as closely as possible so... 12 13 14 15 12 {{{ 13 --with-iconv-includes=/usr/include \ 14 --with-iconv-libraries=/usr/lib \ 15 }}} 16 16 was used in concert with 17 17 {{{ 18 18 NoSetCPPFLAGS: true 19 19 NoSetLDFLAGS: true 20 }}} 20 21 21 22 Interestingly this still required a BuildConflicts on the fink libiconv-dev to prevent a build issue with ghc-pandoc-types... 22 23 {{{ 23 24 [57 of 57] Compiling Text.Pandoc ( src/Text/Pandoc.hs, dist/build/Text/Pandoc.o ) 24 25 In-place registering pandoc-1.12.4.2... … … 34 35 _hs_iconv_open in libHSbase-4.7.0.1.a(iconv.o) 35 36 ld: symbol(s) not found for architecture x86_64 37 }}} 36 38 37 39 In the MacPorts case, since you using... 38 39 40 41 40 {{{ 41 --with-iconv-includes=${prefix}/include \ 42 --with-iconv-libraries=${prefix}/lib \ 43 }}} 42 44 and are leaving -I${prefix}/include on configure.cppflags and -L${prefix}/lib on configure.ldflags, the use of... 43 45 {{{ 44 46 compiler.cpath /usr/include 45 47 compiler.library_path /usr/lib 46 48 }}} 47 49 is pointless dead code in the Portfile