Permission denied running splitconfig.pl when running debian/rules updateconfigs
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
| linux (Ubuntu) |
Low
|
Unassigned |
Bug Description
I'm compiling the kernel to update a module, and when running debian/rules updateconfigs, I'm getting this error:
debian/
make: *** [updateconfigs] Error 1
A simple chmod u+x splitconfig.pl fix the problem. It's only a matter of having this file executable in the source tarball.
Fabrice Coutadeur (fabricesp) wrote : | #1 |
Leann Ogasawara (leannogasawara) wrote : | #2 |
Hi fabrice_sp,
Hrm, that's interesting since this looks like the file does have executable permissions set in at least the ubuntu-hardy git tree:
ogasawara@
-rwxr-xr-x 1 ogasawara ogasawara 2271 2008-08-15 12:42 debian/
But when I did download the source as you did I can confirm that it is _not_ set to executable:
ogasawara@
-rw-r--r-- 1 root root 2271 2008-09-25 15:33 debian/
Changed in linux: | |
assignee: | nobody → ubuntu-kernel-team |
importance: | Undecided → Low |
status: | New → Triaged |
Per a decision made by the Ubuntu Kernel Team, bugs will longer be assigned to the ubuntu-kernel-team in Launchpad as part of the bug triage process. The ubuntu-kernel-team is being unassigned from this bug report. Refer to https:/
Jeremy Foshee (jeremyfoshee) wrote : | #4 |
This bug report was marked as Triaged a while ago but has not had any updated comments for quite some time. Please let us know if this issue remains in the current Ubuntu release, http://
[This is an automated message. Apologies if it has reached you inappropriately; please just reply to this message indicating so.]
tags: | added: kj-triage |
Changed in linux (Ubuntu): | |
status: | Triaged → Incomplete |
Fabrice Coutadeur (fabricesp) wrote : | #5 |
It's still the case in Lucid:
fabrice@
-rw-r--r-- 1 fabrice fabrice 2405 2010-03-13 22:10 debian/
Changed in linux (Ubuntu): | |
status: | Incomplete → Confirmed |
Changed in linux (Ubuntu): | |
assignee: | nobody → Andy Whitcroft (apw) |
Andy Whitcroft (apw) wrote : | #6 |
This is a side effect of the use of the origin + diff upload form we use for the kernel. Execute permissions are not honoured. As these items are not normally used in builds this is not normally an issue. Will look see if we can call these directly using perl.
Changed in linux (Ubuntu): | |
assignee: | Andy Whitcroft (apw) → nobody |
ronny (ronny-standtke) wrote : | #7 |
I just run into exactly this issue because I had to build my own kernel because of
https:/
linuxar (linuxar) wrote : | #8 |
I confirm the bug is also present in the Xubuntu 12.04 (latest update):
without any modification to the config files, but simply for testing, I launched:
linux-3.2.0$ debian/rules updateconfigs
and got the following output:
dh_testdir;
/bin/bash -e debian/
* Run silentoldconfig (yes=0) on amd64/config.
make[1]: Entering directory `/home/
HOSTCC scripts/
GEN /home/felix/
HOSTCC scripts/
SHIPPED scripts/
SHIPPED scripts/
SHIPPED scripts/
HOSTCC scripts/
HOSTLD scripts/
scripts/
.config:
#
# configuration written to .config
#
make[1]: Leaving directory `/home/
* Run silentoldconfig (yes=0) on amd64/config.
make[1]: Entering directory `/home/
GEN /home/felix/
scripts/
.config:
#
# configuration written to .config
#
make[1]: Leaving directory `/home/
Running splitconfig.pl for amd64
debian/
make: *** [updateconfigs] Error 1
For the record:
$ uname -a
Linux machine 3.2.0-23-generic #36-Ubuntu SMP Tue Apr 10 20:39:51 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
linuxar (linuxar) wrote : | #9 |
Apparently, the problem is that the splitconfig.pl, as downloaded by apt-get source command is not executable. So, the workaround is to:
linux-3.2.0$ chmod +x debian/
and then relaunch:
linux-3.2.0$ debian/rules updateconfigs
But, now, the new errors are:
Running config-check for all configurations ...
debian/
debian/
debian/
debian/
debian/
debian/
debian/
debian/
debian/
debian/
*** ERROR: 10 config-check failures detected
It seems to be a problem of permissions, too.
linuxar (linuxar) wrote : | #10 |
Indeed. The workaround was to properly set the permissions:
linux-3.2.0$ chmod +x /home/felix/
Now the final output of
linux-3.2.0$ debian/rules updateconfigs
is:
check-config: /home/felix/
check-config: 42/42 checks passed -- exit 0
rm -rf build
so, it seems to work.
However, should'nt the permissions be properly set up by apt-get source when downloading the source package?
linuxar (linuxar) wrote : | #11 |
Sorry,
It was only later that I saw on the page
https:/
the instructions:
For these two commands to work, you need to give the scripts in the debian/scripts/misc and debian/scripts directories execute permission with the following command:
chmod -R u+x debian/scripts/*
Mea culpa.
By the way, I got the source with this command: /help.ubuntu. com/community/ Kernel/ Compile)
apt-get source linux-image-$(uname -r)
Following the wiki page (https:/