Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 04 Jun 2020 11:02:16 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 246977] devel/readline: fix include path in readline.pc
Message-ID:  <bug-246977-7788@https.bugs.freebsd.org/bugzilla/>

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

            Bug ID: 246977
           Summary: devel/readline: fix include path in readline.pc
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: Individual Port(s)
          Assignee: sunpoet@FreeBSD.org
          Reporter: ice@extreme.hu
             Flags: maintainer-feedback?(sunpoet@FreeBSD.org)
          Assignee: sunpoet@FreeBSD.org

Created attachment 215224
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D215224&action=
=3Dedit
Patch to fix devel/readline pkg-config include path

This has been reported upstream already (see
https://lists.gnu.org/archive/html/bug-readline/2019-04/msg00007.html), but=
 a
fix has not materialised yet (see
https://lists.gnu.org/archive/html/bug-readline/2019-04/msg00008.html).

Readline is supposed to be used as "#include <readline/readline.h>". Curren=
tly,
readline.pc includes the trailing readline/ directory component for the inc=
lude
path like such:

$ pkg-config --cflags readline
-I/usr/local/include/readline=20

making the compiler look for /usr/local/include/readline/readline/readline.=
h,
which is obviously wrong and no software using readline as documented wanti=
ng
to use pkg-config will compile (but happens to work on Linux by accident).

The attached patch fixes the issue by stripping the final readline/ compone=
nt
off the include path advertised by readline.pc:

$ pkg-config --cflags readline
-I/usr/local/include

--=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-246977-7788>