commit:     08eba8565709719f041022c35b828a9b7d5d1b70
Author:     Mike Frysinger <vapier <AT> gentoo <DOT> org>
AuthorDate: Fri Dec  1 11:18:46 2023 +0000
Commit:     Mike Frysinger <vapier <AT> gentoo <DOT> org>
CommitDate: Fri Dec  1 11:22:16 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=08eba856

net-nntp/tin: fix build when $CPPFLAGS is set

The configure script defaults BUILD_CPPFLAGS to $CPPFLAGS, and if
that is set, omits a required -I$srcdir/include flag from the build
causing it to not find local tin.h headers.  Append it ourselves.

Signed-off-by: Mike Frysinger <vapier <AT> gentoo.org>

 net-nntp/tin/tin-2.6.2-r1.ebuild | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/net-nntp/tin/tin-2.6.2-r1.ebuild b/net-nntp/tin/tin-2.6.2-r1.ebuild
index c550f29e48bd..631a6ec8091d 100644
--- a/net-nntp/tin/tin-2.6.2-r1.ebuild
+++ b/net-nntp/tin/tin-2.6.2-r1.ebuild
@@ -52,6 +52,11 @@ src_configure() {
        tc-export AR CC RANLIB
        tc-export_build_env
 
+       # The build incorrectly discards its local -I if $CPPFLAGS is set.
+       if [[ -n ${BUILD_CPPFLAGS} ]]; then
+               BUILD_CPPFLAGS+=' -I$(INCDIR)'
+       fi
+
        local myeconfargs=(
                $(use_enable cancel-locks)
                $(use_with cancel-locks canlock)

Reply via email to