From owner-freebsd-hackers@freebsd.org Fri Nov 20 20:46:50 2015 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4F587A335C0 for ; Fri, 20 Nov 2015 20:46:50 +0000 (UTC) (envelope-from dan_partelly@rdsor.ro) Received: from mail.rdsor.ro (mail.rdsor.ro [193.231.238.10]) by mx1.freebsd.org (Postfix) with ESMTP id BF4621FB3; Fri, 20 Nov 2015 20:46:48 +0000 (UTC) (envelope-from dan_partelly@rdsor.ro) Received: from [192.168.1.101] (unknown [79.119.24.18]) by mail.rdsor.ro (Postfix) with ESMTP id 7843C1F178; Fri, 20 Nov 2015 22:46:47 +0200 (EET) Mime-Version: 1.0 (Mac OS X Mail 9.1 \(3096.5\)) Subject: Re: libUCL / UCL as FreeBSD config question From: Dan Partelly In-Reply-To: <564F6118.5030702@freebsd.org> Date: Fri, 20 Nov 2015 22:46:47 +0200 Cc: freebsd-hackers@freebsd.org Message-Id: <5576AC9A-791F-4B52-9433-32D2806D35C9@rdsor.ro> References: <5B598F72-C5DD-48FD-866D-F90E117D646E@rdsor.ro> <564F6118.5030702@freebsd.org> To: Allan Jude X-Mailer: Apple Mail (2.3096.5) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Nov 2015 20:46:50 -0000 Allan, Thanks for clearing my confusion, and furthering my understanding on = whats cooking on this front. The tool is dandy. I have another issue I want to ask about: concurrency. Is there any support in either uclib and the tools like = uclcmd to ensure=20 atomic access to the ucl files ? And not on advisory level, (although if = utilities would respect=20 adviasory looking =E2=80=A6 it would be better than nothing). I mean = something on the lines of mandatory locking.=20 Was the question of concurrency discussed ? Dan > On 20 Nov 2015, at 20:06, Allan Jude wrote: >=20 > You can do: >=20 >=20 > uclcmd get -f /etc/pkg/FreeBSD.conf FreeBSD.url >=20 > and the result is: > pkg+http://pkg.FreeBSD.org/${ABI}/latest = >=20 > And then you could do: >=20 > uclcm set -f /etc/pkg/FreeBSD.conf FreeBSD.url > http://pkg.mysite.com/${ABI}/custom = >=20 > And it would modify the configuration in place for you.