From owner-freebsd-ports@freebsd.org Sun Jan 31 15:46:40 2016 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 57300A7467E for ; Sun, 31 Jan 2016 15:46:40 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from smtp.infracaninophile.co.uk (smtp.infracaninophile.co.uk [IPv6:2001:8b0:151:1:3cd3:cd67:fafa:3d78]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.infracaninophile.co.uk", Issuer "infracaninophile.co.uk" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 0014C1357 for ; Sun, 31 Jan 2016 15:46:39 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from liminal.local (liminal.infracaninophile.co.uk [IPv6:2001:8b0:151:1:3636:3bff:fed4:b0d6]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.15.2/8.15.2) with ESMTPSA id u0VFkaox007148 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO) for ; Sun, 31 Jan 2016 15:46:36 GMT (envelope-from matthew@FreeBSD.org) Authentication-Results: smtp.infracaninophile.co.uk; dmarc=none header.from=FreeBSD.org X-Authentication-Warning: lucid-nonsense.infracaninophile.co.uk: Host liminal.infracaninophile.co.uk [IPv6:2001:8b0:151:1:3636:3bff:fed4:b0d6] claimed to be liminal.local Subject: Re: Did pkg drop ftp support? To: freebsd-ports@freebsd.org References: From: Matthew Seaman X-Enigmail-Draft-Status: N1110 Message-ID: <56AE2C56.4000407@FreeBSD.org> Date: Sun, 31 Jan 2016 15:46:30 +0000 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="bhseu1BjsBgGqp498C48hwQPDC3MFfBb9" X-Virus-Scanned: clamav-milter 0.99 at lucid-nonsense.infracaninophile.co.uk X-Virus-Status: Clean X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 31 Jan 2016 15:46:40 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --bhseu1BjsBgGqp498C48hwQPDC3MFfBb9 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On 31/01/2016 14:46, Helmut Schneider wrote: > Hi, >=20 > url: "pkg+ftp://ftp.mysite/pub/FreeBSD/ports/${ABI}" >=20 > worked fine until ~2 weeks ago. Now I get an error message when running= > pkg: >=20 > [helmut@BSDHelmut1064 ~]$ sudo pkg update > pkg: invalid scheme pkg+ftp > pkg: Cannot parse configuration file! > [helmut@BSDHelmut1064 ~]$ >=20 > Was ftp support dropped? No, this has not officially changed that recently. There was a change last November that limited the valid URL schemes in a repo.conf only to the ones originally intended[+]. There never should been a 'pkg+ftp://' URL scheme officially -- if it ever worked, that was a bug. FTP support is still available, but you need URLs of the form: url: "ftp://ftp.mysite/pub/FreeBSD/ports/${ABI}" This implies mirror_type =3D none, ie. that the listed FTP site simply contains the repository with all the various packages available. The 'pkg+http' or 'pkg+https' URL forms are special for when SRV records are used for mirroring, which is a consequence of the requirement in RFC 2616 that only simple hostnames are used for http:// or https:// URLs. If you're using a pkg+http:// or pkg+https:// URL then you must have mirror_type =3D srv. Cheers, Matthew [+] Introduced here: https://github.com/freebsd/pkg/commit/9c2896737d2a5c2505cfb0c568a955c2188= 1bf50 Bug fixed here: https://github.com/freebsd/pkg/commit/833b65e043fa92a3fd6eda8372c70464a44= d8d51 --bhseu1BjsBgGqp498C48hwQPDC3MFfBb9 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2 iQJ8BAEBCgBmBQJWrixcXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ2NTNBNjhCOTEzQTRFNkNGM0UxRTEzMjZC QjIzQUY1MThFMUE0MDEzAAoJELsjr1GOGkATVGcP/1Dqma502lvx46P/Ri5VEH0l 0I4S3HsnFj5s2dqz0knPfMsahvBWyKRAkP36nNrA7wno8pvds83KXYvav647wAdB 1qtT4Y1+yDVgf5g31uGmrQDGSYYxA6ECfaFuxPkMg3ZZIPcqOu/wUpCIBcHDSyv5 ktL5tsW1ulA7d1JdQXPp6P1i0WvDiCs+sXsnaUDx7cADfSes517MNAbRV2lQfPNP J0OW7SiR0JO/8LPlXdcQBYgKG/28mNztBnPYLIVi7EA/RoPKsRW8YT9xFIwE1lv4 J12ZpnxiQxeI850W5PcGncsREYJ6HRswbT0iF7mk2GLpMqiwB0bX34Gq2ownysgR LBeXD3Q+jM39prr4Vh7HEWsKhnSE1Rj9ZPO+Zwqzo2AsAo3YBy5KTH/dVQOqcq47 ZRM0UqHp8WOSgeQ/dB0PRjKWOED4P3Ru4C4vUGE3E4mRTvsitXFvYORrMD7XCAo9 jD+4vjyJndXqq3FsiF4uW0vnI+1dn4Yv6Y+CowKtjuOAGs1+LduZIzNXJR4XSmcC gWTk364l5EwFZMpThoy21QxBcPJwWGQwfPX97jcYJ7thF8Lq5S9V7trp6Dk7Niok JooLH0If5IjhXo/0qbhZdywOllWpKNqVX9xNj/MsjoFXpXilSxYeIyhVw2UfoGM0 lFjucZ5punc6Bkzec0QQ =9tXJ -----END PGP SIGNATURE----- --bhseu1BjsBgGqp498C48hwQPDC3MFfBb9--