Bug#702102: fails to upgrade (cowbuilder) chroot

2013-03-27 Thread Junichi Uekawa
I've read the full thread now, sorry for the quick response, I was working down 
the list.

At Tue, 26 Mar 2013 13:46:08 +0100,
Michael Biebl wrote:
 
 [1  text/plain; ISO-8859-1 (quoted-printable)]
 Am 26.03.2013 09:48, schrieb Junichi Uekawa:
  not enough information in the bug, 702811 seems to be a better bug.
 
 Say what? Have you read the full bug report, including the analysis that
 it is because of /run/shm vs /dev/shm?
 
 It's trivial to reproduce the bug this way. So I don't understand which
 information you are missing
 
 Michael
 
 
 -- 
 Why is it that all of the instruments seeking intelligent life in the
 universe are pointed away from Earth?
 
 [2 OpenPGP digital signature application/pgp-signature (7bit)]
 


-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#702102: fails to upgrade (cowbuilder) chroot

2013-03-26 Thread Michael Biebl
Am 26.03.2013 09:48, schrieb Junichi Uekawa:
 not enough information in the bug, 702811 seems to be a better bug.

Say what? Have you read the full bug report, including the analysis that
it is because of /run/shm vs /dev/shm?

It's trivial to reproduce the bug this way. So I don't understand which
information you are missing

Michael


-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?



signature.asc
Description: OpenPGP digital signature


Bug#702102: fails to upgrade (cowbuilder) chroot

2013-03-26 Thread Chris Knadle
On Tuesday, March 26, 2013 08:46:08, Michael Biebl wrote:
 Am 26.03.2013 09:48, schrieb Junichi Uekawa:
  not enough information in the bug, 702811 seems to be a better bug.
 
 Say what? Have you read the full bug report, including the analysis that
 it is because of /run/shm vs /dev/shm?

Related to this, a patch was incorporated from the following email to handle 
another bug.

   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=700591#5

Based on the idea that it's somehow this patch that's causing this new 
problem, I'm pulling at straws to try to help figure out why.

You mentioned you have /run/shm but not /dev/shm.  Based on that I'm looking 
at the following logic from the patch:

+if [ $DEB_BUILD_ARCH_OS = linux ]  [ $USEDEVSHM = yes ]; then
+   SHM_PATH=run/shm  
 
+   [ ! -d /$SHM_PATH ]  SHM_PATH=dev/shm

This looks to me like it's checking if /run/shm exists (and is a directory), 
and if it doesn't then blindly uses /dev/shm instead.  This seems reasonable 
but I'm wondering if there's some way for this test to fail.  If /run/shm were 
a /device/ rather than a directory or a softlink to a directory, that would be 
one way for that to happen.

  -- Chris

--
Chris Knadle
chris.kna...@coredump.us


-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#702102: fails to upgrade (cowbuilder) chroot

2013-03-26 Thread Junichi Uekawa
not enough information in the bug, 702811 seems to be a better bug.

At Sat, 02 Mar 2013 20:05:43 +0100,
Michael Biebl wrote:
 
 Package: pbuilder
 Version: 0.214
 Severity: serious
 
 Using cowbuilder in combination with pbuilder.
 The latest update broke cowbuilder --update
 Getting hundreds of:
 rm: cannot remove
 '/var/cache/pbuilder/build//cow.18262/proc/273/net/sockstat6': Operation
 not permitted
 
 
 
 
 -- System Information:
 Debian Release: 7.0
   APT prefers unstable
   APT policy: (500, 'unstable'), (200, 'experimental')
 Architecture: amd64 (x86_64)
 Foreign Architectures: i386
 
 Kernel: Linux 3.2.0-4-amd64 (SMP w/4 CPU cores)
 Locale: LANG=de_DE.utf8, LC_CTYPE=de_DE.utf8 (charmap=UTF-8)
 Shell: /bin/sh linked to /bin/dash
 
 Versions of packages pbuilder depends on:
 ii  coreutils  8.20-3
 ii  debconf [debconf-2.0]  1.5.49
 ii  debianutils4.3.4
 ii  debootstrap1.0.46
 ii  dpkg-dev   1.16.9
 ii  wget   1.14-1
 
 Versions of packages pbuilder recommends:
 ii  devscripts  2.12.6
 ii  fakeroot1.18.4-2
 ii  sudo1.8.5p2-1+nmu1
 
 Versions of packages pbuilder suggests:
 ii  cowdancer 0.71
 ii  gdebi-core0.8.7
 pn  pbuilder-uml  none
 
 -- debconf information excluded
 
 ___
 Pbuilder-maint mailing list
 pbuilder-ma...@lists.alioth.debian.org
 http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pbuilder-maint
 


-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#702102: fails to upgrade (cowbuilder) chroot

2013-03-26 Thread Thorsten Glaser
Chris Knadle dixit:

+if [ $DEB_BUILD_ARCH_OS = linux ]  [ $USEDEVSHM = yes ]; then
+   SHM_PATH=run/shm 
  
+   [ ! -d /$SHM_PATH ]  SHM_PATH=dev/shm

This logic is totally and utterly borken.

Correct logic would be:

if outside_os = linux and inside_os = linux and USEDEVSHM:
if exists CHROOT/run/shm:
targetdir=run/shm
else if exists CHROOT/dev/shm:
targetdir=dev/shm
else:
abort
mount --bind $(realpath /dev/shm) CHROOT/$targetdir

This separates the resolution of /dev/shm outside (Linux)
from the resolution of /dev/shm or /run/shm inside.

I still believe this is not entirely right. If CHROOT/run
exists, it should be populated with a tmpfs, including
creation of subdirectories.

Does CHROOT/dev/shm/. need to be bind-mounted to whatever
/dev/shm/. is outside of the chroot, for the eglibc shm
semantics to work? If not… just mount a tmpfs there, too!

bye,
//mirabilos
-- 
[DJBDNS Zone] TTL 86400 – Natureshadow kann man da auch 1d schreiben?
mirabilos nö, außerdem kann ein Deutscher oder ein Japaner mit 1d
ja erstmal nix anfangen, oder könntest du 1日 im zone file lesen?
Natureshadow das heißt für mich: ein Regal, das u.U. schiefstehen könnte


--
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#702102: fails to upgrade (cowbuilder) chroot

2013-03-26 Thread Junichi Uekawa
I think that patch is completely borken too.
/dev/shm seems to be a symlink to /run/shm and /run/shm doesn't seem to exist 
(in older debootstrap ? how did they get generated?)

anyway, I've committed a change to only look at /run/shm.


At Tue, 26 Mar 2013 18:48:40 + (UTC),
Thorsten Glaser wrote:
 
 Chris Knadle dixit:
 
 +if [ $DEB_BUILD_ARCH_OS = linux ]  [ $USEDEVSHM = yes ]; then
 +   SHM_PATH=run/shm   
 
 +   [ ! -d /$SHM_PATH ]  SHM_PATH=dev/shm
 
 This logic is totally and utterly borken.
 
 Correct logic would be:
 
 if outside_os = linux and inside_os = linux and USEDEVSHM:
   if exists CHROOT/run/shm:
   targetdir=run/shm
   else if exists CHROOT/dev/shm:
   targetdir=dev/shm
   else:
   abort
   mount --bind $(realpath /dev/shm) CHROOT/$targetdir
 
 This separates the resolution of /dev/shm outside (Linux)
 from the resolution of /dev/shm or /run/shm inside.
 
 I still believe this is not entirely right. If CHROOT/run
 exists, it should be populated with a tmpfs, including
 creation of subdirectories.
 
 Does CHROOT/dev/shm/. need to be bind-mounted to whatever
 /dev/shm/. is outside of the chroot, for the eglibc shm
 semantics to work? If not… just mount a tmpfs there, too!
 
 bye,
 //mirabilos
 -- 
 [DJBDNS Zone] TTL 86400 – Natureshadow kann man da auch 1d schreiben?
 mirabilos nö, außerdem kann ein Deutscher oder ein Japaner mit 1d
 ja erstmal nix anfangen, oder könntest du 1日 im zone file lesen?
 Natureshadow das heißt für mich: ein Regal, das u.U. schiefstehen könnte
 
 ___
 Pbuilder-maint mailing list
 pbuilder-ma...@lists.alioth.debian.org
 http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pbuilder-maint


--
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#702102: fails to upgrade (cowbuilder) chroot

2013-03-02 Thread Michael Biebl
Package: pbuilder
Version: 0.214
Severity: serious

Using cowbuilder in combination with pbuilder.
The latest update broke cowbuilder --update
Getting hundreds of:
rm: cannot remove
'/var/cache/pbuilder/build//cow.18262/proc/273/net/sockstat6': Operation
not permitted




-- System Information:
Debian Release: 7.0
  APT prefers unstable
  APT policy: (500, 'unstable'), (200, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.2.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_DE.utf8, LC_CTYPE=de_DE.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages pbuilder depends on:
ii  coreutils  8.20-3
ii  debconf [debconf-2.0]  1.5.49
ii  debianutils4.3.4
ii  debootstrap1.0.46
ii  dpkg-dev   1.16.9
ii  wget   1.14-1

Versions of packages pbuilder recommends:
ii  devscripts  2.12.6
ii  fakeroot1.18.4-2
ii  sudo1.8.5p2-1+nmu1

Versions of packages pbuilder suggests:
ii  cowdancer 0.71
ii  gdebi-core0.8.7
pn  pbuilder-uml  none

-- debconf information excluded


-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org