Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 04 Apr 2020 18:44:46 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 245356] net-p2p/torrent-file-editor: PCH will not work with CMake 3.17
Message-ID:  <bug-245356-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D245356

            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@FreeBSD.org
          Reporter: adridg@freebsd.org
             Flags: maintainer-feedback?(danfe@FreeBSD.org)
          Assignee: danfe@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
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- Makefile    (revision 530705)
+++ Makefile    (working copy)
@@ -16,7 +16,8 @@
 USE_QT=3D                buildtools_build linguisttools_build qmake_build \
                core gui widgets

-CMAKE_ARGS=3D    -DQT5_BUILD:BOOL=3DON
+CMAKE_ARGS=3D    -DQT5_BUILD:BOOL=3DON \
+               -DENABLE_PCH:BOOL=3DOFF

 OPTIONS_DEFINE=3D        DONATION
 OPTIONS_DEFAULT=3D       DONATION

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-245356-7788>