From owner-svn-ports-all@freebsd.org Wed Aug 7 10:37:11 2019 Return-Path: Delivered-To: svn-ports-all@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 0D81AC5F4C; Wed, 7 Aug 2019 10:37:11 +0000 (UTC) (envelope-from tobik@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) server-signature RSA-PSS (4096 bits) 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 463ScQ6BW1z4XZd; Wed, 7 Aug 2019 10:37:10 +0000 (UTC) (envelope-from tobik@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id B10F5B377; Wed, 7 Aug 2019 10:37:10 +0000 (UTC) (envelope-from tobik@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id x77AbAvP063934; Wed, 7 Aug 2019 10:37:10 GMT (envelope-from tobik@FreeBSD.org) Received: (from tobik@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id x77AbAfg063933; Wed, 7 Aug 2019 10:37:10 GMT (envelope-from tobik@FreeBSD.org) Message-Id: <201908071037.x77AbAfg063933@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: tobik set sender to tobik@FreeBSD.org using -f From: Tobias Kortkamp Date: Wed, 7 Aug 2019 10:37:10 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r508310 - head/Mk/Scripts X-SVN-Group: ports-head X-SVN-Commit-Author: tobik X-SVN-Commit-Paths: head/Mk/Scripts X-SVN-Commit-Revision: 508310 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Aug 2019 10:37:11 -0000 Author: tobik Date: Wed Aug 7 10:37:10 2019 New Revision: 508310 URL: https://svnweb.freebsd.org/changeset/ports/508310 Log: Mk/Uses/cargo.mk: cargo-crates to flag unknown git hosts To avoid some head scratching print a warning instead of being silent when encountering unhandled git hosts. Modified: head/Mk/Scripts/cargo-crates.awk Modified: head/Mk/Scripts/cargo-crates.awk ============================================================================== --- head/Mk/Scripts/cargo-crates.awk Wed Aug 7 09:59:52 2019 (r508309) +++ head/Mk/Scripts/cargo-crates.awk Wed Aug 7 10:37:10 2019 (r508310) @@ -72,7 +72,9 @@ function split_url(s) { tag = url["fragment"] } + added = 0 if (url["host"] == "github.com") { + added = 1 gh_tuple[gh_tuple_len++] = sprintf(\ "%s:%s:%s:%s", account, project, tag, package_name) } else { @@ -88,8 +90,13 @@ function split_url(s) { gl_tuple[gl_tuple_len++] = sprintf(\ "%s:%s:%s:%s:%s", site, account, project, tag, package_name) } + added = 1 break } + } + + if (!added) { + printf "Warning: Ignoring git source on line %d: %s\n", NR, $3 > "/dev/stderr" } }