Received: by mail.netbsd.org (Postfix, from userid 605) id BC25784F1A; Fri, 13 May 2022 17:32:15 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 0045084F15 for ; Fri, 13 May 2022 17:32:15 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([127.0.0.1]) by localhost (mail.netbsd.org [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id tfsskO7s6Ler for ; Fri, 13 May 2022 17:32:14 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.netbsd.org [199.233.217.197]) by mail.netbsd.org (Postfix) with ESMTP id 4F0D184CE3 for ; Fri, 13 May 2022 17:32:14 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 6D3C2FA94; Fri, 13 May 2022 17:32:37 +0000 (UTC) Content-Transfer-Encoding: 7bit Content-Type: multipart/mixed; boundary="_----------=_165246315721390" MIME-Version: 1.0 Date: Fri, 13 May 2022 17:32:37 +0000 From: "Tobias Nygren" Subject: CVS commit: pkgsrc/lang/python27 To: pkgsrc-changes@NetBSD.org Reply-To: tnn@netbsd.org X-Mailer: log_accum Message-Id: <20220513173237.6D3C2FA94@cvs.NetBSD.org> Sender: pkgsrc-changes-owner@NetBSD.org List-Id: Precedence: bulk List-Unsubscribe: This is a multi-part message in MIME format. --_----------=_165246315721390 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Module Name: pkgsrc Committed By: tnn Date: Fri May 13 17:32:37 UTC 2022 Modified Files: pkgsrc/lang/python27: Makefile Log Message: python27: fix build on macOS We must pass -isysroot with the explicit path to the MacOSX SDK in CFLAGS. Without this setup.py fails to find builtin zlib and bzip2. See comment in ${WRKSRC}/Lib/distutils/unixccompiler.py:find_library_file() for why this is necessary. To generate a diff of this commit: cvs rdiff -u -r1.99 -r1.100 pkgsrc/lang/python27/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. --_----------=_165246315721390 Content-Disposition: inline Content-Length: 742 Content-Transfer-Encoding: binary Content-Type: text/x-diff; charset=us-ascii Modified files: Index: pkgsrc/lang/python27/Makefile diff -u pkgsrc/lang/python27/Makefile:1.99 pkgsrc/lang/python27/Makefile:1.100 --- pkgsrc/lang/python27/Makefile:1.99 Fri Feb 25 22:41:32 2022 +++ pkgsrc/lang/python27/Makefile Fri May 13 17:32:37 2022 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.99 2022/02/25 22:41:32 gutteridge Exp $ +# $NetBSD: Makefile,v 1.100 2022/05/13 17:32:37 tnn Exp $ .include "dist.mk" @@ -104,7 +104,7 @@ PLIST.extra-so= yes # modules will not be built. .if ${OPSYS} == "Darwin" . if exists(${OSX_SDK_PATH}/usr/include) -CFLAGS+= -I${OSX_SDK_PATH:Q}/usr/include +CFLAGS+= -isysroot ${OSX_SDK_PATH:Q} . endif . if exists(${OSX_SDK_PATH}/System/Library/Frameworks/QuickTime.framework) PLIST.qt= yes --_----------=_165246315721390--