From patchwork Tue Jul 8 13:00:43 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gustavo Zacarias X-Patchwork-Id: 367899 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from fraxinus.osuosl.org (fraxinus.osuosl.org [140.211.166.137]) by ozlabs.org (Postfix) with ESMTP id 337691400B2 for ; Tue, 8 Jul 2014 23:01:03 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 22F1E87FCC; Tue, 8 Jul 2014 13:01:02 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id R4wfKeqxQUiH; Tue, 8 Jul 2014 13:01:00 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 5CC1C87FB1; Tue, 8 Jul 2014 13:01:00 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 332A71CF19C for ; Tue, 8 Jul 2014 13:00:59 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 2EF0B86A05 for ; Tue, 8 Jul 2014 13:00:59 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 2TaRjdxs5pfM for ; Tue, 8 Jul 2014 13:00:58 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from loknar.toptech.com.ar (loknar.toptech.com.ar [78.46.79.162]) by whitealder.osuosl.org (Postfix) with ESMTPS id A576A8580F for ; Tue, 8 Jul 2014 13:00:56 +0000 (UTC) Received: from asgard (host210.190-137-235.telecom.net.ar [190.137.235.210]) (authenticated bits=0) by loknar.toptech.com.ar (8.14.9/8.14.9) with ESMTP id s68D0okl010401 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 8 Jul 2014 13:00:52 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=zacarias.com.ar; s=dkey; t=1404824454; bh=Ur4a46cR/gzMfpHt0BaCh2f1faNql1c60GFwxwZt9h4=; h=From:To:Cc:Subject:Date; b=KqrJiMcAXuFkGYQHqCN+UuUAHNceQEVjxbhx9W4LYiwP7Hsp9xZVnJibu3LHPlsQc SnzU+Lo5IczCTS18XqMWoQiehjK658sKaJJkwvEaPfdHHPXQla1ruItAAxTQcU2Oav t7MkAZXPz0+658WBLPyK/NnFGxbZGPcNlQOYUcOE= Received: by asgard (sSMTP sendmail emulation); Tue, 08 Jul 2014 10:00:44 -0300 From: Gustavo Zacarias To: buildroot@busybox.net Date: Tue, 8 Jul 2014 10:00:43 -0300 Message-Id: <1404824443-5326-1-git-send-email-gustavo@zacarias.com.ar> X-Mailer: git-send-email 1.8.5.5 X-Virus-Scanned: clamav-milter 0.98.1 at loknar X-Virus-Status: Clean Subject: [Buildroot] [PATCH] php: fix phar build failure for CLI X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net Disable the phar command-line tool since it requires php to pack itself up. Fixes build failure for CLI (or CLI+CGI) variants of php. Hardly useful for embedded scenarios. Signed-off-by: Gustavo Zacarias --- package/php/php-03-disable-pharcmd.patch | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 package/php/php-03-disable-pharcmd.patch diff --git a/package/php/php-03-disable-pharcmd.patch b/package/php/php-03-disable-pharcmd.patch new file mode 100644 index 0000000..d4a8464 --- /dev/null +++ b/package/php/php-03-disable-pharcmd.patch @@ -0,0 +1,26 @@ +Disable the 'phar' command-line tool build/installation since it requires +php to run and pack up phar itself in phar format. This would require +a host-php instance and really probably nobody needs the phar tool +on the target. + +Signed-off-by: Gustavo Zacarias + +diff -Nura php-5.5.14.orig/configure php-5.5.14/configure +--- php-5.5.14.orig/configure 2014-07-08 09:52:52.657753194 -0300 ++++ php-5.5.14/configure 2014-07-08 09:53:07.610243933 -0300 +@@ -112930,13 +112930,8 @@ + INLINE_CFLAGS="$INLINE_CFLAGS $standard_libtool_flag" + CXXFLAGS="$CXXFLAGS $standard_libtool_flag" + +-if test "$PHP_PHAR" != "no" && test "$PHP_CLI" != "no"; then +- pharcmd=pharcmd +- pharcmd_install=install-pharcmd +-else +- pharcmd= +- pharcmd_install= +-fi; ++pharcmd= ++pharcmd_install= + + all_targets="$lcov_target \$(OVERALL_TARGET) \$(PHP_MODULES) \$(PHP_ZEND_EX) \$(PHP_BINARIES) $pharcmd" + install_targets="$install_sapi $install_modules $install_binaries install-build install-headers install-programs $install_pear $pharcmd_install"