python27 built successfully on aix 6.1, but the installation failed
during package creation. I've included the tail end of the output at
the bottom of this email, but the problem is that, for aix, only
libpython2.7.so gets built, and not also libpython2.7.so.1.0. PLIST
is expecting both, even though some systems will only build the
former.
I've attached a patch that fixes the problem by adding a PLIST_VAR to
cover the optional installation of the .so.1.0 file.
=> Automatic manual page handling
pkg_create: can't stat
`/home/pkgsrc/pkgsrc-2015Q4/lang/python27/work/.destdir/opt/pkgsrc-2015Q4/lib/libpython2.7.so.1.0'
=> Creating binary package
/home/pkgsrc/pkgsrc-2015Q4/lang/python27/work/.packages/python27-2.7.11.tgz
pkg_create: can't stat
`/home/pkgsrc/pkgsrc-2015Q4/lang/python27/work/.destdir/opt/pkgsrc-2015Q4/lib/libpython2.7.so.1.0'
pkg_create: lstat failed for file lib/libpython2.7.so.1.0: No such
file or directory
mv: cannot rename
/home/pkgsrc/pkgsrc-2015Q4/lang/python27/work/.packages/python27-2.7.11.tmp.tgz
to /home/pkgsrc/pkgsrc-2015Q4/lang/python27/work/.package
s/python27-2.7.11.tgz:
No such file or directory
*** Error code 1
Stop.
bmake[1]: stopped in /home/pkgsrc/pkgsrc-2015Q4/lang/python27
*** Error code 1
Stop.
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/lang/python27/Makefile,v
retrieving revision 1.54
diff -u -r1.54 Makefile
--- Makefile 6 Dec 2015 18:22:35 -0000 1.54
+++ Makefile 17 Jan 2016 08:48:18 -0000
@@ -108,6 +108,11 @@
CFLAGS+= -I${OSX_SDK_PATH}/usr/include
.endif
+PLIST_VARS+= sover
+.if ${OPSYS} != "AIX"
+PLIST.sover= yes
+.endif
+
PLIST_VARS+= dll nis no-nis
.if ${OPSYS} == "IRIX"
. if ${ABI} == "64"
Index: PLIST.common
===================================================================
RCS file: /cvsroot/pkgsrc/lang/python27/PLIST.common,v
retrieving revision 1.14
diff -u -r1.14 PLIST.common
--- PLIST.common 6 Dec 2015 18:22:35 -0000 1.14
+++ PLIST.common 17 Jan 2016 08:48:18 -0000
@@ -97,7 +97,7 @@
include/python${PY_VER_SUFFIX}/warnings.h
include/python${PY_VER_SUFFIX}/weakrefobject.h
${PLIST.dll}lib/libpython${PY_VER_SUFFIX}.so
-${PLIST.dll}lib/libpython${PY_VER_SUFFIX}.so.1.0
+${PLIST.dll}${PLIST.sover}lib/libpython${PY_VER_SUFFIX}.so.1.0
lib/pkgconfig/python-${PY_VER_SUFFIX}.pc
lib/python${PY_VER_SUFFIX}/BaseHTTPServer.py
lib/python${PY_VER_SUFFIX}/BaseHTTPServer.pyc