Skip to content
Open
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions arrow.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package: arrow
version: "v20.0.0-alice1"
tag: apache-arrow-20.0.0-alice1
version: "v23.0.1-alice"
Comment thread
aalkin marked this conversation as resolved.
Outdated
tag: apache-arrow-23.0.1-alice1
Comment thread
aalkin marked this conversation as resolved.
Outdated
source: https://github.com/alisw/arrow.git
requires:
- boost
Expand All @@ -10,6 +10,7 @@ requires:
- utf8proc
- OpenSSL:(?!osx)
- xsimd
- thrift
Comment thread
aalkin marked this conversation as resolved.
Outdated
license: Apache-2.0
build_requires:
- zlib
Expand Down
59 changes: 25 additions & 34 deletions thrift.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package: thrift
version: "%(tag_basename)s"
tag: 0.12.0
tag: v0.22.0
source: https://github.com/apache/thrift
requires:
- boost
Comment thread
aalkin marked this conversation as resolved.
Expand All @@ -20,43 +20,34 @@ case $ARCHITECTURE in
OPENSSL_ROOT=$(brew --prefix openssl@3)
;;
esac
rsync -a --delete --exclude="**/.git" $SOURCEDIR/ ./
./bootstrap.sh
./configure --prefix ${INSTALLROOT} \
--with-boost=${BOOST_ROOT} \
--without-erlang \
--without-haskell \
--without-perl \
--without-python \
--without-java \
--without-php \
--without-php_extension \
--without-ruby \
--without-qt \
--enable-libs \
--disable-tests \
--disable-plugin \
--disable-tutorial \
${OPENSSL_ROOT:+--with-openssl=${OPENSSL_ROOT}}
make CPPFLAGS="-I${BOOST_ROOT}/include ${CPPFLAGS}" CXXFLAGS="-Wno-error -fPIC -O2" ${JOBS:+-j $JOBS}
make install

cmake $SOURCEDIR -GNinja \
-DBoost_DIR="${BOOST_ROOT}" \
-DCMAKE_INSTALL_PREFIX="$INSTALLROOT" \
-DBUILD_TESTING=OFF \
-DBUILD_TUTORIALS=OFF \
-DBUILD_COMPILER=ON \
-DBUILD_CPP=ON \
-DBUILD_C_GLIB=OFF \
-DBUILD_JAVA=OFF \
-DBUILD_JAVASCRIPT=OFF \
-DBUILD_KOTLIN=OFF \
-DBUILD_NODEJS=OFF \
-DBUILD_PYTHON=OFF \
-DWITH_LIBEVENT=OFF \
-DWITH_ZLIB=ON \
-DWITH_OPENSSL=ON
cmake --build . -- ${JOBS+-j $JOBS} install

# install the compilation database so that we can post-check the code
cp compile_commands.json ${INSTALLROOT}

# Modulefile
MODULEDIR="$INSTALLROOT/etc/modulefiles"
MODULEFILE="$MODULEDIR/$PKGNAME"
mkdir -p "$MODULEDIR"
cat > "$MODULEFILE" <<EoF
#%Module1.0
proc ModulesHelp { } {
global version
puts stderr "ALICE Modulefile for $PKGNAME $PKGVERSION-@@PKGREVISION@$PKGHASH@@"
}
set version $PKGVERSION-@@PKGREVISION@$PKGHASH@@
module-whatis "ALICE Modulefile for $PKGNAME $PKGVERSION-@@PKGREVISION@$PKGHASH@@"
# Dependencies
module load BASE/1.0 ${GCC_TOOLCHAIN_ROOT:+GCC-Toolchain/$GCC_TOOLCHAIN_VERSION-$GCC_TOOLCHAIN_REVISION}
# Our environment
set BASEDIR \$::env(BASEDIR)
mkdir -p etc/modulefiles
alibuild-generate-module --bin --lib > etc/modulefiles/$PKGNAME
cat >> etc/modulefiles/$PKGNAME <<EoF
prepend-path PATH \$BASEDIR/$PKGNAME/\$version/bin
prepend-path LD_LIBRARY_PATH \$BASEDIR/$PKGNAME/\$version/lib
EoF
Comment thread
aalkin marked this conversation as resolved.
Outdated
Loading