You are not logged in.

#1 2012-12-24 13:23:04

orschiro
Member
Registered: 2009-06-04
Posts: 2,136
Website

[solved] PKGBUILD issue for libfaketime

Hello,

I wanted to build libfaketime and created the following PKGBUILD:

# Contributor: Robert Orzanna <orschiro@gmail.com>

pkgname=libfaketime-git
pkgver=20121224
pkgrel=1
pkgdesc="Modify the system time a program sees without having to change the time system-
wide."
arch=('i686' 'x86_64')
url="https://github.com/wolfcw/libfaketime"
license=('GPL')
makedepends=('git')
provides=('libfaketime')

_gitroot="https://github.com/wolfcw/libfaketime.git"
_gitname="libfaketime"

build() {
  cd "$srcdir"
  msg "Connecting to GIT server...."

  if [[ -d "$_gitname" ]]; then
    cd "$_gitname" && git pull --recurse-submodules=yes origin && git submodule update
    msg "The local files are updated."
  else
    git clone --recursive "$_gitroot" "$_gitname"
  fi

  msg "GIT checkout done or server timeout"
  msg "Starting build..."

  rm -rf "$srcdir/$_gitname-build"
  git clone --recursive "$srcdir/$_gitname" "$srcdir/$_gitname-build"
  cd "$srcdir/$_gitname-build"

  make
}

package() {
  cd "$srcdir/$_gitname-build"

  make DESTDIR="$pkgdir/" install

  install -Dm644 "$srcdir/$_gitname.so.1" "$pkgdir/usr/lib/$_gitname.so.1"
  install -Dm644 "$srcdir/$_gitnameMT.so.1" "$pkgdir/usr/lib/$_gitnameMT.so.1"
  install -Dm755 "$srcdir/$_gitname" "$pkgdir/usr/bin/$_gitname"

  # Cleanup
  rm -rf "$pkgdir/srv"
  rm -rf "$srcdir/$_gitname-build"
}

However, the makepkg process exits with the following message for which I do not have a solution:

gcc -c -std=gnu99 -Wall -DFAKE_STAT timetest.c
gcc -o timetest timetest.o -lrt
./testframe.sh functests
make[1]: execvp: ./testframe.sh: Permission denied
make[1]: *** [functest] Error 127
make[1]: Leaving directory `/run/media/orschiro/data/Users/Robert/Linux/Packages/libfaketime/src/libfaketime-build/test'
make: *** [all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...

How can I overcome the permission denied problem?

Regards

EDIT:

The problem was that I tried to build the package on a ntfs partition which of course would not work with the permissions.

Last edited by orschiro (2012-12-24 23:06:10)

Offline

Board footer

Powered by FluxBB