Build stops: Permission denied

Asked by thorwagner on 2011-11-29

I am trying to provide a kernel modul via launchpad, but the build process stopps. The kernel modul is not part of the main kernel/ubuntu branch. I try to publish it up via a http://ppa.launchpad.net/totto/gxsm. Here is the error from the build log for the package sranger-modules-mk23 :

...
/usr/bin/make DESTDIR=/build/buildd/sranger-modules-mk23-0.0.1/debian/sranger-modules-mk23 install
make[1]: Entering directory `/build/buildd/sranger-modules-mk23-0.0.1'
/usr/bin/make -C /lib/modules/3.0.0-13-generic/build M=/build/buildd/sranger-modules-mk23-0.0.1 DESTDIR=/build/buildd/sranger-modules-mk23-0.0.1/debian/sranger-modules-mk23 modules_install
make[2]: Entering directory `/usr/src/linux-headers-3.0.0-13-generic'
mkdir: cannot create directory `/lib/modules/3.0.0-13-generic/extra': Permission denied
...

I can make a deb-file on my computer via debuild (binary and source). I can use the source-deb also via the module-assistant to compile and install on my computer. So everything is fine on my PC.

Just a final note for everyone trying to reproduce the bug: The kernel version 3.0.0-13-generic is hard coded in the script. I already had some trouble with using uname -a on the server which produces some string like 2.6.x-xen.

Totto

Question information

Language:
English Edit question
Status:
Answered
For:
Launchpad itself Edit question
Assignee:
No assignee Edit question
Last query:
2011-11-29
Last reply:
2011-11-30
William Grant (wgrant) said : #1

Your build is trying to write to /lib, rather than $DESTDIR/lib. Builds don't run as root -- they have to write to the build directory.

Are you aware of DKMS? Nowadays out-of-tree kernel modules tend to be distributed as source, and build against the correct kernel version when they're installed.

Can you help with this problem?

Provide an answer of your own, or ask thorwagner for more information if necessary.

To post a message you must log in.