From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 47450139694 for ; Wed, 29 Mar 2017 16:34:22 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4492B234040; Wed, 29 Mar 2017 16:34:15 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id E953323400E for ; Wed, 29 Mar 2017 16:34:14 +0000 (UTC) Received: from phjr-macbookpro.local (public-gprs395149.centertel.pl [37.47.174.206]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: phajdan.jr) by smtp.gentoo.org (Postfix) with ESMTPSA id DB9F1340FDA for ; Wed, 29 Mar 2017 16:34:12 +0000 (UTC) From: =?UTF-8?Q?Pawe=c5=82_Hajdan=2c_Jr.?= Subject: [gentoo-dev] linux/dma-buf.h mysteriously missing To: gentoo-dev@lists.gentoo.org Message-ID: <8ade455f-0287-a30a-8765-5261a9a5f6ae@gentoo.org> Date: Wed, 29 Mar 2017 18:34:07 +0200 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="9uSqrsTVw6ddtPBKj115Ci7E92gr0xvm1" X-Archives-Salt: 6837b5ae-01dc-444a-839c-f39d6f660b1e X-Archives-Hash: d3aa208c33a6d114e921874afbf74f68 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --9uSqrsTVw6ddtPBKj115Ci7E92gr0xvm1 Content-Type: multipart/mixed; boundary="mtBpbnDJptcW6Bo3U5v3kHqHi1MUWT4iK"; protected-headers="v1" From: =?UTF-8?Q?Pawe=c5=82_Hajdan=2c_Jr.?= To: gentoo-dev@lists.gentoo.org Message-ID: <8ade455f-0287-a30a-8765-5261a9a5f6ae@gentoo.org> Subject: linux/dma-buf.h mysteriously missing --mtBpbnDJptcW6Bo3U5v3kHqHi1MUWT4iK Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable I was packaging chromium-59.0.3053.3 . I worked around the problem described here, but I'd like to find the right long term solution. I was hitting the following compile error: =2E./../ui/gfx/linux/client_native_pixmap_dmabuf.cc:39:27: fatal error: linux/dma-buf.h: No such file or directory #include Despite having sys-kernel/linux-headers-4.10 installed, I do not have that header. Interestingly, it is present in the tarball (gentoo-headers-base-4.10.tar.xz), but doesn't seem to get installed. This is the workaround I applied: = This is part of the chromium code in question: #if LINUX_VERSION_CODE < KERNEL_VERSION(4, 6, 0) #include struct local_dma_buf_sync { __u64 flags; }; #define LOCAL_DMA_BUF_SYNC_READ (1 << 0) #define LOCAL_DMA_BUF_SYNC_WRITE (2 << 0) #define LOCAL_DMA_BUF_SYNC_RW \ (LOCAL_DMA_BUF_SYNC_READ | LOCAL_DMA_BUF_SYNC_WRITE) #define LOCAL_DMA_BUF_SYNC_START (0 << 2) #define LOCAL_DMA_BUF_SYNC_END (1 << 2) #define LOCAL_DMA_BUF_BASE 'b' #define LOCAL_DMA_BUF_IOCTL_SYNC \ _IOW(LOCAL_DMA_BUF_BASE, 0, struct local_dma_buf_sync) #else #include #endif Pawe=C5=82 --mtBpbnDJptcW6Bo3U5v3kHqHi1MUWT4iK-- --9uSqrsTVw6ddtPBKj115Ci7E92gr0xvm1 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2 iQIcBAEBCgAGBQJY2+H/AAoJEOOGGXc/wLdaxIQP/ArdajG9BOYtZWp4I/jtgV4+ KFn2+O1Rwu3T57WKoAcjNR7xKEoZdehlmOMLBmVN6Kevke72/mKcazSroxAq4skK Y97CWnrJ7xHtQ5G0cVr8JfcKMC2XxR13PO1dsWgJiOvJ1Tj4Pqns/MsapjCFq1x7 jV3WqlhpAMiBlTDyhNQa+Eot4H5046Z7ge10oq5pIyhDEsvkkP3eB/FdLYSBx5Ds F72WbTzX+xqXjPIdw/yjEKiypGRfATTvnNebP61/QfHU1lR1LP0GC3msIs0SbPvB AJP9Ab4x113cwlWjQmWXGIRVdQHBXg6aXVN38Qvm3lFT3P6dcc/X0nXM/eJ18H9c kIS90xrcdxZ3t5CDotT0oMtuJKVY6VhGK6c9YtpCFah5nfzIot5yDcodk4eYEqzK kXgfvUl2lGdCaj5RAIdl8qVVUywBOPIKvIRNHbET0Bz5FISpFlQz6zxVRDZwd/Vl y5uahxZfWQMRo/4peFP0gBipIP7Jya4E1iR/2WJtetbisCBcR7veHRTOmp7oglTa r6XG6GF95IHIvZEbOCWZd6eFOlVfh3DvjMtOe7XvdoIyOO6GxCRwCqYyj5356fih YZvPv/Ygq92CKjidWTU2axavobynmaszmP7qIhyL7514Jh8oWuyq/Uynj4Q32Rex 1SdPYoD0WKNIjSA7RJNk =TNwl -----END PGP SIGNATURE----- --9uSqrsTVw6ddtPBKj115Ci7E92gr0xvm1--