pkgsrc-Bugs archive

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

pkg/45122: py27-Tk build failure



>Number:         45122
>Category:       pkg
>Synopsis:       py27-Tk build failure
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jul 05 13:05:00 +0000 2011
>Originator:     Alexander Nasonov
>Release:        Linux
>Organization:
NA
>Environment:
Linux xxx 2.6.18-128.el5 #1 SMP Wed Jan 21 10:41:14 EST 2009 x86_64 x86_64 
x86_64 GNU/Linux
>Description:
There are two problems with x11/py-Tk when PYTHON_VERSION_DEFAULT=27

  1) Patching of setup.py generates setup.py.rej
  2) Modules/tkinter.h is missing
>How-To-Repeat:
Set PYTHON_VERSION_DEFAULT=27 and try to build x11/py-Tk.
>Fix:
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/x11/py-Tk/Makefile,v
retrieving revision 1.45
diff -u -u -r1.45 Makefile
--- Makefile    4 May 2011 11:38:06 -0000       1.45
+++ Makefile    5 Jul 2011 13:01:53 -0000
@@ -23,14 +23,19 @@
 PY_SETUP_SUBST+= X11RTPREFIX=${X11BASE}
 PYSETUPINSTALLARGS+=   --install-lib ${PREFIX}/${PYLIB}/lib-dynload

+.include "../../lang/python/extension.mk"
+
+.if ${_PYTHON_VERSION} >= 27
+EXTRACT_ELEMENTS+=     ${PYSUBDIR}/Modules/tkinter.h
+.endif
+
 # ignore errors due to missing files (EXTRACT_ELEMENTS!)
 do-patch:
-       (cd ${WRKSRC}; \
        for f in ${PATCHDIR}/patch-*;do \
-       ${PATCH} --batch <$$f || true; \
-       done)
+       ${PATCH} ${PATCHARGS} --batch <$$f || true; \
+       done
+

-.include "../../lang/python/extension.mk"
 .include "../../lang/python/srcdist.mk"
 .include "../../lang/tcl/buildlink3.mk"
 .include "../../x11/tk/buildlink3.mk"


In do-patch target passing of ${PATCHARGS} can be omitted. It's cd ${WRKSRC} 
that causes a generation of setup.py.rej file.



Home | Main Index | Thread Index | Old Index