From nobody Mon Oct 23 19:14:39 2023 X-Original-To: pkg@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 4SDlHk5BWjz4yPHG for ; Mon, 23 Oct 2023 19:14:42 +0000 (UTC) (envelope-from bapt@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (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 "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4SDlHk4YQ8z3KXc; Mon, 23 Oct 2023 19:14:42 +0000 (UTC) (envelope-from bapt@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1698088482; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=LIHJsiqXI1XAhyj7NI19iK/7IWEt6EXqElNS11eJ2xw=; b=V1YW+FcOVYDScfAJpAV7VaJLw6attKgzIKj7YERZMEezXKMEMPhouR6UR4FZQFxvlmSrJ9 WgufNXAc4UFaPmDbbNXWKh6a5TkBg63/VHmUokgUNUHaduahvXqyjKxchgNoWPwgkb6PCB RSk7ybmHdeRHyxgDV24PdpNtvX56j+4sNwJxQN/xgFdpJCPsiN7ZcU8j/Uhck1a2X4Ps5o PFx54rCMw9qVtjM9RfIXApBldK6j7bsqUiH4RU24RDL+w88qStfG/6+SBtsh8rJNK8DTyC mEifEHPwlJ02pFemZGPddpaZXEP+amVhwNjk/OkGJWh1Jj/LzXs8V7anCbMxCg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1698088482; a=rsa-sha256; cv=none; b=gsrOaVKz90VyuKyrRW9CbdgV1USvBEUn9/m0RkPUUwP3n10f+HTbfH7lObPypOM1iTIfkS DI1qzxyAYIiJ446N7BLAc8w4Hb1W9aw0YEwO0t9qmFGZo6/KOyu9fbltkmVCa9XoR9NTQw KovHhcD/oTpkvjZuAdH0NKPSVDeCHR9Q3c3x1BE1PxNSjSgl9aX+On3HNDvaxMtz3iEc6N RkR+ruaNX58XLzii+pOfsaYcW1AHdz8pek4ARv2xJLndXz2BlxzUp7HbhzTaG0V8o2Peti 0N+4tMI+A25XFwq1fGsX9dfaZeQpth+/X+m4bq/5kx9BNhTF/Aadg4M9fSaUzw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1698088482; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=LIHJsiqXI1XAhyj7NI19iK/7IWEt6EXqElNS11eJ2xw=; b=Wft8PRVJdIGkZyMSkTccgcheNTgNKxhEGkSIICSQRpfyMI6jm+4j5O9qk4sNmY6mODhJZE 8XS7gLq9D1WBVz7SYsWy9YwtnSONTnrYxe7h35p5yFHlaovEYX26MNlRjsFDooH5+6TY8Z eZZxiCKOQa4kLmZkCQnWksZZghm4jc/QG1Typadi6nkw2eP/IJ9bzDV4kK4r0Ve93GYD4+ f27h2FFA9sml3TumqsBp3ANL7LkUYkH4EU7YKvjXr/1fpOYbTPLSxMy6JrwTBactzIOLOx YLEK/P7AFArSmUTvxxebJzlCTFTiyJFFRNUCNwIjPajF0ba0VrgtSr5aNvGIKQ== Received: from aniel.nours.eu (nours.eu [176.31.115.77]) (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) (Authenticated sender: bapt) by smtp.freebsd.org (Postfix) with ESMTPSA id 4SDlHk2wqQz13Mk; Mon, 23 Oct 2023 19:14:42 +0000 (UTC) (envelope-from bapt@freebsd.org) Received: by aniel.nours.eu (Postfix, from userid 1001) id C9F6AA0432; Mon, 23 Oct 2023 21:14:39 +0200 (CEST) Date: Mon, 23 Oct 2023 21:14:39 +0200 From: Baptiste Daroussin To: Pascal Pype Cc: pkg@freebsd.org Subject: Re: The ftp scheme doesn't seem to be supported anymore whilst the manpage still mentions it. Message-ID: References: <20231021191511.30966b7d.pascal.pype@skynet.be> List-Id: Binary package management and package tools discussion List-Archive: https://lists.freebsd.org/archives/freebsd-pkg List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-pkg@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231021191511.30966b7d.pascal.pype@skynet.be> On Sat, Oct 21, 2023 at 07:15:11PM +0200, Pascal Pype wrote: > Greetings, > > I was trying to set up a custom repository built via poudriere. > The jail is: 13_2-RELEASE-amd64 with version 13.2-RELEASE-p4. > The ports collection is: local and comes from quarterly: 2023Q3. > > The poudriere buid was done on a FreeBSD build server with full OS information: > > FreeBSD fBsdSrvr 13.2-RELEASE FreeBSD 13.2-RELEASE releng/13.2-n254617-525ecfdad597 GENERIC amd64 > > A FreeBSD client is used with full OS information: > > FreeBSD fBsdClnt 13.2-RELEASE FreeBSD 13.2-RELEASE releng/13.2-n254617-525ecfdad597 GENERIC amd64 > > On that client an additional repository configuration file was created. > /usr/local/etc/pkg/repos/fBsdSrvr.conf > > The content of that repository configuration file was: > > fBsdSrvr: { > url: "ftp://fBsdSrvr/13_2-RELEASE-amd64-local", > enabled: yes, > mirror_type: NONE > } > > FreeBSD: { > enabled: no > } > > The command 'pkg update' was invoked on fBsdClnt. > This resulted in the error massages: > > pkg: invalid scheme ftp > pkg: Cannot parse configuration file! > > The fBsdSrvr stanza was commented out in the configuration file. > > The command 'pkg config VALID_URL_SCHEME' was invoked on fBsdClnt. > The response was: > > pkg+http > pkg+https > https > http > file > ssh > tcp > > The 'ftp' scheme doesn't appear in the list of supported schemes. > > Yet the man page 'pkg.conf(5)' still states: This is a bug, it should be removed from the manpage, yes ftp support has been removed and annonced via multiple canals, but apparently, not loudly enough :( > > For a MIRROR_TYPE of NONE, any of the URL schemes supported by > libfetch(3) can be used, including: http://, https://, ftp://, or > file://. In addition a ssh:// URL scheme is also supported. Where > MIRROR_TYPE is SRV, you should use a pkg+http:// or pkg+https:// (etc.) > URL scheme. Using an http:// URL implies that the hostname part is a > simple hostname according to RFC 2616, and is no longer accepted. > > As you can see, the scheme ftp:// is mentioned as being supported by > the pkg program, whilst is isn't the case anymore. > > The configuration file on the cient (fBsdClnt) was changed to > > fBsdSrvr: { > url: "ssh://fBsdSrvr/usr/local/poudriere/data/packages/13_2-RELEASE-amd64-local", > enabled: yes, > mirror_type: NONE > } > > FreeBSD: { > enabled: no > } > > This solved the problem. > > When using pkg on fBsdClnt, it asks the root password of fBsdSrvr on each invocation. > > Is there a way to register the root password of fBsdSrvr that pkg asks in fBsdClnt ? Using an ssh key is the way to go. Best regards, Bapt