diff options
author | tcberner <tcberner@FreeBSD.org> | 2018-12-26 18:55:41 +0800 |
---|---|---|
committer | tcberner <tcberner@FreeBSD.org> | 2018-12-26 18:55:41 +0800 |
commit | 534d2065034aa7ba6e364e023ec166dd221464bd (patch) | |
tree | d911dfd7f39d2d8255a0d7d2628bab276a76500f /sysutils/plasma5-kinfocenter/files | |
parent | e1eb8f8c08b6542cfdc32bd7fe7f6c953522fe78 (diff) | |
download | freebsd-ports-gnome-534d2065034aa7ba6e364e023ec166dd221464bd.tar.gz freebsd-ports-gnome-534d2065034aa7ba6e364e023ec166dd221464bd.tar.zst freebsd-ports-gnome-534d2065034aa7ba6e364e023ec166dd221464bd.zip |
sysutils/plasma5-kinfocenter: fix build on aarch64
PR: 234256
Submitted by: adridg
Reported by: mikael.urankar@gmail.com
Diffstat (limited to 'sysutils/plasma5-kinfocenter/files')
-rw-r--r-- | sysutils/plasma5-kinfocenter/files/patch-git_39ede9c | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/sysutils/plasma5-kinfocenter/files/patch-git_39ede9c b/sysutils/plasma5-kinfocenter/files/patch-git_39ede9c new file mode 100644 index 000000000000..5a651d50b5b2 --- /dev/null +++ b/sysutils/plasma5-kinfocenter/files/patch-git_39ede9c @@ -0,0 +1,51 @@ +From 39ede9c7e64ba23300a419ee9f58d953f7606b39 Mon Sep 17 00:00:00 2001 +From: Adriaan de Groot <groot@kde.org> +Date: Mon, 24 Dec 2018 22:04:07 +0100 +Subject: [PATCH] Update logic for disabling the PCI module. + +Summary: +FreeBSD on ThunderX2 does support PCI, and apparently the KCM +even works. https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=234256 + +Reviewers: davidedmundson + +Reviewed By: davidedmundson + +Subscribers: plasma-devel + +Tags: #plasma + +Differential Revision: https://phabricator.kde.org/D17785 +--- + Modules/CMakeLists.txt | 15 ++++++++++++++- + 1 file changed, 14 insertions(+), 1 deletion(-) + +diff --git Modules/CMakeLists.txt Modules/CMakeLists.txt +index f513752..43420d6 100644 +--- Modules/CMakeLists.txt ++++ Modules/CMakeLists.txt +@@ -44,7 +44,20 @@ set_package_properties(PCIUTILS PROPERTIES DESCRIPTION "PciUtils is a library fo + PURPOSE "View PCI details in kinfocenter." + ) + +-if(NOT APPLE AND NOT ${CMAKE_SYSTEM_PROCESSOR} MATCHES "arm" AND NOT ${CMAKE_SYSTEM_PROCESSOR} MATCHES "aarch64") ++# PCI module doesn't work on Linux arm64, nor on MacOS, but does on ++# FreeBSD arm64, so this is a bit of a tangle of what-is-supported. ++set(_want_pci ON) ++if(APPLE) ++ set(_want_pci OFF) ++elseif(${CMAKE_SYSTEM_PROCESSOR} MATCHES "arm" OR ${CMAKE_SYSTEM_PROCESSOR} MATCHES "aarch64") ++ if (${CMAKE_SYSTEM} MATCHES "FreeBSD") ++ message(STATUS "FreeBSD arm64 pci support enabled.") ++ else() ++ set(_want_pci OFF) ++ endif() ++endif() ++ ++if(_want_pci) + add_subdirectory( pci ) + endif() + endif() +-- +2.20.1 + |