From nobody Wed Nov 24 06:06:15 2021 X-Original-To: dev-commits-ports-all@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 198301897B5A; Wed, 24 Nov 2021 06:06:16 +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 4HzVr763yrz4Ynx; Wed, 24 Nov 2021 06:06:15 +0000 (UTC) (envelope-from git@FreeBSD.org) 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 B0831249FD; Wed, 24 Nov 2021 06:06:15 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 1AO66FVM084232; Wed, 24 Nov 2021 06:06:15 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1AO66Fmj084231; Wed, 24 Nov 2021 06:06:15 GMT (envelope-from git) Date: Wed, 24 Nov 2021 06:06:15 GMT Message-Id: <202111240606.1AO66Fmj084231@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-branches@FreeBSD.org From: Xin LI Subject: git: 18a47d7c81c8 - 2021Q4 - net/shadowsocks-libev: fix build error on 14.0-CURRENT List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: delphij X-Git-Repository: ports X-Git-Refname: refs/heads/2021Q4 X-Git-Reftype: branch X-Git-Commit: 18a47d7c81c82c753c8f43fe1ab0c2384f0c63d7 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1637733975; 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=mwVXETTE1nHZwsytG4GEbQmB7vg96bq6Musbnun0/kg=; b=OkDMq78ApUnOsRdJFGD2rm3SrDWMGpDq8WPJqmC154qhpc7eW6Ce3MzhgrE58uafW01H46 2VyGl4NbsuZBsF93DnnLFNFjBqS8bwpkN+B2fj9TuQOlMoqiJ+PIuzMMZH8kz+LApoAifa C5Ro+YedE6c2bmPQWfD58k+K0IShle8Mn+9PHq5Ww3Wwp7NvPWzjTqfI8SrV4j6ona/31m Bq2sFMff8mRNQpFxPtxelB+NTT0ToiZ0kb0JIQYdWT3vN2LKjmr12zlkXIxqmRLjgCuc3t Tn200FehAGw8CIYLYh6RrR9G51XyZxBGNsW0IYvFgQoiKvBEE7kIKGWA/tBsnA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1637733975; a=rsa-sha256; cv=none; b=gyykI8+IbjWOenGVLe+Bi3OJ2Axqq2N/yP94rPwFdTAmLp4hxHVMsrXkWtTXY673sSUnkd ud3gR+z+RcTlwAj8unjlfvO1r65uNcrA0T0Hbe81GcteuCN3v7qpnNPWfiw3CAN+KHvnFb 7mlj3IBnEaAGR2e/AgDBOi/BjXmgIkRJUTONoIztHFB5tBULoWJEf5a4ZJyhUxUePLiarp xdZV1sT97jKmzIWhVQwxSP/xexotK3GxHRxWJslI2b3pUg5ENzg32NrFcRAcN5PJ7f6GjB HrzTcZRg3TlScGNCDrsW3EYVPvtpfUaJyQ2Ud7b88+ff05ey4PY8uDTmoa5E4A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch 2021Q4 has been updated by delphij: URL: https://cgit.FreeBSD.org/ports/commit/?id=18a47d7c81c82c753c8f43fe1ab0c2384f0c63d7 commit 18a47d7c81c82c753c8f43fe1ab0c2384f0c63d7 Author: Xiaoding Liu AuthorDate: 2021-11-24 06:01:47 +0000 Commit: Xin LI CommitDate: 2021-11-24 06:06:04 +0000 net/shadowsocks-libev: fix build error on 14.0-CURRENT PR: ports/259951 (cherry picked from commit 0d391b9c88a96b439c58aa222d3437a93231db14) --- .../files/patch-libcork_src_libcork_posix_env.c | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/net/shadowsocks-libev/files/patch-libcork_src_libcork_posix_env.c b/net/shadowsocks-libev/files/patch-libcork_src_libcork_posix_env.c new file mode 100644 index 000000000000..0147df86dc1a --- /dev/null +++ b/net/shadowsocks-libev/files/patch-libcork_src_libcork_posix_env.c @@ -0,0 +1,22 @@ +--- libcork/src/libcork/posix/env.c.orig 2019-07-24 14:01:14 UTC ++++ libcork/src/libcork/posix/env.c +@@ -194,12 +194,19 @@ cork_env_set_vars(void *user_data, struct cork_hash_ta + * + * [1] http://www.gnu.org/software/gnulib/manual/html_node/clearenv.html + */ ++ ++#if (defined(__FreeBSD__) && (__FreeBSD__ < 14)) ++/* Since FreeBSD 14.0-CURRENT, the clearenv(3) function was added to stdlib. ++ * See https://reviews.freebsd.org/R10:597b02675751e48dd04777f1e91fee382bf3a966 ++ */ ++ + static void + clearenv(void) + { + *environ = NULL; + } + ++#endif + #else + /* Otherwise assume that we have clearenv available. */ + #endif