pkgsrc-Changes archive

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

CVS commit: pkgsrc/devel/protobuf-c



Module Name:    pkgsrc
Committed By:   tnn
Date:           Sun Apr 24 19:29:12 UTC 2022

Modified Files:
        pkgsrc/devel/protobuf-c: Makefile

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 pkgsrc/devel/protobuf-c/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/devel/protobuf-c/Makefile
diff -u pkgsrc/devel/protobuf-c/Makefile:1.11 pkgsrc/devel/protobuf-c/Makefile:1.12
--- pkgsrc/devel/protobuf-c/Makefile:1.11       Wed Apr 13 10:48:15 2022
+++ pkgsrc/devel/protobuf-c/Makefile    Sun Apr 24 19:29:12 2022
@@ -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 @@ GNU_CONFIGURE=                yes
 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