pkgsrc-Bugs archive

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

pkg/30786: python24-2.4.1nb1: 'make clean' fails as user after install



>Number:         30786
>Category:       pkg
>Synopsis:       python24-2.4.1nb1: 'make clean' fails as user after install
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jul 19 21:37:00 +0000 2005
>Originator:     Alexander Becher
>Release:        NetBSD 2.0_STABLE
>Organization:
>Environment:
        
        
System: NetBSD abc 2.0_STABLE NetBSD 2.0_STABLE (abc) #0: Tue Jun 28 22:47:41 
CEST 2005 alex@abc:/usr/obj/sys/arch/i386/compile/abc i386
Architecture: i386
Machine: i386
>Description:
Installing python24-2.4.1nb1 (CVS HEAD of today) creates files owned by
user root in the build directory. These can't be removed when doing a
'make clean' as a non-priviledged user.
>How-To-Repeat:
        $ cd /usr/pkgsrc/lang/python24
        $ make
        # make install
        $ make clean
        ===> Cleaning for python24-2.4.1nb1
        rm: /usr/pkgobj/lang/python24/work/Python-2.4.1/Lib/plat-netbsd2/regen: 
Permission denied
        rm: /usr/pkgobj/lang/python24/work/Python-2.4.1/Lib/plat-netbsd2/IN.py: 
Permission denied
        rm: /usr/pkgobj/lang/python24/work/Python-2.4.1/Lib/plat-netbsd2: 
Directory not empty
        rm: /usr/pkgobj/lang/python24/work/Python-2.4.1/Lib: Directory not empty
        rm: /usr/pkgobj/lang/python24/work/Python-2.4.1: Directory not empty
        rm: /usr/pkgobj/lang/python24/work: Directory not empty
        *** Error code 1

        Stop.
        make: stopped in /usr/pkgsrc/lang/python24

        The files that remain are:
        $ ls -lAR /usr/pkgsrc/lang/python24/work/
        total 1
        drwxr-xr-x  3 alex  wobj  1024 Jul 19 23:28 Python-2.4.1/

        work//Python-2.4.1:
        total 6
        drwxr-xr-x  3 alex  wobj  5632 Jul 19 23:28 Lib/

        work//Python-2.4.1/Lib:
        total 1
        drwxr-xr-x  2 root  wobj  512 Jul 19 23:26 plat-netbsd2/

        work//Python-2.4.1/Lib/plat-netbsd2:
        total 9
        -rw-r--r--  1 root  wobj  7327 Jul 19 23:26 IN.py
        -rwxr-xr-x  1 root  wobj    97 Jul 19 23:26 regen*

>Fix:
        The workaround is to do 'make clean' as root.

        Maybe remove these files in post-install? Creating files in the
        build directory during 'make install' is probably quite nasty of
        python, so maybe convince the python authors not to do this?

>Unformatted:
        
        



Home | Main Index | Thread Index | Old Index