Bug 256515 - audio/libogg: Unfetchable on FreeBSD 11.4
Summary: audio/libogg: Unfetchable on FreeBSD 11.4
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: Christian Weisgerber
Depends on:
Reported: 2021-06-09 21:08 UTC by Daniel Engberg
Modified: 2021-06-10 13:56 UTC (History)
2 users (show)

See Also:
bugzilla: maintainer-feedback? (naddy)


Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Engberg freebsd_committer 2021-06-09 21:08:31 UTC
=> libogg-1.3.5.tar.xz doesn't seem to exist in /portdistfiles/.
=> Attempting to fetch https://downloads.xiph.org/releases/ogg/libogg-1.3.5.tar.xz
34374359624:error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version:/usr/src/crypto/openssl/ssl/s23_clnt.c:802:
fetch: https://downloads.xiph.org/releases/ogg/libogg-1.3.5.tar.xz: Authentication error
=> Attempting to fetch https://download.videolan.org/videolan/testing/contrib/ogg/libogg-1.3.5.tar.xz
fetch: https://download.videolan.org/videolan/testing/contrib/ogg/libogg-1.3.5.tar.xz: Not Found
=> Attempting to fetch http://distcache.FreeBSD.org/ports-distfiles/libogg-1.3.5.tar.xz
fetch: http://distcache.FreeBSD.org/ports-distfiles/libogg-1.3.5.tar.xz: Not Found
=> Couldn't fetch it - please try to retrieve this
=> port manually into /portdistfiles/ and try again.
*** Error code 1

make: stopped in /usr/ports/audio/libogg
build of audio/libogg | libogg-1.3.5,4 ended at Wed Jun  9 23:02:54 CEST 2021

Adding http://ftp.osuosl.org/pub/xiph/releases/ogg/ as mirror fixes the issue, this will affect all other packages using https://downloads.xiph.org

http://downloads.xiph.org/releases/ogg/ redirects to https unfortunately

As seen above https://download.videolan.org/videolan/testing/contrib/ogg/ doesn't have the release at all however it's also hosted on GitHub
Comment 1 Chris Hutchinson 2021-06-10 01:50:09 UTC
Hmm. From my copy of the ports tree:
# cd /usr/ports/audio/libogg
# make -DBATCH fetch
===>  License BSD3CLAUSE accepted by the user
===>   libogg-1.3.4,4 depends on file: /usr/local/sbin/pkg - found
=> libogg-1.3.4.tar.xz doesn't seem to exist in /root/DEV/PORTS/distfiles/.
=> Attempting to fetch https://downloads.xiph.org/releases/ogg/libogg-1.3.4.tar.xz
libogg-1.3.4.tar.xz                                    418 kB  927 kBps    01s
===> Fetching all distfiles required by libogg-1.3.4,4 for building

followed by:
# fetch https://ftp.osuosl.org/pub/xiph/releases/ogg/libogg-1.3.5.tar.xz
libogg-1.3.5.tar.xz                                    419 kB  847 kBps    00s

Note I didn't receive the "Authentication error" you reported.
IOW I don't think this has anything to do with audio/libogg


Comment 2 Daniel Engberg freebsd_committer 2021-06-10 06:25:57 UTC
Is that on 11.4?
Comment 3 Chris Hutchinson 2021-06-10 06:57:12 UTC
(In reply to Daniel Engberg from comment #2)
Gah! Sorry. I know better than to not provide
version info.

No. It's on 13. I also tested a 12 jail and
got the same results.


Comment 4 Chris Hutchinson 2021-06-10 07:03:40 UTC
(In reply to Daniel Engberg from comment #2)
But you're getting this on 11.4. Sorry. I missed
that part of the title in my MUA. I _did_ run
into the same problem on an early 12. The problem
turned out to be with fetch && the way it handled
secure connections. I don't recall whether it
was the certs or secure negotiation.

Do you get the same results if you use
fetch --no-verify-peer
to retrieve the file? That's what I had to do
to overcome the problem before it got fixed.

Comment 5 commit-hook freebsd_committer 2021-06-10 13:53:32 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=dcf17d14a7bd7eed2e67e82b2ce093d1e5d88fe6

commit dcf17d14a7bd7eed2e67e82b2ce093d1e5d88fe6
Author:     Christian Weisgerber <naddy@FreeBSD.org>
AuthorDate: 2021-06-10 13:48:47 +0000
Commit:     Christian Weisgerber <naddy@FreeBSD.org>
CommitDate: 2021-06-10 13:48:47 +0000

    */*: Add a backup master site to all Xiph.org ports

    The downloads.xiph.org master site requires TLS1.3, which is not
    supported by FreeBSD 11's OpenSSL and fetch(1).  Add ftp.osuosl.org
    as a backup to all Xiph.org ports.

    PR:             256515
    Reported by:    Daniel Engberg

 audio/ezstream/Makefile       | 4 ++--
 audio/flac/Makefile           | 3 ++-
 audio/icecast/Makefile        | 2 +-
 audio/ices/Makefile           | 2 +-
 audio/libao/Makefile          | 3 ++-
 audio/libfishsound/Makefile   | 3 ++-
 audio/libogg/Makefile         | 2 +-
 audio/liboggz/Makefile        | 4 ++--
 audio/libshout/Makefile       | 2 +-
 audio/libvorbis/Makefile      | 2 +-
 audio/opusfile/Makefile       | 3 ++-
 audio/vorbis-tools/Makefile   | 3 ++-
 multimedia/libkate/Makefile   | 3 ++-
 multimedia/libtheora/Makefile | 2 +-
 14 files changed, 22 insertions(+), 16 deletions(-)
Comment 6 Christian Weisgerber freebsd_committer 2021-06-10 13:56:23 UTC
Fixed, thank you.