Control: affects -1 gitlab

On Wed, 26 Apr 2023 22:51:08 +0530 Pirate Praveen <prav...@onenetbeyond.org> wrote:
> On Mon, 24 Apr 2023 12:03:35 +0530 Pirate Praveen
> <prav...@onenetbeyond.org> wrote:
>  > CMake Warning at cmake/abseil-cpp.cmake:28 (message):
>  >   protobuf_ABSL_PROVIDER is "module" but ABSL_ROOT_DIR is wrong
>  > Call Stack (most recent call first):
>  >   CMakeLists.txt:350 (include)
>  >
>  > I could skip building googletest easily, but this is not very
> straight
>  > forward. Any ideas?
>
> I tried setting -Dprotobuf_ABSL_PROVIDER=package similar to grpc, but
> the rules file seems too complex, so I will leave it to the maintainer > for a proper update. In the meanwhile, gitlab can use the version from
> rubygems.org (being in contrib).

With help from sur5r on irc,

diff -Nur protobuf-3.22.3/debian/control protobuf-3.22.3-sur5r/debian/control
--- protobuf-3.22.3/debian/control 2023-04-21 12:00:57.000000000 +0200
+++ protobuf-3.22.3-sur5r/debian/control 2023-04-26 19:23:36.007605725 +0200
@@ -10,6 +10,7 @@
 , cmake
# C/C++
 , zlib1g-dev
+ , libabsl-dev
 , libgmock-dev <!nocheck>
 , libgtest-dev <!nocheck>
# Python
diff -Nur protobuf-3.22.3/debian/files protobuf-3.22.3-sur5r/debian/files
--- protobuf-3.22.3/debian/files 1970-01-01 01:00:00.000000000 +0100
+++ protobuf-3.22.3-sur5r/debian/files 2023-04-26 19:23:41.469612410 +0200
@@ -0,0 +1 @@
+protobuf_3.22.3-1_source.buildinfo devel optional
diff -Nur protobuf-3.22.3/debian/rules protobuf-3.22.3-sur5r/debian/rules
--- protobuf-3.22.3/debian/rules 2023-04-09 07:50:55.000000000 +0200
+++ protobuf-3.22.3-sur5r/debian/rules 2023-04-26 19:20:30.327913541 +0200
@@ -38,12 +38,15 @@
PYTHON_CROSS_VARS += CXX=$(CXX)
endif

+override_dh_auto_configure:
+ dh_auto_configure -- -Dprotobuf_ABSL_PROVIDER=package
+
override_dh_auto_build-arch:
## Chicken<->Egg problem: protobuf requires self-generated .pb.go files to ## be built. First we build it normally; then "generate_descriptor_proto.sh" ## generates .pb.go files and replaces 'em if they are different as well as
## invokes "make protoc" which re-builds "src/protoc" if required.
- dh_auto_build --arch
+ dh_auto_build --arch -- -Dprotobuf_ABSL_PROVIDER=package
 bash -x ./generate_descriptor_proto.sh

ifneq ($(DEB_BUILD_ARCH),$(DEB_HOST_ARCH))

The error changed to, which he suggested needs a newer absl

-- Configuring done
CMake Error at cmake/libprotobuf-lite.cmake:26 (target_link_libraries):
 Target "libprotobuf-lite" links to:

   absl::absl_check

 but the target was not found. Possible reasons include:

   * There is a typo in the target name.
   * A find_package call is missing for an IMPORTED target.
   * An ALIAS target is missing.

Reply via email to