Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building mr12.5.1.2 ubuntu packages fails when installing dependencies #1849

Open
SipSeb opened this issue Aug 16, 2024 · 3 comments
Open

Building mr12.5.1.2 ubuntu packages fails when installing dependencies #1849

SipSeb opened this issue Aug 16, 2024 · 3 comments
Labels

Comments

@SipSeb
Copy link
Contributor

SipSeb commented Aug 16, 2024

rtpengine version the issue has been seen with

12.5.1.2

Used distribution and its version

Ubuntu 22.04

Linux kernel version used

5.15.0-118-generic

CPU architecture issue was seen on (see uname -m)

x86_64

Expected behaviour you didn't see

We build our own rtpengine packages, and this usually works by just exchanging the version in our scripts. However, I just tried to bump the version fron 11.5.x.y to 12.5.1.2.

Unexpected behaviour you saw

We download the source code with the correct tag from the git repo and then there are the following lines in our code:

export DEB_BUILD_PROFILES="pkg.ngcp-rtpengine.nobcg729"
mk-build-deps --install --tool 'apt-get --yes --no-install-recommends' --remove
[..]

Building for version 12.5.1.2 fails in the second step, it will uninstall the ngcp-rtpengine-build-deps package.

Comparing the control file between 11.5 and 12.5 I saw, that there's a new build dependency called ngcp-libcodec-chain-dev. I could imagine, this package not being available anywhere could lead to the dependeny problem. But I might be wrong.

Am I missing something?

Steps to reproduce the problem

No response

Additional program output to the terminal or logs illustrating the issue

No response

Anything else?

No response

@SipSeb SipSeb added the bug label Aug 16, 2024
@rfuchs
Copy link
Member

rfuchs commented Aug 16, 2024

If your build environment actually supports build profiles, then that dependency ought to be included only if the profile pkg.ngcp-rtpengine.codec-chain is active. I'm guessing either the profile isn't active or profiles aren't supported by your environment.

Furthermore, you ought to use the included backports scripts for building. See the scripts in pkg/deb/

@SipSeb SipSeb changed the title Building mr12.5.1.2 ubuntu packages fails - ngcp-libcodec-chain-dev dependency? Building mr12.5.1.2 ubuntu packages fails when installing dependencies Aug 21, 2024
@SipSeb
Copy link
Contributor Author

SipSeb commented Aug 21, 2024

Turns out, the libcodec-chain-dev dependency had nothing to do with it. Thanks for the hint with the backports scripts, I included them.

However, the problem stays. When I use this line to install all build dependencies

mk-build-deps --install --tool 'apt-get --yes --no-install-recommends' --remove

it says it will remove the deps package itself and then fails.

As a workaround, this works:

    mk-build-deps
    export DEPSDEBFILE=$(ls -1 *deb)
    dpkg -i ./$DEPSDEBFILE || true
    apt-get install -f -y

I compared the resulting deps deb files from version 11.5.x and 12.5.x, could not see a difference. Don't know what has changed.

@rfuchs
Copy link
Member

rfuchs commented Aug 23, 2024

Maybe use apt build-dep instead?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants