[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

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



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


Reply to: