[arch-commits] Commit in libdrm/repos (7 files)
Date: Sunday, September 2, 2018 @ 12:43:34 Author: lcarlier Revision: 333201 archrelease: copy trunk to testing-x86_64 Added: libdrm/repos/testing-x86_64/ libdrm/repos/testing-x86_64/0001-xf86drm-fallback-to-normal-path-when-realpath-fails.patch (from rev 333200, libdrm/trunk/0001-xf86drm-fallback-to-normal-path-when-realpath-fails.patch) libdrm/repos/testing-x86_64/0002-amdgpu-symbol-check-Add-amdgpu_find_bo_by_cpu_mappin.patch (from rev 333200, libdrm/trunk/0002-amdgpu-symbol-check-Add-amdgpu_find_bo_by_cpu_mappin.patch) libdrm/repos/testing-x86_64/0003-amdgpu-add-error-return-value-for-finding-bo-by-cpu-.patch (from rev 333200, libdrm/trunk/0003-amdgpu-add-error-return-value-for-finding-bo-by-cpu-.patch) libdrm/repos/testing-x86_64/COPYING (from rev 333200, libdrm/trunk/COPYING) libdrm/repos/testing-x86_64/PKGBUILD (from rev 333200, libdrm/trunk/PKGBUILD) libdrm/repos/testing-x86_64/no-drmdevice-test.diff (from rev 333200, libdrm/trunk/no-drmdevice-test.diff) -+ 0001-xf86drm-fallback-to-normal-path-when-realpath-fails.patch | 81 ++ 0002-amdgpu-symbol-check-Add-amdgpu_find_bo_by_cpu_mappin.patch | 27 +++ 0003-amdgpu-add-error-return-value-for-finding-bo-by-cpu-.patch | 52 ++ COPYING | 48 + PKGBUILD| 67 no-drmdevice-test.diff |9 + 6 files changed, 284 insertions(+) Copied: libdrm/repos/testing-x86_64/0001-xf86drm-fallback-to-normal-path-when-realpath-fails.patch (from rev 333200, libdrm/trunk/0001-xf86drm-fallback-to-normal-path-when-realpath-fails.patch) === --- testing-x86_64/0001-xf86drm-fallback-to-normal-path-when-realpath-fails.patch (rev 0) +++ testing-x86_64/0001-xf86drm-fallback-to-normal-path-when-realpath-fails.patch 2018-09-02 12:43:34 UTC (rev 333201) @@ -0,0 +1,81 @@ +From bcb9d976cd91c018aa4eef13563813288984601f Mon Sep 17 00:00:00 2001 +From: Emil Velikov +Date: Thu, 23 Aug 2018 10:49:54 +0100 +Subject: [PATCH 1/3] xf86drm: fallback to normal path when realpath fails +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Earlier commit reworked our sysfs handling to use realpath. +Sadly that backfired since the Firefox sandboxing mechanism rejects +that. Despite the files/folders being in the allowed list, of the +sandboxing mechanism. + +Oddly enough, the Chromium sandboxing doesn't complain about any of +this. + +Since there are no Firefox releases with the fix, add a temporary +solution which falls back to the original handling. + +Sadly, this won't work for virgl. + +v2: drop return type - function cannot return NULL (Eric) + +Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=107516 +Fixes: a02900133b3 ("xf86drm: introduce a get_real_pci_path() helper") +Signed-off-by: Emil Velikov +Reviewed-by: Michel Dänzer +Tested-by: Michel Dänzer +Reviewed-by: Eric Engestrom +Signed-off-by: Laurent Carlier +--- + xf86drm.c | 12 +--- + 1 file changed, 9 insertions(+), 3 deletions(-) + +diff --git a/xf86drm.c b/xf86drm.c +index 336d64de..7807dce9 100644 +--- a/xf86drm.c b/xf86drm.c +@@ -3014,6 +3014,12 @@ get_real_pci_path(int maj, int min, char *real_path) + return real_path; + } + ++static void ++get_normal_pci_path(int maj, int min, char *normal_path) ++{ ++snprintf(normal_path, PATH_MAX, "/sys/dev/char/%d:%d/device", maj, min); ++} ++ + static int drmParsePciBusInfo(int maj, int min, drmPciBusInfoPtr info) + { + #ifdef __linux__ +@@ -3022,7 +3028,7 @@ static int drmParsePciBusInfo(int maj, int min, drmPciBusInfoPtr info) + int num; + + if (get_real_pci_path(maj, min, real_path) == NULL) +-return -ENOENT; ++get_normal_pci_path(maj, min, real_path); + + value = sysfs_uevent_get(real_path, "PCI_SLOT_NAME"); + if (!value) +@@ -3143,7 +3149,7 @@ static int parse_separate_sysfs_files(int maj, int min, + int ret; + + if (get_real_pci_path(maj, min, real_path) == NULL) +-return -ENOENT; ++get_normal_pci_path(maj, min, real_path); + + for (unsigned i = ignore_revision ? 1 : 0; i < ARRAY_SIZE(attrs); i++) { + snprintf(path, PATH_MAX, "%s/%s", real_path, attrs[i]); +@@ -3175,7 +3181,7 @@ static int parse_config_sysfs_file(int maj, int min, + int fd, ret; + + if (get_real_pci_path(maj, min, real_path) == NULL) +-return -ENOENT; ++get_normal_pci_path(maj, min, real_path); + + snprintf(path, PATH_MAX, "%s/config", real_path); + fd = open(path, O_RDONLY); +-- +2.18.0 + Copied: libdrm/repos/testing-x86_64/0002-amdgpu-symbol-check-Add-amdgpu_find_bo_by_cpu_mappin.patch (from rev 333200,
[arch-commits] Commit in libdrm/repos (7 files)
Date: Wednesday, November 2, 2011 @ 02:41:47 Author: andyrtr Revision: 141674 db-move: moved libdrm from [testing] to [extra] (i686) Added: libdrm/repos/extra-i686/COPYING (from rev 141673, libdrm/repos/testing-i686/COPYING) libdrm/repos/extra-i686/PKGBUILD (from rev 141673, libdrm/repos/testing-i686/PKGBUILD) libdrm/repos/extra-i686/no-pthread-stubs.patch (from rev 141673, libdrm/repos/testing-i686/no-pthread-stubs.patch) Deleted: libdrm/repos/extra-i686/COPYING libdrm/repos/extra-i686/PKGBUILD libdrm/repos/extra-i686/no-pthread-stubs.patch libdrm/repos/testing-i686/ + COPYING| 96 +- PKGBUILD | 86 -- no-pthread-stubs.patch | 132 +++ 3 files changed, 160 insertions(+), 154 deletions(-) Deleted: extra-i686/COPYING === --- extra-i686/COPYING 2011-11-02 05:35:47 UTC (rev 141673) +++ extra-i686/COPYING 2011-11-02 06:41:47 UTC (rev 141674) @@ -1,48 +0,0 @@ - Copyright 2005 Adam Jackson. - - Permission is hereby granted, free of charge, to any person obtaining - a copy of this software and associated documentation files (the - Software), to deal in the Software without restriction, including - without limitation on the rights to use, copy, modify, merge, - publish, distribute, sub license, and/or sell copies of the Software, - and to permit persons to whom the Software is furnished to do so, - subject to the following conditions: - - The above copyright notice and this permission notice (including the - next paragraph) shall be included in all copies or substantial - portions of the Software. - - THE SOFTWARE IS PROVIDED AS IS, WITHOUT WARRANTY OF ANY KIND, - EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF - MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND - NON-INFRINGEMENT. IN NO EVENT SHALL ADAM JACKSON BE LIABLE FOR ANY - CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, - TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE - SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - - - - Copyright 1999 Precision Insight, Inc., Cedar Park, Texas. - Copyright 2000 VA Linux Systems, Inc., Sunnyvale, California. - All Rights Reserved. - - Permission is hereby granted, free of charge, to any person obtaining - a copy of this software and associated documentation files (the - Software), to deal in the Software without restriction, including - without limitation the rights to use, copy, modify, merge, publish, - distribute, sublicense, and/or sell copies of the Software, and to - permit persons to whom the Software is furnished to do so, subject to - the following conditions: - - The above copyright notice and this permission notice (including the - next paragraph) shall be included in all copies or substantial - portions of the Software. - - THE SOFTWARE IS PROVIDED AS IS, WITHOUT WARRANTY OF ANY KIND, - EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF - MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND - NONINFRINGEMENT. IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS - SUPPLIERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, - WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER - DEALINGS IN THE SOFTWARE. Copied: libdrm/repos/extra-i686/COPYING (from rev 141673, libdrm/repos/testing-i686/COPYING) === --- extra-i686/COPYING (rev 0) +++ extra-i686/COPYING 2011-11-02 06:41:47 UTC (rev 141674) @@ -0,0 +1,48 @@ + Copyright 2005 Adam Jackson. + + Permission is hereby granted, free of charge, to any person obtaining + a copy of this software and associated documentation files (the + Software), to deal in the Software without restriction, including + without limitation on the rights to use, copy, modify, merge, + publish, distribute, sub license, and/or sell copies of the Software, + and to permit persons to whom the Software is furnished to do so, + subject to the following conditions: + + The above copyright notice and this permission notice (including the + next paragraph) shall be included in all copies or substantial + portions of the Software. + + THE SOFTWARE IS PROVIDED AS IS, WITHOUT WARRANTY OF ANY KIND, + EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + NON-INFRINGEMENT. IN NO EVENT SHALL ADAM JACKSON BE LIABLE FOR ANY + CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, + TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE + SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +
[arch-commits] Commit in libdrm/repos (7 files)
Date: Wednesday, November 2, 2011 @ 02:41:48 Author: andyrtr Revision: 141675 db-move: moved libdrm from [testing] to [extra] (x86_64) Added: libdrm/repos/extra-x86_64/COPYING (from rev 141673, libdrm/repos/testing-x86_64/COPYING) libdrm/repos/extra-x86_64/PKGBUILD (from rev 141673, libdrm/repos/testing-x86_64/PKGBUILD) libdrm/repos/extra-x86_64/no-pthread-stubs.patch (from rev 141673, libdrm/repos/testing-x86_64/no-pthread-stubs.patch) Deleted: libdrm/repos/extra-x86_64/COPYING libdrm/repos/extra-x86_64/PKGBUILD libdrm/repos/extra-x86_64/no-pthread-stubs.patch libdrm/repos/testing-x86_64/ + COPYING| 96 +- PKGBUILD | 86 -- no-pthread-stubs.patch | 132 +++ 3 files changed, 160 insertions(+), 154 deletions(-) Deleted: extra-x86_64/COPYING === --- extra-x86_64/COPYING2011-11-02 06:41:47 UTC (rev 141674) +++ extra-x86_64/COPYING2011-11-02 06:41:48 UTC (rev 141675) @@ -1,48 +0,0 @@ - Copyright 2005 Adam Jackson. - - Permission is hereby granted, free of charge, to any person obtaining - a copy of this software and associated documentation files (the - Software), to deal in the Software without restriction, including - without limitation on the rights to use, copy, modify, merge, - publish, distribute, sub license, and/or sell copies of the Software, - and to permit persons to whom the Software is furnished to do so, - subject to the following conditions: - - The above copyright notice and this permission notice (including the - next paragraph) shall be included in all copies or substantial - portions of the Software. - - THE SOFTWARE IS PROVIDED AS IS, WITHOUT WARRANTY OF ANY KIND, - EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF - MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND - NON-INFRINGEMENT. IN NO EVENT SHALL ADAM JACKSON BE LIABLE FOR ANY - CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, - TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE - SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - - - - Copyright 1999 Precision Insight, Inc., Cedar Park, Texas. - Copyright 2000 VA Linux Systems, Inc., Sunnyvale, California. - All Rights Reserved. - - Permission is hereby granted, free of charge, to any person obtaining - a copy of this software and associated documentation files (the - Software), to deal in the Software without restriction, including - without limitation the rights to use, copy, modify, merge, publish, - distribute, sublicense, and/or sell copies of the Software, and to - permit persons to whom the Software is furnished to do so, subject to - the following conditions: - - The above copyright notice and this permission notice (including the - next paragraph) shall be included in all copies or substantial - portions of the Software. - - THE SOFTWARE IS PROVIDED AS IS, WITHOUT WARRANTY OF ANY KIND, - EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF - MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND - NONINFRINGEMENT. IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS - SUPPLIERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, - WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER - DEALINGS IN THE SOFTWARE. Copied: libdrm/repos/extra-x86_64/COPYING (from rev 141673, libdrm/repos/testing-x86_64/COPYING) === --- extra-x86_64/COPYING(rev 0) +++ extra-x86_64/COPYING2011-11-02 06:41:48 UTC (rev 141675) @@ -0,0 +1,48 @@ + Copyright 2005 Adam Jackson. + + Permission is hereby granted, free of charge, to any person obtaining + a copy of this software and associated documentation files (the + Software), to deal in the Software without restriction, including + without limitation on the rights to use, copy, modify, merge, + publish, distribute, sub license, and/or sell copies of the Software, + and to permit persons to whom the Software is furnished to do so, + subject to the following conditions: + + The above copyright notice and this permission notice (including the + next paragraph) shall be included in all copies or substantial + portions of the Software. + + THE SOFTWARE IS PROVIDED AS IS, WITHOUT WARRANTY OF ANY KIND, + EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + NON-INFRINGEMENT. IN NO EVENT SHALL ADAM JACKSON BE LIABLE FOR ANY + CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, + TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE + SOFTWARE OR THE USE OR OTHER