Bug 238192 - sysutils/qjail: Cannot fetch arm64 from FreeBSD mirrors (old directory layout)
Summary: sysutils/qjail: Cannot fetch arm64 from FreeBSD mirrors (old directory layout)
Status: Closed Feedback Timeout
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: arm64 Any
: --- Affects Some People
Assignee: freebsd-ports-bugs (Nobody)
Keywords: needs-qa
Depends on:
Reported: 2019-05-28 13:57 UTC by Igor Konov
Modified: 2020-05-16 08:43 UTC (History)
3 users (show)

See Also:

diff file to fix bug (147 bytes, text/plain)
2019-05-28 13:57 UTC, Igor Konov
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Igor Konov 2019-05-28 13:57:34 UTC
Created attachment 204670 [details]
diff file to fix bug

# qjail install
resolving server address: ftp2.freebsd.org:80
requesting http://ftp2.freebsd.org/pub/FreeBSD/releases/aarch64/aarch64/12.0-RELEASE/base.txz

404 Not Found

404 Not Found

fetch: http://ftp2.freebsd.org/pub/FreeBSD/releases/aarch64/aarch64/12.0-RELEASE/base.txz: Not Found
Error: Failed to ftp base.txz file.
ftp ftp2.freebsd.org:pub/FreeBSD/releases/aarch64/aarch64/12.0-RELEASE/base.txz
If your host is running an BETA or RC build update host to RELEASE.
Comment 1 Joe Barbish 2019-05-29 15:39:12 UTC
Thank you for reporting what you think is a bug.

I would like to know if after getting "qjail install" command to work using your patch does qjail work normally on arm64 machine architecture? To my knowledge you are the first to try it there.

If you review the readme file http://ftp.freebsd.org/pub/FreeBSD/releases/README.TXT
you get this text.


	Most users will want to retrieve CD-ROM and DVD ISO images from this
	top-level directory.

FreeBSD releases are identified by a high-level machine type and machine
target architecture:

	amd64/amd64			Intel/AMD x86_64 (64-bit)
	i386/i386			Intel/AMD x86 (32-bit)
	ia64/ia64			Intel Itanium
	powerpc/powerpc			32-bit PowerPC
	powerpc/powerpc64		64-bit PowerPC
	sparc64/sparc64			Sparc64

Historically, only machine type was used; those directories also exist to
hold older releases using that scheme:

	pc98				(Desupported)

If you review the directory layout of any ftp.freebsd.org/pub/FreeBSD/releases servers you will see that arm64 is of the old directory type.

Qjail does not support this old directory layout and I will not add support for it to qjail after previously removing it when the change over was made back around release 7.0. You can tell from this that your usage of qjail is a very uncommon special usage case.
I suggest you contact the support group of arm64 and have then update the directory layout to the newer layout. Or report the old arm64 directory tree layout as a bug.

The qjail work around is documented in the qjail manual under the 
"qjail install -f" option.
Or you can keep your patch for your personal qjail usage.

Thank you for using qjail.
Comment 2 Joe Barbish 2019-05-29 15:44:32 UTC
Comment on attachment 204670 [details]
diff file to fix bug

Patch rejected because this bug is not qjail code problem. See maintainer comment in bug body.
Comment 3 Joe Barbish 2019-05-29 15:52:05 UTC
This bug can be closed as INVALID.
Comment 4 Kubilay Kocak freebsd_committer freebsd_triage 2019-06-05 04:47:20 UTC
Re-open per comment 1. Hopefully mirror-admin / clusteradm / releng can resolve the issue
Comment 5 Antoine Brodin freebsd_committer 2019-06-05 12:11:10 UTC
This is a bug in qjail,  it should fetch from arm64/aarch64 directory.
Comment 6 Igor Konov 2019-06-05 16:57:34 UTC
(In reply to Antoine Brodin from comment #5)

Patch attached:
Comment 7 Igor Konov 2019-07-09 18:12:49 UTC
Comment 8 Gleb Popov freebsd_committer 2019-08-01 13:06:49 UTC
This patch doesn't apply. Is it reversed?

Current qjail version contains 


line already.