-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/master' into gcc
- Loading branch information
Showing
65 changed files
with
581 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
pip3 --no-cache install ase |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
echo 1 # 1 = True = Do Not download |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
build_gpaw() | ||
{ | ||
[ -d "${prefix}/lib/pkgconfig" ] && export PKG_CONFIG_PATH="${prefix}/lib/pkgconfig"; | ||
|
||
build_gpaw_core gpaw $srcdir_gpaw | ||
|
||
return $? | ||
} | ||
|
||
# | ||
# Build gpaw | ||
build_gpaw_core() | ||
{ | ||
export rc_pipinstall=0 | ||
typeset id="$1"; shift # build id | ||
typeset dir="$1"; shift # src directory | ||
typeset pkgbuilddir="$BUILDDIR/$id" | ||
|
||
# Other steps | ||
[ ! -d "$pkgbuilddir" ] && { mkdir -p "$pkgbuilddir"; } || | ||
{ | ||
pkgbuilddir="$BUILDDIR/${id}.${RANDOM}"; mkdir -p "$pkgbuilddir"; | ||
} | ||
|
||
cd "$pkgbuilddir" || | ||
{ | ||
echo "build_gpaw: Failed to change to build directory: " $pkgbuilddir; | ||
return 1; | ||
} | ||
|
||
prepare_build $dir | ||
|
||
echo "Building $id [${BOLD}$(getbasename $id)${RESET}] at $(date)" | ||
echo | ||
|
||
time_start | ||
|
||
logFile=$(logger_file ${id}_make) | ||
echo "Running pip install..." | ||
{ | ||
LDFLAGS="-L${prefix}/lib -L/usr/lib -Wl,-rpath=${prefix}/lib -Wl,-rpath=/usr/lib" \ | ||
CFLAGS="-I${prefix}/include" \ | ||
pip3 install . | ||
rc_pipinstall=$? | ||
} > ${logFile} 2>&1 | ||
[ $rc_pipinstall -ne 0 ] && { cd "$cwd"; time_end; cat "${logFile}"; echo ; echo "Failed pip install for ${id}"; return $rc_make; } | ||
|
||
cd "$WORKDIR" | ||
|
||
time_end | ||
return $rc_pipinstall | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
build_lapack() | ||
{ | ||
build_raw_lite lapack | ||
|
||
return $? | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# generate Makefiles with cmake/"bootstrap" | ||
|
||
cd ${BUILDDIR}/lapack | ||
cmake "${srcdir_lapack}" -DCMAKE_INSTALL_PREFIX=${prefix} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,6 @@ | |
# | ||
build_libxc() | ||
{ | ||
build_gnuconf libxc $srcdir_libxc | ||
build_gnuconf libxc $srcdir_libxc --enable-shared | ||
return $? | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
build_openblas() | ||
{ | ||
build_raw_lite openblas | ||
|
||
return $? | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# generate Makefiles with cmake/"bootstrap" | ||
|
||
cd ${BUILDDIR}/openblas | ||
cmake "${srcdir_openblas}" -DCMAKE_INSTALL_PREFIX=${prefix} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
build_scalapack() | ||
{ | ||
build_raw_lite scalapack | ||
|
||
return $? | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
|
||
cd ${BUILDDIR}/scalapack | ||
cmake "${srcdir_scalapack}" -DCMAKE_INSTALL_PREFIX=${prefix} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
profile_bind() | ||
{ | ||
# libxml2 & openssl are included in python profile | ||
# mixing run-time and build-time dependencies is not supported at this time | ||
# *IF* this means need to link from multiple prefixes) | ||
profile_python | ||
add_run_dep libuv | ||
add_run_dep bind | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
profile_blender() | ||
{ | ||
add_build_dep cmake | ||
add_run_dep python # it needs python, but it could be a run-time dep only | ||
add_run_dep blender | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
profile_bzip2() | ||
{ | ||
add_run_dep bzip2 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
profile_cairo() | ||
{ | ||
#this will be needed when moving from alpine 3.8 to 3.9 | ||
#add_build_dep pkgconfig | ||
add_run_dep zlib | ||
add_run_dep libpng | ||
add_run_dep freetype | ||
add_run_dep gperf | ||
add_run_dep expat | ||
#I thought uuid was not mandatory, temporarily re-disabling | ||
#add_run_dep fontconfig | ||
add_run_dep pixman | ||
add_run_dep cairo | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# standalone cmake | ||
profile_cmake() | ||
{ | ||
add_build_dep openssl | ||
add_run_dep cmake | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
profile_curl() | ||
{ | ||
add_run_dep openssl | ||
add_run_dep curl | ||
|
||
return $? | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# TODO: automate build orders & list | ||
profile_default() | ||
{ | ||
profile_gnubuild | ||
profile_python | ||
add_build_dep bison | ||
add_run_dep expat | ||
add_run_dep pcre | ||
add_run_dep apr | ||
add_run_dep aprutil | ||
add_run_dep libxml2 | ||
add_run_dep httpd | ||
|
||
[ "$PHP_NEEDED" == "1" ] && | ||
{ | ||
add_run_dep php | ||
add_run_dep suhosin | ||
} | ||
|
||
add_run_dep python3 | ||
add_run_dep mod_wsgi | ||
|
||
return $? | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
profile_fluentbit() | ||
{ | ||
add_build_dep cmake | ||
add_run_dep fluentbit | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
profile_gcc() | ||
{ | ||
add_build_dep m4 | ||
add_run_dep zlib | ||
add_run_dep binutils | ||
add_run_dep gmp | ||
add_run_dep mpfr | ||
add_run_dep mpc | ||
add_run_dep gcc | ||
return $? | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
profile_gcc11() | ||
{ | ||
add_build_dep m4 | ||
add_run_dep zlib | ||
add_run_dep binutils | ||
add_run_dep gmp | ||
add_run_dep mpfr | ||
add_run_dep mpc | ||
add_run_dep gcc11 | ||
return $? | ||
} |
Oops, something went wrong.