From nobody Tue Sep 05 20:46:48 2023 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RgHc94x1Nz4rlDm; Tue, 5 Sep 2023 20:46:49 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RgHc90zchz3Pgm; Tue, 5 Sep 2023 20:46:49 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1693946809; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=7FoVU6/dN1QQ05IBazHEKs0E+jE+toYQZuXhBgTmLpU=; b=jlbu8ud1rAcnv5l4lrIU/8KZKCZuXJ2oGSN5F9WspOTJggI7lnIkBNMi9WM4sl4Ada9X2A Eg+Jkj8J0K5vS56awRZtmEeT/ZsMonounE4eag44CJxIzqPVSv1DXblO2lFcRIWZi2HhUT fXn9NOJPHxLsYdv7XvShFyoexwyg4hWYv2ICfBuAmppqOOlO1sRaLBGB4vH9UhuVf0CUTh SoHV9kxWWW1rH4+Ms0dDyhgzR+Aqw3QE+Ke+DWoO5T7B0BE5MM3DavdVUtkOufZNG7e9K1 TFxj1jBD/Sa0jBDDV6bfg5SqpFrHShKC9OZzTQNtq5pvebyZC9ET/E3G/fweEQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1693946809; a=rsa-sha256; cv=none; b=mHNX79q1AH4GnOsa2a4i8Lrxhh968afrpGBodGTdGcUPZy/Q+AN7avRoXbfwI/5DA6FtSB DYQrLobnKlEtE04j6edNmcSkiRNZvLdm5O6hnU/xFHXwqd0gFKEyNT/PHohwMa0t8cq2u5 Y0w5Vyyb/NMtshbQMMroRJ8AY0xhOWZsX7vtewOI8Dru6BKrnHPSaZufa59ZTNZ/7QOGJh /L052ahM41eEhaQdLF2bC2xTZ48qWADg6M+/fBE6laHfYAc/YdAWyTb9gg2zdg8ZQNz/Yg uHOjVQYPmmr5VzHrHx+SkDyPP5qOwYq/hNwn2BybRj7l7WksYuubJYyz5Kglnw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1693946809; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=7FoVU6/dN1QQ05IBazHEKs0E+jE+toYQZuXhBgTmLpU=; b=BS86Fq8dAVlTXtRZjw6kfzwgsGcsy/T9XUdvdNSdC1YnZHv1WhN7L4se4c8LZByEBCaeF+ 4gNdNb+Uqu/w2Wen5HJxbl6142G6OM371jMoVsim5iP+dP2Jo/KB1e3yQrHHP7Uyno10db NKqfBYqDCd6gNZnxmuvsV7pw1WZYq6etkN72NlgQz/LJXGBs/8Pa+ML13Zy3mBlY00nIvn HYapI70ZWvbRwWPFv3KKunngaT7tl5tIF59xpXiOtbrtZm5a89khDZm6zfOjqe8wE/JJNa tp/R8LNy4oKqIAneYj3NFQPcMFKQ0os93bUJJ3+noGiJPK5F9kZ284qEj+fHiA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4RgHc86wZHznsX; Tue, 5 Sep 2023 20:46:48 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 385KkmB6008132; Tue, 5 Sep 2023 20:46:48 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 385Kkm1N008129; Tue, 5 Sep 2023 20:46:48 GMT (envelope-from git) Date: Tue, 5 Sep 2023 20:46:48 GMT Message-Id: <202309052046.385Kkm1N008129@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Po-Chuan Hsieh Subject: git: 983d161bf1c9 - main - net/pecl-smbclient: Fix build warning on i386 List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: sunpoet X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 983d161bf1c94e170309c108335b1ab50d260f76 Auto-Submitted: auto-generated The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=983d161bf1c94e170309c108335b1ab50d260f76 commit 983d161bf1c94e170309c108335b1ab50d260f76 Author: Po-Chuan Hsieh AuthorDate: 2023-09-05 20:41:20 +0000 Commit: Po-Chuan Hsieh CommitDate: 2023-09-05 20:46:28 +0000 net/pecl-smbclient: Fix build warning on i386 /wrkdirs/usr/ports/net/pecl-smbclient/work-php81/smbclient-1.1.1/smbclient.c:1205:52: warning: format specifies type 'long' but the argument has type 'zend_long' (aka 'int') [-Wformat] php_error(E_WARNING, "Negative byte count: %ld", count); ~~~ ^~~~~ %d /wrkdirs/usr/ports/net/pecl-smbclient/work-php81/smbclient-1.1.1/smbclient.c:1256:52: warning: format specifies type 'long' but the argument has type 'zend_long' (aka 'int') [-Wformat] php_error(E_WARNING, "Negative byte count: %ld", count); ~~~ ^~~~~ %d 2 warnings generated. --- net/pecl-smbclient/files/patch-smbclient.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/net/pecl-smbclient/files/patch-smbclient.c b/net/pecl-smbclient/files/patch-smbclient.c new file mode 100644 index 000000000000..925dcb108078 --- /dev/null +++ b/net/pecl-smbclient/files/patch-smbclient.c @@ -0,0 +1,20 @@ +--- smbclient.c.orig 2023-04-17 03:27:10 UTC ++++ smbclient.c +@@ -1202,7 +1202,7 @@ PHP_FUNCTION(smbclient_read) + return; + } + if (count < 0) { +- php_error(E_WARNING, "Negative byte count: %ld", count); ++ php_error(E_WARNING, "Negative byte count: " ZEND_LONG_FMT, count); + RETURN_FALSE; + } + STATE_FROM_ZSTATE; +@@ -1253,7 +1253,7 @@ PHP_FUNCTION(smbclient_write) + return; + } + if (count < 0) { +- php_error(E_WARNING, "Negative byte count: %ld", count); ++ php_error(E_WARNING, "Negative byte count: " ZEND_LONG_FMT, count); + RETURN_FALSE; + } + if (count == 0 || count > str_len) {