You are not logged in.
I have a Lenovo Thinkpad and Installed Archlinux and the Kernel of the topic's title:
When I try to install I get this error:
==> Making package: tp_smapi 0.41-2 (Mon Mar 5 21:24:16 ART 2012)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving Sources...
-> Found tp_smapi-0.41.tar.gz
==> Validating source files with md5sums...
tp_smapi-0.41.tar.gz ... Passed
==> Validating source files with sha256sums...
tp_smapi-0.41.tar.gz ... Passed
==> Extracting Sources...
-> Extracting tp_smapi-0.41.tar.gz with bsdtar
==> Removing existing pkg/ directory...
==> Starting build()...
make -C /lib/modules/3.0-rt-lts/build M=/tmp/yaourt-tmp-la/aur-tp_smapi/src/tp_smapi-0.41 O=/lib/modules/3.0-rt-lts/build modules
make[1]: Entering directory `/usr/src/linux-3.0-rt-lts'
CC [M] /tmp/yaourt-tmp-la/aur-tp_smapi/src/tp_smapi-0.41/thinkpad_ec.o
/bin/sh: scripts/basic/fixdep: Permission denied
make[3]: *** [/tmp/yaourt-tmp-la/aur-tp_smapi/src/tp_smapi-0.41/thinkpad_ec.o] Error 1
make[2]: *** [_module_/tmp/yaourt-tmp-la/aur-tp_smapi/src/tp_smapi-0.41] Error 2
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory `/usr/src/linux-3.0-rt-lts'
make: *** [modules] Error 2
==> ERROR: A failure occurred in build().
Aborting...Any idea of how to solve this problem?
Offline
Are you using an AUR helper ? or have you downloaded and untarred the package, cd'ed into it and run makepkg ??
If the latter, from the directory that contains the PKGBUILD, does src/scripts/basic/fixdep exist? Who owns it?
Where are you doing this build? You probably want it to be in your home directory.
If this is on a removable disk, is it mounted so that you may launch executables?
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way
Offline
Tried both and got same output.
No, scripts/basic/fixdep doesn't exist.
I'm trying to build it on a folder in my home directory.
On Thinkpad's HD.
Offline
That's a problem with your kernel or more precisely with the headers package (if there is one). It should include the fixdep script. Check for example the linux-headers package:
$ bsdtar tvf linux-headers-3.2.9-1-x86_64.pkg.tar.xz | grep fixdep
-rw-r--r-- 0 root root 10782 Jan 5 00:55 usr/src/linux-3.2.9-1-ARCH/scripts/basic/fixdep.c
-rw-r--r-- 0 root root 2836 Mär 1 08:53 usr/src/linux-3.2.9-1-ARCH/scripts/basic/.fixdep.cmd
-rwxr-xr-x 0 root root 11000 Mär 1 09:40 usr/src/linux-3.2.9-1-ARCH/scripts/basic/fixdepedit: I checked the PKGBUILD of linux-rt-lts and the fixdep script should exist, but the execute permission is removed from all files at the end:
find "${pkgdir}" -type f -exec chmod 444 {} \;Last edited by xduugu (2012-03-06 13:10:45)
Offline
I'm getting the same error after doing that on /usr/src/linux-3.0-rt-lts/
Offline
Sorry, I suppose you misread my post. The line I posted is the culprit in the linux-rt-lts PKGBUILD and should be removed. A temporary solution for you would be running the following as root to fix the permissions of fixdep:
chmod +x /usr/src/linux-3.0-rt-lts/scripts/basic/fixdepOffline
But then I get:
==> Making package: tp_smapi 0.41-2 (Thu Mar 8 16:50:28 ART 2012)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving Sources...
-> Found tp_smapi-0.41.tar.gz
==> Validating source files with md5sums...
tp_smapi-0.41.tar.gz ... Passed
==> Validating source files with sha256sums...
tp_smapi-0.41.tar.gz ... Passed
==> Extracting Sources...
-> Extracting tp_smapi-0.41.tar.gz with bsdtar
==> Removing existing pkg/ directory...
==> Starting build()...
make -C /lib/modules/3.0-rt-lts/build M=/home/arch/la/build/tp_smapi/src/tp_smapi-0.41 O=/lib/modules/3.0-rt-lts/build modules
make[1]: Entering directory `/usr/src/linux-3.0-rt-lts'
Building modules, stage 2.
MODPOST 3 modules
/bin/sh: scripts/mod/modpost: Permission denied
make[3]: *** [__modpost] Error 126
make[2]: *** [modules] Error 2
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory `/usr/src/linux-3.0-rt-lts'
make: *** [modules] Error 2
==> ERROR: A failure occurred in build().
Aborting...So I did chmod +x on modpost and then:
==> Making package: tp_smapi 0.41-2 (Thu Mar 8 16:51:22 ART 2012)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving Sources...
-> Found tp_smapi-0.41.tar.gz
==> Validating source files with md5sums...
tp_smapi-0.41.tar.gz ... Passed
==> Validating source files with sha256sums...
tp_smapi-0.41.tar.gz ... Passed
==> Extracting Sources...
-> Extracting tp_smapi-0.41.tar.gz with bsdtar
==> Removing existing pkg/ directory...
==> Starting build()...
make -C /lib/modules/3.0-rt-lts/build M=/home/arch/la/build/tp_smapi/src/tp_smapi-0.41 O=/lib/modules/3.0-rt-lts/build modules
make[1]: Entering directory `/usr/src/linux-3.0-rt-lts'
Building modules, stage 2.
MODPOST 3 modules
make[1]: Leaving directory `/usr/src/linux-3.0-rt-lts'
==> Entering fakeroot environment...
==> Starting package()...
make: Entering directory `/usr/src/linux-3.0-rt-lts'
INSTALL /home/arch/la/build/tp_smapi/src/tp_smapi-0.41/hdaps.ko
INSTALL /home/arch/la/build/tp_smapi/src/tp_smapi-0.41/thinkpad_ec.ko
INSTALL /home/arch/la/build/tp_smapi/src/tp_smapi-0.41/tp_smapi.ko
DEPMOD 3.0-rt-lts
Warning: you may need to install module-init-tools
See http://www.codemonkey.org.uk/docs/post-halloween-2.6.txt
make: Leaving directory `/usr/src/linux-3.0-rt-lts'
rmdir: failed to remove `3.0-rt-lts': Directory not empty
==> ERROR: A failure occurred in package().
Aborting...Offline
That's indeed an issue with the PKGBUILD. I guess the linux-rt-lts kernel does not provide an extramodules directory for external modules which is expected by this package. You can try the following PKGBUILD instead of the one from the AUR (but you'll need the .install file from there).
# Maintainer: xduugu
# Contributor: nh2
# Contributor: Steven Davidovitz <steviedizzle ð gmail đ com>
# Contributor: Nick B <Shirakawasuna ð gmail đ com>
# Contributor: Christof Musik <christof ð senfdax đ de>
# Contributor: Stefan Rupp <archlinux ð stefanrupp đ de>
# Contributor: Ignas Anikevicius <anikevicius ð gmail đ com>
_pkgname=tp_smapi
# make the AUR parser think the following lines are comments
# to bypass the buggy parser check
[[ "#" ]] && _kernext=${_kernext:-}
[[ "#" ]] && _kernver=${_kernver:-$(uname -r)}
[[ "#" ]] && _extramodules=$(readlink -f "/lib/modules/$_kernver/extramodules" | sed 's#^/lib/modules/##')
[[ "#" ]] && [[ -n $_extramodules ]] && _kernver=$(< /lib/modules/$_extramodules/version)
pkgname=$_pkgname$_kernext
pkgver=0.41
pkgrel=2
pkgdesc="Modules for ThinkPad's SMAPI functionality"
[[ -n $_kernext ]] && pkgdesc+=" (for linux$_kernext)"
arch=('i686' 'x86_64')
url="http://tpctl.sourceforge.net/"
license=('GPL')
depends=("linux$_kernext")
makedepends=("linux$_kernext-headers")
install=$_pkgname.install
source=(https://github.com/downloads/evgeni/$_pkgname/$_pkgname-$pkgver.tar.gz)
md5sums=('63c683415c764568f6bf17c7eabe4752')
sha256sums=('6aef02b92d10360ac9be0db29ae390636be55017990063a092a285c70b54e666')
build() {
cd "$srcdir/$_pkgname-$pkgver"
sed -ri "s/^(KVER\s*:=).*$/\1$_kernver/" Makefile
make HDAPS=1
}
package() {
make -C "/lib/modules/$_kernver/build" \
INSTALL_MOD_PATH="$pkgdir" M="$srcdir/$_pkgname-$pkgver" modules_install
cd "$pkgdir/lib/modules/"
if [[ -n $_extramodules ]]; then
mv "$_kernver/extra" "$_extramodules"
rmdir "$_kernver"
else
_extramodules="/lib/modules/$_kernver"
fi
# compress kernel modules
find "$pkgdir" -name "*.ko" -exec gzip -9 {} +
# update kernel version in install file
sed -ri "s/^(extramodules=).*$/\1$_extramodules/" "$startdir/$_pkgname.install"
}Offline
At the moment I solved the issue by using another RT Kernel, which gave me no trouble. I'm going to try this out anyway so it helps others in the future, also to make your help worth something.
Thanks!
Offline