Bug 236008 - devel/llvm-devel: packaging fails if OPENMP off
Summary: devel/llvm-devel: packaging fails if OPENMP off
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: arm64 Any
: --- Affects Only Me
Assignee: Brooks Davis
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-02-24 19:45 UTC by John F. Carr
Modified: 2019-03-07 23:17 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (brooks)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John F. Carr 2019-02-24 19:45:56 UTC
I built devel/llvm-devel on arm64, which does not support OpenMP.  Packaging failed with a missing header omp-tools.h:

===>  Building package for llvm-devel-9.0.d20190122
pkg-static: Unable to access file /usr/ports/devel/llvm-devel/work/stage/usr/local/llvm-devel/lib/clang/9.0.0/include/omp-tools.h:No such file or directory
*** [/usr/ports/devel/llvm-devel/work/pkg/llvm-devel-9.0.d20190122.txz] Error code 1

If I edit pkg-plist so the omp-tools.h line is prefixed with OPENMP instead of CLANG the package can be built.  No patch because that's a generated file.  Probably the complicated build-plist Makefile target needs editing.
Comment 1 commit-hook freebsd_committer 2019-03-07 23:17:02 UTC
A commit references this bug:

Author: brooks
Date: Thu Mar  7 23:16:41 UTC 2019
New revision: 495004
URL: https://svnweb.freebsd.org/changeset/ports/495004

Log:
  Update to a more recent shapshot.

  Adapt to removal of the ARM license.

  Allow licenses to sit somewhere other then WRKSRC.

  Fix the plist when OPENMP is disabled.

  PR:		236008

Changes:
  head/devel/llvm-devel/Makefile
  head/devel/llvm-devel/Makefile.LICENSE
  head/devel/llvm-devel/Makefile.snapshot
  head/devel/llvm-devel/distinfo
  head/devel/llvm-devel/pkg-plist
Comment 2 Brooks Davis freebsd_committer 2019-03-07 23:17:59 UTC
Thanks for the report, sorry it took so long to fix.