From nobody Thu Oct 20 01:02:42 2022 X-Original-To: ports-bugs@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 4Mt8TZ5JPrz4gF60 for ; Thu, 20 Oct 2022 01:02:42 +0000 (UTC) (envelope-from bugzilla-noreply@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 4Mt8TZ1y4Dz3hp7 for ; Thu, 20 Oct 2022 01:02:42 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 4Mt8TZ0jYYzjB8 for ; Thu, 20 Oct 2022 01:02:42 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 29K12guq020317 for ; Thu, 20 Oct 2022 01:02:42 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 29K12g6s020316 for ports-bugs@FreeBSD.org; Thu, 20 Oct 2022 01:02:42 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 267215] Mk/bsd.gcc.mk: Stop checking if specific version requested is already installed Date: Thu, 20 Oct 2022 01:02:42 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Ports Framework X-Bugzilla-Version: Latest X-Bugzilla-Keywords: patch X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: yasu@freebsd.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: gerald@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status keywords bug_severity priority component assigned_to reporter cc flagtypes.name attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports-bugs@freebsd.org X-BeenThere: freebsd-ports-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1666227762; 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=Ms2OSvr05A8PKLv0UZ8zQORBM0U+W4JJikpMU+QtFyM=; b=Qo0Fib9f6iUwKflBDbjj6F1BF7FSJUoKIHfAR3PfMwzxoOWPvo00tXA44n6hO99nEPkDBl zfIp4ruF0L/KzM02lgPQtzHb6mmqPyDeWeeJIqsYJ/H4NUrspfvRoFAjSLGHhdt8N22MQk iJcwfPXbblJc2lEqRv4+Qp6JDMBkqJTeOnQztb+jQMfvhIwtfaEeM+OCWTP8/dymFuKu+0 qHXJLW+27FCfSYs/tcL7rvv5bkdhAnG6HKGu1GqyG5HbNWkyDBGKRJWqbwQ01jt8mnqPOr I1VkIjnl7wrTQQUDbqtUiZaT0Enm+RHsVJ9KZYkf46Hm6fgLMLQuovSHkjqNWg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1666227762; a=rsa-sha256; cv=none; b=bk7TFV1OH7XRCqFj4qnaSAfs7E75cecFBfDyoyMueZkZUCh8JSKPBpuB+ZAIFPrtr0BfO6 iMCkYmfeKMfddGAJXqvlddAQGf25IbynDXRPPXYJAK9DdnsKRW+bUjsLwvsYUOEPz1iu46 DPTKrxjH4LrMH8p7PNxuQjxqwIQY8UI1iUJxFgalASY8bnmu5Rq7/11FfUIyhLhCyrBauu CbjmfhBFDQm/9cjVNQOUBBrnqnVgXSOA/JVSiC7LYHyqGH8V0d2AOqdV4iixb4868RcgHe QAAPgBccvrUwO+oFiz8eukixP3hn1/mK2OKZ2C862gRAHbZSkDlsEDadtWzRUQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D267215 Bug ID: 267215 Summary: Mk/bsd.gcc.mk: Stop checking if specific version requested is already installed Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Keywords: patch Severity: Affects Only Me Priority: --- Component: Ports Framework Assignee: gerald@FreeBSD.org Reporter: yasu@freebsd.org CC: gerald@FreeBSD.org, ports-bugs@FreeBSD.org, salvadore@freebsd.org Flags: maintainer-feedback?(gerald@FreeBSD.org) CC: gerald@FreeBSD.org Created attachment 237472 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D237472&action= =3Dedit Patch file I'm not sure why it is included in the logic to determine which version of = GCC is used. But it sometimes causes unexpected result in non-cleanroom environment. Let me assume following situation. * I'm user of portmaster. * On my FreeBSD system some ports that use 'USE_GCC=3Dyes' are installed. * I'd like to change default version of GCC from 11 to 12. To achieve my purpose I take following steps. 1. Add 'DEFAULT_VERSIONS+=3Dgcc=3D12' to /etc/make.conf 2. Execute `portmaster "$(pkg info -r gcc11 | grep -v ':$')"` After finishing them, it is expected that gcc12 is installed and all packag= es that depended on gcc11 now depend on it. But what really happens is that gc= c12 isn't installed and dependency doesn't change at all. It is because Mk/bsd.gcc.mk checks if specific version requested is already installed and installed gcc11 package is detected and used. But obviously it conflicts with the result user usually expects when he sets DEFAULT_VERSION= S in /etc/make.conf. So change the logic so it doesn't check installed version of GCC at all. --=20 You are receiving this mail because: You are on the CC list for the bug.=