• Bug#264685: util-vserver: FTBFS: cannot create regular file `sysv/vserv

    From Kurt Roeckx@1:229/2 to All on Sat Aug 14 21:00:08 2004
    From: [email protected]

    The amd64 buildd hit the same problem. We have even attempted to
    build this twice so far each time with the same error.

    What I see is this:
    -r-xr-xr-x 1 buildd buildd 1554 Aug 14 20:33 sysv/vservers
    -rwxr-xr-x 1 buildd buildd 1554 Aug 14 20:33 sysv/vservers.subst
    -rw-r--r-- 1 buildd buildd 1554 Aug 14 20:37 sysv/vservers.tmp

    All 3 files contain jus the same.

    cp -p 'sysv/vservers.subst' 'sysv/vservers'
    cp: cannot create regular file `sysv/vservers': Permission denied


    Kurt



    --
    To UNSUBSCRIBE, email to [email protected]
    with a subject of "unsubscribe". Trouble? Contact [email protected]

    --- SoupGate-Win32 v1.05
    * Origin: you cannot sedate... all the things you hate (1:229/2)
  • From Ola Lundqvist@1:229/2 to Kurt Roeckx on Sat Aug 14 22:30:10 2004
    From: [email protected]

    On Sat, Aug 14, 2004 at 08:41:04PM +0200, Kurt Roeckx wrote:
    The amd64 buildd hit the same problem. We have even attempted to
    build this twice so far each time with the same error.

    What I see is this:
    -r-xr-xr-x 1 buildd buildd 1554 Aug 14 20:33 sysv/vservers
    -rwxr-xr-x 1 buildd buildd 1554 Aug 14 20:33 sysv/vservers.subst
    -rw-r--r-- 1 buildd buildd 1554 Aug 14 20:37 sysv/vservers.tmp

    All 3 files contain jus the same.

    cp -p 'sysv/vservers.subst' 'sysv/vservers'
    cp: cannot create regular file `sysv/vservers': Permission denied

    To me it sounds like you can not copy from sysv to sysv. Does that
    mean that you do not have write permission on the build-tree?

    I suspect a problem with fakeroot.

    Noel seems to be able to reproduce this bug so I hope to solve this today
    or tomorrow.

    Regards,

    // Ola


    Kurt



    --
    --------------------- Ola Lundqvist ---------------------------
    / [email protected] Annebergsslingan 37 \
    | [email protected] 654 65 KARLSTAD |
    | +46 (0)54-10 14 30 +46 (0)70-332 1551 |
    | http://www.opal.dhs.org UIN/icq: 4912500 |
    \ gpg/f.p.: 7090 A92B 18FE 7994 0C36 4FE4 18A1 B1CF 0FE5 3DD9 /
    ---------------------------------------------------------------


    --
    To UNSUBSCRIBE, email to [email protected]
    with a subject of "unsubscribe". Trouble? Contact [email protected]

    --- SoupGate-Win32 v1.05
    * Origin: you cannot sedate... all the things you hate (1:229/2)
  • From Ola Lundqvist@1:229/2 to Kurt Roeckx on Sat Aug 14 22:40:07 2004
    From: [email protected]

    Hello again.

    On Sat, Aug 14, 2004 at 08:41:04PM +0200, Kurt Roeckx wrote:
    The amd64 buildd hit the same problem. We have even attempted to
    build this twice so far each time with the same error.

    What I see is this:
    -r-xr-xr-x 1 buildd buildd 1554 Aug 14 20:33 sysv/vservers
    -rwxr-xr-x 1 buildd buildd 1554 Aug 14 20:33 sysv/vservers.subst
    -rw-r--r-- 1 buildd buildd 1554 Aug 14 20:37 sysv/vservers.tmp

    All 3 files contain jus the same.

    cp -p 'sysv/vservers.subst' 'sysv/vservers'
    cp: cannot create regular file `sysv/vservers': Permission denied

    I suspect that you are not allowed to preserve permissions...

    from Makefile.in:

    sysv/%: sysv/%.subst
    @mkdir -p $$(dirname '$@')
    sed -e 's!/usr/lib/util-vserver!$(pkglibdir)!g; \
    s!^USR_SBIN=/usr/sbin$$!USR_SBIN=$(sbindir)!g; \
    s!^VROOTDIR=/vservers$$!VROOTDIR=$(vserverdir)!g; \
    ' '$<' >'[email protected]'
    if cmp -s '$<' '[email protected]'; then \
    cp -p '$<' '$@'; \
    else \
    mv -f '[email protected]' '$@'; \
    fi
    -rm -f '[email protected]'
    @chmod a-w '$@'

    I can not really see any error here, more than maybe that permissions
    is not needed to be preserved, more than on x-bit and timestamp.

    If you change the -p to --preserve=timestamp, is it the same?

    Regards,

    // Ola


    Kurt



    --
    --------------------- Ola Lundqvist ---------------------------
    / [email protected] Annebergsslingan 37 \
    | [email protected] 654 65 KARLSTAD |
    | +46 (0)54-10 14 30 +46 (0)70-332 1551 |
    | http://www.opal.dhs.org UIN/icq: 4912500 |
    \ gpg/f.p.: 7090 A92B 18FE 7994 0C36 4FE4 18A1 B1CF 0FE5 3DD9 /
    ---------------------------------------------------------------


    --
    To UNSUBSCRIBE, email to [email protected]
    with a subject of "unsubscribe". Trouble? Contact [email protected]

    --- SoupGate-Win32 v1.05
    * Origin: you cannot sedate... all the things you hate (1:229/2)
  • From =?ISO-8859-1?Q?No=E8l_K=F6the?=@1:229/2 to All on Sat Aug 14 23:30:12 2004
    From: [email protected]

    Hello Roland and Kurt,

    Lets sumarize this problem:

    you both gets this when building:

    ...
    /usr/bin/make install DESTDIR=/tmp/buildd/util-vserver-0.30/debian/util-vserver make[1]: Entering directory `/tmp/buildd/util-vserver-0.30'
    /usr/bin/make install-am
    make[2]: Entering directory `/tmp/buildd/util-vserver-0.30'
    sed -e 's!/usr/lib/util-vserver!/usr/lib/util-vserver!g; \
    s!^USR_SBIN=/usr/sbin$!USR_SBIN=/usr/sbin!g; \
    ...

    We are getting:

    ...
    /usr/bin/make install DESTDIR=/tmp/util-vserver-0.30/debian/util-vserver make[1]: Entering directory `/tmp/util-vserver-0.30'
    /usr/bin/make install-am
    make[2]: Entering directory `/tmp/util-vserver-0.30'
    make[3]: Entering directory `/tmp/util-vserver-0.30'
    test -z "/usr/lib" || mkdir -p -- . "/tmp/util-vserver-0.30/debian/util-vserver/usr/lib"
    ...

    I dont know why exactly there is a differnce.:(

    Just as an idea. Could you send me your Makefile and config.log to look
    if there is a differences?

    thx.

    --
    Noèl Köthe <noel debian.org>
    Debian GNU/Linux, www.debian.org

    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.2.5 (GNU/Linux)

    iD8DBQBBHn1S9/DnDzB9Vu0RArCxAJ95x7JddmS4Pn6PHyM9Z5Z2WPJ8NgCeOiJY BLJmwRkdZRFGt27elUz+hyY=
    =kDry
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: you cannot sedate... all the things you hate (1:229/2)
  • From Kurt Roeckx@1:229/2 to Ola Lundqvist on Sat Aug 14 23:50:04 2004
    From: [email protected]

    On Sat, Aug 14, 2004 at 10:29:05PM +0200, Ola Lundqvist wrote:

    I suspect that you are not allowed to preserve permissions...

    from Makefile.in:

    sysv/%: sysv/%.subst
    @mkdir -p $$(dirname '$@')
    sed -e 's!/usr/lib/util-vserver!$(pkglibdir)!g; \
    s!^USR_SBIN=/usr/sbin$$!USR_SBIN=$(sbindir)!g; \
    s!^VROOTDIR=/vservers$$!VROOTDIR=$(vserverdir)!g; \
    ' '$<' >'[email protected]'
    if cmp -s '$<' '[email protected]'; then \
    cp -p '$<' '$@'; \
    else \
    mv -f '[email protected]' '$@'; \
    fi
    -rm -f '[email protected]'
    @chmod a-w '$@'

    And it's that last line that causes the problem. This is run
    twice, and the second time you can't write to it anymore.


    Kurt



    --
    To UNSUBSCRIBE, email to [email protected]
    with a subject of "unsubscribe". Trouble? Contact [email protected]

    --- SoupGate-Win32 v1.05
    * Origin: you cannot sedate... all the things you hate (1:229/2)
  • From Kurt Roeckx@1:229/2 to All on Sat Aug 14 23:50:06 2004
    From: [email protected]

    On Sat, Aug 14, 2004 at 11:00:03PM +0200, No�l K�the wrote:
    Hello Roland and Kurt,

    [...]
    /usr/bin/make install DESTDIR=/tmp/util-vserver-0.30/debian/util-vserver make[1]: Entering directory `/tmp/util-vserver-0.30'
    /usr/bin/make install-am
    make[2]: Entering directory `/tmp/util-vserver-0.30'
    make[3]: Entering directory `/tmp/util-vserver-0.30'
    test -z "/usr/lib" || mkdir -p -- . "/tmp/util-vserver-0.30/debian/util-vserver/usr/lib"
    ...

    I dont know why exactly there is a differnce.:(

    I have a guess. I'm using a 2.6 kernel. Roland, do you have a
    2.6 kernel too?

    I think make runs the target again because it sees a difference
    in time here that it doesn't see there.


    Kurt

    --- SoupGate-Win32 v1.05
    * Origin: you cannot sedate... all the things you hate (1:229/2)
  • From Roland Stigge@1:229/2 to Kurt Roeckx on Sun Aug 15 00:10:08 2004
    From: [email protected]

    On Sat, 2004-08-14 at 23:28, Kurt Roeckx wrote:
    I have a guess. I'm using a 2.6 kernel. Roland, do you have a
    2.6 kernel too?

    Yes. 2.6.7.

    I think make runs the target again because it sees a difference
    in time here that it doesn't see there.

    To add to the confusion: Using "pbuilder build", I can reproduce the
    problem, but manually, in a chroot ("pbuilder login"), I can't.
    Therefore, it is difficult to get the Makefile and config.log of the
    problem case. :) Noel, please tell me if you really need these ones (in
    case you can't reproduce the problem with "pbuilder build"). Ola didn't
    try with pbuilder. You really should.

    bye,
    Roland



    --
    To UNSUBSCRIBE, email to [email protected]
    with a subject of "unsubscribe". Trouble? Contact [email protected]

    --- SoupGate-Win32 v1.05
    * Origin: you cannot sedate... all the things you hate (1:229/2)