Bug 170184

Summary: [patch] devel/libevent2: correct include order in pkg-config
Product: Ports & Packages Reporter: Jan Beich <jbeich>
Component: Individual Port(s)Assignee: Martin Matuska <mm>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
include_order.diff
none
include_order.diff none

Description Jan Beich freebsd_committer freebsd_triage 2012-07-26 07:00:22 UTC
When using cflags from pkg-config /compat directory is placed later.
If devel/libevent is also installed an app using such flags may
accidentally pick up event.h from libevent14. As both libraries
are only API compatible the app may crash due to ABI difference.

How-To-Repeat: $ echo '#include <event.h>' |
  env -i gcc -E - $(pkg-config libevent --cflags) |
  fgrep include/event.h
# 1 "/usr/local/include/event.h" 1
# 162 "/usr/local/include/event.h"
[...]
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2012-07-26 07:00:35 UTC
Responsible Changed
From-To: freebsd-ports-bugs->mm

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Jan Beich freebsd_committer freebsd_triage 2012-07-26 09:30:56 UTC
Jan Beich <jbeich@tormail.org> writes:

> Index: devel/libevent2/files/patch-libevent.pc.in

Oops, missed a few .pc files.
Comment 3 Martin Matuska freebsd_committer freebsd_triage 2012-10-23 21:19:41 UTC
State Changed
From-To: open->closed

Committed. Thanks!