You are not logged in.

#1 2012-12-27 13:38:15

smazza
Member
From: Australia
Registered: 2012-12-27
Posts: 8

[SOLVED] Permission Problem - Turbojpeg makepkg ./configure --prefix=/

Hi all, this is my first post here.

I'm trying to configure my intel/nvidia laptop using the bumblebee package from the AUR. In the process of installing its dependency turbojpeg from the reps I encounter an error. When the makepkg command is executed, output is as follows:

Making package: turbojpeg 1.2.1-1 (Thu Dec 27 21:30:57 WST 2012)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving Sources...
  -> Found libjpeg-turbo-1.2.1.tar.gz
==> Validating source files with sha1sums...
    libjpeg-turbo-1.2.1.tar.gz ... Passed
==> Extracting Sources...
  -> Extracting libjpeg-turbo-1.2.1.tar.gz with bsdtar
==> Removing existing pkg/ directory...
==> Starting build()...
/mnt/Data/Downloads/AUR_builds/turbojpeg/PKGBUILD: line 21: ./configure: Permission denied
==> ERROR: A failure occurred in build().
    Aborting... 

The error message ./configure: Permission denied, points to line 21 of the PKGBUILD file:
./configure --prefix=/usr --with-jpeg8 --mandir=/usr/share/man

The whole file follows:

# $Id$
# Maintainer: Allan McRae <allan@archlinux.org>
# Contributor: Simone Sclavi 'Ito' <darkhado@gmail.com>

pkgname=turbojpeg
pkgver=1.2.1
pkgrel=1
pkgdesc="turbojpeg library from libjpeg-turbo"
arch=('i686' 'x86_64')
url="http://www.libjpeg-turbo.org/About/TurboJPEG"
license=('GPL' 'custom')
depends=('glibc' 'libjpeg')
makedepends=('nasm')
options=('!libtool')
source=(http://sourceforge.net/projects/libjpeg-turbo/files/$pkgver/libjpeg-turbo-$pkgver.tar.gz)
sha1sums=('a4992e102c6d88146709e8e6ce5896d5d0b5a361')
 
build() {
  cd "$srcdir/libjpeg-turbo-$pkgver"
 
  ./configure --prefix=/usr --with-jpeg8 --mandir=/usr/share/man
  make
}
 
check() {
  cd "$srcdir/libjpeg-turbo-$pkgver"
 
  make test
}
 
package() {
  cd "$srcdir/libjpeg-turbo-$pkgver"
 
  make DESTDIR="$pkgdir/" install
 
  # only distribute libturbojpeg
  rm -rf "$pkgdir"/usr/share
  rm "$pkgdir"/usr/include/j*.h
  rm "$pkgdir"/usr/lib/libj*
  rm "$pkgdir"/usr/bin/{djpeg,rdjpgcom,wrjpgcom,jpegtran,cjpeg}
 
  install -dm755 "$pkgdir/usr/share/licenses/$pkgname/"
  ln -s ../../doc/libjpeg-turbo/README \
"$pkgdir/usr/share/licenses/$pkgname/README"
  ln -s ../../doc/libjpeg-turbo/README-turbo.txt \
"$pkgdir/usr/share/licenses/$pkgname/README-turbo.txt"
}

The filesystem is mounted with the auto option in fstab, which I believe enables execution so this should not be any problem. I'd be very grateful if someone more experienced than myself could help out.

Last edited by smazza (2012-12-27 14:17:24)


I was a victim of a series of accidents, as are we all

Offline

#2 2012-12-27 13:47:52

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,783
Website

Re: [SOLVED] Permission Problem - Turbojpeg makepkg ./configure --prefix=/

smazza wrote:

The filesystem is mounted with the auto option in fstab

What filesystem? Could you post the fstab line, and the output of 'mount', please.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Online

#3 2012-12-27 13:57:02

smazza
Member
From: Australia
Registered: 2012-12-27
Posts: 8

Re: [SOLVED] Permission Problem - Turbojpeg makepkg ./configure --prefix=/

Thanks for the quick response!

Filesystem is ext4
Fstab line reads  /dev/sda6               /               ext4    defaults,noatime        0       1
mount outputs

proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
sys on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
dev on /dev type devtmpfs (rw,nosuid,relatime,size=1976248k,nr_inodes=494062,mode=755)
run on /run type tmpfs (rw,nosuid,nodev,relatime,mode=755)
/dev/sda6 on / type ext4 (rw,noatime,data=ordered)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /sys/fs/cgroup type tmpfs (rw,nosuid,nodev,noexec,mode=755)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,release_agent=/usr/lib/systemd/systemd-cgroups-agent,name=systemd)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpuacct,cpu)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
cgroup on /sys/fs/cgroup/net_cls type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=23,pgrp=1,timeout=300,minproto=5,maxproto=5,direct)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
mqueue on /dev/mqueue type mqueue (rw,relatime)
fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)
/dev/sda7 on /home type ext4 (rw,noatime,data=ordered)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,relatime)
/dev/sda5 on /mnt/Data type fuseblk (rw,nosuid,nodev,noexec,relatime,user_id=0,group_id=0,allow_other,blksize=4096)
gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=1000,group_id=100)

I was a victim of a series of accidents, as are we all

Offline

#4 2012-12-27 14:05:28

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,783
Website

Re: [SOLVED] Permission Problem - Turbojpeg makepkg ./configure --prefix=/

/dev/sda5 on /mnt/Data type fuseblk (rw,nosuid,nodev,noexec,relatime,user_id=0,group_id=0,allow_other,blksize=4096)

There's your problem. You're running makepkg in /mnt/Data/Downloads/AUR_builds/turbojpeg, which is on sda5, which, by the look of things, is an ntfs partition. That's not a good idea, as it will play havok with the permissions of the files in the completed package (since ntfs does not support UNIX file permissions), but the specific reason why you're getting the error is that the partition is mounted with noexec.

Try building on your root partition, or your home partition, or (if you have sufficient RAM) in a tmpfs.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Online

#5 2012-12-27 14:16:44

smazza
Member
From: Australia
Registered: 2012-12-27
Posts: 8

Re: [SOLVED] Permission Problem - Turbojpeg makepkg ./configure --prefix=/

Now that you mention it it seems so obvious! I have my home folder set up so that instead of files being stored there there is shortcuts to files on my data drive, which I share with windows. I was accessing it via home, so didn't even think that it was executing on ntfs!

Thanks a bunch WorMzy


I was a victim of a series of accidents, as are we all

Offline

Board footer

Powered by FluxBB