Package Details: libdogleg-git v0.16.r1.g1f88d01-2

Git Clone URL: https://aur.archlinux.org/libdogleg-git.git (read-only, click to copy)
Package Base: libdogleg-git
Description: Large-scale nonlinear least-squares optimization library for both sparse and dense problems
Upstream URL: https://github.com/dkogan/libdogleg
Licenses: LGPL-3.0-only
Conflicts: libdogleg
Provides: libdogleg
Submitter: pineappletoad
Maintainer: 0e4ef622
Last Packager: 0e4ef622
Votes: 1
Popularity: 0.002018
First Submitted: 2022-05-23 05:16 (UTC)
Last Updated: 2024-03-10 19:44 (UTC)

Required by (2)

Sources (1)

Latest Comments

gbin commented on 2024-01-20 20:06 (UTC)

I had to do that to make it compile:

diff --git a/PKGBUILD b/PKGBUILD                                                                                                                                                                                                                                                                                                                            
index d7ef1cd..fbd8961 100644                                                                                                                                                                                                                                                                                                                               
--- a/PKGBUILD                                                                                                                                                                                                                                                                                                                                              
+++ b/PKGBUILD                                                                                                                                                                                                                                                                                                                                              
@@ -1,15 +1,13 @@                                                                                                                                                                                                                                                                                                                                           
 # Maintainer: piratecarrot <39475419+piratecarrot@users.noreply.github.com>                                                                                                                                                                                                                                                                                
 pkgname=libdogleg-git                                                                                                                                                                                                                                                                                                                                      
-pkgver=v0.15.4.r0.gd8e655b                                                                                                                                                                                                                                                                                                                                 
-pkgrel=3                                                                                                                                                                                                                                                                                                                                                   
+pkgver=v0.16.r1.g1f88d01                                                                                                                                                                                                                                                                                                                                   
+pkgrel=1                                                                                                                                                                                                                                                                                                                                                   
 pkgdesc="Large-scale nonlinear least-squares optimization library for both sparse and dense problems"                                                                                                                                                                                                                                                      
 arch=('i686' 'x86_64')                                                                                                                                                                                                                                                                                                                                     
 url="https://github.com/dkogan/libdogleg"                                                                                                                                                                                                                                                                                                                  
 license=('Apache')                                                                                                                                                                                                                                                                                                                                         
-groups=('')                                                                                                                                                                                                                                                                                                                                                
 depends=('suitesparse')                                                                                                                                                                                                                                                                                                                                    
 makedepends=('make' 'gcc')                                                                                                                                                                                                                                                                                                                                 
-optdepends=('')                                                                                                                                                                                                                                                                                                                                            
 provides=('libdogleg')                                                                                                                                                                                                                                                                                                                                     
 conflicts=('libdogleg')                                                                                                                                                                                                                                                                                                                                    
 source=("${pkgname%-git}::git+https://github.com/dkogan/libdogleg.git#branch=master"                                                                                                                                                                                                                                                                       
@@ -22,21 +20,21 @@ pkgver() {                                                                                                                                                                                                                                                                                                                              
        git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'                                                                                                                                                                                                                                                                                       
 }                                                                                                                                                                                                                                                                                                                                                          

-prepare() {                                                                                                                                                                                                                                                                                                                                                
-       patch --directory="${pkgname%-git}" --forward --strip=1 --input="$srcdir/build-fix.patch"                                                                                                                                                                                                                                                           
-}                                                                                                                                                                                                                                                                                                                                                          
-                                                                                                                                                                                                                                                                                                                                                           
 build() {                                                                                                                                                                                                                                                                                                                                                  
-       cd "$srcdir/${pkgname%-git}"                                                                                                                                                                                                                                                                                                                        
+  cd "$srcdir/${pkgname%-git}"                                                                                                                                                                                                                                                                                                                             
+  wget -O mrbuild-1.6.tar.gz https://github.com/dkogan/mrbuild/archive/refs/tags/v1.6.tar.gz                                                                                                                                                                                                                                                               
+  sha512sum --quiet --strict -c <(echo 833905b527d13befcb4214bf9b47d1cc848e29c5ac73c1bcfb2efebd4ab92f8d9633d6b2c764b886714b2a438f44d5b802c4a89fd092a750ac57717b4a85b91f mrbuild-1.6.tar.gz)                                                                                                                                                                
+  tar xvfz mrbuild-1.6.tar.gz                                                                                                                                                                                                                                                                                                                              
+  ln -fs mrbuild-1.6 mrbuild                                                                                                                                                                                                                                                                                                                               
        make                                                                                                                                                                                                                                                                                                                                                
 }                                                                                                                                                                                                                                                                                                                                                          

 package() {                                                                                                                                                                                                                                                                                                                                                
        cd "$srcdir/${pkgname%-git}"                                                                                                                                                                                                                                                                                                                        
-       install -m 755 libdogleg.so.2.0.15.4 -D --target-directory="$pkgdir/usr/lib/"                                                                                                                                                                                                                                                                       
+       install -m 755 libdogleg.so.2.0.16-1-g1f88d01 -D --target-directory="$pkgdir/usr/lib/"                                                                                                                                                                                                                                                              
        pushd $pkgdir/usr/lib/                                                                                                                                                                                                                                                                                                                              
-       ln -s libdogleg.so.2.0.15.4 libdogleg.so.2                                                                                                                                                                                                                                                                                                          
-       ln -s libdogleg.so.2.0.15.4 libdogleg.so                                                                                                                                                                                                                                                                                                            
+       ln -s libdogleg.so.2.0.16-1-g1f88d01 libdogleg.so.2                                                                                                                                                                                                                                                                                                 
+       ln -s libdogleg.so.2.0.16-1-g1f88d01 libdogleg.so                                                                                                                                                                                                                                                                                                   
        popd                                                                                                                                                                                                                                                                                                                                                
        install -m 644 dogleg.h -D --target-directory="$pkgdir/usr/include/"                                                                                                                                                                                                                                                                                
        install -m 755 sample -D "$pkgdir/usr/bin/libdogleg-sample"

Mr.Smith1974 commented on 2023-06-22 11:47 (UTC)

build fails with error:


Cloning into 'libdogleg'...
done.
Switched to a new branch 'makepkg'
==> Starting prepare()...
patching file dogleg.c
Hunk #1 FAILED at 16.
1 out of 1 hunk FAILED -- saving rejects to file dogleg.c.rej
patching file dogleg.h
Reversed (or previously applied) patch detected!  Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file dogleg.h.rej
patching file Makefile
Hunk #1 FAILED at 31.
1 out of 1 hunk FAILED -- saving rejects to file Makefile.rej
==> ERROR: A failure occurred in prepare().
Aborting...
 -> error making: libdogleg-git-exit status 4
 -> Failed to install the following packages. Manual intervention is required:
libdogleg-git - exit status 4