From patchwork Mon Dec 31 09:56:46 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Hunleth X-Patchwork-Id: 1019533 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.138; helo=whitealder.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=troodon-software.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=troodon-software-com.20150623.gappssmtp.com header.i=@troodon-software-com.20150623.gappssmtp.com header.b="EQ/FGhZg"; dkim-atps=neutral Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 43StG01ks3z9s55 for ; Mon, 31 Dec 2018 21:04:38 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 44C3485C20; Mon, 31 Dec 2018 10:04:36 +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 PB0fpQpCktqu; Mon, 31 Dec 2018 10:04:34 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 59ED085BD3; Mon, 31 Dec 2018 10:04:34 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id C55FD1C1118 for ; Mon, 31 Dec 2018 10:04:32 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id C2E272291B for ; Mon, 31 Dec 2018 10:04:32 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id utK34EZ5bp4u for ; Mon, 31 Dec 2018 10:04:32 +0000 (UTC) X-Greylist: delayed 00:06:36 by SQLgrey-1.7.6 Received: from mail-qk1-f176.google.com (mail-qk1-f176.google.com [209.85.222.176]) by silver.osuosl.org (Postfix) with ESMTPS id 0FB371FFC1 for ; Mon, 31 Dec 2018 10:04:32 +0000 (UTC) Received: by mail-qk1-f176.google.com with SMTP id q70so15506137qkh.6 for ; Mon, 31 Dec 2018 02:04:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=troodon-software-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=CYyFBldPP9fX19DWD0/rwgTwJs3nW539ObMv8j0pK5U=; b=EQ/FGhZgwp0NrwHIn4wDaHeAFPqOL3V949POrOjc4LFatRc3GzJ/F/qAC0C9Dj9Hsu nQi5C4cdlz1ZjHthW+4sQsm4lYkfIcwgqEMJJ6Og2GXwnPN2CXxmtU7TtexNRCfFgQWX js3eMjFIusTqgJA3c8nzxT/UNDB4tl8esX1yd21+cAGEoCL2JIBZs7VJrwoiAd3cixN7 Amn0wYXy//EK7Jd8fyVEs2QOPsO5ASly0qy3hsijQPE9KFmLF6Z69mdJUx5d+I1cyZTl cpEawEPF9Zf6YJSSPtnDeRTnpcCyCv5WhcGA3OCjOk4yRQ4z/kuh4d080Tj7KryQEIeu b2mw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=CYyFBldPP9fX19DWD0/rwgTwJs3nW539ObMv8j0pK5U=; b=Q8M48Y/JQFGOpfMPiX2MrvLGyCumZW0BSQ48tmAsWxSaRv1nvnzgRoHwpibdI4uP6q GhpsqHNHWzH9lgdFT/BSnIlUVh6bUFja43Hcupf7rA8sHaM+S5iVR8BonJTGW2VPFXr+ NkLaYR/TfXAw2LEOIlkyviA90doOErBU2xsJ2uruT1p77RiUNU0dyuDn22K52WedDoY9 hMlOPV5gDu3ToJ2YRqptAPQeDHOienfmFxqPZ4dsN0Tl2DWGAjvXs3/OBCrjt6AgJGnv 3gjtslBFtzFf5eIHsJKtaQQRatM4wnGITtyznaBezaU257OcMuXQdkwoCna7g02N6PM5 eDDg== X-Gm-Message-State: AJcUukffgTLknReuXtPfMolQVNRntcXz3jjW43hE6mfAKmKiBrcVRMp2 Yb4c2ErVf2LhYB2UyR39A92OS0gig0k= X-Google-Smtp-Source: ALg8bN6KBHnBY5BiKgjNThVRYpA/IEN8YFFQ9cV3KoS2fXPFF46XMP4DuUZQ0JbmHuwdCckZoYt0nQ== X-Received: by 2002:a37:b381:: with SMTP id c123mr33776480qkf.346.1546250275491; Mon, 31 Dec 2018 01:57:55 -0800 (PST) Received: from sprint.hunleth.lan (pool-74-96-77-75.washdc.fios.verizon.net. [74.96.77.75]) by smtp.gmail.com with ESMTPSA id j95sm20566217qtb.74.2018.12.31.01.57.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 31 Dec 2018 01:57:54 -0800 (PST) From: Frank Hunleth To: buildroot@buildroot.org Date: Mon, 31 Dec 2018 04:56:46 -0500 Message-Id: <20181231095646.92035-1-fhunleth@troodon-software.com> X-Mailer: git-send-email 2.17.1 Subject: [Buildroot] [PATCH 1/1] package/php_amqp: fix build with php 7.3.0 X-BeenThere: buildroot@busybox.net 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: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" This includes an upstream patch that fixes the following error: ``` /home/naourr/work/instance-1/output/build/php-amqp-1.9.3/amqp_channel.c: In function 'php_amqp_destroy_fci': /home/naourr/work/instance-1/output/build/php-amqp-1.9.3/amqp_channel.c:104:37: error: lvalue required as decrement operand GC_REFCOUNT(fci->object)--; ^~ /home/naourr/work/instance-1/output/build/php-amqp-1.9.3/amqp_channel.c: In function 'php_amqp_duplicate_fci': /home/naourr/work/instance-1/output/build/php-amqp-1.9.3/amqp_channel.c:115:40: error: lvalue required as increment operand GC_REFCOUNT(source->object)++; ^~ make[1]: *** [Makefile:206: amqp_channel.lo] Error 1 ``` The patch was created from the commit at: https://github.com/pdezwart/php-amqp/commit/1205d3287df0a9ec762a6594b4fa018ed9637d21 Upstream has not yet made an official release that includes it. Fixes: http://autobuild.buildroot.net/results/222873a689f7b9da20acb3604b8364885e96b98d http://autobuild.buildroot.net/results/90710cb2a4873f39aa75db79ff70aa9e4bdf83ae Signed-off-by: Frank Hunleth Signed-off-by: ... --- package/php-amqp/0001-fix-for-7.3-323.patch | 40 +++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 package/php-amqp/0001-fix-for-7.3-323.patch diff --git a/package/php-amqp/0001-fix-for-7.3-323.patch b/package/php-amqp/0001-fix-for-7.3-323.patch new file mode 100644 index 0000000000..39c65607f2 --- /dev/null +++ b/package/php-amqp/0001-fix-for-7.3-323.patch @@ -0,0 +1,40 @@ +From 1205d3287df0a9ec762a6594b4fa018ed9637d21 Mon Sep 17 00:00:00 2001 +From: Remi Collet +Date: Thu, 21 Jun 2018 11:16:32 +0200 +Subject: [PATCH] fix for 7.3 (#323) + +--- + amqp_channel.c | 8 ++++++++ + 1 file changed, 8 insertions(+) + +diff --git a/amqp_channel.c b/amqp_channel.c +index f3dba5d..032526e 100644 +--- a/amqp_channel.c ++++ b/amqp_channel.c +@@ -101,7 +101,11 @@ static void php_amqp_destroy_fci(zend_fcall_info *fci) { + if (fci->size > 0) { + zval_ptr_dtor(&fci->function_name); + if (fci->object != NULL) { ++#if PHP_VERSION_ID >= 70300 ++ GC_DELREF(fci->object); ++#else + GC_REFCOUNT(fci->object)--; ++#endif + } + fci->size = 0; + } +@@ -112,7 +116,11 @@ static void php_amqp_duplicate_fci(zend_fcall_info *source) { + + zval_add_ref(&source->function_name); + if (source->object != NULL) { ++#if PHP_VERSION_ID >= 70300 ++ GC_ADDREF(source->object); ++#else + GC_REFCOUNT(source->object)++; ++#endif + } + } + } +-- +2.17.1 +