FS#57851 - [libdrm] udev dependency

Attached to Project: Arch Linux
Opened by Michał Janiszewski (janisozaur) - Thursday, 15 March 2018, 10:26 GMT
Last edited by Andreas Radke (AndyRTR) - Wednesday, 21 March 2018, 11:33 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Andreas Radke (AndyRTR)
Jan Alexander Steffens (heftig)
Laurent Carlier (lordheavy)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

udev is missing from dependencies, yet required to use.

Recent update (https://git.archlinux.org/svntogit/packages.git/commit/trunk?h=packages/libdrm&id=d490fde508be38c2758588bb3b42b29101edcd78) introduced `-Dudev=true` option to build system, however depends/makedepends arrays were not updated to reflect that.

Steps to reproduce:
1. Create a docker container without udev, but with GL, e.g. via sdl2 (https://github.com/OpenRCT2/OpenRCT2/blob/328a838678b301d994a43ec502fc1adeaf2cac8a/dockerfiles/64bit/Dockerfile)
2. Create a project trying to use sdl2 (https://github.com/OpenRCT2/OpenRCT2)
3. Try building said project in docker container (https://travis-ci.org/OpenRCT2/OpenRCT2/jobs/353595039)

Expected results:
* Project builds fine

Actual results:
* (upon cmake invocation):
-- Checking for module 'gl'
-- Package 'udev', required by 'libdrm', not found
This task depends upon

Closed by  Andreas Radke (AndyRTR)
Wednesday, 21 March 2018, 11:33 GMT
Reason for closing:  Fixed
Additional comments about closing:  2.4.91-3
Comment by Andreas Radke (AndyRTR) - Thursday, 15 March 2018, 12:10 GMT
I guess your're not building in a clean chroot. Arch has systemd package in base-devel group that is expected to be installed into chroots.
Comment by artoo (artoo) - Tuesday, 20 March 2018, 11:33 GMT
udev makedepends are required, since the base-devel only installs libudev with libsystemd.
Comment by Andreas Radke (AndyRTR) - Wednesday, 21 March 2018, 11:32 GMT
https://cgit.freedesktop.org/drm/libdrm/commit/?id=56f6d3d48d405024802fa1e52a80f8918fba7fc5

Going to disable udev for now. There's no need to enable it and it will be dropped in the next release.

Loading...