Bug 203101 - [Mk][exp-run] use -isystem instead of -I for ${LOCALBASE}/include
Summary: [Mk][exp-run] use -isystem instead of -I for ${LOCALBASE}/include
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Ports Framework (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Dmitry Marakasov
URL:
Keywords: needs-qa, patch
Depends on:
Blocks:
 
Reported: 2015-09-14 14:04 UTC by Dmitry Marakasov
Modified: 2015-09-15 21:25 UTC (History)
1 user (show)

See Also:
koobs: maintainer-feedback? (portmgr)
koobs: merge-quarterly?
koobs: exp-run?


Attachments
Patch (614 bytes, patch)
2015-09-14 14:04 UTC, Dmitry Marakasov
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dmitry Marakasov freebsd_committer freebsd_triage 2015-09-14 14:04:55 UTC
Created attachment 161040 [details]
Patch

Use -isystem for ${LOCALBASE}/include path.

- This fixes potential build failures with -Werror because of warnings in third party includes
- This enforces correct include directory order, fixing potential problems when an application uses its own includes from system during build instead of ones from WRKDIR

This change was approved by bapt, and no requires an exp-run.

Differential revision: https://reviews.freebsd.org/D3618
Comment 1 Antoine Brodin freebsd_committer freebsd_triage 2015-09-15 18:52:08 UTC
Exp-run results on 9.3 i386:
http://package22.nyi.freebsd.org/jail.html?mastername=93i386-default-PR203101
0 new failure

Exp-run results on 10.2 amd64:
http://package23.nyi.freebsd.org/jail.html?mastername=102amd64-default-PR203101
0 new failure
Comment 2 commit-hook freebsd_committer freebsd_triage 2015-09-15 21:25:10 UTC
A commit references this bug:

Author: amdmi3
Date: Tue Sep 15 21:24:42 UTC 2015
New revision: 397026
URL: https://svnweb.freebsd.org/changeset/ports/397026

Log:
  - Use -isystem instead of -I to add ${LOCALBASE}/include to the list of header search paths

  First, this prevents ports which use strict -Werror settings from
  build failures in third party headers (real life example is
  devel/pructl which uses -Werror -Weverything and fails in libedit
  header on actually harmless padding warning).

  Second, this prevents ports which install headers from picking up
  their own headers from LOCALBASE instead of using ones from WRKDIR,
  which leads to any kind of problems when upgrading via ports.

  PR:		203101
  Approved by:	bapt
  Differential Revision:	D3618

Changes:
  head/Mk/Uses/localbase.mk