From nobody Thu Dec 2 01:05:46 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 90BF218AA77E; Thu, 2 Dec 2021 01:05:51 +0000 (UTC) (envelope-from koobs.freebsd@gmail.com) Received: from mail-pj1-x1034.google.com (mail-pj1-x1034.google.com [IPv6:2607:f8b0:4864:20::1034]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4J4Hnq2l5Lz3p97; Thu, 2 Dec 2021 01:05:51 +0000 (UTC) (envelope-from koobs.freebsd@gmail.com) Received: by mail-pj1-x1034.google.com with SMTP id gt5so19337953pjb.1; Wed, 01 Dec 2021 17:05:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:message-id:date:mime-version:user-agent:reply-to:subject :content-language:to:references:from:in-reply-to :content-transfer-encoding; bh=LP6lbiMOuNwyqkXPqw6+yNZQBF+2mZFRaSkjf9cuUlE=; b=XxZJInRi57b4XjQgjjlQW4iq0Xkm1gITnfqGDKDfGMEvCN6fDWX4hI1ERf8Aph6C1d +kKwUud1R1KtQctW8RsFTyFBpROChhAvaktc8W8AIV54kAHttJw+NPLpqGANP4nNYwgQ A5wTas1UpzCMp9lAdAVhqpHkECW66CpM8WVMLxtAJ/JyQd9gcNrV3zKPECJZe9Xu2auw q6BeJ/C5TOpWhUaF2N0h7mMklyxzVfoPagQ5z4BVChFPgCceAOYTolLUQWxLOXrGY64G aTOoYCWcdb0ydMS3c+Ud1nSxcTzsQChWBCwOZIJK2NxxBO7JVXGM9dqtZwTmbkAG8ZDF VGyw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:message-id:date:mime-version:user-agent :reply-to:subject:content-language:to:references:from:in-reply-to :content-transfer-encoding; bh=LP6lbiMOuNwyqkXPqw6+yNZQBF+2mZFRaSkjf9cuUlE=; b=UYZUpFroxSqJdJcfkUD6mfYP3n425nFutkq0MX1d+qOUSfphNDVKlxiHhmTquaDwFR CkIDfnN1qOlyvNJUnnI9Yti9UXszyvcOF88wF38KCnp/NjkQKR6T8FhMkX9kTeLKCaP2 NmHUpWCUotQr2wP+G+2pvl3n1IMuwLoDJ0pkDLMWEsTTVbQq3D+MdztD/K5NSOFYgnyz oEMqrjataFWLKtZqSC/u3PJCCQtR5luI2aRM5lHBGqfwlq6T/nRdhnCGUDZ2nLHMlD/h 7wA+Wogi2MOk+O3ZPx9RwtKaSYoTjFPn1xiq/RCUYQj054b2g4jwxNveAA9yd1cVFLNp 3yag== X-Gm-Message-State: AOAM531cHAZs9BOUI+QcO5g8cvVC29cdZGemWHQfWVSyuHU/+ZZxeHrf rktNrKBqEoXoxUxSkxcucHosgsHa/GE= X-Google-Smtp-Source: ABdhPJyHj5hLszO6VfV64eya91uR4LkwyVYaL1BC3WlfG1aMx1LmWQKBHkk10XxKbeyPtTV9Va1iQQ== X-Received: by 2002:a17:903:2449:b0:142:b3c:f9c6 with SMTP id l9-20020a170903244900b001420b3cf9c6mr11415612pls.77.1638407150479; Wed, 01 Dec 2021 17:05:50 -0800 (PST) Received: from ?IPV6:2403:5807:1b:1:985c:8d34:2719:1336? (2403-5807-1b-1-985c-8d34-2719-1336.ip6.aussiebb.net. [2403:5807:1b:1:985c:8d34:2719:1336]) by smtp.gmail.com with ESMTPSA id a6sm453886pjd.40.2021.12.01.17.05.48 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 01 Dec 2021 17:05:50 -0800 (PST) Sender: Kubilay Kocak Message-ID: Date: Thu, 2 Dec 2021 12:05:46 +1100 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 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:96.0) Gecko/20100101 Thunderbird/96.0a1 Reply-To: koobs@FreeBSD.org Subject: Re: git: b8c4bfe660b3 - main - sysutils/reptyr: Address LLVM 13 build failure Content-Language: en-US To: Cy Schubert , ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org References: <202112020054.1B20sZXk040844@gitrepo.freebsd.org> From: Kubilay Kocak In-Reply-To: <202112020054.1B20sZXk040844@gitrepo.freebsd.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4J4Hnq2l5Lz3p97 X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; TAGGED_FROM(0.00)[] X-ThisMailContainsUnwantedMimeParts: N On 2/12/2021 11:54 am, Cy Schubert wrote: > The branch main has been updated by cy: > > URL: https://cgit.FreeBSD.org/ports/commit/?id=b8c4bfe660b373862165a58514f270a51e77e147 > > commit b8c4bfe660b373862165a58514f270a51e77e147 > Author: Cy Schubert > AuthorDate: 2021-12-02 00:47:57 +0000 > Commit: Cy Schubert > CommitDate: 2021-12-02 00:54:18 +0000 > > sysutils/reptyr: Address LLVM 13 build failure > > Rather than create a patch, simply add -Wno-unused-but-set-variable, > avoiding a maintainer to backport patches any time the port is updated. > > In file included from platform/freebsd/freebsd_ptrace.c:69: > In file included from platform/freebsd/arch/amd64.h:23: > platform/freebsd/arch/x86_common.h:45:6: error: variable 'ret' set but not used [-Werror,-Wunused-but-set-variable] > int ret; > ^ > platform/freebsd/arch/x86_common.h:54:6: error: variable 'ret' set but not used [-Werror,-Wunused-but-set-variable] > int ret; > ^ > 2 errors generated. Ports usually shouldn't use -Werror and people are strongly encouraged to add -Wno-error or patch it out is the usual course of action, but sure, specific warnings can be scoped too. > > MFH after: 3 days > --- > sysutils/reptyr/Makefile | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/sysutils/reptyr/Makefile b/sysutils/reptyr/Makefile > index 548a66b196f1..a4895b1d59dc 100644 > --- a/sysutils/reptyr/Makefile > +++ b/sysutils/reptyr/Makefile > @@ -15,6 +15,7 @@ GH_ACCOUNT= nelhage > > MAKE_ARGS= BASHCOMPDIR=${PREFIX}/share/bash-completion/completions \ > MANDIR=${MANPREFIX}/man > +CFLAGS+= -Wno-unused-but-set-variable > USES= gmake > > ONLY_FOR_ARCHS= i386 amd64