From: Curt Howland on
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sunday 25 July 2010, Sven Joachim <svenjoac(a)gmx.de> was heard to
say:
> Not really. �The libc6-dev package is too old, lacking sys/eventfd.

Got it. I will give up with this machine. I don't want to upgrade to
Squeeze due to preferring KDE3.

Curt-

- --
Those who torment us for our own good will torment us without end,
for they do so with the approval of their consciences.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iQEVAwUBTEyCwC9Y35yItIgBAQJMxgf+Js5gSXNl/05x09wt7nW4oC4790plhiBq
Z8UlJoeonJPHeyDxHwqRTAYwdjNwBRSF/oixZ1wYLwFh73ytB2bgnxRchtDIHeDr
i+JL78DVoj6buQPHGAVfDC74t/WjezasL1R2EiHW0xyQzYBYkmGcsQ72zvEhdULj
mzFR0kX6TZhrsVvaQ1Pk/cjFi68ekVbCD7813yHHS4dBplR43gtYKco8QhuFXkvs
uCbyhO0gIDxPS3z4Orkoi0cx0QrnJrCeZG2IkpVhEUIe8Raa8UEJUTVODfk1byw9
mKoZCL+G9Ao7ZMs1jIzNyUiEr7v9LBVbMPcPkhuACrDXypaRdMCODw==
=wnUa
-----END PGP SIGNATURE-----


--
To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org
Archive: http://lists.debian.org/201007251430.29846.Howland(a)priss.com
From: Curt Howland on
Well, I've run into another problem with the compile that folks might
find interesting.

All while running as the only user account on this machine (other than
root), I ran into a very interesting permissions error at the end of
the "make-kpkg kernel_image" process. I did the compile as root
successfully after seeing this error the first time, just to see if it
was user related, and the compile completed successfully.

In fact, I'm running 2.6.35-rc6 right now, no problems.

But I erased the directory and un-tarred the generic kernel source
again just to be sure, and received the same permission error again.
I'm just not sure if this is a debian "make-kpkg" error or not...

Here's the error and ls -a of the directories I think its referring to:

=================
echo done > debian/stamp/build/kernel
/usr/bin/make -f ./debian/rules
debian/stamp/binary/pre-linux-image-2.6.35-rc6-curt.02
make[1]: Entering directory `/usr/src/linux-2.6.35-rc6'
====== making target
debian/stamp/install/linux-image-2.6.35-rc6-curt.02 [new prereqs:
]======
This is kernel package version 12.036.
rm -f -r .//usr/src/linux-2.6.35-rc6/debian/linux-image-2.6.35-rc6-curt.02
..//usr/src/linux-2.6.35-rc6/debian/linux-image-2.6.35-rc6-curt.02.deb
install -p -d -o root -g root -m 755
/usr/src/linux-2.6.35-rc6/debian/linux-image-2.6.35-rc6-curt.02/etc/kernel/postinst.d
/usr/src/linux-2.6.35-rc6/debian/linux-image-2.6.35-rc6-curt.02/etc/kernel/preinst.d
\

/usr/src/linux-2.6.35-rc6/debian/linux-image-2.6.35-rc6-curt.02/etc/kernel/postrm.d
/usr/src/linux-2.6.35-rc6/debian/linux-image-2.6.35-rc6-curt.02/etc/kernel/prerm.d
install: cannot change owner and permissions of
`/usr/src/linux-2.6.35-rc6/debian/linux-image-2.6.35-rc6-curt.02/etc/kernel/postinst.d':
Operation not permitted
install: cannot change owner and permissions of
`/usr/src/linux-2.6.35-rc6/debian/linux-image-2.6.35-rc6-curt.02/etc/kernel/preinst.d':
Operation not permitted
install: cannot change owner and permissions of
`/usr/src/linux-2.6.35-rc6/debian/linux-image-2.6.35-rc6-curt.02/etc/kernel/postrm.d':
Operation not permitted
install: cannot change owner and permissions of
`/usr/src/linux-2.6.35-rc6/debian/linux-image-2.6.35-rc6-curt.02/etc/kernel/prerm.d':
Operation not permitted
make[1]: *** [debian/stamp/install/linux-image-2.6.35-rc6-curt.02] Error 1
make[1]: Leaving directory `/usr/src/linux-2.6.35-rc6'
make: *** [kernel_image] Error 2

$ dir /usr/src/linux-2.6.35-rc6/debian/linux-image-2.6.35-rc6-curt.02/etc/kernel/
total 16
drwx------ 2 curt curt 4096 Jul 25 21:12 postinst.d
drwx------ 2 curt curt 4096 Jul 25 21:12 postrm.d
drwx------ 2 curt curt 4096 Jul 25 21:12 preinst.d
drwx------ 2 curt curt 4096 Jul 25 21:12 prerm.d

$ dir /usr/src/linux-2.6.35-rc6/debian/linux-image-2.6.35-rc6-curt.02/etc/
total 4
drwxr-xr-x 6 curt curt 4096 Jul 25 21:12 kernel
=================


--
To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org
Archive: http://lists.debian.org/AANLkTikwv7MrwgOTrLLVhBvhYwHgFoQqR3bwEL7kAxAF(a)mail.gmail.com
From: Angus Hedger on
On Mon, Jul 26, 2010 at 2:32 AM, Curt Howland <Howland(a)priss.com> wrote:
> Well, I've run into another problem with the compile that folks might
> find interesting.
>
> All while running as the only user account on this machine (other than
> root), I ran into a very interesting permissions error at the end of
> the "make-kpkg kernel_image" process. I did the compile as root
> successfully after seeing this error the first time, just to see if it
> was user related, and the compile completed successfully.
>
> In fact, I'm running 2.6.35-rc6 right now, no problems.
>
> But I erased the directory and un-tarred the generic kernel source
> again just to be sure, and received the same permission error again.
> I'm just not sure if this is a debian "make-kpkg" error or not...
>
> Here's the error and ls -a of the directories I think its referring to:
>
> =================
> echo done > debian/stamp/build/kernel
> /usr/bin/make -f ./debian/rules
> debian/stamp/binary/pre-linux-image-2.6.35-rc6-curt.02
> make[1]: Entering directory `/usr/src/linux-2.6.35-rc6'
> ====== making target
> debian/stamp/install/linux-image-2.6.35-rc6-curt.02 [new prereqs:
> ]======
> This is kernel package version 12.036.
> rm -f -r .//usr/src/linux-2.6.35-rc6/debian/linux-image-2.6.35-rc6-curt.02
> .//usr/src/linux-2.6.35-rc6/debian/linux-image-2.6.35-rc6-curt.02.deb
> install -p -d -o root -g root  -m  755
> /usr/src/linux-2.6.35-rc6/debian/linux-image-2.6.35-rc6-curt.02/etc/kernel/postinst.d
> /usr/src/linux-2.6.35-rc6/debian/linux-image-2.6.35-rc6-curt.02/etc/kernel/preinst.d
> \
>
> /usr/src/linux-2.6.35-rc6/debian/linux-image-2.6.35-rc6-curt.02/etc/kernel/postrm.d
> /usr/src/linux-2.6.35-rc6/debian/linux-image-2.6.35-rc6-curt.02/etc/kernel/prerm.d
> install: cannot change owner and permissions of
> `/usr/src/linux-2.6.35-rc6/debian/linux-image-2.6.35-rc6-curt.02/etc/kernel/postinst.d':
> Operation not permitted
> install: cannot change owner and permissions of
> `/usr/src/linux-2.6.35-rc6/debian/linux-image-2.6.35-rc6-curt.02/etc/kernel/preinst.d':
> Operation not permitted
> install: cannot change owner and permissions of
> `/usr/src/linux-2.6.35-rc6/debian/linux-image-2.6.35-rc6-curt.02/etc/kernel/postrm.d':
> Operation not permitted
> install: cannot change owner and permissions of
> `/usr/src/linux-2.6.35-rc6/debian/linux-image-2.6.35-rc6-curt.02/etc/kernel/prerm.d':
> Operation not permitted
> make[1]: *** [debian/stamp/install/linux-image-2.6.35-rc6-curt.02] Error 1
> make[1]: Leaving directory `/usr/src/linux-2.6.35-rc6'
> make: *** [kernel_image] Error 2
>
> $ dir /usr/src/linux-2.6.35-rc6/debian/linux-image-2.6.35-rc6-curt.02/etc/kernel/
> total 16
> drwx------ 2 curt curt 4096 Jul 25 21:12 postinst.d
> drwx------ 2 curt curt 4096 Jul 25 21:12 postrm.d
> drwx------ 2 curt curt 4096 Jul 25 21:12 preinst.d
> drwx------ 2 curt curt 4096 Jul 25 21:12 prerm.d
>
> $ dir /usr/src/linux-2.6.35-rc6/debian/linux-image-2.6.35-rc6-curt.02/etc/
> total 4
> drwxr-xr-x 6 curt curt 4096 Jul 25 21:12 kernel
> =================

I had the same error when i was compiling the 2.6.34.1, both inside
and outside the /usr/src/ dir, and again worked fine when i did it as
root.

I don’t think a normal user can changer owner and permissions can they?

Regards, Angus

ps thinking about it, you would have had to untar or cp the source as
root in order to get it into the /usr/src folder right, if so wouldn’t
it end up belonging to root? (im still a bit new to how *nix
permissions work, so pardon my ignorance)


--
To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org
Archive: http://lists.debian.org/AANLkTikNzvhYqIixkhzs-2gxgwYTiuUDRHSXqXdc6uAp(a)mail.gmail.com
From: Sven Joachim on
On 2010-07-26 03:32 +0200, Curt Howland wrote:

> Well, I've run into another problem with the compile that folks might
> find interesting.
>
> All while running as the only user account on this machine (other than
> root), I ran into a very interesting permissions error at the end of
> the "make-kpkg kernel_image" process. I did the compile as root
> successfully after seeing this error the first time, just to see if it
> was user related, and the compile completed successfully.
>
> In fact, I'm running 2.6.35-rc6 right now, no problems.
>
> But I erased the directory and un-tarred the generic kernel source
> again just to be sure, and received the same permission error again.
> I'm just not sure if this is a debian "make-kpkg" error or not...

You need to install the fakeroot package to build Debian packages as an
ordinary user. In Squeeze, dpkg-dev recommends fakeroot for that reason.

> install: cannot change owner and permissions of
> `/usr/src/linux-2.6.35-rc6/debian/linux-image-2.6.35-rc6-curt.02/etc/kernel/postinst.d':
> Operation not permitted

What fakeroot does is to install a wrapper around chown and other system
calls to pretend they succeeded. It also starts a daemon that remembers
the new owner, so that the files are actually owned by that user
(usually root) when the package is created.

Sven


--
To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org
Archive: http://lists.debian.org/871vaqn8sl.fsf(a)turtle.gmx.de
From: Curt Howland on
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Monday 26 July 2010, Sven Joachim <svenjoac(a)gmx.de> was heard to
say:
> You need to install the fakeroot package to build Debian packages
> as an ordinary user. �In Squeeze, dpkg-dev recommends fakeroot for
> that reason.

Well, that solves that question. I thought the fakeroot package was
for "that extra bit of security", because I had it confused
with "chroot" and that whole "jail" thing.

Got it! I'll try again on my main system (the Lenny one) again today
with all the advice given. I think it will work this time! And this
may be the first time I didn't get advice from Ron Johnson. :^)

Peace, may your aim never waver,

Curt-

- --
Those who torment us for our own good will torment us without end,
for they do so with the approval of their consciences.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iQEVAwUBTE14zy9Y35yItIgBAQIMUQf8CYY9pwPWAclrgaICSGmRna/YrNXntV8z
19bcK4Ac/mtK2TXuvwgzRieRS8VpBN7aEmlm5qbn8PvPl6sB/e86gQfCRVISnTym
6yKJmtfp2QbugPMSyhPIJpsoZp4ot7lZd9GPj664gMtwFe5/+2TAfshRjNlahzxb
Tz4C5ErAjN7DPtxXLp0hYDDdWi7PFl8a+juL9BgKoaToiiAUF7R15JVL1OnbzTd4
6k2sCbSs4Rndy2f6j6+/boDOvrYflg9iLn8bbWS4oY5CR3F+aunzfmvQRsKPXxlL
lXsVAH8M9vSSj83L7n8GxNODOtq/P/4sIjpfl5hvFET38sDC8VTnXw==
=KDgy
-----END PGP SIGNATURE-----


--
To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org
Archive: http://lists.debian.org/201007260800.15737.Howland(a)priss.com