Opened 2 years ago

Last modified 22 months ago

#63743 assigned defect

openjdk17-zulu: Fetching distfile failed: The requested URL returned error: 502

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: breun (Nils Breunese)
Priority: Normal Milestone:
Component: ports Version: 2.7.1
Keywords: Cc: cooljeanius (Eric Gallager)
Port: openjdk17-zulu

Description

https://build.macports.org/builders/ports-12_arm64-builder/builds/309/steps/install-port/logs/stdio

Fetching distfile failed: The requested URL returned error: 502

The file is also not mirrored by our infrastructure. Looks like the port varies the distfile based on configure.build_arch but the mirroring script only supports variations based on os.arch which does not provide the granularity to distinguish e.g. i386 from x86_64 but could be used to distinguish Intel from ARM and since this port only supports x86_64 and arm64 that's probably sufficient. So you would want something like:

platform i386 {
    distname        zulu${version}-ca-jdk${openjdk_version}-macosx_x64
    checksums       rmd160  30a02522f89b4d454617b1a819a4b657f226fa14 \
                    sha256  e8088937f8df77a4e18c690cfe3d602ff50af3446b1a5420438ec811b0cf50ea \
                    size    108079078
}

platform arm {
    distname        zulu${version}-ca-jdk${openjdk_version}-macosx_aarch64
    checksums       rmd160  7d1629220e44a2e77ff4a7cc2bb0024692c49d62 \
                    sha256  304251193046120487e6ee4b3172349118911f58e84fb8449e1ca14e03924db9 \
                    size    105844180
}

Change History (4)

comment:1 Changed 2 years ago by breun (Nils Breunese)

It seems that downloading https://cdn.azul.com/zulu/bin/zulu17.30.15-ca-jdk17.0.1-macosx_aarch64.tar.gz failed with a 502 Bad Gateway error:

--->  Attempting to fetch zulu17.30.15-ca-jdk17.0.1-macosx_aarch64.tar.gz from https://cdn.azul.com/zulu/bin/
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
DEBUG: Fetching distfile failed: The requested URL returned error: 502

I just successfully downloaded that file, so I guess it was just a temporary server error?

I don't know what the mirroring script does exactly, but java/openjdk/Portfile has license set to GPL-2 NoMirror to avoid MacPorts mirroring/distributing these third-party binaries, so I guess it shouldn't be attempting to mirror these files at all?

comment:2 in reply to:  1 Changed 2 years ago by ryandesign (Ryan Carsten Schmidt)

Replying to breun:

java/openjdk/Portfile has license set to GPL-2 NoMirror to avoid MacPorts mirroring/distributing these third-party binaries

Why? Do the distributors of these binaries expressly prohibit their redistribution?

comment:3 Changed 2 years ago by breun (Nils Breunese)

I think I may have added NoMirror because I wasn't sure, or maybe I got nervous from the 70 LICENSE files in a tarball like this. I guess they're all saying it's GPL2 with Classpath Exception, so maybe mirroring is actually fine indeed. I might also have felt bad to push many gigabytes of distfiles into MacPorts for every Java update (MacPorts has ports for a lot of different Java vendors), and eating into the download stats of those projects. If you agree that it should be allowed to mirror these files, and that it's fine for MacPorts to spend the disk space on them, then I'm fine with dropping NoMirror from the license line of all openjdk* ports.

comment:4 Changed 22 months ago by cooljeanius (Eric Gallager)

Cc: cooljeanius added
Note: See TracTickets for help on using tickets.