you shout also add these lines in the PKGBUILD like mention in the patch
The python and runtime libraries go into clang-libs
mv -f "$pkgdir"/usr/lib/libclang{,-cpp}.so* "$srcdir"
mv -f "$pkgdir"/usr/lib/{libear,libscanbuild} "$srcdir"
mv -f "$pkgdir"/usr/libexec "$srcdir"
mv -f "$pkgdir"/usr/bin/scan-build "$srcdir"
package_clang-libs() {
depends=('llvm-libs')
optdepends=('python: for the python bindings')
cd "$srcdir/$pkgbase-$pkgver.src/build"
# Move in libraries ejected at end of package_clang
install -d "$pkgdir/usr/lib"
install -d "$pkgdir/usr/lib/clang"
install -d "$pkgdir/usr/bin"
cp -a "$srcdir"/libclang{,-cpp}.so* "$pkgdir/usr/lib"
# These three moved again below, but keeping those blocks untouched for cleaner merges with upstream monopackage.
cp -a "$srcdir"/{libear,libscanbuild} "$pkgdir/usr/lib"
cp -av "$srcdir"/libexec "$pkgdir"/usr/
cp -av "$srcdir"/scan-build "$pkgdir"/usr/bin/
Also maybe spliting clang into its hown package and make a hard depend on clang-libs ?
Like in this patch https://bugs.archlinux.org/task/72588?getfile=21109 ?
Pinned Comments
Lone_Wolf commented on 2022-11-02 11:39 (UTC)
During building you may encounter lots of coredumps, slowing build down or even dramatically reducing the responsiveness of your system.
See https://wiki.archlinux.org/title/Core_dump for solutions/workarounds .
Lone_Wolf commented on 2020-08-22 12:30 (UTC) (edited on 2020-08-22 12:31 (UTC) by Lone_Wolf)
Archlinux currently has 3 llvm git implementations
this package
llvm-git
packages created & maintained by Lordheavy, an arch developer
Lone_Wolf commented on 2019-08-25 12:39 (UTC) (edited on 2021-01-30 21:15 (UTC) by Lone_Wolf)
Why does this package exist ?
Llvm & aur llvm-git are intended to provide a full development environment of llvm/clang suite that can replace eachother completely (aur llvm-git adds some xtra functionality)
llvm-minimal-git is a stripped-down llvm trunk build with these goals :
Some of the things that are stripped out :
Maintainers (and users) should only depend on llvm-miminal-git after verifying it satisfies what they need.
Lone_Wolf commented on 2019-08-21 13:51 (UTC) (edited on 2024-02-24 20:50 (UTC) by Lone_Wolf)
When building this you are likely to see test failures in terminal output / logs.
The command used for the tests has been changed to continue regardless of failures. Incase you don't want to run the tests you can use --nocheck option of makepkg.