FreeBSD Bugzilla – Attachment 190869 Details for
Bug 224584
[PATCH] lang/pocl: fix pkg-plist and update to POCL 1.3
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
lang/pocl: unbreak and update to 1.0
pocl-1.0.diff (text/plain), 8.68 KB, created by
Nikolai Lifanov
on 2018-02-21 20:06:59 UTC
(
hide
)
Description:
lang/pocl: unbreak and update to 1.0
Filename:
MIME Type:
Creator:
Nikolai Lifanov
Created:
2018-02-21 20:06:59 UTC
Size:
8.68 KB
patch
obsolete
>Index: Makefile >=================================================================== >--- Makefile (revision 462526) >+++ Makefile (working copy) >@@ -1,10 +1,9 @@ > # $FreeBSD$ > > PORTNAME= pocl >-PORTVERSION= 0.14 >+PORTVERSION= 1.0 >+DISTVERSIONPREFIX= v > CATEGORIES= lang >-MASTER_SITES= SF/pocl \ >- http://portablecl.org/downloads/ > > MAINTAINER= ohartman@zedat.fu-berlin.de > COMMENT= POrtable Computing Language (POCL) >@@ -12,7 +11,9 @@ > LICENSE= MIT > LICENSE_FILE= ${WRKSRC}/LICENSE > >-BROKEN= fails to package >+BROKEN_FreeBSD_10= pocl is not supported on 10.x >+ONLY_FOR_ARCHS= amd64 i386 >+ONLY_FOR_ARCHS_REASON= only tested on x86 > > BUILD_DEPENDS= llvm${LLVM_VERSION}>=0:devel/llvm${LLVM_VERSION} \ > opencl>=2.1:devel/opencl >@@ -21,15 +22,13 @@ > libltdl.so:devel/libltdl > RUN_DEPENDS= llvm${LLVM_VERSION}>=0:devel/llvm${LLVM_VERSION} > >-BROKEN_FreeBSD_10= pocl is not supported on 10.x >-ONLY_FOR_ARCHS= i386 amd64 >-ONLY_FOR_ARCHS_REASON= only tested on x86 >+LLVM_VERSION= ${MESA_LLVM_VER:U50} > >-LLVM_VERSION= ${MESA_LLVM_VER:U40} >+USES= cmake localbase:ldflags ncurses pkgconfig > >+USE_GITHUB= yes > USE_LDCONFIG= yes > USE_CXXSTD= gnu++11 >-USES= cmake localbase:ldflags ncurses pkgconfig > > CMAKE_ARGS= -DWITH_LLVM_CONFIG="${LOCALBASE}/llvm${LLVM_VERSION}/bin/llvm-config" \ > -DPOCL_INSTALL_PKGCONFIG_DIR="${PREFIX}/libdata/pkgconfig" \ >Index: distinfo >=================================================================== >--- distinfo (revision 462526) >+++ distinfo (working copy) >@@ -1,3 +1,3 @@ >-TIMESTAMP = 1491868935 >-SHA256 (pocl-0.14.tar.gz) = 2127bf925a91fbbe3daf2f1bac0da5c8aceb16e2a9434977a3057eade974106a >-SIZE (pocl-0.14.tar.gz) = 1231630 >+TIMESTAMP = 1519229114 >+SHA256 (pocl-pocl-v1.0_GH0.tar.gz) = 94bd86a2f9847c03e6c3bf8dca12af3734f8b272ffeacbc3fa8fcca58844b1d4 >+SIZE (pocl-pocl-v1.0_GH0.tar.gz) = 1536827 >Index: files/patch-CMakeLists.txt >=================================================================== >--- files/patch-CMakeLists.txt (revision 462526) >+++ files/patch-CMakeLists.txt (working copy) >@@ -1,21 +1,21 @@ >---- CMakeLists.txt.orig 2017-04-05 14:15:40 UTC >+--- CMakeLists.txt.orig 2017-12-18 18:45:53 UTC > +++ CMakeLists.txt >-@@ -70,7 +70,7 @@ elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "a >- set(ARMV6 1) >+@@ -97,7 +97,7 @@ elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "armv6") > elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "aarch64") > set(ARM64 1) >+ set(ARM 1) > -elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "(i.86|AMD64|x86_64)") > +elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "(i.86|amd64|AMD64|x86_64)") >+ set(X86 1) > if(POCL_DEVICE_ADDRESS_BITS MATCHES "32") > set(I386 1) >- else() >-@@ -318,6 +318,9 @@ include(CheckFunctionExists) >+@@ -394,6 +394,9 @@ endif() >+ include(CheckFunctionExists) > check_function_exists(fork HAVE_FORK) > check_function_exists(vfork HAVE_VFORK) >- >++ > +include(CheckIncludeFiles) > +check_include_files("sys/types.h;sys/sysctl.h" HAVE_SYSCTL_H) >-+ >+ > ###################################################################################### > >- if(NOT DEFINED DEFAULT_USE_VECMATHLIB) >Index: files/patch-config.h.in.cmake >=================================================================== >--- files/patch-config.h.in.cmake (revision 462526) >+++ files/patch-config.h.in.cmake (working copy) >@@ -1,6 +1,6 @@ >---- config.h.in.cmake.orig 2017-04-05 14:15:40 UTC >+--- config.h.in.cmake.orig 2017-12-18 18:45:53 UTC > +++ config.h.in.cmake >-@@ -44,6 +44,8 @@ >+@@ -36,6 +36,8 @@ > > #cmakedefine HAVE_VFORK > >Index: files/patch-lib_CL_devices_cpuinfo.c >=================================================================== >--- files/patch-lib_CL_devices_cpuinfo.c (revision 462526) >+++ files/patch-lib_CL_devices_cpuinfo.c (working copy) >@@ -1,4 +1,4 @@ >---- lib/CL/devices/cpuinfo.c.orig 2017-04-05 14:15:40 UTC >+--- lib/CL/devices/cpuinfo.c.orig 2017-12-18 18:45:53 UTC > +++ lib/CL/devices/cpuinfo.c > @@ -34,6 +34,12 @@ > #include "config.h" >@@ -13,13 +13,13 @@ > static const char* cpuinfo = "/proc/cpuinfo"; > #define MAX_CPUINFO_SIZE 64*1024 > //#define DEBUG_POCL_CPUINFO >-@@ -153,8 +159,51 @@ pocl_cpuinfo_detect_max_clock_frequency( >+@@ -153,8 +159,51 @@ pocl_cpuinfo_detect_max_clock_frequency() > } > return -1; > } > +#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__DragonFly__) > +/** >-+ * Detects the maximum clock frequency of the CPU. >++ * Detects the maximum clock frequency of the CPU > + * > + * Assumes all cores have the same max clock freq. > + * >@@ -35,8 +35,8 @@ > + char *value = NULL; > > + if (!sysctlbyname(mib1, NULL, &size, NULL, 0) && >-+ (value = (char*)malloc(++size)) && >-+ !sysctlbyname(mib1, (void*)value, &size, NULL, 0)) >++ (value = (char*)malloc(++size)) && >++ !sysctlbyname(mib1, (void*)value, &size, NULL, 0)) > + { > + value[size] = '\0'; > + sscanf(value, "%d/%*d", &clockrate); >@@ -43,7 +43,7 @@ > + } > + else > + { >-+ size = sizeof(clockrate); >++ size = sizeof(clockrate); > + sysctlbyname(mib2, (void*)&clockrate, &size, NULL, 0); > + } > + if (value) >@@ -54,7 +54,7 @@ > +/** > + * Unimplemented for other platforms. > + */ >-+ int >++int > +pocl_cpuinfo_detect_max_clock_frequency() > +{ > + return 0; >@@ -76,7 +76,7 @@ > + * > + * @return The number of hardware threads. > + */ >-+ int >++int > +pocl_cpuinfo_detect_compute_unit_count() > +{ > + return sysconf(_SC_NPROCESSORS_ONLN); >@@ -85,15 +85,15 @@ > > #ifdef POCL_ANDROID > >-@@ -270,6 +332,7 @@ pocl_cpuinfo_get_cpu_name_and_vendor(cl_ >+@@ -326,6 +388,7 @@ pocl_cpuinfo_get_cpu_name_and_vendor(cl_device_id devi > * short_name is in the .data anyways.*/ > device->long_name = device->short_name; > >-+#ifdef __linux__ >++#ifdef __linux__ > /* default vendor and vendor_id, in case it cannot be found by other means */ > device->vendor = cpuvendor_default; > if (device->vendor_id == 0) >-@@ -318,7 +381,25 @@ pocl_cpuinfo_get_cpu_name_and_vendor(cl_ >+@@ -425,6 +488,25 @@ pocl_cpuinfo_get_cpu_name_and_vendor(cl_device_id devi > char *new_name = (char*)malloc (len); > snprintf (new_name, len, "%s-%s", device->short_name, start); > device->long_name = new_name; >@@ -101,7 +101,7 @@ > + int mib[2]; > + size_t len = 0; > + char *model; >- >++ > + mib[0] = CTL_HW; > + mib[1] = HW_MODEL; > + if (sysctl(mib, 2, NULL, &len, NULL, 0)) >Index: files/patch-tests_regression_test__issue__445.cpp >=================================================================== >--- files/patch-tests_regression_test__issue__445.cpp (revision 462526) >+++ files/patch-tests_regression_test__issue__445.cpp (nonexistent) >@@ -1,11 +0,0 @@ >---- tests/regression/test_issue_445.cpp.orig 2017-04-05 14:15:40 UTC >-+++ tests/regression/test_issue_445.cpp >-@@ -29,7 +29,7 @@ private_local_array(__global int *__rest >- } >- )CLC"; >- >--int main(int, char *) >-+int main(int, char **) >- { >- try { >- int N = 9; > >Property changes on: files/patch-tests_regression_test__issue__445.cpp >___________________________________________________________________ >Deleted: fbsd:nokeywords >## -1 +0,0 ## >-yes >\ No newline at end of property >Deleted: svn:eol-style >## -1 +0,0 ## >-native >\ No newline at end of property >Deleted: svn:mime-type >## -1 +0,0 ## >-text/plain >\ No newline at end of property >Index: pkg-plist >=================================================================== >--- pkg-plist (revision 462526) >+++ pkg-plist (working copy) >@@ -2,13 +2,14 @@ > etc/OpenCL/vendors/pocl.icd > include/poclu.h > lib/libpocl.so >-lib/libpocl.so.1 >-lib/libpocl.so.1.7.0 >+lib/libpocl.so.2 >+lib/libpocl.so.2.0.0 > lib/libpoclu.so >-lib/libpoclu.so.1 >-lib/libpoclu.so.1.7.0 >+lib/libpoclu.so.2 >+lib/libpoclu.so.2.0.0 > lib/pocl/libllvmopencl.so > libdata/pkgconfig/pocl.pc >+%%DATADIR%%/include/_builtin_renames.h > %%DATADIR%%/include/_enable_all_exts.h > %%DATADIR%%/include/_kernel.h > %%DATADIR%%/include/_kernel_c.h >@@ -16,10 +17,11 @@ > %%DATADIR%%/include/pocl.h > %%DATADIR%%/include/pocl_device.h > %%DATADIR%%/include/pocl_types.h >-%%DATADIR%%/kernel-%%ARCH%%-unknown-%%OPSYS%%%%OSREL%%-avx.bc >-%%DATADIR%%/kernel-%%ARCH%%-unknown-%%OPSYS%%%%OSREL%%-avx2.bc >-%%DATADIR%%/kernel-%%ARCH%%-unknown-%%OPSYS%%%%OSREL%%-avx512.bc >-%%DATADIR%%/kernel-%%ARCH%%-unknown-%%OPSYS%%%%OSREL%%-avx_fma4.bc >-%%DATADIR%%/kernel-%%ARCH%%-unknown-%%OPSYS%%%%OSREL%%-sse2.bc >-%%DATADIR%%/kernel-%%ARCH%%-unknown-%%OPSYS%%%%OSREL%%-sse41.bc >-%%DATADIR%%/kernel-%%ARCH%%-unknown-%%OPSYS%%%%OSREL%%-ssse3.bc >+%%DATADIR%%/kernel-%%ARCH%%-portbld-%%OPSYS%%%%OSREL%%-avx_f16c.bc >+%%DATADIR%%/kernel-%%ARCH%%-portbld-%%OPSYS%%%%OSREL%%-avx_fma4.bc >+%%DATADIR%%/kernel-%%ARCH%%-portbld-%%OPSYS%%%%OSREL%%-avx.bc >+%%DATADIR%%/kernel-%%ARCH%%-portbld-%%OPSYS%%%%OSREL%%-avx2.bc >+%%DATADIR%%/kernel-%%ARCH%%-portbld-%%OPSYS%%%%OSREL%%-avx512.bc >+%%DATADIR%%/kernel-%%ARCH%%-portbld-%%OPSYS%%%%OSREL%%-sse2.bc >+%%DATADIR%%/kernel-%%ARCH%%-portbld-%%OPSYS%%%%OSREL%%-sse41.bc >+%%DATADIR%%/kernel-%%ARCH%%-portbld-%%OPSYS%%%%OSREL%%-ssse3.bc
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 224584
:
189095
|
189556
| 190869 |
192103
|
196942
|
197659
|
197660
|
197701
|
204140
|
204838