[opensuse-packaging] Build fails, because "nothing provides" my dependency
Hi, I'm trying to package the newest ethereum-cpp version. It requires libjsonrpc-cpp version 0.7.0. The package that is already available provides version 1.1.1. Thankfully, libjsonrpc-cpp0 follows good practice of building shared libraries with proper versioning. I created a new package libjsonrpc-cpp0, that provides the older version. Now both packages create libjsonrpc-cpp-devel package, but with different versions. (AFAIK this is the proper way of packaging multiple library versions, if header files sits in the same place) You can find all my packages at https://build.opensuse.org/project/show/home:etamPL:branches:network:cryptoc... The problem I have now, is that ethereum-cpp does not build, because it says "nothing provides pkgconfig(libjsonrpccpp-client) = 0.7.0". But if I look into libjsonrpc-cpp-devel-0.7.0-1.1.x86_64.rpm file, into what it provides, there is exactly "pkgconfig(libjsonrpccpp-client) = 0.7.0". Am I doing something wrong? -- Adam Mizerski
On Jan 31 2019, Adam Mizerski <adam@mizerski.pl> wrote:
I created a new package libjsonrpc-cpp0, that provides the older version. Now both packages create libjsonrpc-cpp-devel package, but with different versions. (AFAIK this is the proper way of packaging multiple library versions, if header files sits in the same place)
You cannot have two rpms with the same name in a repository. You need to either rename one of the them, or build them in different repositories (so you can use the repository path to distinguish them). Andreas. -- Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different." -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
W dniu 31.01.2019 o 12:31, Andreas Schwab pisze:
On Jan 31 2019, Adam Mizerski <adam@mizerski.pl> wrote:
I created a new package libjsonrpc-cpp0, that provides the older version. Now both packages create libjsonrpc-cpp-devel package, but with different versions. (AFAIK this is the proper way of packaging multiple library versions, if header files sits in the same place)
You cannot have two rpms with the same name in a repository. You need to either rename one of the them, or build them in different repositories (so you can use the repository path to distinguish them).
Andreas.
Right. https://en.opensuse.org/openSUSE:Shared_library_packaging_policy Exception 4a. Somehow my knowledge was wrong on that matter. Thanks! -- Adam Mizerski
participants (2)
-
Adam Mizerski
-
Andreas Schwab