[Bug 211255] qjail install fails because "uname -r" includes patchlevel
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Wed Jul 20 20:59:26 UTC 2016
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=211255
Bug ID: 211255
Summary: qjail install fails because "uname -r" includes
patchlevel
Product: Ports & Packages
Version: Latest
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: Individual Port(s)
Assignee: freebsd-ports-bugs at FreeBSD.org
Reporter: gunther at 5stengl.de
$ uname -a
FreeBSD freebsd.internal 10.1-RELEASE-p35 FreeBSD 10.1-RELEASE-p35 #0: Sat May
28 03:37:01 UTC 2016
root at amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64
uname -r: 10.1-RELEASE-p35
that leads to the situation where "qjail install" tries to reach the following
url:
ftp ftp2.freebsd.org:pub/FreeBSD/releases/amd64/amd64/10.1-RELEASE-p35/base.txz
where it should go to:
ftp ftp2.freebsd.org:pub/FreeBSD/releases/amd64/amd64/10.1-RELEASE/base.txz
Possible fix: Cut only the first two fields from "uname -r".
$ diff /usr/local/bin/qjail ./qjail
1612c1612
< release=`uname -r`
---
> release=`uname -r | cut -d "-" -f 1-2`
1756c1756
< release=`uname -r`
---
> release=`uname -r | cut -d "-" -f 1-2`
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-ports-bugs
mailing list