[arch-commits] Commit in clang/repos (3 files)
Date: Monday, November 9, 2020 @ 17:33:55 Author: foutrelis Revision: 399869 archrelease: copy trunk to staging-x86_64 Added: clang/repos/staging-x86_64/ clang/repos/staging-x86_64/PKGBUILD (from rev 399868, clang/trunk/PKGBUILD) clang/repos/staging-x86_64/enable-SSP-and-PIE-by-default.patch (from rev 399868, clang/trunk/enable-SSP-and-PIE-by-default.patch) -+ PKGBUILD| 139 ++ enable-SSP-and-PIE-by-default.patch | 336 ++ 2 files changed, 475 insertions(+) Copied: clang/repos/staging-x86_64/PKGBUILD (from rev 399868, clang/trunk/PKGBUILD) === --- staging-x86_64/PKGBUILD (rev 0) +++ staging-x86_64/PKGBUILD 2020-11-09 17:33:55 UTC (rev 399869) @@ -0,0 +1,139 @@ +# Maintainer: Evangelos Foutras +# Contributor: Jan "heftig" Steffens + +pkgname=clang +pkgver=11.0.0 +pkgrel=2 +pkgdesc="C language family frontend for LLVM" +arch=('x86_64') +url="https://clang.llvm.org/"; +license=('custom:Apache 2.0 with LLVM Exception') +depends=('llvm-libs' 'gcc' 'compiler-rt') +makedepends=('llvm' 'cmake' 'ninja' 'python-sphinx' 'python2') +optdepends=('openmp: OpenMP support in clang with -fopenmp' +'python: for scan-view and git-clang-format' +'llvm: referenced by some clang headers') +provides=("clang-analyzer=$pkgver" "clang-tools-extra=$pkgver") +conflicts=('clang-analyzer' 'clang-tools-extra') +replaces=('clang-analyzer' 'clang-tools-extra') +_source_base=https://github.com/llvm/llvm-project/releases/download/llvmorg-$pkgver +source=($_source_base/$pkgname-$pkgver.src.tar.xz{,.sig} +$_source_base/clang-tools-extra-$pkgver.src.tar.xz{,.sig} +$_source_base/llvm-$pkgver.src.tar.xz{,.sig} +enable-SSP-and-PIE-by-default.patch) +sha256sums=('0f96acace1e8326b39f220ba19e055ba99b0ab21c2475042dbc6a482649c5209' +'SKIP' +'fed318f75d560d0e0ae728e2fb8abce71e9d0c60dd120c9baac118522ce76c09' +'SKIP' +'913f68c898dfb4a03b397c5e11c6a2f39d0f22ed7665c9cefa87a34423a72469' +'SKIP' +'248a0e8609b00689e82ce5e05e1de58b7c8ae09a35bbb9625e9069e1f13d2fec') +validpgpkeys+=('B6C8F98282B944E3B0D5C2530FC3042E345AD05D') # Hans Wennborg +validpgpkeys+=('474E22316ABF4785A88C6E8EA2C794A986419D8A') # Tom Stellard + +# Utilizing LLVM_DISTRIBUTION_COMPONENTS to avoid +# installing static libraries; inspired by Gentoo +_get_distribution_components() { + local target + ninja -t targets | grep -Po 'install-\K.*(?=-stripped:)' | while read -r target; do +case $target in + clang-libraries|distribution) +continue +;; + clang-tidy-headers) +continue +;; + clang|clangd|clang-*) +;; + clang*|findAllSymbols) +continue +;; +esac +echo $target + done +} + +prepare() { + cd "$srcdir/$pkgname-$pkgver.src" + mkdir build + mv "$srcdir/clang-tools-extra-$pkgver.src" tools/extra + patch -Np2 -i ../enable-SSP-and-PIE-by-default.patch +} + +build() { + cd "$srcdir/$pkgname-$pkgver.src/build" + + local cmake_args=( +-G Ninja +-DCMAKE_BUILD_TYPE=Release +-DCMAKE_INSTALL_PREFIX=/usr +-DPYTHON_EXECUTABLE=/usr/bin/python +-DLLVM_LINK_LLVM_DYLIB=ON +-DCLANG_LINK_CLANG_DYLIB=ON +-DLLVM_ENABLE_RTTI=ON +-DLLVM_BUILD_TESTS=ON +-DLLVM_INCLUDE_DOCS=ON +-DLLVM_BUILD_DOCS=ON +-DLLVM_ENABLE_SPHINX=ON +-DSPHINX_WARNINGS_AS_ERRORS=OFF +-DLLVM_EXTERNAL_LIT=/usr/bin/lit +-DLLVM_MAIN_SRC_DIR="$srcdir/llvm-$pkgver.src" + ) + + cmake .. "${cmake_args[@]}" + local distribution_components=$(_get_distribution_components | paste -sd\;) + test -n "$distribution_components" + cmake_args+=(-DLLVM_DISTRIBUTION_COMPONENTS="$distribution_components") + + cmake .. "${cmake_args[@]}" + ninja +} + +check() { + cd "$srcdir/$pkgname-$pkgver.src/build" + ninja check-clang{,-tools} +} + +_python2_optimize() { + python2 -m compileall "$@" + python2 -O -m compileall "$@" +} + +_python3_optimize() { + python3 -m compileall "$@" + python3 -O -m compileall "$@" + python3 -OO -m compileall "$@" +} + +package() { + cd "$srcdir/$pkgname-$pkgver.src/build" + + DESTDIR="$pkgdir" ninja install-distribution + install -Dm644 ../LICENSE.TXT "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + + # Remove documentation sources + rm -r "$pkgdir"/usr/share/doc/clang{,-tools}/html/{_sources,.buildinfo} + + # Move analyzer scripts out of /usr/libexec + mv "$pkgdir"/usr/libexec/{ccc,c++}-analyzer "$pkgdir/usr/lib/clang/" + rmdir "$pkgdir/usr/libexec" + sed -i 's|libexec|lib/clang|' "$pkgdir/usr/bin/scan-build" + + # Install Python bindings + for _py in 2.7 3.9; do +install -d "$pkgdir/usr/lib/python$_py/site-packages" +cp -a ../bindings/python/clang "$pkgdir/usr/lib/python$_py/site-packages/" +_python${_py%
[arch-commits] Commit in clang/repos (3 files)
Date: Monday, October 12, 2020 @ 16:52:45 Author: foutrelis Revision: 398072 archrelease: copy trunk to staging-x86_64 Added: clang/repos/staging-x86_64/ clang/repos/staging-x86_64/PKGBUILD (from rev 398071, clang/trunk/PKGBUILD) clang/repos/staging-x86_64/enable-SSP-and-PIE-by-default.patch (from rev 398071, clang/trunk/enable-SSP-and-PIE-by-default.patch) -+ PKGBUILD| 139 ++ enable-SSP-and-PIE-by-default.patch | 336 ++ 2 files changed, 475 insertions(+) Copied: clang/repos/staging-x86_64/PKGBUILD (from rev 398071, clang/trunk/PKGBUILD) === --- staging-x86_64/PKGBUILD (rev 0) +++ staging-x86_64/PKGBUILD 2020-10-12 16:52:45 UTC (rev 398072) @@ -0,0 +1,139 @@ +# Maintainer: Evangelos Foutras +# Contributor: Jan "heftig" Steffens + +pkgname=clang +pkgver=11.0.0 +pkgrel=1 +pkgdesc="C language family frontend for LLVM" +arch=('x86_64') +url="https://clang.llvm.org/"; +license=('custom:Apache 2.0 with LLVM Exception') +depends=('llvm-libs' 'gcc' 'compiler-rt') +makedepends=('llvm' 'cmake' 'ninja' 'python-sphinx' 'python2') +optdepends=('openmp: OpenMP support in clang with -fopenmp' +'python: for scan-view and git-clang-format' +'llvm: referenced by some clang headers') +provides=("clang-analyzer=$pkgver" "clang-tools-extra=$pkgver") +conflicts=('clang-analyzer' 'clang-tools-extra') +replaces=('clang-analyzer' 'clang-tools-extra') +_source_base=https://github.com/llvm/llvm-project/releases/download/llvmorg-$pkgver +source=($_source_base/$pkgname-$pkgver.src.tar.xz{,.sig} +$_source_base/clang-tools-extra-$pkgver.src.tar.xz{,.sig} +$_source_base/llvm-$pkgver.src.tar.xz{,.sig} +enable-SSP-and-PIE-by-default.patch) +sha256sums=('0f96acace1e8326b39f220ba19e055ba99b0ab21c2475042dbc6a482649c5209' +'SKIP' +'fed318f75d560d0e0ae728e2fb8abce71e9d0c60dd120c9baac118522ce76c09' +'SKIP' +'913f68c898dfb4a03b397c5e11c6a2f39d0f22ed7665c9cefa87a34423a72469' +'SKIP' +'248a0e8609b00689e82ce5e05e1de58b7c8ae09a35bbb9625e9069e1f13d2fec') +validpgpkeys+=('B6C8F98282B944E3B0D5C2530FC3042E345AD05D') # Hans Wennborg +validpgpkeys+=('474E22316ABF4785A88C6E8EA2C794A986419D8A') # Tom Stellard + +# Utilizing LLVM_DISTRIBUTION_COMPONENTS to avoid +# installing static libraries; inspired by Gentoo +_get_distribution_components() { + local target + ninja -t targets | grep -Po 'install-\K.*(?=-stripped:)' | while read -r target; do +case $target in + clang-libraries|distribution) +continue +;; + clang-tidy-headers) +continue +;; + clang|clangd|clang-*) +;; + clang*|findAllSymbols) +continue +;; +esac +echo $target + done +} + +prepare() { + cd "$srcdir/$pkgname-$pkgver.src" + mkdir build + mv "$srcdir/clang-tools-extra-$pkgver.src" tools/extra + patch -Np2 -i ../enable-SSP-and-PIE-by-default.patch +} + +build() { + cd "$srcdir/$pkgname-$pkgver.src/build" + + local cmake_args=( +-G Ninja +-DCMAKE_BUILD_TYPE=Release +-DCMAKE_INSTALL_PREFIX=/usr +-DPYTHON_EXECUTABLE=/usr/bin/python +-DLLVM_LINK_LLVM_DYLIB=ON +-DCLANG_LINK_CLANG_DYLIB=ON +-DLLVM_ENABLE_RTTI=ON +-DLLVM_BUILD_TESTS=ON +-DLLVM_INCLUDE_DOCS=ON +-DLLVM_BUILD_DOCS=ON +-DLLVM_ENABLE_SPHINX=ON +-DSPHINX_WARNINGS_AS_ERRORS=OFF +-DLLVM_EXTERNAL_LIT=/usr/bin/lit +-DLLVM_MAIN_SRC_DIR="$srcdir/llvm-$pkgver.src" + ) + + cmake .. "${cmake_args[@]}" + local distribution_components=$(_get_distribution_components | paste -sd\;) + test -n "$distribution_components" + cmake_args+=(-DLLVM_DISTRIBUTION_COMPONENTS="$distribution_components") + + cmake .. "${cmake_args[@]}" + ninja +} + +check() { + cd "$srcdir/$pkgname-$pkgver.src/build" + ninja check-clang{,-tools} +} + +_python2_optimize() { + python2 -m compileall "$@" + python2 -O -m compileall "$@" +} + +_python3_optimize() { + python3 -m compileall "$@" + python3 -O -m compileall "$@" + python3 -OO -m compileall "$@" +} + +package() { + cd "$srcdir/$pkgname-$pkgver.src/build" + + DESTDIR="$pkgdir" ninja install-distribution + install -Dm644 ../LICENSE.TXT "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + + # Remove documentation sources + rm -r "$pkgdir"/usr/share/doc/clang{,-tools}/html/{_sources,.buildinfo} + + # Move analyzer scripts out of /usr/libexec + mv "$pkgdir"/usr/libexec/{ccc,c++}-analyzer "$pkgdir/usr/lib/clang/" + rmdir "$pkgdir/usr/libexec" + sed -i 's|libexec|lib/clang|' "$pkgdir/usr/bin/scan-build" + + # Install Python bindings + for _py in 2.7 3.8; do +install -d "$pkgdir/usr/lib/python$_py/site-packages" +cp -a ../bindings/python/clang "$pkgdir/usr/lib/python$_py/site-packages/" +_python${_py%
[arch-commits] Commit in clang/repos (3 files)
Date: Wednesday, July 22, 2020 @ 19:46:07 Author: foutrelis Revision: 392375 archrelease: copy trunk to staging-x86_64 Added: clang/repos/staging-x86_64/ clang/repos/staging-x86_64/PKGBUILD (from rev 392374, clang/trunk/PKGBUILD) clang/repos/staging-x86_64/enable-SSP-and-PIE-by-default.patch (from rev 392374, clang/trunk/enable-SSP-and-PIE-by-default.patch) -+ PKGBUILD| 144 ++ enable-SSP-and-PIE-by-default.patch | 336 ++ 2 files changed, 480 insertions(+) Copied: clang/repos/staging-x86_64/PKGBUILD (from rev 392374, clang/trunk/PKGBUILD) === --- staging-x86_64/PKGBUILD (rev 0) +++ staging-x86_64/PKGBUILD 2020-07-22 19:46:07 UTC (rev 392375) @@ -0,0 +1,144 @@ +# Maintainer: Evangelos Foutras +# Contributor: Jan "heftig" Steffens + +pkgname=clang +pkgver=10.0.1 +pkgrel=1 +pkgdesc="C language family frontend for LLVM" +arch=('x86_64') +url="https://clang.llvm.org/"; +license=('custom:Apache 2.0 with LLVM Exception') +depends=('llvm-libs' 'gcc' 'compiler-rt') +makedepends=('llvm' 'cmake' 'ninja' 'python-sphinx' 'python2') +optdepends=('openmp: OpenMP support in clang with -fopenmp' +'python: for scan-view and git-clang-format' +'llvm: referenced by some clang headers') +provides=("clang-analyzer=$pkgver" "clang-tools-extra=$pkgver") +conflicts=('clang-analyzer' 'clang-tools-extra') +replaces=('clang-analyzer' 'clang-tools-extra') +_source_base=https://github.com/llvm/llvm-project/releases/download/llvmorg-$pkgver +source=($_source_base/$pkgname-$pkgver.src.tar.xz{,.sig} +$_source_base/clang-tools-extra-$pkgver.src.tar.xz{,.sig} +$_source_base/llvm-$pkgver.src.tar.xz{,.sig} +enable-SSP-and-PIE-by-default.patch) +sha256sums=('f99afc382b88e622c689b6d96cadfa6241ef55dca90e87fc170352e12ddb2b24' +'SKIP' +'d093782bcfcd0c3f496b67a5c2c997ab4b85816b62a7dd5b27026634ccf5c11a' +'SKIP' +'c5d8e30b57cbded7128d78e5e8dad811bff97a8d471896812f57fa99ee82cdf3' +'SKIP' +'9e557a18f3ca96cc5cc9b62d2e308b993025523b2aca0735248118a928c8c3ff') +validpgpkeys+=('B6C8F98282B944E3B0D5C2530FC3042E345AD05D') # Hans Wennborg +validpgpkeys+=('474E22316ABF4785A88C6E8EA2C794A986419D8A') # Tom Stellard + +# Utilizing LLVM_DISTRIBUTION_COMPONENTS to avoid +# installing static libraries; inspired by Gentoo +_get_distribution_components() { + local target + ninja -t targets | grep -Po 'install-\K.*(?=-stripped:)' | while read -r target; do +case $target in + clang-libraries|distribution) +continue +;; + clang|clangd|clang-*) +;; + clang*|findAllSymbols) +continue +;; +esac +echo $target + done +} + +prepare() { + cd "$srcdir/$pkgname-$pkgver.src" + mkdir build + mv "$srcdir/clang-tools-extra-$pkgver.src" tools/extra + patch -Np2 -i ../enable-SSP-and-PIE-by-default.patch + + if [[ $pkgver != 10.* ]]; then +echo "Remove libclangHandleLLVM hack!" +return 1 + fi + # Remove libclangHandleLLVM; breaks zig (https://reviews.llvm.org/D75579) + sed -i '/add_clang_subdirectory(handle-llvm)/d' \ +tools/clang-fuzzer/CMakeLists.txt +} + +build() { + cd "$srcdir/$pkgname-$pkgver.src/build" + + local cmake_args=( +-G Ninja +-DCMAKE_BUILD_TYPE=Release +-DCMAKE_INSTALL_PREFIX=/usr +-DPYTHON_EXECUTABLE=/usr/bin/python +-DLLVM_LINK_LLVM_DYLIB=ON +-DCLANG_LINK_CLANG_DYLIB=ON +-DLLVM_ENABLE_RTTI=ON +-DLLVM_BUILD_TESTS=ON +-DLLVM_INCLUDE_DOCS=ON +-DLLVM_BUILD_DOCS=ON +-DLLVM_ENABLE_SPHINX=ON +-DSPHINX_WARNINGS_AS_ERRORS=OFF +-DLLVM_EXTERNAL_LIT=/usr/bin/lit +-DLLVM_MAIN_SRC_DIR="$srcdir/llvm-$pkgver.src" + ) + + cmake .. "${cmake_args[@]}" + local distribution_components=$(_get_distribution_components | paste -sd\;) + test -n "$distribution_components" + cmake_args+=(-DLLVM_DISTRIBUTION_COMPONENTS="$distribution_components") + + cmake .. "${cmake_args[@]}" + ninja +} + +check() { + cd "$srcdir/$pkgname-$pkgver.src/build" + ninja check-clang{,-tools} +} + +_python2_optimize() { + python2 -m compileall "$@" + python2 -O -m compileall "$@" +} + +_python3_optimize() { + python3 -m compileall "$@" + python3 -O -m compileall "$@" + python3 -OO -m compileall "$@" +} + +package() { + cd "$srcdir/$pkgname-$pkgver.src/build" + + DESTDIR="$pkgdir" ninja install-distribution + install -Dm644 ../LICENSE.TXT "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + + # Remove documentation sources + rm -r "$pkgdir"/usr/share/doc/clang{,-tools}/html/{_sources,.buildinfo} + + # Move analyzer scripts out of /usr/libexec + mv "$pkgdir"/usr/libexec/{ccc,c++}-analyzer "$pkgdir/usr/lib/clang/" + rmdir "$pkgdir/usr/libexec" + sed -i 's|libexec|lib/clang|' "$pkgdir/usr/bin/scan-build" +
[arch-commits] Commit in clang/repos (3 files)
Date: Saturday, April 11, 2020 @ 06:15:31 Author: foutrelis Revision: 379992 archrelease: copy trunk to staging-x86_64 Added: clang/repos/staging-x86_64/ clang/repos/staging-x86_64/PKGBUILD (from rev 379991, clang/trunk/PKGBUILD) clang/repos/staging-x86_64/enable-SSP-and-PIE-by-default.patch (from rev 379991, clang/trunk/enable-SSP-and-PIE-by-default.patch) -+ PKGBUILD| 135 + enable-SSP-and-PIE-by-default.patch | 336 ++ 2 files changed, 471 insertions(+) Copied: clang/repos/staging-x86_64/PKGBUILD (from rev 379991, clang/trunk/PKGBUILD) === --- staging-x86_64/PKGBUILD (rev 0) +++ staging-x86_64/PKGBUILD 2020-04-11 06:15:31 UTC (rev 379992) @@ -0,0 +1,135 @@ +# Maintainer: Evangelos Foutras +# Contributor: Jan "heftig" Steffens + +pkgname=clang +pkgver=10.0.0 +pkgrel=1 +pkgdesc="C language family frontend for LLVM" +arch=('x86_64') +url="https://clang.llvm.org/"; +license=('custom:Apache 2.0 with LLVM Exception') +depends=('llvm-libs' 'gcc' 'compiler-rt') +makedepends=('llvm' 'cmake' 'ninja' 'python-sphinx' 'python2') +optdepends=('openmp: OpenMP support in clang with -fopenmp' +'python: for scan-view and git-clang-format' +'llvm: referenced by some clang headers') +provides=("clang-analyzer=$pkgver" "clang-tools-extra=$pkgver") +conflicts=('clang-analyzer' 'clang-tools-extra') +replaces=('clang-analyzer' 'clang-tools-extra') +_source_base=https://github.com/llvm/llvm-project/releases/download/llvmorg-$pkgver +source=($_source_base/$pkgname-$pkgver.src.tar.xz{,.sig} +$_source_base/clang-tools-extra-$pkgver.src.tar.xz{,.sig} +$_source_base/llvm-$pkgver.src.tar.xz{,.sig} +enable-SSP-and-PIE-by-default.patch) +sha256sums=('885b062b00e903df72631c5f98b9579ed1ed2790f74e5646b4234fa084eacb21' +'SKIP' +'acdf8cf6574b40e6b1dabc93e76debb84a9feb6f22970126b04d4ba18b92911c' +'SKIP' +'df83a44b3a9a71029049ec101fb0077ecbbdf5fe41e395215025779099a98fdf' +'SKIP' +'9e557a18f3ca96cc5cc9b62d2e308b993025523b2aca0735248118a928c8c3ff') +validpgpkeys+=('B6C8F98282B944E3B0D5C2530FC3042E345AD05D') # Hans Wennborg +validpgpkeys+=('474E22316ABF4785A88C6E8EA2C794A986419D8A') # Tom Stellard + +# Utilizing LLVM_DISTRIBUTION_COMPONENTS to avoid +# installing static libraries; inspired by Gentoo +_get_distribution_components() { + local target + ninja -t targets | grep -Po 'install-\K.*(?=-stripped:)' | while read -r target; do +case $target in + clang-libraries|distribution) +continue +;; + clang|clangd|clang-*) +;; + clang*|findAllSymbols) +continue +;; +esac +echo $target + done +} + +prepare() { + cd "$srcdir/$pkgname-$pkgver.src" + mkdir build + mv "$srcdir/clang-tools-extra-$pkgver.src" tools/extra + patch -Np2 -i ../enable-SSP-and-PIE-by-default.patch +} + +build() { + cd "$srcdir/$pkgname-$pkgver.src/build" + + local cmake_args=( +-G Ninja +-DCMAKE_BUILD_TYPE=Release +-DCMAKE_INSTALL_PREFIX=/usr +-DPYTHON_EXECUTABLE=/usr/bin/python +-DLLVM_LINK_LLVM_DYLIB=ON +-DCLANG_LINK_CLANG_DYLIB=ON +-DLLVM_ENABLE_RTTI=ON +-DLLVM_BUILD_TESTS=ON +-DLLVM_INCLUDE_DOCS=ON +-DLLVM_BUILD_DOCS=ON +-DLLVM_ENABLE_SPHINX=ON +-DSPHINX_WARNINGS_AS_ERRORS=OFF +-DLLVM_EXTERNAL_LIT=/usr/bin/lit +-DLLVM_MAIN_SRC_DIR="$srcdir/llvm-$pkgver.src" + ) + + cmake .. "${cmake_args[@]}" + local distribution_components=$(_get_distribution_components | paste -sd\;) + test -n "$distribution_components" + cmake_args+=(-DLLVM_DISTRIBUTION_COMPONENTS="$distribution_components") + + cmake .. "${cmake_args[@]}" + ninja +} + +check() { + cd "$srcdir/$pkgname-$pkgver.src/build" + ninja check-clang{,-tools} +} + +_python2_optimize() { + python2 -m compileall "$@" + python2 -O -m compileall "$@" +} + +_python3_optimize() { + python3 -m compileall "$@" + python3 -O -m compileall "$@" + python3 -OO -m compileall "$@" +} + +package() { + cd "$srcdir/$pkgname-$pkgver.src/build" + + DESTDIR="$pkgdir" ninja install-distribution + install -Dm644 ../LICENSE.TXT "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + + # Remove documentation sources + rm -r "$pkgdir"/usr/share/doc/clang{,-tools}/html/{_sources,.buildinfo} + + # Move analyzer scripts out of /usr/libexec + mv "$pkgdir"/usr/libexec/{ccc,c++}-analyzer "$pkgdir/usr/lib/clang/" + rmdir "$pkgdir/usr/libexec" + sed -i 's|libexec|lib/clang|' "$pkgdir/usr/bin/scan-build" + + # Install Python bindings + for _py in 2.7 3.8; do +install -d "$pkgdir/usr/lib/python$_py/site-packages" +cp -a ../bindings/python/clang "$pkgdir/usr/lib/python$_py/site-packages/" +_python${_py%%.*}_optimize "$pkgdir/usr/lib/python$_py" + done + + #
[arch-commits] Commit in clang/repos (3 files)
Date: Sunday, December 29, 2019 @ 23:12:00 Author: foutrelis Revision: 372345 archrelease: copy trunk to staging-x86_64 Added: clang/repos/staging-x86_64/ clang/repos/staging-x86_64/PKGBUILD (from rev 372344, clang/trunk/PKGBUILD) clang/repos/staging-x86_64/enable-SSP-and-PIE-by-default.patch (from rev 372344, clang/trunk/enable-SSP-and-PIE-by-default.patch) -+ PKGBUILD| 120 + enable-SSP-and-PIE-by-default.patch | 309 ++ 2 files changed, 429 insertions(+) Copied: clang/repos/staging-x86_64/PKGBUILD (from rev 372344, clang/trunk/PKGBUILD) === --- staging-x86_64/PKGBUILD (rev 0) +++ staging-x86_64/PKGBUILD 2019-12-29 23:12:00 UTC (rev 372345) @@ -0,0 +1,120 @@ +# Maintainer: Evangelos Foutras +# Contributor: Jan "heftig" Steffens + +pkgname=clang +pkgver=9.0.1 +pkgrel=1 +pkgdesc="C language family frontend for LLVM" +arch=('x86_64') +url="https://clang.llvm.org/"; +license=('custom:Apache 2.0 with LLVM Exception') +depends=('llvm-libs' 'gcc' 'compiler-rt') +makedepends=('llvm' 'cmake' 'ninja' 'python-sphinx' 'python2') +optdepends=('openmp: OpenMP support in clang with -fopenmp' +'python: for scan-view and git-clang-format' +'llvm: referenced by some clang headers') +provides=("clang-analyzer=$pkgver" "clang-tools-extra=$pkgver") +conflicts=('clang-analyzer' 'clang-tools-extra') +replaces=('clang-analyzer' 'clang-tools-extra') + +_source_base=https://releases.llvm.org/$pkgver +if [[ ${pkgver##*.} != 0 ]]; then + _source_base=https://github.com/llvm/llvm-project/releases/download/llvmorg-$pkgver +fi + +source=($_source_base/$pkgname-$pkgver.src.tar.xz{,.sig} +$_source_base/clang-tools-extra-$pkgver.src.tar.xz{,.sig} +$_source_base/llvm-$pkgver.src.tar.xz{,.sig} +enable-SSP-and-PIE-by-default.patch) +sha256sums=('5778512b2e065c204010f88777d44b95250671103e434f9dc7363ab2e3804253' +'SKIP' +'b26fd72a78bd7db998a26270ec9ec6a01346651d88fa87b4b323e13049fb6f07' +'SKIP' +'00a1ee1f389f81e9979f3a640a01c431b3021de0d42278f6508391a2f0b81c9a' +'SKIP' +'fde58a4902bec3715bc3d0c9250fa4c5f241af90bfd1e46f7128fa1435c03026') +validpgpkeys+=('B6C8F98282B944E3B0D5C2530FC3042E345AD05D') # Hans Wennborg +validpgpkeys+=('474E22316ABF4785A88C6E8EA2C794A986419D8A') # Tom Stellard + +prepare() { + cd "$srcdir/$pkgname-$pkgver.src" + mkdir build + mv "$srcdir/clang-tools-extra-$pkgver.src" tools/extra + patch -Np1 -i ../enable-SSP-and-PIE-by-default.patch + + # Avoid shipping libclang-cpp before removing BUILD_SHARED_LIBS=ON + sed -i '/add_clang_subdirectory(clang-shlib)/d' tools/CMakeLists.txt +} + +build() { + cd "$srcdir/$pkgname-$pkgver.src/build" + + # Upstream strongly recommends against BUILD_SHARED_LIBS=ON for distro + # builds but CLANG_LINK_CLANG_DYLIB=ON is not yet supported by clang's + # extra tools. Keep building all libraries as shared and revisit this. + + cmake .. -G Ninja \ +-DCMAKE_BUILD_TYPE=Release \ +-DCMAKE_INSTALL_PREFIX=/usr \ +-DPYTHON_EXECUTABLE=/usr/bin/python \ +-DBUILD_SHARED_LIBS=ON \ +-DLLVM_LINK_LLVM_DYLIB=ON \ +-DCLANG_LINK_CLANG_DYLIB=OFF \ +-DLLVM_ENABLE_RTTI=ON \ +-DLLVM_BUILD_TESTS=ON \ +-DLLVM_INCLUDE_DOCS=ON \ +-DLLVM_BUILD_DOCS=ON \ +-DLLVM_ENABLE_SPHINX=ON \ +-DSPHINX_WARNINGS_AS_ERRORS=OFF \ +-DLLVM_EXTERNAL_LIT=/usr/bin/lit \ +-DLLVM_MAIN_SRC_DIR="$srcdir/llvm-$pkgver.src" + ninja +} + +check() { + cd "$srcdir/$pkgname-$pkgver.src/build" + ninja check-clang{,-tools} +} + +_python2_optimize() { + python2 -m compileall "$@" + python2 -O -m compileall "$@" +} + +_python3_optimize() { + python3 -m compileall "$@" + python3 -O -m compileall "$@" + python3 -OO -m compileall "$@" +} + +package() { + cd "$srcdir/$pkgname-$pkgver.src/build" + + DESTDIR="$pkgdir" ninja install + install -Dm644 ../LICENSE.TXT "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + + # Remove documentation sources + rm -r "$pkgdir"/usr/share/doc/clang{,-tools}/html/{_sources,.buildinfo} + + # Move analyzer scripts out of /usr/libexec + mv "$pkgdir"/usr/libexec/{ccc,c++}-analyzer "$pkgdir/usr/lib/clang/" + rmdir "$pkgdir/usr/libexec" + sed -i 's|libexec|lib/clang|' "$pkgdir/usr/bin/scan-build" + + # Install Python bindings + for _py in 2.7 3.8; do +install -d "$pkgdir/usr/lib/python$_py/site-packages" +cp -a ../bindings/python/clang "$pkgdir/usr/lib/python$_py/site-packages/" +_python${_py%%.*}_optimize "$pkgdir/usr/lib/python$_py" + done + + # Fix shebang in Python 2 script + sed -i '1s|/usr/bin/env python$|&2|' \ +"$pkgdir"/usr/share/$pkgname/run-find-all-symbols.py + + # Compile Python scripts + _python2_optimize "$pkgdir/usr/share/clang" + _python3_optimize "$pkgdir/usr/
[arch-commits] Commit in clang/repos (3 files)
Date: Tuesday, March 26, 2019 @ 00:10:34 Author: foutrelis Revision: 349201 archrelease: copy trunk to staging-x86_64 Added: clang/repos/staging-x86_64/ clang/repos/staging-x86_64/PKGBUILD (from rev 349200, clang/trunk/PKGBUILD) clang/repos/staging-x86_64/enable-SSP-and-PIE-by-default.patch (from rev 349200, clang/trunk/enable-SSP-and-PIE-by-default.patch) -+ PKGBUILD| 105 enable-SSP-and-PIE-by-default.patch | 289 ++ 2 files changed, 394 insertions(+) Copied: clang/repos/staging-x86_64/PKGBUILD (from rev 349200, clang/trunk/PKGBUILD) === --- staging-x86_64/PKGBUILD (rev 0) +++ staging-x86_64/PKGBUILD 2019-03-26 00:10:34 UTC (rev 349201) @@ -0,0 +1,105 @@ +# Maintainer: Evangelos Foutras +# Contributor: Jan "heftig" Steffens + +pkgname=clang +pkgver=8.0.0 +pkgrel=1 +pkgdesc="C language family frontend for LLVM" +arch=('x86_64') +url="https://clang.llvm.org/"; +license=('custom:University of Illinois/NCSA Open Source License') +depends=('llvm-libs' 'gcc' 'compiler-rt') +makedepends=('llvm' 'cmake' 'ninja' 'python-sphinx' 'python2') +optdepends=('openmp: OpenMP support in clang with -fopenmp' +'python: for scan-view and git-clang-format') +provides=("clang-analyzer=$pkgver" "clang-tools-extra=$pkgver") +conflicts=('clang-analyzer' 'clang-tools-extra') +replaces=('clang-analyzer' 'clang-tools-extra') +source=(https://releases.llvm.org/$pkgver/cfe-$pkgver.src.tar.xz{,.sig} + https://releases.llvm.org/$pkgver/clang-tools-extra-$pkgver.src.tar.xz{,.sig} +https://releases.llvm.org/$pkgver/llvm-$pkgver.src.tar.xz{,.sig} +enable-SSP-and-PIE-by-default.patch) +sha256sums=('084c115aab0084e63b23eee8c233abb6739c399e29966eaeccfc6e088e0b736b' +'SKIP' +'4f00122be408a7482f2004bcf215720d2b88cf8dc78b824abb225da8ad359d4b' +'SKIP' +'8872be1b12c61450cacc82b3d153eab02be2546ef34fa3580ed14137bb26224c' +'SKIP' +'58f86da25eb230ed6d423b5b61870cbf3bef88f38103ca676a2c7f34b2372171') +validpgpkeys+=('B6C8F98282B944E3B0D5C2530FC3042E345AD05D') # Hans Wennborg +validpgpkeys+=('474E22316ABF4785A88C6E8EA2C794A986419D8A') # Tom Stellard + +prepare() { + cd "$srcdir/cfe-$pkgver.src" + mkdir build + mv "$srcdir/clang-tools-extra-$pkgver.src" tools/extra + patch -Np1 -i ../enable-SSP-and-PIE-by-default.patch +} + +build() { + cd "$srcdir/cfe-$pkgver.src/build" + + cmake .. -G Ninja \ +-DCMAKE_BUILD_TYPE=Release \ +-DCMAKE_INSTALL_PREFIX=/usr \ +-DPYTHON_EXECUTABLE=/usr/bin/python \ +-DBUILD_SHARED_LIBS=ON \ +-DLLVM_LINK_LLVM_DYLIB=ON \ +-DLLVM_ENABLE_RTTI=ON \ +-DLLVM_BUILD_TESTS=ON \ +-DLLVM_INCLUDE_DOCS=ON \ +-DLLVM_BUILD_DOCS=ON \ +-DLLVM_ENABLE_SPHINX=ON \ +-DSPHINX_WARNINGS_AS_ERRORS=OFF \ +-DLLVM_EXTERNAL_LIT=/usr/bin/lit \ +-DLLVM_MAIN_SRC_DIR="$srcdir/llvm-$pkgver.src" + ninja +} + +check() { + cd "$srcdir/cfe-$pkgver.src/build" + ninja check-clang{,-tools} +} + +_python2_optimize() { + python2 -m compileall "$@" + python2 -O -m compileall "$@" +} + +_python3_optimize() { + python3 -m compileall "$@" + python3 -O -m compileall "$@" + python3 -OO -m compileall "$@" +} + +package() { + cd "$srcdir/cfe-$pkgver.src/build" + + DESTDIR="$pkgdir" ninja install + install -Dm644 ../LICENSE.TXT "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + + # Remove documentation sources + rm -r "$pkgdir"/usr/share/doc/clang{,-tools}/html/{_sources,.buildinfo} + + # Move analyzer scripts out of /usr/libexec + mv "$pkgdir"/usr/libexec/{ccc,c++}-analyzer "$pkgdir/usr/lib/clang/" + rmdir "$pkgdir/usr/libexec" + sed -i 's|libexec|lib/clang|' "$pkgdir/usr/bin/scan-build" + + # Install Python bindings + for _py in 2.7 3.7; do +install -d "$pkgdir/usr/lib/python$_py/site-packages" +cp -a ../bindings/python/clang "$pkgdir/usr/lib/python$_py/site-packages/" +_python${_py%%.*}_optimize "$pkgdir/usr/lib/python$_py" + done + + # Fix shebang in Python 2 script + sed -i '1s|/usr/bin/env python$|&2|' \ +"$pkgdir"/usr/share/$pkgname/run-find-all-symbols.py + + # Compile Python scripts + _python2_optimize "$pkgdir/usr/share/clang" + _python3_optimize "$pkgdir/usr/share" -x 'clang-include-fixer|run-find-all-symbols' +} + +# vim:set ts=2 sw=2 et: Copied: clang/repos/staging-x86_64/enable-SSP-and-PIE-by-default.patch (from rev 349200, clang/trunk/enable-SSP-and-PIE-by-default.patch) === --- staging-x86_64/enable-SSP-and-PIE-by-default.patch (rev 0) +++ staging-x86_64/enable-SSP-and-PIE-by-default.patch 2019-03-26 00:10:34 UTC (rev 349201) @@ -0,0 +1,289 @@ +From a076711d030ca5777465dab9f11c0639478a5cc8 Mon Sep 17 00:00:00 2001 +From: Evangelos Foutr
[arch-commits] Commit in clang/repos (3 files)
Date: Sunday, December 16, 2018 @ 15:33:40 Author: foutrelis Revision: 342400 archrelease: copy trunk to staging-x86_64 Added: clang/repos/staging-x86_64/ clang/repos/staging-x86_64/PKGBUILD (from rev 342399, clang/trunk/PKGBUILD) clang/repos/staging-x86_64/enable-SSP-and-PIE-by-default.patch (from rev 342399, clang/trunk/enable-SSP-and-PIE-by-default.patch) -+ PKGBUILD| 106 enable-SSP-and-PIE-by-default.patch | 284 ++ 2 files changed, 390 insertions(+) Copied: clang/repos/staging-x86_64/PKGBUILD (from rev 342399, clang/trunk/PKGBUILD) === --- staging-x86_64/PKGBUILD (rev 0) +++ staging-x86_64/PKGBUILD 2018-12-16 15:33:40 UTC (rev 342400) @@ -0,0 +1,106 @@ +# Maintainer: Evangelos Foutras +# Contributor: Jan "heftig" Steffens + +pkgname=clang +pkgver=7.0.1 +pkgrel=1 +pkgdesc="C language family frontend for LLVM" +arch=('x86_64') +url="https://clang.llvm.org/"; +license=('custom:University of Illinois/NCSA Open Source License') +depends=('llvm-libs' 'gcc' 'compiler-rt') +makedepends=('llvm' 'cmake' 'ninja' 'python-sphinx' 'python2') +optdepends=('openmp: OpenMP support in clang with -fopenmp' +'python: for git-clang-format' +'python2: for scan-view') +provides=("clang-analyzer=$pkgver" "clang-tools-extra=$pkgver") +conflicts=('clang-analyzer' 'clang-tools-extra') +replaces=('clang-analyzer' 'clang-tools-extra') +source=(https://releases.llvm.org/$pkgver/cfe-$pkgver.src.tar.xz{,.sig} + https://releases.llvm.org/$pkgver/clang-tools-extra-$pkgver.src.tar.xz{,.sig} +https://releases.llvm.org/$pkgver/llvm-$pkgver.src.tar.xz{,.sig} +enable-SSP-and-PIE-by-default.patch) +sha256sums=('a45b62dde5d7d5fdcdfa876b0af92f164d434b06e9e89b5d0b1cbc65dfe3f418' +'SKIP' +'4c93c7d2bb07923a8b272da3ef7914438080aeb693725f4fc5c19cd0e2613bed' +'SKIP' +'a38dfc4db47102ec79dcc2aa61e93722c5f6f06f0a961073bd84b78fb949419b' +'SKIP' +'8dd3938afb93a051acf69373f7a4e1eb7cf9dd28d8e334c98d30a531d4af0181') +validpgpkeys+=('B6C8F98282B944E3B0D5C2530FC3042E345AD05D') # Hans Wennborg +validpgpkeys+=('474E22316ABF4785A88C6E8EA2C794A986419D8A') # Tom Stellard + +prepare() { + cd "$srcdir/cfe-$pkgver.src" + mkdir build + mv "$srcdir/clang-tools-extra-$pkgver.src" tools/extra + patch -Np1 -i ../enable-SSP-and-PIE-by-default.patch +} + +build() { + cd "$srcdir/cfe-$pkgver.src/build" + + cmake .. -G Ninja \ +-DCMAKE_BUILD_TYPE=Release \ +-DCMAKE_INSTALL_PREFIX=/usr \ +-DPYTHON_EXECUTABLE=/usr/bin/python \ +-DBUILD_SHARED_LIBS=ON \ +-DLLVM_LINK_LLVM_DYLIB=ON \ +-DLLVM_ENABLE_RTTI=ON \ +-DLLVM_BUILD_TESTS=ON \ +-DLLVM_INCLUDE_DOCS=ON \ +-DLLVM_BUILD_DOCS=ON \ +-DLLVM_ENABLE_SPHINX=ON \ +-DSPHINX_WARNINGS_AS_ERRORS=OFF \ +-DLLVM_EXTERNAL_LIT=/usr/bin/lit \ +-DLLVM_MAIN_SRC_DIR="$srcdir/llvm-$pkgver.src" + ninja +} + +check() { + cd "$srcdir/cfe-$pkgver.src/build" + ninja check-clang{,-tools} +} + +_python2_optimize() { + python2 -m compileall "$@" + python2 -O -m compileall "$@" +} + +_python3_optimize() { + python3 -m compileall "$@" + python3 -O -m compileall "$@" + python3 -OO -m compileall "$@" +} + +package() { + cd "$srcdir/cfe-$pkgver.src/build" + + DESTDIR="$pkgdir" ninja install + install -Dm644 ../LICENSE.TXT "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + + # Remove documentation sources + rm -r "$pkgdir"/usr/share/doc/clang{,-tools}/html/{_sources,.buildinfo} + + # Move analyzer scripts out of /usr/libexec + mv "$pkgdir"/usr/libexec/{ccc,c++}-analyzer "$pkgdir/usr/lib/clang/" + rmdir "$pkgdir/usr/libexec" + sed -i 's|libexec|lib/clang|' "$pkgdir/usr/bin/scan-build" + + # Install Python bindings + for _py in 2.7 3.7; do +install -d "$pkgdir/usr/lib/python$_py/site-packages" +cp -a ../bindings/python/clang "$pkgdir/usr/lib/python$_py/site-packages/" +_python${_py%%.*}_optimize "$pkgdir/usr/lib/python$_py" + done + + # Fix shebang in Python 2 scripts + sed -i '1s|/usr/bin/env python$|&2|' \ +"$pkgdir/usr/bin/scan-view" \ +"$pkgdir"/usr/share/$pkgname/*.py + + # Compile Python scripts + _python2_optimize "$pkgdir/usr/share" +} + +# vim:set ts=2 sw=2 et: Copied: clang/repos/staging-x86_64/enable-SSP-and-PIE-by-default.patch (from rev 342399, clang/trunk/enable-SSP-and-PIE-by-default.patch) === --- staging-x86_64/enable-SSP-and-PIE-by-default.patch (rev 0) +++ staging-x86_64/enable-SSP-and-PIE-by-default.patch 2018-12-16 15:33:40 UTC (rev 342400) @@ -0,0 +1,284 @@ +From ece245fe717765630790da501a3d64f5c09a1e09 Mon Sep 17 00:00:00 2001 +From: Evangelos Foutras +Date: Thu, 20 Sep 2018 06:20:28 +0300 +Subject
[arch-commits] Commit in clang/repos (3 files)
Date: Thursday, September 20, 2018 @ 03:32:32 Author: foutrelis Revision: 335056 archrelease: copy trunk to staging-x86_64 Added: clang/repos/staging-x86_64/ clang/repos/staging-x86_64/PKGBUILD (from rev 335055, clang/trunk/PKGBUILD) clang/repos/staging-x86_64/enable-SSP-and-PIE-by-default.patch (from rev 335055, clang/trunk/enable-SSP-and-PIE-by-default.patch) -+ PKGBUILD| 106 enable-SSP-and-PIE-by-default.patch | 284 ++ 2 files changed, 390 insertions(+) Copied: clang/repos/staging-x86_64/PKGBUILD (from rev 335055, clang/trunk/PKGBUILD) === --- staging-x86_64/PKGBUILD (rev 0) +++ staging-x86_64/PKGBUILD 2018-09-20 03:32:32 UTC (rev 335056) @@ -0,0 +1,106 @@ +# Maintainer: Evangelos Foutras +# Contributor: Jan "heftig" Steffens + +pkgname=clang +pkgver=7.0.0 +pkgrel=1 +pkgdesc="C language family frontend for LLVM" +arch=('x86_64') +url="https://clang.llvm.org/"; +license=('custom:University of Illinois/NCSA Open Source License') +depends=('llvm-libs' 'gcc' 'compiler-rt') +makedepends=('llvm' 'cmake' 'ninja' 'python-sphinx' 'python2') +optdepends=('openmp: OpenMP support in clang with -fopenmp' +'python: for git-clang-format' +'python2: for scan-view') +provides=("clang-analyzer=$pkgver" "clang-tools-extra=$pkgver") +conflicts=('clang-analyzer' 'clang-tools-extra') +replaces=('clang-analyzer' 'clang-tools-extra') +source=(https://releases.llvm.org/$pkgver/cfe-$pkgver.src.tar.xz{,.sig} + https://releases.llvm.org/$pkgver/clang-tools-extra-$pkgver.src.tar.xz{,.sig} +https://releases.llvm.org/$pkgver/llvm-$pkgver.src.tar.xz{,.sig} +enable-SSP-and-PIE-by-default.patch) +sha256sums=('550212711c752697d2f82c648714a7221b1207fd9441543ff4aa9e3be45bba55' +'SKIP' +'937c5a8c8c43bc185e4805144744799e524059cac877a44d9063926cd7a19dbe' +'SKIP' +'8bc1f844e6cbde1b652c19c1edebc1864456fd9c78b8c1bea038e51b363fe222' +'SKIP' +'8dd3938afb93a051acf69373f7a4e1eb7cf9dd28d8e334c98d30a531d4af0181') +validpgpkeys+=('B6C8F98282B944E3B0D5C2530FC3042E345AD05D') # Hans Wennborg +validpgpkeys+=('474E22316ABF4785A88C6E8EA2C794A986419D8A') # Tom Stellard + +prepare() { + cd "$srcdir/cfe-$pkgver.src" + mkdir build + mv "$srcdir/clang-tools-extra-$pkgver.src" tools/extra + patch -Np1 -i ../enable-SSP-and-PIE-by-default.patch +} + +build() { + cd "$srcdir/cfe-$pkgver.src/build" + + cmake .. -G Ninja \ +-DCMAKE_BUILD_TYPE=Release \ +-DCMAKE_INSTALL_PREFIX=/usr \ +-DPYTHON_EXECUTABLE=/usr/bin/python \ +-DBUILD_SHARED_LIBS=ON \ +-DLLVM_LINK_LLVM_DYLIB=ON \ +-DLLVM_ENABLE_RTTI=ON \ +-DLLVM_BUILD_TESTS=ON \ +-DLLVM_INCLUDE_DOCS=ON \ +-DLLVM_BUILD_DOCS=ON \ +-DLLVM_ENABLE_SPHINX=ON \ +-DSPHINX_WARNINGS_AS_ERRORS=OFF \ +-DLLVM_EXTERNAL_LIT=/usr/bin/lit \ +-DLLVM_MAIN_SRC_DIR="$srcdir/llvm-$pkgver.src" + ninja +} + +check() { + cd "$srcdir/cfe-$pkgver.src/build" + ninja check-clang{,-tools} +} + +_python2_optimize() { + python2 -m compileall "$@" + python2 -O -m compileall "$@" +} + +_python3_optimize() { + python3 -m compileall "$@" + python3 -O -m compileall "$@" + python3 -OO -m compileall "$@" +} + +package() { + cd "$srcdir/cfe-$pkgver.src/build" + + DESTDIR="$pkgdir" ninja install + install -Dm644 ../LICENSE.TXT "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + + # Remove documentation sources + rm -r "$pkgdir"/usr/share/doc/clang{,-tools}/html/{_sources,.buildinfo} + + # Move analyzer scripts out of /usr/libexec + mv "$pkgdir"/usr/libexec/{ccc,c++}-analyzer "$pkgdir/usr/lib/clang/" + rmdir "$pkgdir/usr/libexec" + sed -i 's|libexec|lib/clang|' "$pkgdir/usr/bin/scan-build" + + # Install Python bindings + for _py in 2.7 3.7; do +install -d "$pkgdir/usr/lib/python$_py/site-packages" +cp -a ../bindings/python/clang "$pkgdir/usr/lib/python$_py/site-packages/" +_python${_py%%.*}_optimize "$pkgdir/usr/lib/python$_py" + done + + # Fix shebang in Python 2 scripts + sed -i '1s|/usr/bin/env python$|&2|' \ +"$pkgdir/usr/bin/scan-view" \ +"$pkgdir"/usr/share/$pkgname/*.py + + # Compile Python scripts + _python2_optimize "$pkgdir/usr/share" +} + +# vim:set ts=2 sw=2 et: Copied: clang/repos/staging-x86_64/enable-SSP-and-PIE-by-default.patch (from rev 335055, clang/trunk/enable-SSP-and-PIE-by-default.patch) === --- staging-x86_64/enable-SSP-and-PIE-by-default.patch (rev 0) +++ staging-x86_64/enable-SSP-and-PIE-by-default.patch 2018-09-20 03:32:32 UTC (rev 335056) @@ -0,0 +1,284 @@ +From ece245fe717765630790da501a3d64f5c09a1e09 Mon Sep 17 00:00:00 2001 +From: Evangelos Foutras +Date: Thu, 20 Sep 2018 06:20:28 +0300 +Subj
[arch-commits] Commit in clang/repos (3 files)
Date: Friday, July 13, 2018 @ 20:38:17 Author: foutrelis Revision: 328561 archrelease: copy trunk to staging-x86_64 Added: clang/repos/staging-x86_64/ clang/repos/staging-x86_64/PKGBUILD (from rev 328560, clang/trunk/PKGBUILD) clang/repos/staging-x86_64/enable-SSP-and-PIE-by-default.patch (from rev 328560, clang/trunk/enable-SSP-and-PIE-by-default.patch) -+ PKGBUILD| 107 ++ enable-SSP-and-PIE-by-default.patch | 257 ++ 2 files changed, 364 insertions(+) Copied: clang/repos/staging-x86_64/PKGBUILD (from rev 328560, clang/trunk/PKGBUILD) === --- staging-x86_64/PKGBUILD (rev 0) +++ staging-x86_64/PKGBUILD 2018-07-13 20:38:17 UTC (rev 328561) @@ -0,0 +1,107 @@ +# $Id$ +# Maintainer: Evangelos Foutras +# Contributor: Jan "heftig" Steffens + +pkgname=clang +pkgver=6.0.1 +pkgrel=2 +pkgdesc="C language family frontend for LLVM" +arch=('x86_64') +url="https://clang.llvm.org/"; +license=('custom:University of Illinois/NCSA Open Source License') +depends=('llvm-libs' 'gcc' 'compiler-rt') +makedepends=('llvm' 'cmake' 'ninja' 'python-sphinx' 'python2') +optdepends=('openmp: OpenMP support in clang with -fopenmp' +'python: for git-clang-format' +'python2: for scan-view') +provides=("clang-analyzer=$pkgver" "clang-tools-extra=$pkgver") +conflicts=('clang-analyzer' 'clang-tools-extra') +replaces=('clang-analyzer' 'clang-tools-extra') +source=(https://releases.llvm.org/$pkgver/cfe-$pkgver.src.tar.xz{,.sig} + https://releases.llvm.org/$pkgver/clang-tools-extra-$pkgver.src.tar.xz{,.sig} +https://releases.llvm.org/$pkgver/llvm-$pkgver.src.tar.xz{,.sig} +enable-SSP-and-PIE-by-default.patch) +sha256sums=('7c243f1485bddfdfedada3cd402ff4792ea82362ff91fbdac2dae67c6026b667' +'SKIP' +'0d2e3727786437574835b75135f9e36f861932a958d8547ced7e13ebdda115f1' +'SKIP' +'b6d6c324f9c71494c0ccaf3dac1f16236d970002b42bb24a6c9e1634f7d0f4e2' +'SKIP' +'28d38b7f4bcaa0c974f8c48d732a0db309ea89ffa901c39de90725ae857946c1') +validpgpkeys+=('B6C8F98282B944E3B0D5C2530FC3042E345AD05D') # Hans Wennborg +validpgpkeys+=('474E22316ABF4785A88C6E8EA2C794A986419D8A') # Tom Stellard + +prepare() { + cd "$srcdir/cfe-$pkgver.src" + mkdir build + mv "$srcdir/clang-tools-extra-$pkgver.src" tools/extra + patch -Np1 -i ../enable-SSP-and-PIE-by-default.patch +} + +build() { + cd "$srcdir/cfe-$pkgver.src/build" + + cmake .. -G Ninja \ +-DCMAKE_BUILD_TYPE=Release \ +-DCMAKE_INSTALL_PREFIX=/usr \ +-DPYTHON_EXECUTABLE=/usr/bin/python \ +-DBUILD_SHARED_LIBS=ON \ +-DLLVM_LINK_LLVM_DYLIB=ON \ +-DLLVM_ENABLE_RTTI=ON \ +-DLLVM_BUILD_TESTS=ON \ +-DLLVM_INCLUDE_DOCS=ON \ +-DLLVM_BUILD_DOCS=ON \ +-DLLVM_ENABLE_SPHINX=ON \ +-DSPHINX_WARNINGS_AS_ERRORS=OFF \ +-DLLVM_EXTERNAL_LIT=/usr/bin/lit \ +-DLLVM_MAIN_SRC_DIR="$srcdir/llvm-$pkgver.src" + ninja +} + +check() { + cd "$srcdir/cfe-$pkgver.src/build" + ninja check-clang{,-tools} +} + +_python2_optimize() { + python2 -m compileall "$@" + python2 -O -m compileall "$@" +} + +_python3_optimize() { + python3 -m compileall "$@" + python3 -O -m compileall "$@" + python3 -OO -m compileall "$@" +} + +package() { + cd "$srcdir/cfe-$pkgver.src/build" + + DESTDIR="$pkgdir" ninja install + install -Dm644 ../LICENSE.TXT "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + + # Remove documentation sources + rm -r "$pkgdir"/usr/share/doc/clang{,-tools}/html/{_sources,.buildinfo} + + # Move analyzer scripts out of /usr/libexec + mv "$pkgdir"/usr/libexec/{ccc,c++}-analyzer "$pkgdir/usr/lib/clang/" + rmdir "$pkgdir/usr/libexec" + sed -i 's|libexec|lib/clang|' "$pkgdir/usr/bin/scan-build" + + # Install Python bindings + for _py in 2.7 3.7; do +install -d "$pkgdir/usr/lib/python$_py/site-packages" +cp -a ../bindings/python/clang "$pkgdir/usr/lib/python$_py/site-packages/" +_python${_py%%.*}_optimize "$pkgdir/usr/lib/python$_py" + done + + # Fix shebang in Python 2 scripts + sed -i '1s|/usr/bin/env python$|&2|' \ +"$pkgdir/usr/bin/scan-view" \ +"$pkgdir"/usr/share/$pkgname/*.py + + # Compile Python scripts + _python2_optimize "$pkgdir/usr/share" +} + +# vim:set ts=2 sw=2 et: Copied: clang/repos/staging-x86_64/enable-SSP-and-PIE-by-default.patch (from rev 328560, clang/trunk/enable-SSP-and-PIE-by-default.patch) === --- staging-x86_64/enable-SSP-and-PIE-by-default.patch (rev 0) +++ staging-x86_64/enable-SSP-and-PIE-by-default.patch 2018-07-13 20:38:17 UTC (rev 328561) @@ -0,0 +1,257 @@ +From b0307536e769c8ce11dbfa1956d617e8fc9366a7 Mon Sep 17 00:00:00 2001 +From: Evangelos Foutras +Date: Thu, 8 Mar 2018 18:38:53 +0200 +Su
[arch-commits] Commit in clang/repos (3 files)
Date: Sunday, July 8, 2018 @ 16:59:54 Author: foutrelis Revision: 328097 archrelease: copy trunk to testing-x86_64 Added: clang/repos/testing-x86_64/ clang/repos/testing-x86_64/PKGBUILD (from rev 328096, clang/trunk/PKGBUILD) clang/repos/testing-x86_64/enable-SSP-and-PIE-by-default.patch (from rev 328096, clang/trunk/enable-SSP-and-PIE-by-default.patch) -+ PKGBUILD| 107 ++ enable-SSP-and-PIE-by-default.patch | 257 ++ 2 files changed, 364 insertions(+) Copied: clang/repos/testing-x86_64/PKGBUILD (from rev 328096, clang/trunk/PKGBUILD) === --- testing-x86_64/PKGBUILD (rev 0) +++ testing-x86_64/PKGBUILD 2018-07-08 16:59:54 UTC (rev 328097) @@ -0,0 +1,107 @@ +# $Id$ +# Maintainer: Evangelos Foutras +# Contributor: Jan "heftig" Steffens + +pkgname=clang +pkgver=6.0.1 +pkgrel=1 +pkgdesc="C language family frontend for LLVM" +arch=('x86_64') +url="https://clang.llvm.org/"; +license=('custom:University of Illinois/NCSA Open Source License') +depends=('llvm-libs' 'gcc' 'compiler-rt') +makedepends=('llvm' 'cmake' 'ninja' 'python-sphinx' 'python2') +optdepends=('openmp: OpenMP support in clang with -fopenmp' +'python: for git-clang-format' +'python2: for scan-view') +provides=("clang-analyzer=$pkgver" "clang-tools-extra=$pkgver") +conflicts=('clang-analyzer' 'clang-tools-extra') +replaces=('clang-analyzer' 'clang-tools-extra') +source=(https://releases.llvm.org/$pkgver/cfe-$pkgver.src.tar.xz{,.sig} + https://releases.llvm.org/$pkgver/clang-tools-extra-$pkgver.src.tar.xz{,.sig} +https://releases.llvm.org/$pkgver/llvm-$pkgver.src.tar.xz{,.sig} +enable-SSP-and-PIE-by-default.patch) +sha256sums=('7c243f1485bddfdfedada3cd402ff4792ea82362ff91fbdac2dae67c6026b667' +'SKIP' +'0d2e3727786437574835b75135f9e36f861932a958d8547ced7e13ebdda115f1' +'SKIP' +'b6d6c324f9c71494c0ccaf3dac1f16236d970002b42bb24a6c9e1634f7d0f4e2' +'SKIP' +'28d38b7f4bcaa0c974f8c48d732a0db309ea89ffa901c39de90725ae857946c1') +validpgpkeys+=('B6C8F98282B944E3B0D5C2530FC3042E345AD05D') # Hans Wennborg +validpgpkeys+=('474E22316ABF4785A88C6E8EA2C794A986419D8A') # Tom Stellard + +prepare() { + cd "$srcdir/cfe-$pkgver.src" + mkdir build + mv "$srcdir/clang-tools-extra-$pkgver.src" tools/extra + patch -Np1 -i ../enable-SSP-and-PIE-by-default.patch +} + +build() { + cd "$srcdir/cfe-$pkgver.src/build" + + cmake .. -G Ninja \ +-DCMAKE_BUILD_TYPE=Release \ +-DCMAKE_INSTALL_PREFIX=/usr \ +-DPYTHON_EXECUTABLE=/usr/bin/python \ +-DBUILD_SHARED_LIBS=ON \ +-DLLVM_LINK_LLVM_DYLIB=ON \ +-DLLVM_ENABLE_RTTI=ON \ +-DLLVM_BUILD_TESTS=ON \ +-DLLVM_INCLUDE_DOCS=ON \ +-DLLVM_BUILD_DOCS=ON \ +-DLLVM_ENABLE_SPHINX=ON \ +-DSPHINX_WARNINGS_AS_ERRORS=OFF \ +-DLLVM_EXTERNAL_LIT=/usr/bin/lit \ +-DLLVM_MAIN_SRC_DIR="$srcdir/llvm-$pkgver.src" + ninja +} + +check() { + cd "$srcdir/cfe-$pkgver.src/build" + ninja check-clang{,-tools} +} + +_python2_optimize() { + python2 -m compileall "$@" + python2 -O -m compileall "$@" +} + +_python3_optimize() { + python3 -m compileall "$@" + python3 -O -m compileall "$@" + python3 -OO -m compileall "$@" +} + +package() { + cd "$srcdir/cfe-$pkgver.src/build" + + DESTDIR="$pkgdir" ninja install + install -Dm644 ../LICENSE.TXT "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + + # Remove documentation sources + rm -r "$pkgdir"/usr/share/doc/clang{,-tools}/html/{_sources,.buildinfo} + + # Move analyzer scripts out of /usr/libexec + mv "$pkgdir"/usr/libexec/{ccc,c++}-analyzer "$pkgdir/usr/lib/clang/" + rmdir "$pkgdir/usr/libexec" + sed -i 's|libexec|lib/clang|' "$pkgdir/usr/bin/scan-build" + + # Install Python bindings + for _py in 2.7 3.6; do +install -d "$pkgdir/usr/lib/python$_py/site-packages" +cp -a ../bindings/python/clang "$pkgdir/usr/lib/python$_py/site-packages/" +_python${_py%%.*}_optimize "$pkgdir/usr/lib/python$_py" + done + + # Fix shebang in Python 2 scripts + sed -i '1s|/usr/bin/env python$|&2|' \ +"$pkgdir/usr/bin/scan-view" \ +"$pkgdir"/usr/share/$pkgname/*.py + + # Compile Python scripts + _python2_optimize "$pkgdir/usr/share" +} + +# vim:set ts=2 sw=2 et: Copied: clang/repos/testing-x86_64/enable-SSP-and-PIE-by-default.patch (from rev 328096, clang/trunk/enable-SSP-and-PIE-by-default.patch) === --- testing-x86_64/enable-SSP-and-PIE-by-default.patch (rev 0) +++ testing-x86_64/enable-SSP-and-PIE-by-default.patch 2018-07-08 16:59:54 UTC (rev 328097) @@ -0,0 +1,257 @@ +From b0307536e769c8ce11dbfa1956d617e8fc9366a7 Mon Sep 17 00:00:00 2001 +From: Evangelos Foutras +Date: Thu, 8 Mar 2018 18:38:53 +0200 +Sub
[arch-commits] Commit in clang/repos (3 files)
Date: Friday, March 9, 2018 @ 22:19:29 Author: foutrelis Revision: 318373 archrelease: copy trunk to staging-x86_64 Added: clang/repos/staging-x86_64/ clang/repos/staging-x86_64/PKGBUILD (from rev 318372, clang/trunk/PKGBUILD) clang/repos/staging-x86_64/enable-SSP-and-PIE-by-default.patch (from rev 318372, clang/trunk/enable-SSP-and-PIE-by-default.patch) -+ PKGBUILD| 107 ++ enable-SSP-and-PIE-by-default.patch | 257 ++ 2 files changed, 364 insertions(+) Copied: clang/repos/staging-x86_64/PKGBUILD (from rev 318372, clang/trunk/PKGBUILD) === --- staging-x86_64/PKGBUILD (rev 0) +++ staging-x86_64/PKGBUILD 2018-03-09 22:19:29 UTC (rev 318373) @@ -0,0 +1,107 @@ +# $Id$ +# Maintainer: Evangelos Foutras +# Contributor: Jan "heftig" Steffens + +pkgname=clang +pkgver=6.0.0 +pkgrel=1 +pkgdesc="C language family frontend for LLVM" +arch=('x86_64') +url="https://clang.llvm.org/"; +license=('custom:University of Illinois/NCSA Open Source License') +depends=('llvm-libs' 'gcc' 'compiler-rt') +makedepends=('llvm' 'cmake' 'ninja' 'python-sphinx' 'python2') +optdepends=('openmp: OpenMP support in clang with -fopenmp' +'python: for git-clang-format' +'python2: for scan-view') +provides=("clang-analyzer=$pkgver" "clang-tools-extra=$pkgver") +conflicts=('clang-analyzer' 'clang-tools-extra') +replaces=('clang-analyzer' 'clang-tools-extra') +source=(https://releases.llvm.org/$pkgver/cfe-$pkgver.src.tar.xz{,.sig} + https://releases.llvm.org/$pkgver/clang-tools-extra-$pkgver.src.tar.xz{,.sig} +https://releases.llvm.org/$pkgver/llvm-$pkgver.src.tar.xz{,.sig} +enable-SSP-and-PIE-by-default.patch) +sha256sums=('e07d6dd8d9ef196cfc8e8bb131cbd6a2ed0b1caf1715f9d05b0f0eeaddb6df32' +'SKIP' +'053b424a4cd34c9335d8918734dd802a8da612d13a26bbb88fcdf524b2d989d2' +'SKIP' +'1ff53c915b4e761ef400b803f07261ade637b0c269d99569f18040f3dcee4408' +'SKIP' +'28d38b7f4bcaa0c974f8c48d732a0db309ea89ffa901c39de90725ae857946c1') +validpgpkeys+=('B6C8F98282B944E3B0D5C2530FC3042E345AD05D') # Hans Wennborg +validpgpkeys+=('11E521D646982372EB577A1F8F0871F202119294') # Tom Stellard + +prepare() { + cd "$srcdir/cfe-$pkgver.src" + mkdir build + mv "$srcdir/clang-tools-extra-$pkgver.src" tools/extra + patch -Np1 -i ../enable-SSP-and-PIE-by-default.patch +} + +build() { + cd "$srcdir/cfe-$pkgver.src/build" + + cmake .. -G Ninja \ +-DCMAKE_BUILD_TYPE=Release \ +-DCMAKE_INSTALL_PREFIX=/usr \ +-DPYTHON_EXECUTABLE=/usr/bin/python \ +-DBUILD_SHARED_LIBS=ON \ +-DLLVM_LINK_LLVM_DYLIB=ON \ +-DLLVM_ENABLE_RTTI=ON \ +-DLLVM_BUILD_TESTS=ON \ +-DLLVM_INCLUDE_DOCS=ON \ +-DLLVM_BUILD_DOCS=ON \ +-DLLVM_ENABLE_SPHINX=ON \ +-DSPHINX_WARNINGS_AS_ERRORS=OFF \ +-DLLVM_EXTERNAL_LIT=/usr/bin/lit \ +-DLLVM_MAIN_SRC_DIR="$srcdir/llvm-$pkgver.src" + ninja +} + +check() { + cd "$srcdir/cfe-$pkgver.src/build" + ninja check-clang{,-tools} +} + +_python2_optimize() { + python2 -m compileall "$@" + python2 -O -m compileall "$@" +} + +_python3_optimize() { + python3 -m compileall "$@" + python3 -O -m compileall "$@" + python3 -OO -m compileall "$@" +} + +package() { + cd "$srcdir/cfe-$pkgver.src/build" + + DESTDIR="$pkgdir" ninja install + install -Dm644 ../LICENSE.TXT "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + + # Remove documentation sources + rm -r "$pkgdir"/usr/share/doc/clang{,-tools}/html/{_sources,.buildinfo} + + # Move analyzer scripts out of /usr/libexec + mv "$pkgdir"/usr/libexec/{ccc,c++}-analyzer "$pkgdir/usr/lib/clang/" + rmdir "$pkgdir/usr/libexec" + sed -i 's|libexec|lib/clang|' "$pkgdir/usr/bin/scan-build" + + # Install Python bindings + for _py in 2.7 3.6; do +install -d "$pkgdir/usr/lib/python$_py/site-packages" +cp -a ../bindings/python/clang "$pkgdir/usr/lib/python$_py/site-packages/" +_python${_py%%.*}_optimize "$pkgdir/usr/lib/python$_py" + done + + # Fix shebang in Python 2 scripts + sed -i '1s|/usr/bin/env python$|&2|' \ +"$pkgdir/usr/bin/scan-view" \ +"$pkgdir"/usr/share/$pkgname/*.py + + # Compile Python scripts + _python2_optimize "$pkgdir/usr/share" +} + +# vim:set ts=2 sw=2 et: Copied: clang/repos/staging-x86_64/enable-SSP-and-PIE-by-default.patch (from rev 318372, clang/trunk/enable-SSP-and-PIE-by-default.patch) === --- staging-x86_64/enable-SSP-and-PIE-by-default.patch (rev 0) +++ staging-x86_64/enable-SSP-and-PIE-by-default.patch 2018-03-09 22:19:29 UTC (rev 318373) @@ -0,0 +1,257 @@ +From b0307536e769c8ce11dbfa1956d617e8fc9366a7 Mon Sep 17 00:00:00 2001 +From: Evangelos Foutras +Date: Thu, 8 Mar 2018 18:38:53 +0200 +Su