Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 06 Jan 2024 16:33:11 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 276152] Mk/Uses/gem.mk all rubygems fail to download
Message-ID:  <bug-276152-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D276152

            Bug ID: 276152
           Summary: Mk/Uses/gem.mk all rubygems fail to download
           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: lysfjord.daniel@smokepit.net

Created attachment 247488
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D247488&action=
=3Dedit
Changes done to "fix" issue.

This might be filed under the wrong thing, but I have to place it somewhere=
:)

I could not build any rubygem where the gem needed to be downloaded. The
problem started today.

Snippet from a random failing gem (net/rubygem-gitaly):
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D<phase=
: fetch          >=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D
=3D=3D=3D=3D=3D env: NO_DEPENDS=3Dyes USER=3Droot UID=3D0 GID=3D0
=3D> rubygem/gitaly-16.7.0.gem doesn't seem to exist in /portdistfiles/.
=3D> Attempting to fetch https://rubygems.org/downloads/rubygem/gitaly-16.7=
.0.gem
fetch: https://rubygems.org/downloads/rubygem/gitaly-16.7.0.gem: Forbidden
=3D> Attempting to fetch
http://distcache.FreeBSD.org/ports-distfiles/rubygem/gitaly-16.7.0.gem
fetch: http://distcache.FreeBSD.org/ports-distfiles/rubygem/gitaly-16.7.0.g=
em:
Not Found
=3D> Couldn't fetch it - please try to retrieve this
=3D> port manually into /portdistfiles/ and try again.
*** Error code 1


Looking at the URL, it should be without rubygem/, so:
https://rubygems.org/downloads/gitaly-16.7.0.gem . That's the download URL =
you
get if you go to rubygems.org and search for gitaly and click the download
link.

I fixed it by altering Mk/Uses/gem.mk to not include the ${GEM_DIST_SUBDIR}
when defining DISTFILES, and in the gem-extract function, together with
removing rubygem/ from distinfo.. This is probably not the right way around=
 the
issue, but it makes it work for today..

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-276152-7788>