From nobody Thu Feb 9 06:59:17 2023 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 4PC75L1cp8z3ppmT for ; Thu, 9 Feb 2023 06:59:18 +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 4PC75K6dHkz3wFx for ; Thu, 9 Feb 2023 06:59:17 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1675925957; 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=SaiJOI8BLy+LhtwwzlA9tscGFOJC+dq0YJE3MFBMiPE=; b=bvsYzv/7DbTUtfqLNtqNxfHNCFzftMaWpvUJdvUmg6Pcafe6Ade5rpCfVL3oKVcEFPukGu HJBIp2HICH9xrzy5CwBwm1rrI+YXKuRP2oKRC/0KxouKUNuiO8DE4u6fXJEbpizHFl/U/h XSEN+1d7EqUUwjYzmVQa7iRdl4VRULm5/ma3P01NN9garAlMGkdeA/cskL11kGpyQ1XUfp SYsPsUgAJ78i17eEsDLGHRe2D7s4BHCjFGHYu0DGLr7DdDHXqHYuOBHnkQeZ67X5CiPQnD u/T8ObelQlE49a5HBAfG4IKqgPnSTIlntGSI2Ar4gnoH3qJCjG9B+Wp7Jd2KKw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1675925957; a=rsa-sha256; cv=none; b=C0/VuDJePJmTlvtie7JycT+05WJ3Xnn30JObwpaYH6HZeiKJ+tAPK4zd2yfHYR4yaEIKqm O1mW/9K/HDq7RH0pAUQuOkFzTPaf9yy9v3NOm3A29Ao9rFbNVMxV9/Bk69LiM25H/qDiyK jCEkp6TmoNCAETf2jP/ZCqKPlq3F6jaVvfi3+s9I+goH5mtl7MnlKAiuEDu5Tx7hv2VBgD P9Zi4bfyEhI6rrPILZnrxqc2VAwhg0o/Kpz8FrdEZQRdlur1Raq6+Xl4eoTp5m5gtAhJjq S59RqHumo1Ic4TxbntiOZY2a51QMxxmYsoZUr2DfUznAX3ptdVe3qfrDxSLuTQ== 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 4PC75K5h36zSh6 for ; Thu, 9 Feb 2023 06:59:17 +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 3196xHxa084967 for ; Thu, 9 Feb 2023 06:59:17 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 3196xHMT084966 for ports-bugs@FreeBSD.org; Thu, 9 Feb 2023 06:59:17 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 269432] ports: FETCH_ARGS / FETCH_CMD can't accept a string with spaces Date: Thu, 09 Feb 2023 06:59:17 +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 Only Me X-Bugzilla-Who: pat@patmaddox.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: ports-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter 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 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D269432 Bug ID: 269432 Summary: ports: FETCH_ARGS / FETCH_CMD can't accept a string with spaces Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: ports-bugs@FreeBSD.org Reporter: pat@patmaddox.com Created attachment 240020 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D240020&action= =3Dedit fix for string with spaces in FETCH_ARGS Context: I am writing a port that fetches from a private GitHub repository,= to be built on our company's internal poudriere system. It's possible to downl= oad zips from private repos by passing header e.g. "Authorization: token ". /usr/bin/fetch doesn't support HTTP headers as far as I can tell, so I am u= sing curl. https://github.com/freebsd/freebsd-ports/blob/main/Mk/Scripts/do-fetch.sh#L= 151 currently expands the FETCH_BINARY / FETCH_ARGS etc combo in a way that prevents it from working. Specifically, it turns the string "foo bar" into '"foo' 'bar"'. I have attached a one-line diff that fixes it. I have built 600+ packages u= sing poudriere with this fix in place. --=20 You are receiving this mail because: You are the assignee for the bug.=