[opensuse-packaging] python3-base dependency problem while porting a package from different RPM distro
Hi! First of all, I am sorry, if I am posting to the wrong mailing list. Please, let me know if there is a more appropriate place to post my question and I'll be on my way there. I am currently in a process of creating a package of a database product that I work on at my current job. We want to be able to provide it to openSUSE users. The package I have currently works for CentOS and I am in the process of finding the right dependencies for openSUSE. Currently, I am using Leap 15.1 and the `build` command (btw, a really solid tool!) for iterative changes in the spec file I have. Correct me if I am wrong, but it seems that I found a possible packaging bug in the repository: logging output to /var/tmp/build-root/.build.log... [ 0s] Memory limit set to 3647708KB [ 0s] Using BUILD_ROOT=/var/tmp/build-root [ 0s] Using BUILD_ARCH=x86_64:i686:i586:i486:i386 [ 0s] [ 0s] [ 0s] linux-4uxa started "build eurodb-9.6.spec" at Fri Mar 6 10:40:26 UTC 2020. [ 0s] [ 0s] [ 0s] processing recipe /usr/src/packages/SPECS/eurodb-9.6.spec ... [ 0s] init_buildsystem --configdir /usr/lib/build/configs --cachedir /var/cache/build --repository zypp:// /usr/src/packages/SPECS/eurodb-9.6.spec ... [ 0s] expanding package dependencies... [ 3s] Warning: distribution not specified, assuming '15.1-x86_64' (see /usr/lib/build/configs). [ 6s] expansion error [ 6s] have choice for libffi.so.7()(64bit) needed by python3-base: ghc-bootstrap libffi7 [ 6s] have choice for libffi.so.7(LIBFFI_BASE_7.0)(64bit) needed by python3-base: ghc-bootstrap libffi7 [ 6s] have choice for libffi.so.7(LIBFFI_CLOSURE_7.0)(64bit) needed by python3-base: ghc-bootstrap libffi7 [ 6s] [ 6s] linux-4uxa failed "build eurodb-9.6.spec" at Fri Mar 6 10:40:32 UTC 2020. [ 6s] Shouldn't the `ghc-bootstrap` have a dependency on `libffi7` ? I am very new to the openSUSE-way of package management (and repositories layout for that matter), could you please tell me if I am doing something wrong here? Or maybe there is some document that I have missed that might relate to my issue while building? Thank you in advance! Cheers, Jakub Olczyk -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
Hi! On 3/6/20 12:24 PM, Jakub Olczyk wrote:
[ 6s] have choice for libffi.so.7()(64bit) needed by python3-base: libffi7 [ 6s] have choice for libffi.so.7(LIBFFI_BASE_7.0)(64bit) needed by python3-base: ghc-bootstrap libffi7 [ 6s] have choice for libffi.so.7(LIBFFI_CLOSURE_7.0)(64bit) needed by python3-base: ghc-bootstrap libffi7
This just means there are multiple packages that can satisfy this dependency. The ghc-bootstrap provides libffi.so.7 and the libffi7 also. This is actually in the Project Configuration that you can see, osc meta prjconf openSUSE:Leap:15.1 | less # ghc-bootstrap should not provide it to start with - but it does. so let's kick it Prefer: libffi7 What I think is happening is that you are trying to build your package for Leap 15.1 but outside of the OBS. If you do this, you should use `osc build` which will take project configuration into account when resolving dependencies. Create an account on https://build.opensuse.org and then use your home project to build your package. Even if you do not actually upload the package to OBS (even in home directory), you can still build it locally. For example, you can do things like, osc build --alternative-project=openSUSE:Leap:15.2 and it will build for different version of Leap (locally). This way you can have one spec file and build for other distributions. For example, You can even use this to build for CentOS osc build --alternative-project=CentOS:CentOS-8 osc build --alternative-project=CentOS:CentOS-7 or Debian or RHEL or openSUSE:Factory, osc build --alternative-project=openSUSE:Factory - Adam PS. Yes, this is correct place to ask about packaging -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
Hi Adam, thank you very much for pointing to the direction of `osc` and for the detailed explanation how to get started with building for openSUSE. Also, I am sorry for unsolicited mail with part of my previous message, this was a result of a misclick. Cheers, Jakub Olczyk -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
On 3/6/20 2:51 PM, Jakub Olczyk wrote:
Hi Adam,
thank you very much for pointing to the direction of `osc` and for the detailed explanation how to get started with building for openSUSE.
No problem. When you come up with some problem, just ask here. - Adam -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
participants (2)
-
Adam Majer
-
Jakub Olczyk