parent
cb97e84b62
commit
2f2847daf2
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,55 @@
|
|||||||
|
From 8dcb88f7705fb3927938dd9bd103efcabafcefb0 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Georgy Yakovlev <gyakovlev@gentoo.org>
|
||||||
|
Date: Tue, 27 Oct 2020 18:20:56 -0700
|
||||||
|
Subject: [PATCH] backport D88371, guard `find_library(tensorflow_c_api ...)`
|
||||||
|
|
||||||
|
Differential Revision: https://reviews.llvm.org/D88371
|
||||||
|
Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
|
||||||
|
---
|
||||||
|
src/llvm-project/llvm/CMakeLists.txt | 15 +++++++--------
|
||||||
|
1 file changed, 7 insertions(+), 8 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/src/llvm-project/llvm/CMakeLists.txt b/src/llvm-project/llvm/CMakeLists.txt
|
||||||
|
index 1f137f0..4112def 100644
|
||||||
|
--- a/src/llvm-project/llvm/CMakeLists.txt
|
||||||
|
+++ b/src/llvm-project/llvm/CMakeLists.txt
|
||||||
|
@@ -832,6 +832,11 @@ configure_file(
|
||||||
|
${LLVM_INCLUDE_DIR}/llvm/Config/Targets.def
|
||||||
|
)
|
||||||
|
|
||||||
|
+# They are not referenced. See set_output_directory().
|
||||||
|
+set( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${LLVM_BINARY_DIR}/bin )
|
||||||
|
+set( CMAKE_LIBRARY_OUTPUT_DIRECTORY ${LLVM_BINARY_DIR}/lib${LLVM_LIBDIR_SUFFIX} )
|
||||||
|
+set( CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${LLVM_BINARY_DIR}/lib${LLVM_LIBDIR_SUFFIX} )
|
||||||
|
+
|
||||||
|
# For up-to-date instructions for installing the Tensorflow dependency, refer to
|
||||||
|
# the bot setup script: https://github.com/google/ml-compiler-opt/blob/master/buildbot/buildbot_init.sh
|
||||||
|
# In this case, the latest C API library is available for download from
|
||||||
|
@@ -840,9 +845,9 @@ configure_file(
|
||||||
|
# LLVM_HAVE_TF_API, through llvm-config.h, so that a user of the LLVM library may
|
||||||
|
# also leverage the dependency.
|
||||||
|
set(TENSORFLOW_C_LIB_PATH "" CACHE PATH "Path to TensorFlow C library install")
|
||||||
|
-find_library(tensorflow_c_api tensorflow PATHS ${TENSORFLOW_C_LIB_PATH}/lib)
|
||||||
|
|
||||||
|
-if (tensorflow_c_api)
|
||||||
|
+if (TENSORFLOW_C_LIB_PATH)
|
||||||
|
+ find_library(tensorflow_c_api tensorflow PATHS ${TENSORFLOW_C_LIB_PATH}/lib NO_DEFAULT_PATH REQUIRED)
|
||||||
|
set(LLVM_HAVE_TF_API "ON" CACHE BOOL "Full Tensorflow API available")
|
||||||
|
include_directories(${TENSORFLOW_C_LIB_PATH}/include)
|
||||||
|
endif()
|
||||||
|
@@ -877,12 +882,6 @@ add_custom_target(srpm
|
||||||
|
COMMAND rpmbuild -bs --define '_topdir ${LLVM_SRPM_DIR}' ${LLVM_SRPM_BINARY_SPECFILE})
|
||||||
|
set_target_properties(srpm PROPERTIES FOLDER "Misc")
|
||||||
|
|
||||||
|
-
|
||||||
|
-# They are not referenced. See set_output_directory().
|
||||||
|
-set( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${LLVM_BINARY_DIR}/bin )
|
||||||
|
-set( CMAKE_LIBRARY_OUTPUT_DIRECTORY ${LLVM_BINARY_DIR}/lib${LLVM_LIBDIR_SUFFIX} )
|
||||||
|
-set( CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${LLVM_BINARY_DIR}/lib${LLVM_LIBDIR_SUFFIX} )
|
||||||
|
-
|
||||||
|
if(APPLE AND DARWIN_LTO_LIBRARY)
|
||||||
|
set(CMAKE_EXE_LINKER_FLAGS
|
||||||
|
"${CMAKE_EXE_LINKER_FLAGS} -Wl,-lto_library -Wl,${DARWIN_LTO_LIBRARY}")
|
||||||
|
--
|
||||||
|
2.26.2
|
||||||
|
|
Binary file not shown.
Binary file not shown.
@ -1 +1,2 @@
|
|||||||
DIST mmap-v1.0.2.tbz 14575 BLAKE2B ddc0ce540780bf362662b90ba0ba71098151bfaf2633161d747f6122b34b4cec813c0a839f5f702595fa9d81b24a4d550fcaa6600d6fdd7560947e71c87b1b6a SHA512 280afb62a0cc5b13f7e9485bb81c0fe6bff91a3838420495ce7a10709af987264590562f21b2d66e778b7e606be3f1f940ebb090e4fa0af5702f09bacab93cbe
|
DIST mmap-v1.0.2.tbz 14575 BLAKE2B ddc0ce540780bf362662b90ba0ba71098151bfaf2633161d747f6122b34b4cec813c0a839f5f702595fa9d81b24a4d550fcaa6600d6fdd7560947e71c87b1b6a SHA512 280afb62a0cc5b13f7e9485bb81c0fe6bff91a3838420495ce7a10709af987264590562f21b2d66e778b7e606be3f1f940ebb090e4fa0af5702f09bacab93cbe
|
||||||
|
DIST mmap-v1.1.0.tbz 12312 BLAKE2B 3f688f5649ef51fc2a0cee76519da46dcfecd72a065de3cdc72412e27bfa39c26c6bb54d35ea6e3b139db0ccc75e9460f8285826c40ecc894a3782f279366686 SHA512 15e4ec2634998f321f495de5372dc75a3f4059ab7512115603ae8fd99a619c91299d34c8a12a697aa36df4ce14c90c66746b873eddf004b7bbbeaef8ec7858f5
|
||||||
|
@ -0,0 +1,20 @@
|
|||||||
|
# Copyright 1999-2020 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
|
||||||
|
inherit dune
|
||||||
|
|
||||||
|
DESCRIPTION="File mapping"
|
||||||
|
HOMEPAGE="https://github.com/mirage/mmap"
|
||||||
|
SRC_URI="https://github.com/mirage/mmap/releases/download/v${PV}/${PN}-v${PV}.tbz"
|
||||||
|
|
||||||
|
LICENSE="LGPL-2.1"
|
||||||
|
SLOT="0/${PV}"
|
||||||
|
KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86"
|
||||||
|
IUSE="+ocamlopt"
|
||||||
|
|
||||||
|
RDEPEND=""
|
||||||
|
DEPEND="${RDEPEND}"
|
||||||
|
|
||||||
|
S="${WORKDIR}/${PN}-v${PV}"
|
@ -0,0 +1,28 @@
|
|||||||
|
https://sources.debian.org/patches/ocamlsdl/0.9.1-3/0002-Fix-compilation-with-OCaml-4.08.0.patch/
|
||||||
|
From: Stephane Glondu <steph@glondu.net>
|
||||||
|
Date: Fri, 6 Sep 2019 09:35:32 +0200
|
||||||
|
Subject: Fix compilation with OCaml 4.08.0
|
||||||
|
|
||||||
|
---
|
||||||
|
src/sdlmouse.ml | 4 ++--
|
||||||
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/src/sdlmouse.ml b/src/sdlmouse.ml
|
||||||
|
index 5d3120b..39cc58d 100644
|
||||||
|
--- a/src/sdlmouse.ml
|
||||||
|
+++ b/src/sdlmouse.ml
|
||||||
|
@@ -49,12 +49,12 @@ external cursor_data : cursor -> cursor_data
|
||||||
|
= "ml_SDL_Cursor_data"
|
||||||
|
|
||||||
|
let string_of_bits x =
|
||||||
|
- let s = String.make 8 ' ' in
|
||||||
|
+ let s = Bytes.make 8 ' ' in
|
||||||
|
for i=0 to 7 do
|
||||||
|
if x land (1 lsl i) <> 0
|
||||||
|
then s.[7-i] <- '@'
|
||||||
|
done ;
|
||||||
|
- s
|
||||||
|
+ Bytes.to_string s
|
||||||
|
|
||||||
|
let pprint_cursor c =
|
||||||
|
let { data = data ; mask = mask } = cursor_data c in
|
@ -1,2 +1,2 @@
|
|||||||
DIST parmap-1.0_rc7-ocaml-4.03.tar.gz 98262 BLAKE2B 829553c5a8a16776588b7fc74304e189945367ddc4988e529b08857fe307b8e05db58fb73819554e88afa2405d8818d2c95fc4dc96e0a47ff782bfd78b912e90 SHA512 c8b7678fede76d35b299ef0548ef3819f9ec056cde4d5498e11f2400b96149b17ce58c35d197d10dba5fd4a702b94fe78090e1f330791b0f470891f0bbf7a544
|
|
||||||
DIST parmap-1.0_rc8.tar.gz 98699 BLAKE2B 755208d0b380c200c5fb2a38334bcd422ea3e3c86bd8a52db37e256dd45c22c05e8577a5f13ae14d4ad553d16c212ae2a1b299e0870ac71a52e0bf11ddf2ecc4 SHA512 96bbe49f06dc3611577e87d9e6f5ca32e10271d6a14a0970bd4548fcaf268f833b3143258e14328237a60578e2355687e4bff031a021903f3e2280ef1713cc65
|
DIST parmap-1.0_rc8.tar.gz 98699 BLAKE2B 755208d0b380c200c5fb2a38334bcd422ea3e3c86bd8a52db37e256dd45c22c05e8577a5f13ae14d4ad553d16c212ae2a1b299e0870ac71a52e0bf11ddf2ecc4 SHA512 96bbe49f06dc3611577e87d9e6f5ca32e10271d6a14a0970bd4548fcaf268f833b3143258e14328237a60578e2355687e4bff031a021903f3e2280ef1713cc65
|
||||||
|
DIST parmap-1.1.1.tar.gz 44311 BLAKE2B db80056b2207d0e6723486b930bd0636171e0f2d710706b5348f2f098eb866fe9ab5dc516754e70bc81641484d4403868950ed6b35abd926d3212402f91ca41f SHA512 8333337b4f58496dad7c3417449ad6ba319c84d5cdb8434772479c9bde5708af95c230c9e1a9a31e4276d88cce3d827b1655c42a110ccd889d1735fcfecf0c20
|
||||||
|
@ -1,46 +0,0 @@
|
|||||||
# Copyright 1999-2020 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=5
|
|
||||||
|
|
||||||
inherit multilib
|
|
||||||
|
|
||||||
MY_PV="${PV/_/-}-fix-for4.03+3"
|
|
||||||
DESCRIPTION="Library to exploit multicore architectures for OCaml programs"
|
|
||||||
HOMEPAGE="https://www.dicosmo.org/code/parmap/"
|
|
||||||
SRC_URI="https://github.com/rdicosmo/parmap/archive/${MY_PV}.tar.gz -> ${P}-ocaml-4.03.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="LGPL-2-with-linking-exception"
|
|
||||||
SLOT="0/${PV}"
|
|
||||||
KEYWORDS="~amd64 ~ppc ~x86"
|
|
||||||
IUSE="+ocamlopt"
|
|
||||||
|
|
||||||
RDEPEND=">=dev-lang/ocaml-4.03:=[ocamlopt?]"
|
|
||||||
DEPEND="${RDEPEND}
|
|
||||||
dev-ml/findlib
|
|
||||||
dev-ml/ocamlbuild
|
|
||||||
dev-ml/ocaml-autoconf"
|
|
||||||
S="${WORKDIR}/${PN}-${MY_PV/+/-}"
|
|
||||||
|
|
||||||
src_test() {
|
|
||||||
mkdir "${WORKDIR}/tmpinstall" || die
|
|
||||||
emake \
|
|
||||||
OCAMLLIBDIR="ocaml" \
|
|
||||||
DESTDIR="${WORKDIR}/tmpinstall" \
|
|
||||||
install
|
|
||||||
export OCAMLPATH="${WORKDIR}/tmpinstall/ocaml"
|
|
||||||
emake tests
|
|
||||||
cd _build/tests || die
|
|
||||||
for i in $(find . -type f -executable) ; do
|
|
||||||
${i} || die
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
emake \
|
|
||||||
OCAMLLIBDIR="$(get_libdir)/ocaml" \
|
|
||||||
MANDIR="${ED}/usr/share/man/man3o" \
|
|
||||||
DESTDIR="${ED}/usr" \
|
|
||||||
install
|
|
||||||
dodoc AUTHORS Changelog README
|
|
||||||
}
|
|
@ -0,0 +1,20 @@
|
|||||||
|
# Copyright 1999-2020 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
|
||||||
|
inherit dune
|
||||||
|
|
||||||
|
MY_PV="${PV/_/-}"
|
||||||
|
DESCRIPTION="Library to exploit multicore architectures for OCaml programs"
|
||||||
|
HOMEPAGE="https://www.dicosmo.org/code/parmap/"
|
||||||
|
SRC_URI="https://github.com/rdicosmo/parmap/archive/${MY_PV}.tar.gz -> ${P}.tar.gz"
|
||||||
|
S="${WORKDIR}/${PN}-${MY_PV/+/-}"
|
||||||
|
|
||||||
|
LICENSE="LGPL-2-with-linking-exception"
|
||||||
|
SLOT="0/${PV}"
|
||||||
|
KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86"
|
||||||
|
IUSE="+ocamlopt"
|
||||||
|
|
||||||
|
RDEPEND=">=dev-lang/ocaml-4.03:=[ocamlopt?]"
|
||||||
|
DEPEND="${RDEPEND}"
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue