You are not logged in.

#1 2012-06-11 03:27:14

jallenusn
Member
Registered: 2012-06-11
Posts: 34

[SOLVED] mkpkg libdesktop-agnostic

I am attempting to install avant-window-manager and it has a dependency I cannot get resolved.  when i run makepkg -s for the dependency libdesktop-agnostic-bzr (in the AUR) it says there is in error in the PKGBUILD line 45 and aborts the install.

josh@archlinux libdesktop-agnostic-bzr]$ makepkg -s
==> Determining latest bzr revision...
  ->> Version found: 405
==> Making package: libdesktop-agnostic-bzr 405-2 (Sun Jun 10 20:08:21 PDT 2012)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving Sources...
  -> Found gir.patch
==> Validating source files with md5sums...
    gir.patch ... Passed
==> Extracting Sources...
==> Removing existing pkg/ directory...
==> Starting build()...
==> Connecting to Bazaar server....
No revisions or tags to pull.                                                  
==> The local files are updated.
==> Bazaar checkout done or server timeout
==> Starting build...
/home/josh/aurpkg/libdesktop-agnostic-bzr/PKGBUILD: line 45: patch: command not found
==> ERROR: A failure occurred in build().
    Aborting... Version found: 405
==> Making package: libdesktop-agnostic-bzr 405-2 (Sun Jun 10 20:08:21 PDT 2012)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving Sources...
  -> Found gir.patch
==> Validating source files with md5sums...
    gir.patch ... Passed
==> Extracting Sources...
==> Removing existing pkg/ directory...
==> Starting build()...
==> Connecting to Bazaar server....
No revisions or tags to pull.                                                  
==> The local files are updated.
==> Bazaar checkout done or server timeout
==> Starting build...
/home/josh/aurpkg/libdesktop-agnostic-bzr/PKGBUILD: line 45: patch: command not found
==> ERROR: A failure occurred in build().
    Aborting...

I found the error and believe i have corrected it in the PKGBUILD (below is the corrected version line 45 read

 patch -Np1 -i "$srcdir"/gir.patch

Is it retrieving another PKGBUILD whenever I run the makepkg command?  I am fairly new to arch (installed several days ago) and know you guys can get irritated with incomplete information so I'm sorry about the length of the post I just want to be sure I give you guys everything to avoid your wrath lol# Maintainer: Alessio Sergi <asergi at archlinux dot us>

pkgname=libdesktop-agnostic-bzr
_pkgname=libdesktop-agnostic
pkgver=405
pkgrel=2
pkgdesc="A desktop-agnostic library for GLib-based projects"
arch=('i686' 'x86_64')
url="https://launchpad.net/libdesktop-agnostic"
license=('GPL2' 'LGPL2.1')
depends=('pygtk' 'python2-gobject2')
makedepends=('bzr' 'gconf' 'gobject-introspection' 'intltool' 'vala')
optdepends=('gconf: gconf configuration backend')
provides=($_pkgname)
conflicts=($_pkgname)
backup=(etc/xdg/$_pkgname/desktop-agnostic.ini)
options=('!libtool')
source=('gir.patch')
md5sums=('346e06ae914ec0c12e5f1fa1c4796575')
#md5sums=('69bf989b9204fe886c958b279822696c')[/ins]

[ins]_bzrtrunk="https://code.launchpad.net/~lda-team/libdesktop-agnostic/trunk"
_bzrmod="$_pkgname"[/ins]

[ins]build() {
  cd "$srcdir"[/ins]

[ins]  msg "Connecting to Bazaar server...."[/ins]

[ins]  if [[ -d "$_bzrmod" ]]; then
    cd "$_bzrmod" && bzr --no-plugins pull "$_bzrtrunk" -r "$pkgver"
    msg "The local files are updated."
  else
    bzr --no-plugins branch "$_bzrtrunk" "$_bzrmod" -q -r "$pkgver"
  fi[/ins]

[ins]  msg "Bazaar checkout done or server timeout"
  msg "Starting build..."[/ins]

[ins]  rm -rf "$srcdir/$_bzrmod-build"
  cp -r "$srcdir/$_bzrmod" "$srcdir/$_bzrmod-build"
  cd "$srcdir/$_bzrmod-build"[/ins]

[ins]  # fix to turn on introspection
  patch -Np1 -i "$srcdir/gir.patch"[/ins]

[ins]  # python2 fix
  sed -i '1s|^#!.*python$|&2|' waf[/ins]

[ins]  export PYTHON="/usr/bin/python2"
  export VALAC="/opt/vala-0.12/bin/valac"[/ins]

[ins]  ./waf configure --prefix=/usr --sysconfdir=/etc \
                  --config-backends=gconf,keyfile \
                  --vfs-backends=gio \
                  --desktop-entry-backends=gio,glib
  ./waf
}[/ins]

[ins]package() {
  cd "$srcdir/$_bzrmod-build"[/ins]

[ins]  ./waf install --destdir="$pkgdir/" --sysconfdir="$pkgdir"/etc
}[/ins]

[ins]# vim:set ts=2 sw=2 et:

What can i do to fix this?

Last edited by jallenusn (2012-06-11 04:52:09)

Offline

#2 2012-06-11 03:38:20

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,672
Website

Re: [SOLVED] mkpkg libdesktop-agnostic

pacman -S base-devel

Offline

Board footer

Powered by FluxBB