From owner-freebsd-ports-bugs@freebsd.org Sat Jul 18 12:22:29 2020 Return-Path: Delivered-To: freebsd-ports-bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 6C753367FEB for ; Sat, 18 Jul 2020 12:22:29 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 4B86ZF2LZ6z4F6r for ; Sat, 18 Jul 2020 12:22:29 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 505A2368326; Sat, 18 Jul 2020 12:22:29 +0000 (UTC) Delivered-To: ports-bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 5013A367E74 for ; Sat, 18 Jul 2020 12:22:29 +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 "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4B86ZF0Dvlz4F2F for ; Sat, 18 Jul 2020 12:22:29 +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 E0FB4A66D for ; Sat, 18 Jul 2020 12:22:28 +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 06ICMSbC009729 for ; Sat, 18 Jul 2020 12:22:28 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 06ICMS3j009728 for ports-bugs@FreeBSD.org; Sat, 18 Jul 2020 12:22:28 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 248063] www/gitea: Installation from source fails when using portmaster (variable PACKAGES preassigned by the port system) Date: Sat, 18 Jul 2020 12:22:28 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: johannes.kunde@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: ports-bugs@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter cc flagtypes.name 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 MIME-Version: 1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 18 Jul 2020 12:22:29 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D248063 Bug ID: 248063 Summary: www/gitea: Installation from source fails when using portmaster (variable PACKAGES preassigned by the port system) Product: Ports & Packages Version: Latest Hardware: amd64 OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: ports-bugs@FreeBSD.org Reporter: johannes.kunde@gmail.com CC: stb@lassitu.de Flags: maintainer-feedback?(stb@lassitu.de) CC: stb@lassitu.de When using portmaster to build gitea from source (latest version 1.11.8), t= he build operation fails with the following output: gmake[1]: Entering directory '/usr/ports/www/gitea/work/gitea-1.11.8' GO111MODULE=3Don go generate -mod=3Dvendor /usr/ports/packages can't load package: package /usr/ports/packages: cannot find package gmake[1]: *** [Makefile:433: generate] Error 1 gmake[1]: Leaving directory '/usr/ports/www/gitea/work/gitea-1.11.8' *** Error code 1 Stop. make: stopped in /usr/ports/www/gitea The problem is that gitea uses a variable with the name 'PACKAGES' in it's Makefile. This variable is already used bei the port system itself and poin= ts at '/usr/ports/packages' (see also error message above): root@test:/usr/ports/www/gitea # make -V PACKAGES /usr/ports/packages In line 54 of gitea's Makefile the variable PACKAGES get's assigned only if= it is not already set (note the question mark: PACKAGES ?=3D ...) - but it is already set. The error can be solved by simply removing the "?" in line 54 and hardly as= sign PACKAGES with the proposed value: root@test:/usr/ports/www/gitea/work/gitea-1.11.8 # diff Makefile Makefile.b= ak=20 54c54 < PACKAGES =3D $(filter-out code.gitea.io/gitea/integrations/migration-test,$(filter-out code.gitea.io/gitea/integrations,$(shell GO111MODULE=3Don $(GO) list -mod= =3Dvendor ./... | grep -v /vendor/))) --- > PACKAGES ?=3D $(filter-out code.gitea.io/gitea/integrations/migration-tes= t,$(filter-out code.gitea.io/gitea/integrations,$(shell GO111MODULE=3Don $(= GO) list -mod=3Dvendor ./... | grep -v /vendor/))) Naming the variable GO_PACKAGES instead however would be more accurate, but would also result in more changes. --=20 You are receiving this mail because: You are the assignee for the bug.=