LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   Backporting Kodi, dependency issues. (https://www.linuxquestions.org/questions/debian-26/backporting-kodi-dependency-issues-4175648997/)

jmgibson1981 02-24-2019 06:20 PM

Backporting Kodi, dependency issues.
 
*EDIT* Forgot to specify, this is Stretch amd64.

I don't like compiling with make / make install, rather preferring to use .deb files built by the system. As such I figured I would be best off backporting the latest Kodi from the Xbmc ppa rather than compiling directly myself. I created a chroot for myself and began the process. I've had to backport a few dev packages, namely libshairplay-dev and flatbuffers-dev. However I've hit a snag and I'm not even sure what this means.

This is what I get after running a mk-build-deps command in the kodi source directory. I'm not sure what to do. Seems like a circular problem.

Code:

The package has been created.
Attention, the package has been created in the current directory,
not in ".." as indicated by the message above!
(Reading database ... 31641 files and directories currently installed.)
Preparing to unpack kodi-build-deps_18.1+git20190217.1232-final-0xenial_amd64.deb ...
Unpacking kodi-build-deps (2:18.1+git20190217.1232-final-0xenial) over (2:18.1+git20190217.1232-final-0xenial) ...
Reading package lists... Done
Building dependency tree     
Reading state information... Done
Correcting dependencies...Starting pkgProblemResolver with broken count: 2
Starting 2 pkgProblemResolver with broken count: 2
Investigating (0) libssh-dev:amd64 < none -> 0.7.3-2+deb9u2 @un uN Ib >
Broken libssh-dev:amd64 Depends on libssl1.0-dev:amd64 < none | 1.0.2q-1~deb9u1 @un uH >
  Considering libssl1.0-dev:amd64 0 as a solution to libssh-dev:amd64 0
  Holding Back libssh-dev:amd64 rather than change libssl1.0-dev:amd64
Investigating (0) kodi-build-deps:amd64 < 2:18.1+git20190217.1232-final-0xenial @iU mK Nb Ib >
Broken kodi-build-deps:amd64 Depends on libssh-dev:amd64 < none | 0.7.3-2+deb9u2 @un uH >
  Considering libssh-dev:amd64 0 as a solution to kodi-build-deps:amd64 -2
  Removing kodi-build-deps:amd64 rather than change libssh-dev:amd64
Done
 Done
Starting pkgProblemResolver with broken count: 0
Starting 2 pkgProblemResolver with broken count: 0
Done
The following additional packages will be installed:
  curl gawk zip
Suggested packages:
  gawk-doc
The following packages will be REMOVED:
  kodi-build-deps
The following NEW packages will be installed:
  curl gawk zip
0 upgraded, 3 newly installed, 1 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 1,032 kB of archives.
After this operation, 3,217 kB of additional disk space will be used.
Do you want to continue? [Y/n]


Brains 02-25-2019 09:32 PM

It needs these two packages to be installed:
libssh-dev
libssl1.0-dev
Both of which are in Stretch repositories with exact version number needed. But kodi-build-deps says: "rather than change libssl1.0-dev:amd64". Which suggest that package may be installed, but is the wrong version number, which would suggest you have repositories enabled from other versions of Debian or other distributions.
Check to see if it's installed with command: apt list --installed | grep libssl1.0-dev
You can also check if the other one is installed: apt list --installed | grep libssh-dev
If the prompt returns nothing, they are not installed, installing libssh-dev should install libssl1.0-dev
If one of them is installed and it's version number don't match the number listed in the links above for the package, means you need to exchange it with proper version, which could get messy. Ensure you only have Stretch repositories enabled.

jmgibson1981 02-26-2019 01:10 PM

Is a clean chroot with just the debian main repos. Ill double check versions. I had found something about it being a bug with the openssl package. Backported that with no success from buster.

The only other enabled repo is deb-src from kodi ppa.

jmgibson1981 03-04-2019 04:04 PM

Code:

libssl1.0-dev/stable,now 1.0.2q-1~deb9u1 amd64 [installed]
libssh-dev/stable,now 0.7.3-2+deb9u2 amd64 [installed]

'

Sources.list

Code:

deb http://deb.debian.org/debian stretch main
deb-src http://ppa.launchpad.net/team-xbmc/ubuntu xenial main
deb [trusted=yes] http://megalith.mylan.home/packages/debian/stretch/amd64 ./

Contents of megalith. These have been backported from the Kodi ppa deb-src line.

Code:

jason@megalith:/var/www/html/packages/debian/stretch/amd64$ ls
flatbuffers_1.9.0-3~xenial~bpo9+01_amd64.deb
flatbuffers-dbgsym_1.9.0-3~xenial~bpo9+01_amd64.deb
flatbuffers-dev_1.9.0-3~xenial~bpo9+01_amd64.deb
libshairplay0_0.9.0.2~xenial~bpo9+01_amd64.deb
libshairplay0-dbgsym_0.9.0.2~xenial~bpo9+01_amd64.deb
libshairplay-dev_0.9.0.2~xenial~bpo9+01_amd64.deb
Packages.gz
shairplay_0.9.0.2~xenial~bpo9+01_amd64.deb
shairplay-dbgsym_0.9.0.2~xenial~bpo9+01_amd64.deb

End result after manually installing the above packages

Code:

root@homewrecker:/home/jason/kodibuild/kodi-18.1+git20190217.1232-final# mk-build-deps --install --remove
mk-build-deps: warning:    debian/changelog(l5726): unrecognized line                     
LINE:  [wsnipex]                                                                           
mk-build-deps: warning:    debian/changelog(l5727): unrecognized line                     
LINE:  * dummy                                                                             
dh_testdir                                                                                 
dh_testroot                                                                                 
dh_prep                                                                                     
dh_testdir                                                                                 
dh_testroot                                                                                 
dh_install                                                                                 
dh_install: Compatibility levels before 9 are deprecated (level 7 in use)                   
dh_installdocs                                                                             
dh_installdocs: Compatibility levels before 9 are deprecated (level 7 in use)               
dh_installchangelogs                                                                       
dh_installchangelogs: Compatibility levels before 9 are deprecated (level 7 in use)         
dh_compress                                                                                 
dh_fixperms                                                                                 
dh_installdeb                                                                               
dh_installdeb: Compatibility levels before 9 are deprecated (level 7 in use)               
dh_gencontrol                                                                               
dh_md5sums                                                                                 
dh_builddeb                                                                                 
dpkg-deb: building package 'kodi-build-deps' in '../kodi-build-deps_18.1+git20190217.1232-final-0xenial_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 kodi-build-deps.                                   
(Reading database ... 29760 files and directories currently installed.)                     
Preparing to unpack kodi-build-deps_18.1+git20190217.1232-final-0xenial_amd64.deb ...       
Unpacking kodi-build-deps (2:18.1+git20190217.1232-final-0xenial) ...                       
Reading package lists... Done
Building dependency tree     
Reading state information... Done
Correcting dependencies...Starting pkgProblemResolver with broken count: 2
Starting 2 pkgProblemResolver with broken count: 2
Investigating (0) libssh-dev:amd64 < 0.7.3-2+deb9u2 @ii mK Ib >
Broken libssh-dev:amd64 Depends on libssl1.0-dev:amd64 < 1.0.2q-1~deb9u1 @ii mR >
  Considering libssl1.0-dev:amd64 0 as a solution to libssh-dev:amd64 1
  Added libssl1.0-dev:amd64 to the remove list
  Fixing libssh-dev:amd64 via keep of libssl1.0-dev:amd64
Investigating (0) libssl1.0-dev:amd64 < 1.0.2q-1~deb9u1 @ii mK Ib >
Broken libssl1.0-dev:amd64 Conflicts on libssl-dev:amd64 < none -> 1.1.0j-1~deb9u1 @un uN Ib >
  Considering libssl-dev:amd64 0 as a solution to libssl1.0-dev:amd64 0
  Removing libssl1.0-dev:amd64 rather than change libssl-dev:amd64
Investigating (0) kodi-build-deps:amd64 < 2:18.1+git20190217.1232-final-0xenial @iU mK Nb Ib >
Broken kodi-build-deps:amd64 Depends on waylandpp-dev:amd64 < none @un H >
  Removing kodi-build-deps:amd64 because I can't find waylandpp-dev:amd64
Investigating (1) libssh-dev:amd64 < 0.7.3-2+deb9u2 @ii mK Ib >
Broken libssh-dev:amd64 Depends on libssl1.0-dev:amd64 < 1.0.2q-1~deb9u1 @ii mR >
  Considering libssl1.0-dev:amd64 0 as a solution to libssh-dev:amd64 1
  Added libssl1.0-dev:amd64 to the remove list
  Fixing libssh-dev:amd64 via keep of libssl1.0-dev:amd64
Investigating (1) libssl1.0-dev:amd64 < 1.0.2q-1~deb9u1 @ii mK Ib >
Broken libssl1.0-dev:amd64 Conflicts on libssl-dev:amd64 < none -> 1.1.0j-1~deb9u1 @un uN Ib >
  Considering libssl-dev:amd64 0 as a solution to libssl1.0-dev:amd64 0
  Removing libssl1.0-dev:amd64 rather than change libssl-dev:amd64
Investigating (2) libssh-dev:amd64 < 0.7.3-2+deb9u2 @ii mK Ib >
Broken libssh-dev:amd64 Depends on libssl1.0-dev:amd64 < 1.0.2q-1~deb9u1 @ii mR >
  Considering libssl1.0-dev:amd64 0 as a solution to libssh-dev:amd64 1
  Added libssl1.0-dev:amd64 to the remove list
  Fixing libssh-dev:amd64 via keep of libssl1.0-dev:amd64
Investigating (2) libssl1.0-dev:amd64 < 1.0.2q-1~deb9u1 @ii mK Ib >
Broken libssl1.0-dev:amd64 Conflicts on libssl-dev:amd64 < none -> 1.1.0j-1~deb9u1 @un uN Ib >
  Considering libssl-dev:amd64 0 as a solution to libssl1.0-dev:amd64 1
  Added libssl-dev:amd64 to the remove list
  Fixing libssl1.0-dev:amd64 via keep of libssl-dev:amd64
Done
 Done
Starting pkgProblemResolver with broken count: 0
Starting 2 pkgProblemResolver with broken count: 0
Done
The following packages will be REMOVED:
  kodi-build-deps
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 11.3 kB disk space will be freed.
Do you want to continue? [Y/n]

*EDIT* Did the waylanpp backport. Back to square one.

Code:

root@homewrecker:/home/jason/kodibuild/kodi-18.1+git20190217.1232-final# mk-build-deps --install --removemk-build-deps: warning:    debian/changelog(l5726): unrecognized line
LINE:  [wsnipex]
mk-build-deps: warning:    debian/changelog(l5727): unrecognized line
LINE:  * dummy
dh_testdir
dh_testroot
dh_prep
dh_testdir
dh_testroot
dh_install
dh_install: Compatibility levels before 9 are deprecated (level 7 in use)
dh_installdocs
dh_installdocs: Compatibility levels before 9 are deprecated (level 7 in use)
dh_installchangelogs
dh_installchangelogs: Compatibility levels before 9 are deprecated (level 7 in use)
dh_compress
dh_fixperms
dh_installdeb
dh_installdeb: Compatibility levels before 9 are deprecated (level 7 in use)
dh_gencontrol
dh_md5sums
dh_builddeb
dpkg-deb: building package 'kodi-build-deps' in '../kodi-build-deps_18.1+git20190217.1232-final-0xenial_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 kodi-build-deps.
(Reading database ... 37338 files and directories currently installed.)
Preparing to unpack kodi-build-deps_18.1+git20190217.1232-final-0xenial_amd64.deb ...
Unpacking kodi-build-deps (2:18.1+git20190217.1232-final-0xenial) ...
Reading package lists... Done
Building dependency tree     
Reading state information... Done
Correcting dependencies...Starting pkgProblemResolver with broken count: 2
Starting 2 pkgProblemResolver with broken count: 2
Investigating (0) libssl-dev:amd64 < 1.1.0j-1~deb9u1 @ii mK Ib >
Broken libssl-dev:amd64 Conflicts on libssl1.0-dev:amd64 < none -> 1.0.2q-1~deb9u1 @un uN Ib >
  Considering libssl1.0-dev:amd64 -1 as a solution to libssl-dev:amd64 1
  Added libssl1.0-dev:amd64 to the remove list
  Fixing libssl-dev:amd64 via keep of libssl1.0-dev:amd64
Investigating (0) libssh-dev:amd64 < none -> 0.7.3-2+deb9u2 @un uN Ib >
Broken libssh-dev:amd64 Depends on libssl1.0-dev:amd64 < none | 1.0.2q-1~deb9u1 @un uH >
  Considering libssl1.0-dev:amd64 -1 as a solution to libssh-dev:amd64 0
  Holding Back libssh-dev:amd64 rather than change libssl1.0-dev:amd64
Investigating (0) kodi-build-deps:amd64 < 2:18.1+git20190217.1232-final-0xenial @iU mK Nb Ib >
Broken kodi-build-deps:amd64 Depends on libssh-dev:amd64 < none | 0.7.3-2+deb9u2 @un uH >
  Considering libssh-dev:amd64 0 as a solution to kodi-build-deps:amd64 -2
  Removing kodi-build-deps:amd64 rather than change libssh-dev:amd64
Done
 Done
Starting pkgProblemResolver with broken count: 0
Starting 2 pkgProblemResolver with broken count: 0
Done
The following packages will be REMOVED:
  kodi-build-deps
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 11.3 kB disk space will be freed.
Do you want to continue? [Y/n]


jmgibson1981 03-04-2019 09:05 PM

Marking as solved. I've managed to get mk-build-deps to run and install packages. The solution was to backport libssh-dev from the official backports repo. It's downloading packages now. I will report back on success or failure of the rest of the build.


All times are GMT -5. The time now is 01:36 AM.