mpv-player/mpv-build

mk-build-deps: Unable to install all build-dep packages

SuperSonicHub1 opened this issue · 6 comments

Working on creating a Containerfile for mpv that builds a deb package for Ubuntu 20.04. I'm running into an odd issue where package removal randomly aborts (I think?) when running mk-build-deps --install:

STEP 42/43: RUN mk-build-deps --install
dh_testdir
dh_testroot
dh_prep
dh_testdir
dh_testroot
dh_install
dh_installdocs
dh_installchangelogs
dh_compress
dh_fixperms
dh_installdeb
dh_gencontrol
dh_md5sums
dh_builddeb
dpkg-deb: building package 'mpv-build-deps' in '../mpv-build-deps_0.34.0_amd64.deb'.

The package has been created.
Attention, the package has been created in the current directory,
not in ".." as indicated by the message above!
Selecting previously unselected package mpv-build-deps.
(Reading database ... 35976 files and directories currently installed.)
Preparing to unpack mpv-build-deps_0.34.0_amd64.deb ...
Unpacking mpv-build-deps (1:0.34.0) ...
Reading package lists...
Building dependency tree...
Reading state information...
Correcting dependencies...Starting pkgProblemResolver with broken count: 1
Starting 2 pkgProblemResolver with broken count: 1
Investigating (0) mpv-build-deps:amd64 < 1:0.34.0 @iU mK Nb Ib >
Broken mpv-build-deps:amd64 Depends on libdav1d-dev:amd64 < none @un H >
  Removing mpv-build-deps:amd64 because I can't find libdav1d-dev:amd64
Done
 Done
Starting pkgProblemResolver with broken count: 0
Starting 2 pkgProblemResolver with broken count: 0
Done
The following packages will be REMOVED:
  mpv-build-deps
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 10.2 kB disk space will be freed.
Do you want to continue? [Y/n] Abort.
(Reading database ... 35980 files and directories currently installed.)
Removing mpv-build-deps (1:0.34.0) ...
mk-build-deps: Unable to install all build-dep packages
Error: error building at STEP "RUN mk-build-deps --install": error while running runtime: exit status 29

I'll also attach my Containerfile if it's of any use.
Containerfile.txt

sfan5 commented

Ubuntu 20.04 does not package dav1d: https://packages.ubuntu.com/search?keywords=dav1d
Reverting 8709a84 to link to libaom might work, but dav1d would be superior.

Not doing a shallow clone and running git revert --no-commit 8709a84 to avoid git config harassment worked; thanks for the help. The Ubuntu packagers should really write more backports. I know this would be very extra to do for just certain Ubuntu users, but perhaps we should build dav1d ourselves?

Guess I spoke too soon:

STEP 44/45: RUN mk-build-deps --install
dh_testdir
dh_testroot
dh_prep
dh_testdir
dh_testroot
dh_install
dh_installdocs
dh_installchangelogs
dh_compress
dh_fixperms
dh_installdeb
dh_gencontrol
dh_md5sums
dh_builddeb
dpkg-deb: building package 'mpv-build-deps' in '../mpv-build-deps_0.34.0_amd64.deb'.

The package has been created.
Attention, the package has been created in the current directory,
not in ".." as indicated by the message above!
Selecting previously unselected package mpv-build-deps.
(Reading database ... 36061 files and directories currently installed.)
Preparing to unpack mpv-build-deps_0.34.0_amd64.deb ...
Unpacking mpv-build-deps (1:0.34.0) ...
Reading package lists...
Building dependency tree...
Reading state information...
Correcting dependencies...Starting pkgProblemResolver with broken count: 0
Starting 2 pkgProblemResolver with broken count: 0
Done
 Done
Starting pkgProblemResolver with broken count: 0
Starting 2 pkgProblemResolver with broken count: 0
Done
The following additional packages will be installed:
  ladspa-sdk libaom-dev libaom0 libbrotli-dev libbs2b-dev libbs2b0
  libevent-2.1-7 libgbm-dev libgme-dev libgme0 libgmp-dev libgmpxx4ldbl
  libgnutls-dane0 libgnutls-openssl27 libgnutls28-dev libgnutlsxx28 libgsm1
  libgsm1-dev libidn2-dev liblirc-client0 liblirc-dev liblirc0
  liblircclient-dev libmodplug-dev libmodplug1 libogg-dev libopenal-data
  libopenal-dev libopenal1 libopencore-amrnb-dev libopencore-amrnb0
  libopencore-amrwb-dev libopencore-amrwb0 libopus-dev libopus0 libp11-kit-dev
  librtmp-dev libsoxr-dev libsoxr-lsr0 libsoxr0 libspeex-dev libspeex1
  libssh-dev libtasn1-6-dev libunbound8 libusb-0.1-4 libv4l-0 libv4l-dev
  libv4l2rds0 libv4lconvert0 libvo-amrwbenc-dev libvo-amrwbenc0 libvorbis-dev
  libvorbisfile3 libvpx-dev libvpx6 libxvidcore-dev libxvidcore4 nettle-dev
Suggested packages:
  gmp-doc libgmp10-doc libmpfr-dev dns-root-data gnutls-bin gnutls-doc lirc
  libportaudio2 opus-tools speex libssh-doc
Recommended packages:
  libtasn1-doc
The following NEW packages will be installed:
  ladspa-sdk libaom-dev libaom0 libbrotli-dev libbs2b-dev libbs2b0
  libevent-2.1-7 libgbm-dev libgme-dev libgme0 libgmp-dev libgmpxx4ldbl
  libgnutls-dane0 libgnutls-openssl27 libgnutls28-dev libgnutlsxx28 libgsm1
  libgsm1-dev libidn2-dev liblirc-client0 liblirc-dev liblirc0
  liblircclient-dev libmodplug-dev libmodplug1 libogg-dev libopenal-data
  libopenal-dev libopenal1 libopencore-amrnb-dev libopencore-amrnb0
  libopencore-amrwb-dev libopencore-amrwb0 libopus-dev libopus0 libp11-kit-dev
  librtmp-dev libsoxr-dev libsoxr-lsr0 libsoxr0 libspeex-dev libspeex1
  libssh-dev libtasn1-6-dev libunbound8 libusb-0.1-4 libv4l-0 libv4l-dev
  libv4l2rds0 libv4lconvert0 libvo-amrwbenc-dev libvo-amrwbenc0 libvorbis-dev
  libvorbisfile3 libvpx-dev libvpx6 libxvidcore-dev libxvidcore4 nettle-dev
0 upgraded, 59 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 10.1 MB of archives.
After this operation, 36.8 MB of additional disk space will be used.
Do you want to continue? [Y/n] Abort.
(Reading database ... 36065 files and directories currently installed.)
Removing mpv-build-deps (1:0.34.0) ...
mk-build-deps: Unable to install all build-dep packages
Error: error building at STEP "RUN mk-build-deps --install": error while running runtime: exit status 29

Sanity check that git revert worked:

root@b9816abdeb21:/mpv-build# cat -n debian/control 
     1	Source: mpv
     2	Section: misc
     3	Priority: optional
     4	Maintainer: Kevin Mitchell <kevmitch@gmail.com>
     5	Standards-Version: 3.9.3
     6	Build-Depends:
     7	 autoconf,
     8	 automake,
     9	 c-compiler | gcc,
    10	 debhelper (>= 7),
    11	 ladspa-sdk,
    12	 libasound2-dev [linux-any],
    13	 libarchive-dev,
    14	 libaom-dev,

Any more commits I possibly need to revert?

sfan5 commented

That looks like a mistake in your scripts with apt expecting input or similar.

That looks like a mistake in your scripts with apt expecting input or similar.

You are correct; changing mk-build-deps --install to mk-build-deps --install --tool "apt-get --no-install-recommends -y" allows it to work now. I set my Debian front-end to non-interactive, and so APT was automatically selecting "no." Glad I was able to sort this out!

Just released my project; hope it's of any help to you if you're an Ubuntu user: https://github.com/SuperSonicHub1/mpv-ubuntu