reopen   579216 !  

thanks

On Mon, 26 Apr 2010 19:59:34 -0400
Joey Hess <jo...@debian.org> wrote:

> Apparently something on your machine, such as a manual rm
> -rf /tmp/* , deleted /tmp/gwc-0.21 while alien was running.

No manual or automated 'rm -rf /tmp/*' was run. (See 'foo' below).

'/tmp/gwc-0.21' wasn't deleted while 'alien' ran; rather
'alien' created that directory, and left it behind when it failed.
(See 'tree' below).

The bug is also reproducible here with any '.rpm', or those that I've
tried so far.

> This explains why it failed to run its generated debian/rules, since the
> rules file got deleted, and why it failed to run find over the tree
> on exit.

That logic seems valid, but its premise (i.e. some other process deleting
stuff) is false.

> As far as I can tell, this is not a bug in alien.

I don't know.  Let's make our own '.rpm' (using 'alien'), then see
what happens...

        % whoami
        root
        # goto '/root'
        % cd ~
        # make an '.rpm'
        % alien -r /var/cache/apt/archives/dash_0.5.5.1-3_i386.deb 
        Warning: Skipping conversion of scripts in package dash: postinst 
postrm preinst prerm
        Warning: Use the --scripts parameter to include the scripts.
        dash-0.5.5.1-4.i386.rpm generated
        % cd /tmp
        # show there's nothing 'dash'-ey in '/tmp'
        % ls dash*
        ls: cannot access dash*: No such file or directory
        # show there's no mass deletions going on, Part 1
        % echo hello > foo ; ls -l foo
        -rw-r--r-- 1 root root 6 Apr 28 06:37 foo
        # try to convert .rpm
        % alien /root/dash-0.5.5.1-4.i386.rpm 
        Use of uninitialized value $log in die at 
/usr/share/perl5/Alien/Package/Deb.pm line 495, <GETPERMS> line 19.
        Package build failed. Here's the log:
        find: `dash-0.5.5.1': No such file or directory
        # fails to return proper error code too...
        % echo $?
        0
        # show there's no mass deletions going on, Part 2
        % ls -l foo
        -rw-r--r-- 1 root root 6 Apr 28 06:37 foo
        # show what 'alien' left behind.
        % tree dash*
        dash-0.5.5.1/
        |-- bin
        |   |-- dash
        |   `-- sh -> dash
        |-- debian
        |   |-- changelog
        |   |-- control
        |   |-- copyright
        |   `-- rules
        `-- usr
            `-- share
                |-- doc
                |   `-- dash
                |       |-- NEWS.Debian.gz
                |       |-- README.Debian.diet
                |       |-- changelog.Debian.gz
                |       |-- changelog.gz
                |       `-- copyright
                |-- man
                |   `-- man1
                |       |-- dash.1.gz
                |       `-- sh.1.gz -> dash.1.gz
                `-- menu
                    `-- dash
        
        9 directories, 14 files

Observations: the '.rpm' or other source file location is probably
irrelevant.  The trigger seems to be that PWD=/tmp.  

Maybe it's a '/tmp' permissions problem?  Many install scripts get hung
up on these, perhaps 'alien' does too.  My system:

        % ls -l / | grep tmp
        drwxrwxrwt   9 root root    12288 Apr 28 06:37 tmp
        % lsattr / 2> /dev/null | grep tmp
        --------------I---- /tmp

Also 'alien' shouldn't return an error code of '0' when it fails.

HTH...



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

Reply via email to