pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/protobuf-c protobuf-c: fix build failure in bulk...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/7c9f4ae018bb
branches:  trunk
changeset: 377764:7c9f4ae018bb
user:      tnn <tnn%pkgsrc.org@localhost>
date:      Sun Apr 24 19:29:12 2022 +0000

description:
protobuf-c: fix build failure in bulk builds

This has been observed on both NetBSD and SunOS. Build fails with:
"google/protobuf/descriptor.proto: File not found."

This message comes from:
/usr/pkg/bin/protoc -I. --cpp_out=. ./protobuf-c/protobuf-c.proto

-I. is the current directory, WRKSRC.
But descriptor.proto comes from the devel/protobuf package and is not
present in WRKSRC. Fix by symlinking in include/google from the buildlink
directory under WRKSRC.

diffstat:

 devel/protobuf-c/Makefile |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (18 lines):

diff -r 1b95a7d03a0e -r 7c9f4ae018bb devel/protobuf-c/Makefile
--- a/devel/protobuf-c/Makefile Sun Apr 24 19:25:02 2022 +0000
+++ b/devel/protobuf-c/Makefile Sun Apr 24 19:29:12 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.11 2022/04/13 10:48:15 wiz Exp $
+# $NetBSD: Makefile,v 1.12 2022/04/24 19:29:12 tnn Exp $
 
 DISTNAME=      protobuf-c-1.4.0
 CATEGORIES=    devel
@@ -17,5 +17,8 @@
 PKGCONFIG_OVERRIDE+=   protobuf-c/libprotobuf-c.pc.in
 TEST_TARGET=           check
 
+pre-configure:
+       ${LN} -s ${BUILDLINK_DIR}/include/google ${WRKSRC}/google
+
 .include "../../devel/protobuf/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index