Date: Mon, 25 Dec 2017 01:38:39 +0000 (UTC) From: Jan Beich <jbeich@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r457203 - in head/lang/beignet: . files Message-ID: <201712250138.vBP1cdvp097234@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: jbeich Date: Mon Dec 25 01:38:38 2017 New Revision: 457203 URL: https://svnweb.freebsd.org/changeset/ports/457203 Log: lang/beignet: fix order of flags for mkdir(1) and rm(1) BSD versions of commands don't support specifiying flags after arguments. Obtained from: DPorts Pointy hat to: jbeich (lost in r451413) Added: head/lang/beignet/files/patch-src_cl__program.c (contents, props changed) Modified: head/lang/beignet/Makefile (contents, props changed) head/lang/beignet/files/patch-utests_CMakeLists.txt (contents, props changed) Modified: head/lang/beignet/Makefile ============================================================================== --- head/lang/beignet/Makefile Mon Dec 25 01:24:49 2017 (r457202) +++ head/lang/beignet/Makefile Mon Dec 25 01:38:38 2017 (r457203) @@ -4,6 +4,7 @@ PORTNAME= beignet DISTVERSION= 1.3.2 DISTVERSIONSUFFIX= -source +PORTREVISION= 1 CATEGORIES= lang MASTER_SITES= https://01.org/sites/default/files/ Added: head/lang/beignet/files/patch-src_cl__program.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/lang/beignet/files/patch-src_cl__program.c Mon Dec 25 01:38:38 2017 (r457203) @@ -0,0 +1,13 @@ +--- src/cl_program.c.orig 2017-09-22 08:59:52 UTC ++++ src/cl_program.c +@@ -861,9 +861,8 @@ cl_program_compile(cl_program p, + p->opaque = compiler_program_compile_from_source(p->ctx->devices[0]->device_id, p->source, temp_header_path, + p->build_log_max_sz, options, p->build_log, &p->build_log_sz); + +- char rm_path[255]="rm "; ++ char rm_path[255]="rm -rf "; + strncat(rm_path, temp_header_path, strlen(temp_header_path)); +- strncat(rm_path, " -rf", 4); + int temp = system(rm_path); + + if(temp){ Modified: head/lang/beignet/files/patch-utests_CMakeLists.txt ============================================================================== --- head/lang/beignet/files/patch-utests_CMakeLists.txt Mon Dec 25 01:24:49 2017 (r457202) +++ head/lang/beignet/files/patch-utests_CMakeLists.txt Mon Dec 25 01:38:38 2017 (r457203) @@ -1,6 +1,15 @@ --- utests/CMakeLists.txt.orig 2017-01-20 10:40:51 UTC +++ utests/CMakeLists.txt -@@ -333,12 +333,12 @@ list (GET GBE_BIN_GENERATER -1 GBE_BIN_F +@@ -46,7 +46,7 @@ INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR} + + + ##### Math Function Part: +-EXECUTE_PROCESS(COMMAND mkdir generated -p WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}) ++EXECUTE_PROCESS(COMMAND mkdir -p generated WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}) + EXECUTE_PROCESS(COMMAND ${PYTHON_EXECUTABLE} utest_math_gen.py WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} OUTPUT_VARIABLE GEN_MATH_STRING) + string(REGEX REPLACE " " ";" ADDMATHFUNC ${GEN_MATH_STRING}) + +@@ -332,12 +332,12 @@ list (GET GBE_BIN_GENERATER -1 GBE_BIN_FILE) if(GEN_PCI_ID) ADD_CUSTOM_COMMAND( OUTPUT ${kernel_bin}.bin @@ -15,3 +24,12 @@ DEPENDS ${GBE_BIN_FILE} ${kernel_bin}.cl) endif(GEN_PCI_ID) +@@ -346,7 +346,7 @@ if (NOT_BUILD_STAND_ALONE_UTEST) + endif (NOT_BUILD_STAND_ALONE_UTEST) + + add_custom_command(OUTPUT ${CMAKE_CURRENT_SOURCE_DIR}/generated +- COMMAND mkdir ${CMAKE_CURRENT_SOURCE_DIR}/generated -p ++ COMMAND mkdir -p ${CMAKE_CURRENT_SOURCE_DIR}/generated + COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/utest_math_gen.py > /dev/null 2>&1 + COMMAND echo ${KERNEL_GITIGNORE_LIST} |sed 's/ /\\n/g' > ${CMAKE_CURRENT_SOURCE_DIR}/../kernels/.gitignore + WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201712250138.vBP1cdvp097234>