Subject: pkg/27053: lang/python23[-pth] generates wrong PLIST on Solaris 8
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <lillack@mis.mpg.de>
List: pkgsrc-bugs
Date: 09/27/2004 15:04:48
>Number:         27053
>Category:       pkg
>Synopsis:       lang/python23[-pth] generates wrong PLIST on Solaris 8
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Sep 27 15:05:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Robert Lillack
>Release:        none
>Organization:
Max-Planck-Institute for Mathematics in the Sciences, Leipzig, Germany
>Environment:
SunOS runner 5.8 Generic_108528-15 sun4u sparc SUNW,Sun-Blade-1000

>Description:
the Solaris specific files in PLIST do not match the real files (which get installed correctly into lib/python2p3/plat-sunos5/)

lillack@runner:/opt/local/pkgsrc/src/lang/python23-pth> bmake show-var VARNAME=PY_PLATNAME
sunos5
lillack@runner:/opt/local/pkgsrc/src/lang/python23-pth> grep sunos5 work/.PLIST
lillack@runner:/opt/local/pkgsrc/src/lang/python23-pth> grep solaris5 work/.PLIST
lib/python2p3/plat-solaris5/IN.py
lib/python2p3/plat-solaris5/IN.pyc
lib/python2p3/plat-solaris5/IN.pyo
lib/python2p3/plat-solaris5/regen
lib/python2p3/plat-solaris5/CDIO.py
lib/python2p3/plat-solaris5/CDIO.pyc
lib/python2p3/plat-solaris5/CDIO.pyo
lib/python2p3/plat-solaris5/DLFCN.py
lib/python2p3/plat-solaris5/DLFCN.pyc
lib/python2p3/plat-solaris5/DLFCN.pyo
lib/python2p3/plat-solaris5/STROPTS.py
lib/python2p3/plat-solaris5/STROPTS.pyc
lib/python2p3/plat-solaris5/STROPTS.pyo
lib/python2p3/plat-solaris5/SUNAUDIODEV.py
lib/python2p3/plat-solaris5/SUNAUDIODEV.pyc
lib/python2p3/plat-solaris5/SUNAUDIODEV.pyo
lib/python2p3/plat-solaris5/TYPES.py
lib/python2p3/plat-solaris5/TYPES.pyc
lib/python2p3/plat-solaris5/TYPES.pyo
@dirrm lib/python2p3/plat-solaris5

>How-To-Repeat:
bmake ;)
>Fix:
quick fix:
cp work/.PLIST work/.PLIST.old
cat work/.PLIST.old | sed -e 's/solaris5/sunos5/g' > work/.PLIST

real fix:
dont know. Makefile.common looks right to me:

[...]
| .if ${OPSYS} == "SunOS"
| LOWER_OPSYS=   sunos
| .endif
[...]
| PY_PLATNAME=    ${LOWER_OPSYS}${OS_VERSION:C/\..*//}
[...]
| PLIST_SUBST+=   PY_PLATNAME=${PY_PLATNAME}
[...]

and "bmake show-var VARNAME=PY_PLATNAME" does in fact output sunos5 which is correct.
>Release-Note:
>Audit-Trail:
>Unformatted: