From patchwork Wed Jul 13 11:58:51 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Petazzoni X-Patchwork-Id: 1655964 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=buildroot.org (client-ip=2605:bc80:3010::136; helo=smtp3.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver=) Received: from smtp3.osuosl.org (smtp3.osuosl.org [IPv6:2605:bc80:3010::136]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4Ljbkk6BFgz9s09 for ; Wed, 13 Jul 2022 21:59:10 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id B827F6135D; Wed, 13 Jul 2022 11:59:07 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org B827F6135D X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4blANXMq6vbJ; Wed, 13 Jul 2022 11:59:05 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp3.osuosl.org (Postfix) with ESMTP id B8232607C7; Wed, 13 Jul 2022 11:59:04 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org B8232607C7 X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from smtp2.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id C84CF1BF20F for ; Wed, 13 Jul 2022 11:59:02 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id A28B740C5E for ; Wed, 13 Jul 2022 11:59:02 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org A28B740C5E X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id OLeEWj3beoVq for ; Wed, 13 Jul 2022 11:59:01 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.8.0 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org 55F824041C Received: from relay2-d.mail.gandi.net (relay2-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::222]) by smtp2.osuosl.org (Postfix) with ESMTPS id 55F824041C for ; Wed, 13 Jul 2022 11:59:00 +0000 (UTC) Received: (Authenticated sender: thomas.petazzoni@bootlin.com) by mail.gandi.net (Postfix) with ESMTPA id 9D63240005; Wed, 13 Jul 2022 11:58:57 +0000 (UTC) To: Buildroot List Date: Wed, 13 Jul 2022 13:58:51 +0200 Message-Id: <20220713115851.620731-1-thomas.petazzoni@bootlin.com> X-Mailer: git-send-email 2.36.1 MIME-Version: 1.0 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1657713538; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=6kewBAsM/FEOzfM3qCywaZYoBA2xMkTpu9aFI3KGjSE=; b=INRu7qr2On4WA2nrcyV0nm7B0Hqs0k/i+eqBQgcabMU7yCVmNJBfZ+Tq5Ueow68f0Vroy1 L726AwxEtO0CxMiE1m+Z4LlY6klDteZ5hyvhHIfUyE89P+KMB42anE46z1dFskf23zGFj6 IbF9rSUJypbRGufJNZ0n1asgELnmhLnP8u8f86dw2ViIu5MBm7fNF7BWmVQ+SmUvWBoFg0 H6XDWUBLYPzFy4yV/WQBQe2IdESN47p6Ephd1cqrs3howDzzlG217R5k0VFN3pjuTwHD/A GnRLQalIwMSODKQmA0F0FNI8WQmpAvXiqRygbPXH7ISQKc0cDWJvJ6wlLz761w== X-Mailman-Original-Authentication-Results: smtp2.osuosl.org; dkim=pass (2048-bit key, unprotected) header.d=bootlin.com header.i=@bootlin.com header.a=rsa-sha256 header.s=gm1 header.b=INRu7qr2 Subject: [Buildroot] [PATCH] package/python-pillow: fix host package build X-BeenThere: buildroot@buildroot.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Thomas Petazzoni via buildroot From: Thomas Petazzoni Reply-To: Thomas Petazzoni Cc: kory.maincent@bootlin.com, Angelo Compagnucci , Asaf Kahlon , Thomas Petazzoni Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" In commit d8c5d9b53437741c79cd3d759de1fe81af9055fd ("package/python-pillow: enable host variant"), when support for the host variant of python-pillow was added, the fact that python-pillow has optional dependencies was not handled, and left python-pillow to autodetect its optional dependencies. Unfortunately, without some config options, some of its dependencies are made mandatory, such as the JPEG library. Since for now such support is not needed in the host variant of python-pillow, we simply disable all optional dependencies. To be consistent with the target variant, we also ensure to have host-pkgconf as a dependency of the host variant. Signed-off-by: Thomas Petazzoni --- package/python-pillow/python-pillow.mk | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/package/python-pillow/python-pillow.mk b/package/python-pillow/python-pillow.mk index 8c9cb86863..0d189ac0ca 100644 --- a/package/python-pillow/python-pillow.mk +++ b/package/python-pillow/python-pillow.mk @@ -71,5 +71,18 @@ else PYTHON_PILLOW_BUILD_OPTS += --disable-webp --disable-webpmux endif +HOST_PYTHON_PILLOW_DEPENDENCIES = host-pkgconf +HOST_PYTHON_PILLOW_BUILD_OPTS = \ + build_ext \ + --disable-freetype \ + --disable-jpeg \ + --disable-lcms \ + --disable-xcb \ + --disable-jpeg2000 \ + --disable-tiff \ + --disable-webp \ + --disable-webpmux +HOST_PYTHON_PILLOW_INSTALL_OPTS = $(HOST_PYTHON_PILLOW_BUILD_OPTS) + $(eval $(python-package)) $(eval $(host-python-package))