From f5f90852a2c0d638e41f2c35e7594ec5328bda08 Mon Sep 17 00:00:00 2001 From: Jakub Jirutka Date: Tue, 25 Oct 2016 16:29:43 +0200 Subject: main/python2: skip py2-tkinter when BOOTSTRAP is set --- main/python2/APKBUILD | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/main/python2/APKBUILD b/main/python2/APKBUILD index 2d535c4a3a..7f0e26a21d 100644 --- a/main/python2/APKBUILD +++ b/main/python2/APKBUILD @@ -9,17 +9,20 @@ arch="all" license="custom" provides="python=$pkgver-r$pkgrel" replaces="python" -subpackages="$pkgname-dbg $pkgname-dev $pkgname-doc $pkgname-tests - py-gdbm:gdbm py2-tkinter:tkinter" +subpackages="$pkgname-dbg $pkgname-dev $pkgname-doc $pkgname-tests py-gdbm:gdbm" depends="" makedepends="expat-dev libressl-dev zlib-dev ncurses-dev bzip2-dev - gdbm-dev sqlite-dev libffi-dev readline-dev linux-headers paxmark - tk tk-dev" + gdbm-dev sqlite-dev libffi-dev readline-dev linux-headers paxmark" source="http://www.python.org/ftp/python/$pkgver/Python-$pkgver.tar.xz musl-find_library.patch unchecked-ioctl.patch" builddir="$srcdir/Python-$pkgver" +# To avoid circular dependency between python2 and x11 when bootstrapping. +if [ -z "$BOOTSTRAP" ]; then + subpackages="$subpackages py2-tkinter:tkinter" + makedepends="$makedepends tk tk-dev" +fi prepare() { default_prepare || return 1 -- cgit v1.2.3