userver-framework / userver

Production-ready C++ Asynchronous Framework with rich functionality
https://userver.tech
Apache License 2.0
2.31k stars 268 forks source link

userver-2.0 package broken deps? (userver-all vs librdkavka-dev) #599

Closed Turim closed 1 month ago

Turim commented 1 month ago

On ubuntu 22.04 LTS wsl:

Steps to reproduce:

  1. Take userver-all_2.0_amd64.deb
  2. sudo dpkg -i
  3. sudo apt-get install -f
$ sudo dpkg -i ./userver-all_2.0_amd64.deb
Selecting previously unselected package userver-all.
(Reading database ... 59669 files and directories currently installed.)
Preparing to unpack ./userver-all_2.0_amd64.deb ...
Unpacking userver-all (2.0) ...
dpkg: error processing archive ./userver-all_2.0_amd64.deb (--install):
 trying to overwrite '/usr/include/librdkafka/rdkafka.h', which is also in package librdkafka-dev:amd64 1.8.0-1build1
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
 ./userver-all_2.0_amd64.deb

P.S. I know, I know, we have the workaround with --force-overwrite, but can we do better? heh?

apolukhin commented 1 month ago

Many thanks for the bug report!

Fixed the problem in v2.1. Give us a hint, if something could be done even better :)