svn commit: r542973 - head/lang/intel-compute-runtime/files

Jan Beich jbeich at FreeBSD.org
Thu Jul 23 22:34:26 UTC 2020


Author: jbeich
Date: Thu Jul 23 22:34:26 2020
New Revision: 542973
URL: https://svnweb.freebsd.org/changeset/ports/542973

Log:
  lang/intel-compute-runtime: don't pretend to support GNU
  
  Intel NEO needs modern kernel DRM but GNU/kFreeBSD was discontinued.
  fdevname_r(3) and sysctlbyname(3) don't exist in upstream glibc.

Modified:
  head/lang/intel-compute-runtime/files/patch-max_freq   (contents, props changed)

Modified: head/lang/intel-compute-runtime/files/patch-max_freq
==============================================================================
--- head/lang/intel-compute-runtime/files/patch-max_freq	Thu Jul 23 22:12:42 2020	(r542972)
+++ head/lang/intel-compute-runtime/files/patch-max_freq	Thu Jul 23 22:34:26 2020	(r542973)
@@ -9,7 +9,7 @@
  
  #include <fstream>
  
-+#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
++#if defined(__FreeBSD__)
 +#include <sys/param.h>
 +#include <sys/sysctl.h>
 +#include <cstdio>
@@ -20,7 +20,7 @@
  
  int Drm::getMaxGpuFrequency(HardwareInfo &hwInfo, int &maxGpuFrequency) {
      maxGpuFrequency = 0;
-+#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
++#if defined(__FreeBSD__)
 +    char name[SPECNAMELEN + 1];
 +    if (!fdevname_r(getFileDescriptor(), name, sizeof(name))) {
 +        return 0;


More information about the svn-ports-all mailing list