You are not logged in.

#1 2009-04-06 12:23:53

k33l0r
Member
From: Helsinki
Registered: 2009-02-14
Posts: 7
Website

Mercurial PKGBUILD problem

I'm trying to get a Mercurial PKGBUILD (AUR) to work for the s2-liplianin DVB drivers, and work it does, but only when I build it on manually (i.e. no Yaourt).

With Yaourt I get the following error:

==> Searching new CVS/SVN/GIT revision for s2-liplianin-hg
==> retrieving latest revision number from hg... make: *** No rule to make target `clean'.  Stop.
abort: There is no Mercurial repository here (.hg not found)!
abort: There is no Mercurial repository here (.hg not found)!
abort: There is no Mercurial repository here (.hg not found)!

==> ERROR: unable to retrieve revision number
==> Determining latest hg revision...
abort: There is no Mercurial repository here (.hg not found)!
Error: Makepkg was unable to build s2-liplianin-hg package.

And here is the actual PKGBUILD and .install ( or with pretty syntax highlighting here (PKGBUILD) and here (.install))

# Maintainer: Matias Korhonen <webadmin@draco-vulgaris.net>
pkgname=s2-liplianin-hg
pkgver=11145
pkgrel=2
pkgdesc="DVB drivers for Linux"
arch=('i686' 'x86_64')
url="http://mercurial.intuxication.org/hg/s2-liplianin"
license=('GPL3')
depends=()
makedepends=('mercurial')
optdepends=()
provides=('s2-liplianin')
conflicts=()
source=()
md5sums=()
install="s2-liplianin-hg.install"
_hgroot="http://mercurial.intuxication.org/hg/s2-liplianin"
_hgrepo="s2-liplianin"

build() {
    cd ${startdir}/src

    if [ -d ${_hgrepo} ]; then
        cd ${startdir}/src/${_hgrepo}
        hg pull -u
    else
        hg clone ${_hgroot}${_hgrepo} || return 1
        cd ${startdir}/src/${_hgrepo}
    fi

    msg "Mercurial checkout done or server timeout"
    msg "Starting make..."

    cp -R ${startdir}/src/${_hgrepo} ${startdir}/src/${_hgrepo}-build
    cd ${startdir}/src/${_hgrepo}-build

    make || return 1
    make DESTDIR=${startdir}/pkg install

    rm -rf ${startdir}/src/${_hgrepo}-build
}
# arg 1:  the new package version
# arg 2:  the old package version
post_upgrade() {
      echo ">>> You will need to recompile these modules"
      echo ">>> everytime the kernel is upgraded or updated"
}

op=$1
shift

$op $*

I'd like to know if this is a problem with Yaourt or with my PKGBUILD.  Any help would be appreciated.  Also if someone more experienced would like to take over this package, I'd be quite happy to hand it over.

Offline

#2 2009-04-06 20:40:08

Stefan Husmann
Member
From: Germany
Registered: 2007-08-07
Posts: 1,391

Re: Mercurial PKGBUILD problem

I think yaourt has difficulties with all -cvs,-svn,-hg, -bzr, -git and the like. It determines the $pkgver and creates some subdirectories before makepkg changes the $pkgver. at least this is what I think from my experiences with users of my packgaes in AUR, I do not use yaourt myself.

I am currently building using your PKGBUILD and it seems to work so far. Some small things:
You can use ${srcdir} and ${pkgdir} in favour of ${startdir}/src and ${startdir}/pkg, and your installa file can be shortened to

post_upgrade() {
      echo ">>> You will need to recompile these modules"
      echo ">>> everytime the kernel is upgraded or updated"
}

Offline

#3 2009-04-15 06:36:26

k33l0r
Member
From: Helsinki
Registered: 2009-02-14
Posts: 7
Website

Re: Mercurial PKGBUILD problem

Thanks.

Offline

Board footer

Powered by FluxBB