[Bug 245356] net-p2p/torrent-file-editor: PCH will not work with CMake 3.17

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sat Apr 4 18:45:06 UTC 2020


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=245356

            Bug ID: 245356
           Summary: net-p2p/torrent-file-editor: PCH will not work with
                    CMake 3.17
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: danfe at FreeBSD.org
          Reporter: adridg at freebsd.org
             Flags: maintainer-feedback?(danfe at FreeBSD.org)
          Assignee: danfe at FreeBSD.org

With PCH enabled, CMake 3.17 chokes on this port during configure,

CMake Error at
/wrkdirs/usr/ports/net-p2p/torrent-file-editor/work/torrent-file-editor-0.3.17/cmake/CompilePch.cmake:102
(message):
  Can't parse compile command for
  /wrkdirs/usr/ports/net-p2p/torrent-file-editor/work/.build/qrc_resources.cpp:
  No such file or directory

The easiest fix is to disable PCH so the port builds again:

Index: Makefile
===================================================================
--- Makefile    (revision 530705)
+++ Makefile    (working copy)
@@ -16,7 +16,8 @@
 USE_QT=                buildtools_build linguisttools_build qmake_build \
                core gui widgets

-CMAKE_ARGS=    -DQT5_BUILD:BOOL=ON
+CMAKE_ARGS=    -DQT5_BUILD:BOOL=ON \
+               -DENABLE_PCH:BOOL=OFF

 OPTIONS_DEFINE=        DONATION
 OPTIONS_DEFAULT=       DONATION

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list