Bug 96268 - vdpau-driver fails to build on musl libc
Summary: vdpau-driver fails to build on musl libc
Status: NEW
Alias: None
Product: libva
Classification: Unclassified
Component: vdpau (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Gwenole Beauchesne
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-05-29 16:24 UTC by Anthony G. Basile
Modified: 2016-06-16 10:10 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
0001-src-utils.c-add-missing-sys-time.h-fixes-build-on-mu.patch (905 bytes, application/mbox)
2016-05-29 16:24 UTC, Anthony G. Basile
Details

Description Anthony G. Basile 2016-05-29 16:24:26 UTC
Created attachment 124158 [details]
0001-src-utils.c-add-missing-sys-time.h-fixes-build-on-mu.patch

src/utils.c defines a "struct timeval", but does not include <sys/time.h> as required by POSIX [1].  This is okay with glibc because of how the headers stack, but not with other libcs, like musl.  It leads to a compile time error.  This is easily fixed with

--- src/util.c.orig	2016-05-27 18:23:49.830943995 +0000
+++ src/utils.c	2016-05-27 18:23:39.534238312 +0000
@@ -21,6 +21,7 @@
 #include "sysdeps.h"
 #include "utils.h"
 #include <time.h>
+#include <sys/time.h>
 #include <errno.h>
 
 #define DEBUG 1


Patch attached.
Comment 1 Anthony G. Basile 2016-05-29 16:24:57 UTC
Downstream bug at https://bugs.gentoo.org/show_bug.cgi?id=584352
Comment 2 Anthony G. Basile 2016-06-10 22:50:30 UTC
ping
Comment 3 Anthony G. Basile 2016-06-16 03:35:55 UTC
ping
Comment 4 Víctor Jáquez 2016-06-16 10:10:53 UTC
Hi Anthony,

Gwenole is not maintaining the project anymore, but nobody is doing it anymore. I don't know who has commit permissions to the project.

IMO we should remove all the non-intel drivers in here (vdpau, radeon, etc.) and collaborate with the va gallium drivers in mesa.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.