You are not logged in.

#1 2013-11-23 20:06:05

Thorsten Reinbold
Member
From: Germany
Registered: 2011-12-06
Posts: 353

[Solved] Unable to build lensfun-svn

Hi there! I'm trying to build lensfun-svn from the AUR, but it fails.

Error:

Checking for GNU Make >= 3.81                                    ...4.0 < 3.81, FAILED

GNU Make version 3.81 and above is required to build this project

This is the PKGBUILD I'm using:

pkgname=lensfun-svn
_svnmod=lensfun
pkgver=326
pkgrel=1
pkgdesc="Database of photographic lenses and a library that allows advanced access to the database"
arch=('i686' 'x86_64')
url="http://lensfun.berlios.de/"
license=('LGPL3')
depends=('glibc' 'glib2')
makedepends=('python2' 'libpng' 'svn')
provides=('lensfun')
conflicts=('lensfun')
source=(${_svnmod}::svn://svn.berlios.de/lensfun/trunk)
md5sums=(SKIP)

pkgver() {
  cd $SRCDEST/$_svnmod
  svnversion | tr -d [A-z]
}

build() {
    cd $_svnmod
    ./configure --prefix=/usr --libdir=/usr/lib
    make all
}

package() {
  cd $_svnmod
  make INSTALL_PREFIX="$pkgdir/" install
}

What's wrong here? Make is installed.

Last edited by Thorsten Reinbold (2013-11-23 21:22:43)

Offline

#2 2013-11-23 20:55:06

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [Solved] Unable to build lensfun-svn

I can't it to work at all:

$ makepkg -si
==> Making package: lensfun-svn 326-1 (Sat Nov 23 21:52:27 CET 2013)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Updating lensfun svn repo...
Skipped '.'
Summary of conflicts:
  Skipped paths: 1
==> Validating source files with md5sums...
    lensfun ... Skipped
==> Extracting sources...
  -> Creating working copy of trunk svn repo...
==> Starting pkgver()...
==> Updated version: lensfun-svn -1
==> ERROR: pkgver is not allowed to be empty.

Have you tried updating the lensfun PKGBUILD from the repos?

Offline

#3 2013-11-23 20:57:51

Thorsten Reinbold
Member
From: Germany
Registered: 2011-12-06
Posts: 353

Re: [Solved] Unable to build lensfun-svn

Yes, it is marked as out of date. Old version was 0.2.7, the new one is 0.2.8 and it *should* be enough to change the version number and the md5 in the PKGBUILD. But....surprise: the same error again. I don't get it.

Offline

#4 2013-11-23 20:59:51

Thorsten Reinbold
Member
From: Germany
Registered: 2011-12-06
Posts: 353

Re: [Solved] Unable to build lensfun-svn

karol wrote:

I can't it to work at all:

$ makepkg -si
==> Making package: lensfun-svn 326-1 (Sat Nov 23 21:52:27 CET 2013)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Updating lensfun svn repo...
Skipped '.'
Summary of conflicts:
  Skipped paths: 1
==> Validating source files with md5sums...
    lensfun ... Skipped
==> Extracting sources...
  -> Creating working copy of trunk svn repo...
==> Starting pkgver()...
==> Updated version: lensfun-svn -1
==> ERROR: pkgver is not allowed to be empty.

Have you tried updating the lensfun PKGBUILD from the repos?

Sorry, you've done something wrong there. I guesss you have used the PKGBUILD from the AUR? You have to fill out the Versionnumber by hand before you can build it. Or take my PKGBUILD from above. wink

Last edited by Thorsten Reinbold (2013-11-23 21:00:13)

Offline

#5 2013-11-23 21:14:10

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [Solved] Unable to build lensfun-svn

I tried both PKGBUILDs, but indeed I must have mixed something up. It "works" now i.e. I get the error as you when I use either the PKGBUILD you posted here or the updated one from the repos.

I commented out a line in the configure script and it seems to have worked:

$ diff -Naur src/lensfun/configure configure 
--- src/lensfun/configure	2013-11-23 21:11:41.627271262 +0000
+++ configure	2013-11-23 21:11:36.293941822 +0000
@@ -45,7 +45,7 @@
     }
 
 # Check for tools
-tibs.check_program ("GNU Make", "make --version", ".*?([0-9\.]+).*", "3.81", True)
+#tibs.check_program ("GNU Make", "make --version", ".*?([0-9\.]+).*", "3.81", True)
 if tibs.check_program ("makedep", "makedep -V", ".*Version.*?([0-9\.]+).*", "0.1.0"):
     tibs.add_config_mak ("MAKEDEP", "makedep")
     makedep = "yes"

Edit: I compiled the svn version.

Last edited by karol (2013-11-23 21:17:03)

Offline

#6 2013-11-23 21:21:44

Thorsten Reinbold
Member
From: Germany
Registered: 2011-12-06
Posts: 353

Re: [Solved] Unable to build lensfun-svn

I've set the make Version from 3.81 to 4.0-1, but you're right: it works. Many thanks for your help!

Last edited by Thorsten Reinbold (2013-11-23 21:22:27)

Offline

Board footer

Powered by FluxBB