Skip to Content.
Sympa Menu

sm-commit - [SM-Commit] GIT changes to master grimoire by Pavel Vinogradov (9161a21c2af94910747b5b13c3f44a8db7a7de4e)

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: Pavel Vinogradov <scm AT sourcemage.org>
  • To: sm-commit AT lists.ibiblio.org
  • Subject: [SM-Commit] GIT changes to master grimoire by Pavel Vinogradov (9161a21c2af94910747b5b13c3f44a8db7a7de4e)
  • Date: Tue, 20 Sep 2022 23:06:20 +0000

GIT changes to master grimoire by Pavel Vinogradov <public AT sourcemage.org>:

devel/llvm/DETAILS | 1 -
devel/llvm/FINAL | 27 +++++++++++++++++++++++++++
devel/llvm/HISTORY | 4 +++-
devel/llvm/INSTALL | 44 ++++++++++++++++++++++++--------------------
4 files changed, 54 insertions(+), 22 deletions(-)

New commits:
commit 9161a21c2af94910747b5b13c3f44a8db7a7de4e
Author: Pavel Vinogradov <public AT sourcemage.org>
Commit: Pavel Vinogradov <public AT sourcemage.org>

devel/llvm: reenabled staged installation + some refactoring

diff --git a/devel/llvm/DETAILS b/devel/llvm/DETAILS
index 51e8bb1..ad7e87a 100755
--- a/devel/llvm/DETAILS
+++ b/devel/llvm/DETAILS
@@ -81,7 +81,6 @@
SOURCE_DIRECTORY="${BUILD_DIRECTORY}/${SPELL}-${VERSION}.src"
ENTERED=20081115
SHORT="A novel compiler infrastructure for the optimization of
programs."
TMPFS=off # Well, needs about 5G space, plus actual RAM for
compiling.
- STAGED_INSTALL=off # chmod issues with castfs
cat << EOF
Low-Level Virtual Machine (LLVM) is a compiler infrastructure designed for
compile-time, link-time, run-time, and "idle-time" optimization of programs
diff --git a/devel/llvm/FINAL b/devel/llvm/FINAL
new file mode 100755
index 0000000..355801c
--- /dev/null
+++ b/devel/llvm/FINAL
@@ -0,0 +1,27 @@
+if [[ "$LLVM_WITH_ANALYZER" == "y" ]]; then
+ target="${INSTALL_ROOT}/usr/share/llvm" &&
+
+ chown "root:root" "${target}/scan-build" &&
+ chmod 0755 "${target}/scan-build" &&
+
+ chown "root:root" "${target}/scan-view" &&
+ chmod 0755 "${target}/scan-view" &&
+
+ for i in ccc-analyzer c++-analyzer scan-build scan-view; do
+ chown "root:root" "${INSTALL_ROOT}/usr/bin/${i}" &&
+ chmod 0755 "${INSTALL_ROOT}/usr/bin/${i}"
+ done &&
+
+ for i in scanview.css sorttable.js;; do
+ chown "root:root" "${target}/scan-build/${i}" &&
+ chmod 0644 "${target}/scan-build/${i}"
+ done &&
+
+ for i in Reporter.py ScanView.py startfile.py; do
+ chown "root:root" "${target}/scan-view/${i}" &&
+ chmod 0644 "${target}/scan-view/${i}"
+ done &&
+
+ chown "root:root" "${INSTALL_ROOT}/usr/share/man/man1/scan-build.1" &&
+ chmod 0644 "${INSTALL_ROOT}/usr/share/man/man1/scan-build.1"
+fi
diff --git a/devel/llvm/HISTORY b/devel/llvm/HISTORY
index 2938e53..4173c41 100644
--- a/devel/llvm/HISTORY
+++ b/devel/llvm/HISTORY
@@ -1,5 +1,7 @@
2022-09-20 Pavel Vinogradov <public AT sourcemage.org>
- * DETAILS: version 15.0.1
+ * DETAILS: version 15.0.1, reenabled staged installation
+ * INSTALL, FINAL: moved the ownership and permissions setting code to
FINAL,
+ refactored installation of analyzer files and python3 bindings

2022-09-06 Pavel Vinogradov <public AT sourcemage.org>
* DETAILS, PRE_BUILD: version 15.0.0, added cmake modules archive for
all
diff --git a/devel/llvm/INSTALL b/devel/llvm/INSTALL
index ed9e2f5..c5691fc 100755
--- a/devel/llvm/INSTALL
+++ b/devel/llvm/INSTALL
@@ -8,28 +8,32 @@ then

cd $SOURCE_DIRECTORY/tools/clang/tools &&

- install -v -m 0755 -o root -g root -d "$target/scan-build" &&
- install -v -m 0755 -o root -g root -t "${INSTALL_ROOT}/usr/bin/"
scan-build/libexec/ccc-analyzer &&
- install -v -m 0755 -o root -g root -t "${INSTALL_ROOT}/usr/bin/"
scan-build/libexec/c++-analyzer &&
- install -v -m 0755 -o root -g root -t "${INSTALL_ROOT}/usr/bin/"
scan-build/bin/scan-build &&
+ install -v -d "$target/scan-build" &&
+
+ for i in ccc-analyzer c++-analyzer; do
+ install -v -t "${INSTALL_ROOT}/usr/bin/" scan-build/libexec/${i}
+ done &&
+
+ for i in build view; do
+ install -v -t "${INSTALL_ROOT}/usr/bin/" scan-${i}/bin/scan-${l}
+ done &&
+
ln -sf "/usr/bin/ccc-analyzer" "${INSTALL_ROOT}/usr/bin/c++-analyzer" &&
- install -v -m 0644 -o root -g root -t "$target/scan-build"
scan-build/share/scan-build/scanview.css &&
- install -v -m 0644 -o root -g root -t "$target/scan-build"
scan-build/share/scan-build/sorttable.js &&
- install -v -m 0755 -o root -g root -d "$target/scan-view" &&
- install -v -m 0755 -o root -g root -t "${INSTALL_ROOT}/usr/bin/"
scan-view/bin/scan-view &&
- install -v -m 0644 -o root -g root -t "$target/scan-view"
scan-view/share/Reporter.py &&
- install -v -m 0644 -o root -g root -t "$target/scan-view"
scan-view/share/ScanView.py &&
- install -v -m 0644 -o root -g root -t "$target/scan-view"
scan-view/share/startfile.py
-
- install -v -m 0644 -o root -g root -t
"${INSTALL_ROOT}/usr/share/man/man1/" scan-build/man/scan-build.1
+
+ for i in scanview.css sorttable.js;; do
+ install -v -t "$target/scan-build" scan-build/share/scan-build/${i}
+ done &&
+
+ install -v -d "$target/scan-view" &&
+
+ for i in Reporter.py ScanView.py startfile.py; do
+ install -v -t "$target/scan-view" scan-view/share/${i}
+ done &&
+
+ install -v -t "${INSTALL_ROOT}/usr/share/man/man1/"
scan-build/man/scan-build.1
fi &&

-if [[ "$LLVM_WITH_CLANG" == y ]] && is_depends_enabled $SPELL python; then
+if [[ "$LLVM_WITH_CLANG" == y ]] && spell_ok python3; then
cd "${SOURCE_DIRECTORY}" &&
- if spell_installed python; then
- cp -Rv "${SOURCE_DIRECTORY}/tools/clang/bindings/python/clang"
"${INSTALL_ROOT}/usr/lib/python$(installed_version python | cut -f1,2 -d.)/"
- fi &&
- if spell_installed python3; then
- cp -Rv "${SOURCE_DIRECTORY}/tools/clang/bindings/python/clang"
"${INSTALL_ROOT}/usr/lib/python$(installed_version python3 | cut -f1,2 -d.)/"
- fi
+ cp -Rv "${SOURCE_DIRECTORY}/tools/clang/bindings/python/clang"
"${INSTALL_ROOT}/usr/lib/python$(installed_version python3 | cut -f1,2 -d.)/"
fi



  • [SM-Commit] GIT changes to master grimoire by Pavel Vinogradov (9161a21c2af94910747b5b13c3f44a8db7a7de4e), Pavel Vinogradov, 09/20/2022

Archive powered by MHonArc 2.6.24.

Top of Page