Bug#1100379: libopentelemetry-proto-dev and opentelemetry-cpp-dev fail to coinstall

Santiago Ruano Rincón santiagorr at riseup.net
Mon Mar 17 15:28:34 GMT 2025


(Adding Thomas to the loop)

El 13/03/25 a las 08:13, Helmut Grohne escribió:
> Package: libopentelemetry-proto-dev,opentelemetry-cpp-dev
> Severity: serious
> Tags: trixie sid
> User: debian-qa at lists.debian.org
> Usertags: fileconflict
> 
> The packages libopentelemetry-proto-dev and opentelemetry-cpp-dev cannot
> be practically coinstalled in trixie.
> 
>     mmdebstrap --verbose --variant=apt '' /dev/null 'deb http://deb.debian.org/debian trixie main'  --include=libopentelemetry-proto-dev,opentelemetry-cpp-dev
> 
> Attempting to do it fails.
> 
>     Preparing to unpack .../42-opentelemetry-cpp-dev_1.19.0-1+b1_amd64.deb ...
>     Unpacking opentelemetry-cpp-dev:amd64 (1.19.0-1+b1) ...
>     dpkg: error processing archive /tmp/apt-dpkg-install-jFNI07/42-opentelemetry-cpp-dev_1.19.0-1+b1_amd64.deb (--unpack):
>      trying to overwrite '/usr/include/opentelemetry/proto/collector/logs/v1/logs_service.grpc.pb.h', which is also in package libopentelemetry-proto-dev (1.5.0-1)
>     Errors were encountered while processing:
>      /tmp/apt-dpkg-install-jFNI07/42-opentelemetry-cpp-dev_1.19.0-1+b1_amd64.deb
>     E: Sub-process env returned an error code (1)
> 
> These packages look very similar. Do we really need both or should one
> of them be removed in favour of the other?
> 
> Helmut
> 

Thanks for filing this bug, Helmut!

And sorry for overlooking at this. opentelemetry-cpp-dev currently
includes (part of) the proto header files, that were used to build the
-cpp header-only library. IIUC, if we had to remove one of those
packages, it would have to be libopentelemetry-proto-dev, in favor of
opentelemetry-cpp-dev. But, if openlemetry-proto (as the OTLP protocol
implementation in C++) happens to be needed as as dependency of any
other package, I would prefer to keep both packages.

My plan is to remove the /usr/include/opentelemetry/proto/ files from
opentelemetry-cpp-dev. Looking into tango (the main opentelemetry
reverse dependency), it only includes/need the header files from the C++
client library. I've actually tested building tango with a "clean"
opentelemetry-cpp-dev and it succeeds.
Thomas, please tell me if this doesn't make sense to you.

Unless there is any objection, I will upload a hopefully fixed
opentelemetry-cpp-dev in a couple of days.

Cheers,

 -- Santiago
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/debian-science-maintainers/attachments/20250317/14dc0d03/attachment.sig>


More information about the debian-science-maintainers mailing list