[MacPorts] #61290: poppler: fails to build in trace mode

MacPorts noreply at macports.org
Thu Oct 8 12:38:14 UTC 2020


#61290: poppler: fails to build in trace mode
----------------------+----------------------
  Reporter:  iefdev   |      Owner:  dbevans
      Type:  defect   |     Status:  assigned
  Priority:  Normal   |  Milestone:
 Component:  ports    |    Version:  2.6.3
Resolution:           |   Keywords:
      Port:  poppler  |
----------------------+----------------------

Comment (by iefdev):

 Replying to [comment:1 jmroot]:
 > However it builds fine if boost is not present at all. Certainly we want
 it to consistently either use or not use boost (possibly controlled by a
 variant if that would be worthwhile).

 Looks like `boost` is only used when building Splash:

 {{{
 if(ENABLE_SPLASH)
   find_package(Boost 1.58.0)
   if(Boost_FOUND)
     include_directories(SYSTEM ${Boost_INCLUDE_DIRS})
     set(USE_BOOST_HEADERS ON)
   endif()
 endif()
 }}}

 …but not required:

 {{{
 if(ENABLE_SPLASH AND NOT Boost_FOUND)
   message("Warning: Use of boost is recommended for better performance.")
 endif()
 }}}

 \\

 When I changed it to `if(ENABLE_SPLASH AND USE_BOOST_HEADERS)`, and then
 in the Portfile:

 {{{
 configure.args-append \
                     -DENABLE_UNSTABLE_API_ABI_HEADERS=ON \
                     -DUSE_BOOST_HEADERS=OFF \
                     -DENABLE_QT5=OFF \
                     -DENABLE_QT6=OFF \
                     -DBUILD_GTK_TESTS=OFF \
                     -DBUILD_QT5_TESTS=OFF \
                     -DBUILD_QT6_TESTS=OFF \
                     -DBUILD_CPP_TESTS=OFF \
                     -DWITH_NSS3=ON

 variant boost description "Use Boost when building the Splash graphics
 backend" {
     depends_build-append    port:boost

     configure.args-replace  -DUSE_BOOST_HEADERS=OFF \
                             -DUSE_BOOST_HEADERS=ON
 }
 }}}

 Then I could destroot both.

 Is that what you had in mind?

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


More information about the macports-tickets mailing list