Re: [PATCH] exec: fix exec_file_name in conjunction with fakeroot or chroot

2013-11-21 Thread Justus Winter
Quoting Samuel Thibault (2013-11-19 09:30:22)
 Justus Winter, le Mon 18 Nov 2013 18:54:45 +0100, a écrit :
  Quoting Samuel Thibault (2013-11-18 17:15:05)
   So with this patch, does building packages inside the hurdish fakeroot
   now works?
  
  No :/ something funny happens with some path during make
  install. Looks like the first and third components are stripped off:
  
  % pwd
  /home/teythoon/scratch/packages/hurd-pkg
  % fakeroot debian/rules binary
  dh binary -Bbuild-deb --with autotools_dev,autoreconf
 debian/rules override_dh_auto_install
  make[1]: Entering directory `/teythoon/packages/hurd-pkg'
 
 I don't get this issue.

Hm, so this is probably related to my setup. Let's see:

% fsysopts /home/teythoon
ext2fs --writable --no-atime --no-inherit-dir-group --sync=30 
--store-type=typed device:hd0s1
% ls -l /home/teythoon/scratch
lrwxr-xr-x 1 teythoon teythoon 23 Jun  8 18:08 /home/teythoon/scratch - 
/media/scratch/teythoon/
% fsysopts /media/scratch
/hurd/ext2fs --writable --no-atime --no-inherit-dir-group --sync=30 /dev/hd1s1

With your recent patch, the hello package builds fine in /usr/src
(which lives on the root filesystem) which is a good sign, as hello
uses quite a lot of features of the build system. If I try this in
/home/teythoon/scratch/packages, this fails:

% pwd
/home/teythoon/scratch/packages/hello-2.8
% dpkg-buildpackage -rfakeroot-hurd -b
[...]
make[3]: Entering directory `/teythoon/packages/hello-2.8/src'
test -z /home/teythoon/scratch/packages/hello-2.8/debian/tmp/usr/bin || 
/bin/mkdir -p /home/teythoon/scratch/packages/hello-2.8/debian/tmp/usr/bin
  /usr/bin/install -c hello 
'/home/teythoon/scratch/packages/hello-2.8/debian/tmp/usr/bin'
/usr/bin/install: cannot create regular file 
`/home/teythoon/scratch/packages/hello-2.8/debian/tmp/usr/bin/hello': Is a 
directory
make[3]: *** [install-binPROGRAMS] Error 1
make[3]: Leaving directory `/teythoon/packages/hello-2.8/src'
make[2]: *** [install-am] Error 2
make[2]: Leaving directory `/teythoon/packages/hello-2.8/src'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/teythoon/packages/hello-2.8'
make: *** [binary-arch] Error 2
/bin/fakeauth: Error 2 for child 2711

 It however seems to get stuck at dh_gencontrol -a -O-Bbuild-deb

I now also see this issue you encountered, e.g. when building gnumach:

% ps Ax
[...]
teythoon 27897 p1  0 Sw0:00.07 /usr/bin/perl -w /usr/bin/dh_gencontrol -a
teythoon 27905  ?  1 H 0:00.12 /usr/bin/perl /usr/bin/dpkg-gencontrol -pgnu
% gdb --pid 27905 /usr/bin/perl
[...]
(gdb) bt full
#0  0x010ffb09 in _hurd_intr_rpc_msg_in_trap () at intr-msg.c:133
err = optimized out
err = optimized out
user_option = 3
user_timeout = 5395
m = 0x15ff800
msgh_bits = 19378176
remote_port = 136064840
msgid = 48
save_data = {type = {msgt_name = 36, msgt_size = 198, 
msgt_number = 297, msgt_inline = 0, msgt_longform = 0, 
msgt_deallocate = 0, msgt_unused = 0}, err = 136064952}
__PRETTY_FUNCTION__ = _hurd_intr_rpc_mach_msg
#1  0x0127b000 in ?? () from /lib/i386-gnu/libc.so.0.3
No symbol table info available.
Backtrace stopped: previous frame inner to this frame (corrupt stack?)

The remote port looks fishy...

Justus


--
To UNSUBSCRIBE, email to debian-hurd-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/20131121101803.8960.11...@thinkbox.jade-hamburg.de



Re: [PATCH] exec: fix exec_file_name in conjunction with fakeroot or chroot

2013-11-19 Thread Samuel Thibault
Justus Winter, le Mon 18 Nov 2013 18:54:45 +0100, a écrit :
 Quoting Samuel Thibault (2013-11-18 17:15:05)
  So with this patch, does building packages inside the hurdish fakeroot
  now works?
 
 No :/ something funny happens with some path during make
 install. Looks like the first and third components are stripped off:
 
 % pwd
 /home/teythoon/scratch/packages/hurd-pkg
 % fakeroot debian/rules binary
 dh binary -Bbuild-deb --with autotools_dev,autoreconf
debian/rules override_dh_auto_install
 make[1]: Entering directory `/teythoon/packages/hurd-pkg'

I don't get this issue.  It however seems to get stuck at 
dh_gencontrol -a -O-Bbuild-deb

Samuel


-- 
To UNSUBSCRIBE, email to debian-hurd-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/20131119083021.gb5...@type.youpi.perso.aquilenet.fr



Re: [PATCH] exec: fix exec_file_name in conjunction with fakeroot or chroot

2013-11-18 Thread Samuel Thibault
Justus Winter, le Mon 18 Nov 2013 16:49:57 +0100, a écrit :
 However, the identity ports are still compared. This cannot succeed if
 fakeroot or chroot is used,

Aah, that's why.

So with this patch, does building packages inside the hurdish fakeroot
now works?

Samuel


-- 
To UNSUBSCRIBE, email to debian-hurd-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20131118161505.gn5...@type.bordeaux.inria.fr



Re: [PATCH] exec: fix exec_file_name in conjunction with fakeroot or chroot

2013-11-18 Thread Justus Winter
Quoting Samuel Thibault (2013-11-18 17:15:05)
 Justus Winter, le Mon 18 Nov 2013 16:49:57 +0100, a écrit :
  However, the identity ports are still compared. This cannot succeed if
  fakeroot or chroot is used,
 
 Aah, that's why.
 
 So with this patch, does building packages inside the hurdish fakeroot
 now works?

No :/ something funny happens with some path during make
install. Looks like the first and third components are stripped off:

% pwd
/home/teythoon/scratch/packages/hurd-pkg
% fakeroot debian/rules binary
dh binary -Bbuild-deb --with autotools_dev,autoreconf
   debian/rules override_dh_auto_install
make[1]: Entering directory `/teythoon/packages/hurd-pkg'
dh_auto_install -Bbuild-deb --destdir= -- 
prefix=/teythoon/packages/hurd-pkg/debian/tmp 
libdir=/teythoon/packages/hurd-pkg/debian/tmp/lib/i386-gnu 
sysconfdir=/teythoon/packages/hurd-pkg/debian/tmp/etc 
localstatedir=/teythoon/packages/hurd-pkg/debian/tmp/var 
XKB_BASE=/teythoon/packages/hurd-pkg/debian/tmp/usr/share/X11/xkb
/bin/sh: 1: cd: can't cd to ../
make[2]: Entering directory `/teythoon/packages/hurd-pkg/build-deb'
make -C libshouldbeinlibc install
make[3]: Entering directory 
`/teythoon/packages/hurd-pkg/build-deb/libshouldbeinlibc'
mkdir /teythoon
mkdir: cannot create directory `/teythoon': Permission denied
mkdir /teythoon/packages
mkdir: cannot create directory `/teythoon/packages': No such file or directory
mkdir /teythoon/packages/hurd-pkg
mkdir: cannot create directory `/teythoon/packages/hurd-pkg': No such file or 
directory
mkdir /teythoon/packages/hurd-pkg/debian
mkdir: cannot create directory `/teythoon/packages/hurd-pkg/debian': No such 
file or directory
mkdir /teythoon/packages/hurd-pkg/debian/tmp
mkdir: cannot create directory `/teythoon/packages/hurd-pkg/debian/tmp': No 
such file or directory
mkdir /teythoon/packages/hurd-pkg/debian/tmp/lib
mkdir: cannot create directory `/teythoon/packages/hurd-pkg/debian/tmp/lib': No 
such file or directory
mkdir /teythoon/packages/hurd-pkg/debian/tmp/lib/i386-gnu
mkdir: cannot create directory 
`/teythoon/packages/hurd-pkg/debian/tmp/lib/i386-gnu': No such file or directory
make[3]: *** [/teythoon/packages/hurd-pkg/debian/tmp/lib/i386-gnu] Error 1
make[3]: Leaving directory 
`/teythoon/packages/hurd-pkg/build-deb/libshouldbeinlibc'
make[2]: *** [libshouldbeinlibc-install] Error 2
make[2]: Leaving directory `/teythoon/packages/hurd-pkg/build-deb'
dh_auto_install: make -j1 install 
DESTDIR=/teythoon/packages/hurd-pkg/debian/tmp AM_UPDATE_INFO_DIR=no 
prefix=/teythoon/packages/hurd-pkg/debian/tmp 
libdir=/teythoon/packages/hurd-pkg/debian/tmp/lib/i386-gnu 
sysconfdir=/teythoon/packages/hurd-pkg/debian/tmp/etc 
localstatedir=/teythoon/packages/hurd-pkg/debian/tmp/var 
XKB_BASE=/teythoon/packages/hurd-pkg/debian/tmp/usr/share/X11/xkb returned exit 
code 2
make[1]: *** [override_dh_auto_install] Error 2
make[1]: Leaving directory `/teythoon/packages/hurd-pkg'
make: *** [binary] Error 2
/bin/fakeauth: Error 2 for child 13817

Justus


--
To UNSUBSCRIBE, email to debian-hurd-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/20131118175445.30740.49...@thinkbox.jade-hamburg.de



Re: [PATCH] exec: fix exec_file_name in conjunction with fakeroot or chroot

2013-11-18 Thread Samuel Thibault
Justus Winter, le Mon 18 Nov 2013 18:54:45 +0100, a écrit :
 Quoting Samuel Thibault (2013-11-18 17:15:05)
  Justus Winter, le Mon 18 Nov 2013 16:49:57 +0100, a écrit :
   However, the identity ports are still compared. This cannot succeed if
   fakeroot or chroot is used,
  
  Aah, that's why.
  
  So with this patch, does building packages inside the hurdish fakeroot
  now works?
 
 No :/ something funny happens with some path during make
 install. Looks like the first and third components are stripped off:

Mmm.

Building xosview seems to be almost working for instance, at least.
Remaining is just this:

dpkg-deb: building package `xosview' in `../xosview_1.15-2_hurd-i386.deb'.
tar: ./usr/share/doc/xosview/changelog.gz: Unknown file type; file ignored
tar: ./usr/share/doc/xosview/README.linux.gz: Unknown file type; file ignored
tar: ./usr/share/doc/xosview/changelog.Debian.gz: Unknown file type; file 
ignored
tar: ./usr/share/man/man1/xosview.1.gz: Unknown file type; file ignored
tar: Exiting with failure status due to previous errors

Samuel


-- 
To UNSUBSCRIBE, email to debian-hurd-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/20131118233655.gs5...@type.youpi.perso.aquilenet.fr



Re: [PATCH] exec: fix exec_file_name in conjunction with fakeroot or chroot

2013-11-18 Thread Samuel Thibault
Samuel Thibault, le Tue 19 Nov 2013 00:36:55 +0100, a écrit :
 Justus Winter, le Mon 18 Nov 2013 18:54:45 +0100, a écrit :
  Quoting Samuel Thibault (2013-11-18 17:15:05)
   Justus Winter, le Mon 18 Nov 2013 16:49:57 +0100, a écrit :
However, the identity ports are still compared. This cannot succeed if
fakeroot or chroot is used,
   
   Aah, that's why.
   
   So with this patch, does building packages inside the hurdish fakeroot
   now works?
  
  No :/ something funny happens with some path during make
  install. Looks like the first and third components are stripped off:
 
 Mmm.
 
 Building xosview seems to be almost working for instance, at least.
 Remaining is just this:
 
 dpkg-deb: building package `xosview' in `../xosview_1.15-2_hurd-i386.deb'.
 tar: ./usr/share/doc/xosview/changelog.gz: Unknown file type; file ignored
 tar: ./usr/share/doc/xosview/README.linux.gz: Unknown file type; file ignored
 tar: ./usr/share/doc/xosview/changelog.Debian.gz: Unknown file type; file 
 ignored
 tar: ./usr/share/man/man1/xosview.1.gz: Unknown file type; file ignored
 tar: Exiting with failure status due to previous errors

dpkg-buildpackage -S fails too, and it can be reduced to this:

€ fakeroot-hurd
# cat test.c
#include sys/stat.h
int main(void) {
mkdir(/tmp/foo, 0700);
chmod (/tmp/foo, 0700);
return 0;
}
# make test
# ./test
# ls -ld /tmp/foo
?rwx-- 2 samy samy 4,0K nov.  19 00:17 /tmp/foo

Indeed, the returned mode is now 700, not 40700.  The attached patch,
now commited, fixed it.

Samuel


-- 
To UNSUBSCRIBE, email to debian-hurd-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/20131119004534.gu5...@type.youpi.perso.aquilenet.fr