Package Details: autodiff 1.1.2-1

Git Clone URL: https://aur.archlinux.org/autodiff.git (read-only, click to copy)
Package Base: autodiff
Description: Automatic differentiation made easier for C++
Upstream URL: https://github.com/autodiff/autodiff
Licenses: MIT
Submitter: lmartinez-mirror
Maintainer: carlosal1015
Last Packager: carlosal1015
Votes: 1
Popularity: 0.000000
First Submitted: 2021-07-30 17:03 (UTC)
Last Updated: 2024-04-08 23:38 (UTC)

Dependencies (7)

Required by (0)

Sources (1)

Latest Comments

lmartinez-mirror commented on 2022-06-20 18:30 (UTC)

Thanks for the tip, I pushed a fix!

lmartinez-mirror commented on 2022-06-19 15:34 (UTC)

Yes this is a pretty significant error; it's not installing the Python bindings for autodiff. The fact that the installer doesn't immediately abort the build boggles my mind.

Your error indicates that the installer tries to install the finished wheel to the actual root directory of your system, not the pkgdir. Since nothing can ever touch the root system except pacman, it gets a permission denied error.

I'll have to revisit this PKGBUILD soon to address this. In the meantime, patches are welcome.

lmartinez-mirror commented on 2022-05-28 05:04 (UTC)

Thanks for the patch. I've been holding off on updating this package because the installer doesn't actually install the included python bindings. I'll have to look into this.

calcmogul commented on 2022-05-28 02:51 (UTC)

I had to make the following changes to the PKGBUILD to make it work with CMake setups that don't use GNU Make by default.

diff --git a/PKGBUILD b/PKGBUILD
index 2acfa45..caed999 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -23,7 +23,7 @@ build() {
                -DBUILD_SHARED_LIBS=ON \
                -DAUTOBUILD_BUILD_TESTS=OFF \
                -DAUTOBUILD_BUILD_EXAMPLES=OFF
-       make -C build
+       cmake --build build
 }

 # check() {
@@ -31,7 +31,7 @@ build() {
 # }

 package() {
-       make -C build install DESTDIR="$pkgdir/"
+       DESTDIR="$pkgdir/" cmake --install build
        cd "$pkgname-$pkgver"
        install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"