Bug 234429 - devel/include-what-you-use: Update to 0.11
Summary: devel/include-what-you-use: Update to 0.11
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Kubilay Kocak
Depends on: 230791
  Show dependency treegraph
Reported: 2018-12-26 23:19 UTC by Greg V
Modified: 2019-04-23 05:30 UTC (History)
0 users

See Also:
koobs: maintainer-feedback+

iwyu.patch (2.86 KB, patch)
2018-12-26 23:19 UTC, Greg V
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Greg V 2018-12-26 23:19:22 UTC
Created attachment 200545 [details]

- clang_7.0 tag
- uses LLVM's CMake files now
- https URL
Comment 1 Kubilay Kocak freebsd_committer freebsd_triage 2019-01-15 12:44:47 UTC
This fails to build for me with poudriere/12.0-p2 the following error:

CMake Error at /usr/local/llvm70/lib/cmake/clang/ClangTargets.cmake:535 (message):
  The imported target "clangDoc" references the file


  but this file does not exist.  Possible reasons include:

  * The file was deleted, renamed, or moved to another location.

  * An install or uninstall procedure did not complete successfully.

  * The installation package was faulty and contained


  but not all the files it references.

Call Stack (most recent call first):
  /usr/local/llvm70/lib/cmake/clang/ClangConfig.cmake:18 (include)
  CMakeLists.txt:16 (find_package)

-- Configuring incomplete, errors occurred!

I note that IWYU mentions changes to the cmake build system in the 0.11 notes:

This leads to the following pull request:


In the following commit in that PR, the docs now mention using a CMAKE_PREFIX_PATH variable for 0.11 and later:


@Greg What references were used to modify the ports CMAKE_ARGS to use LLVM_DIR and Clang_DIR?

Need to investigate further
Comment 2 Greg V 2019-01-15 21:55:04 UTC
(In reply to Kubilay Kocak from comment #1)
Well, these dirs are where the .cmake config files are, and you can see that it found them:

> contained
>     "/usr/local/llvm70/lib/cmake/clang/ClangTargets.cmake"

Looking at the pkg-plist for LLVM70, libclangDoc.a is marked with %%DOCS%%:


That looks like a mistake, DOCS is for, well, docs — not docs-related libraries.
Comment 3 Greg V 2019-02-02 20:13:06 UTC
So, that library actually belongs to %%EXTRAS%%: https://reviews.freebsd.org/D19068
Comment 4 commit-hook freebsd_committer 2019-04-23 05:30:35 UTC
A commit references this bug:

Author: koobs
Date: Tue Apr 23 05:29:46 UTC 2019
New revision: 499716
URL: https://svnweb.freebsd.org/changeset/ports/499716

  devel/include-what-you-use: Update to 0.11

  PR:		234429
  Submitted by:	Greg V <greg unrelenting.technology>

Comment 5 Kubilay Kocak freebsd_committer freebsd_triage 2019-04-23 05:30:57 UTC
Committed, thank you Greg!