[MDEV-9111] debian/control has libjudy-dev in Build-Depends Created: 2015-11-10  Updated: 2016-11-25  Resolved: 2016-11-25

Status: Closed
Project: MariaDB Server
Component/s: Compiling, Platform Debian, Tests
Affects Version/s: 10.1.8
Fix Version/s: N/A

Type: Bug Priority: Major
Reporter: Kolbe Kegel (Inactive) Assignee: Otto Kekäläinen
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Relates
relates to MDEV-3809 Change Debian packaging to use CPack ... Stalled
relates to MDEV-8976 OQGraph should be disabled for POWER8... Closed

 Description   

The new Debian packaging included in MariaDB 10.1 includes a debian/control file that has a Build-Depends which includes "libjudy-dev". On platforms where there is no libjudy-dev package available (Ubuntu Trusty on ppc64, for example), this means that it's impossible to build the server, even if building without OQGraph (the component that actually requires libjudy-dev).

Is there a recommended approach for excluding build dependencies when the component with the dependency is not being built?



 Comments   
Comment by Elena Stepanova [ 2015-11-10 ]

It's been discussed before (without much result), but I don't think we had it filed. Assigning to Otto to clarify what we should do about it, since now at least p8 trusty build does not work in buildbot.

Comment by Otto Kekäläinen [ 2015-11-10 ]

If you do manual builds, you can run dpkg-buildpackage -d and the build will proceed even if the required dependencies are not met.

If you want to customize that certain platforms have different control files, you could do something similar as is already done in the autobake-deb.sh file regarding the libcrypto dependency.

Comment by Kolbe Kegel (Inactive) [ 2015-11-10 ]

Customizing and maintaining the control file for various different platforms and OSes doesn't sound very attractive. Debian and Ubuntu, and individual versions of each, might very well have different build dependencies, right? Maybe that's less of an issue than I'd expect.

otto, I'm afraid I don't know what you're referring to with "the libcrypto dependency". I don't see any mention at all of "crypto" anywhere in the debian/ subdirectory of the 10.1 branch.

Or maybe you're referring instead to libcrack2, where the autobake script does some brute-force apt + sed gymnastics to edit the control file? If that's the recommended approach, then I guess it's the one we'll have to use. It seems like there should be something a lot more flexible than this, though.

Comment by Sergei Golubchik [ 2015-11-10 ]

MDEV-3809 could be a solution to this (and many other) packaging problems.

Comment by Otto Kekäläinen [ 2015-11-10 ]

kolbe Yes, I meant the libcrack2 hack. That is the easiest way to customize the debian/* contents at build time if there is some exceptions to the packaging, which otherwise very nicely works on all Debian/Ubuntu releases we want to support.

Comment by Kolbe Kegel (Inactive) [ 2015-11-10 ]

serg, I don't disagree with you, but I think otto does not like the idea of using CPack, especially for Debian packaging. Anyway, the discussion about that broader issue can happen elsewhere.

Comment by Otto Kekäläinen [ 2016-11-25 ]

libjudy-dev is available on all relevant platforms and mariadb-10.0 in Debian with libjudy-dev as a build dependency works well: https://buildd.debian.org/status/package.php?p=mariadb-10.0

Generated at Thu Feb 08 07:32:13 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.