Re: Script to set/unset "automatic" status in PKGNG database

2012-08-30 Thread Matthew Seaman
On 30/08/2012 22:44, John Nielsen wrote: > After dialog(1) exits the script has a list of packages to mark as > automatic. Is there a non-SQL way to efficiently get the inverse? > I.e. the set { all_packages - new_automatic_package_list } ? Use pkg query - it is really quite powerful. This shows

Re: pkgng suggestion: renaming /usr/sbin/pkg to /usr/sbin/pkg-bootstrap

2012-08-30 Thread Doug Barton
On 08/30/2012 07:32 AM, John Baldwin wrote: > On Thursday, August 30, 2012 1:10:24 pm Chris Rees wrote: >> On 30 Aug 2012 18:03, "John Baldwin" wrote: >>> >>> On Thursday, August 30, 2012 10:39:17 am Tijl Coosemans wrote: On 27-08-2012 18:24, John Baldwin wrote: > On Sunday, August 26, 20

Re: Script to set/unset "automatic" status in PKGNG database

2012-08-30 Thread John Nielsen
On Aug 30, 2012, at 4:40 PM, Baptiste Daroussin wrote: > Thanks you should be enough, can you provide a git format-patch patch so that > you get your name in the logs :D Here you go. 0001-Add-script-to-interactively-set-un-set-automatic-sta.patch Description: Binary data ___

Re: Script to set/unset "automatic" status in PKGNG database

2012-08-30 Thread Baptiste Daroussin
On Thu, Aug 30, 2012 at 04:33:09PM -0600, John Nielsen wrote: > On Aug 30, 2012, at 3:28 PM, Baptiste Daroussin wrote: > > > On Thu, Aug 30, 2012 at 03:19:59PM -0600, John Nielsen wrote: > >> I today noticed the "pkg autoremove" command for the first time, which > >> does much the same thing as

Re: Script to set/unset "automatic" status in PKGNG database

2012-08-30 Thread John Nielsen
On Aug 30, 2012, at 3:28 PM, Baptiste Daroussin wrote: > On Thu, Aug 30, 2012 at 03:19:59PM -0600, John Nielsen wrote: >> I today noticed the "pkg autoremove" command for the first time, which does >> much the same thing as pkg_cutleaves but relies on the "automatic" flag in >> the pkgng databa

Re: Script to set/unset "automatic" status in PKGNG database

2012-08-30 Thread John Nielsen
On Aug 30, 2012, at 3:29 PM, Julien Laffaye wrote: > On 8/30/2012 11:19 PM, John Nielsen wrote: >> I today noticed the "pkg autoremove" command for the first time, which does >> much the same thing as pkg_cutleaves but relies on the "automatic" flag in >> the pkgng database rather than user inp

Re: Script to set/unset "automatic" status in PKGNG database

2012-08-30 Thread Baptiste Daroussin
On Thu, Aug 30, 2012 at 11:29:14PM +0200, Julien Laffaye wrote: > On 8/30/2012 11:19 PM, John Nielsen wrote: > > I today noticed the "pkg autoremove" command for the first time, which does > > much the same thing as pkg_cutleaves but relies on the "automatic" flag in > > the pkgng database rather

Re: Script to set/unset "automatic" status in PKGNG database

2012-08-30 Thread Baptiste Daroussin
Thank you, Would you mind adding create a patch against the git tree of pkgng so that we can include your script into the scripts subdirectory, so that we provide your script along with the next pkg 1.0.1 as a contributed script? regards, Bapt On Thu, Aug 30, 2012 at 03:19:59PM -0600, John Niels

Re: Script to set/unset "automatic" status in PKGNG database

2012-08-30 Thread Julien Laffaye
On 8/30/2012 11:19 PM, John Nielsen wrote: I today noticed the "pkg autoremove" command for the first time, which does much the same thing as pkg_cutleaves but relies on the "automatic" flag in the pkgng database rather than user input to determine which "leaf" ports can be removed. Unfortunate

Script to set/unset "automatic" status in PKGNG database

2012-08-30 Thread John Nielsen
I today noticed the "pkg autoremove" command for the first time, which does much the same thing as pkg_cutleaves but relies on the "automatic" flag in the pkgng database rather than user input to determine which "leaf" ports can be removed. Unfortunately, the pkg2ng utility has no way of knowing

Re: UFS journal error on 10.0-CURRENT

2012-08-30 Thread Jakub Lach
Yes, if I would answer 'yes' to using journal, there would be unexpected free inodes (?) or something like that in syslog and inconsistencies if full fsck would be performed. Basically if I have answered 'yes' to using journal, fs would always be marked 'clean' regardless of state. -- View th

Re: pkg (aka pkgng) 1.0 released

2012-08-30 Thread John Nielsen
On Aug 30, 2012, at 10:06 AM, Olivier Smedts wrote: > 2012/8/30 John Nielsen : >> Running ps in another terminal shows "pkg query %n-%v". Since the actual pkg >> is now gone, I suspect this is really /usr/sbin/pkg. I further suspect that >> it's waiting for y/n input (whether to install the bin

Re: UFS journal error on 10.0-CURRENT

2012-08-30 Thread Marco Steinbach
On Thu, 30 Aug 2012, Jakub Lach wrote: If I were you, I would try regular fsck, as here (9-STABLE) using journal has left me with fs inconsistencies. Could you elaborate on the inconsistencies you encountered ? MfG CoCo ___ freebsd-current@freebsd.

Re: pkgng suggestion: renaming /usr/sbin/pkg to /usr/sbin/pkg-bootstrap

2012-08-30 Thread John Baldwin
On Thursday, August 30, 2012 1:10:24 pm Chris Rees wrote: > On 30 Aug 2012 18:03, "John Baldwin" wrote: > > > > On Thursday, August 30, 2012 10:39:17 am Tijl Coosemans wrote: > > > On 27-08-2012 18:24, John Baldwin wrote: > > > > On Sunday, August 26, 2012 4:37:53 pm Doug Barton wrote: > > > >> Th

Re: pkgng suggestion: renaming /usr/sbin/pkg to /usr/sbin/pkg-bootstrap

2012-08-30 Thread Chris Rees
On 30 Aug 2012 18:03, "John Baldwin" wrote: > > On Thursday, August 30, 2012 10:39:17 am Tijl Coosemans wrote: > > On 27-08-2012 18:24, John Baldwin wrote: > > > On Sunday, August 26, 2012 4:37:53 pm Doug Barton wrote: > > >> The problem is that we don't really support the idea of things in the >

Re: pkgng suggestion: renaming /usr/sbin/pkg to /usr/sbin/pkg-bootstrap

2012-08-30 Thread John Baldwin
On Thursday, August 30, 2012 10:39:17 am Tijl Coosemans wrote: > On 27-08-2012 18:24, John Baldwin wrote: > > On Sunday, August 26, 2012 4:37:53 pm Doug Barton wrote: > >> The problem is that we don't really support the idea of things in the > >> base magically deleting themselves. > >> > >> As I h

[PATCH] make it possible for yp_mkdb to send YPPROC_CLEAR to arbitrary host

2012-08-30 Thread Niclas Zeising
I have a patch that makes it possible to send an YPPROC_CLEAR to any host, not just localhost. YPPROC_CLEAR is basically used to flush NIS connections, so that clients pick up changes done in the NIS maps right away. Currently yp_mkdb can send this to localhost, but if the NIS-server is in a

Re: Can't build FreeBSD-head with CLANG

2012-08-30 Thread Eir Nym
-- Eir Nym On 30 August 2012 20:16, Dimitry Andric wrote: > On 2012-08-29 10:41, Eir Nym wrote: > ... > /usr/head/src/sys/gnu/fs/xfs/xfs_alloc.c:1449:11: error: variable 'fbno' is used uninitialized whenever 'if' condition is false [-Werror,-Wsometimes-uninitialized]

Re: Can't build FreeBSD-head with CLANG

2012-08-30 Thread Dimitry Andric
On 2012-08-29 10:41, Eir Nym wrote: ... /usr/head/src/sys/gnu/fs/xfs/xfs_alloc.c:1449:11: error: variable 'fbno' is used uninitialized whenever 'if' condition is false [-Werror,-Wsometimes-uninitialized] else if (args->minlen == 1 && args->alignment == 1 && !args->isfl && ^

Re: pkg (aka pkgng) 1.0 released

2012-08-30 Thread Olivier Smedts
2012/8/30 John Nielsen : > Running ps in another terminal shows "pkg query %n-%v". Since the actual pkg > is now gone, I suspect this is really /usr/sbin/pkg. I further suspect that > it's waiting for y/n input (whether to install the binary pkg) on its > nonexistent stdin somewhere. I killed it

Re: pkg (aka pkgng) 1.0 released

2012-08-30 Thread John Nielsen
On Aug 30, 2012, at 9:43 AM, John Nielsen wrote: > Thanks to everyone involved. > > I've been lightly testing pkg for a little while, but I still mainly use > ports. This announcement prompted me to switch from portupgrade to > portupgrade-devel (20120827 version) to see how it works with PKGN

Re: pkg (aka pkgng) 1.0 released

2012-08-30 Thread John Nielsen
Thanks to everyone involved. I've been lightly testing pkg for a little while, but I still mainly use ports. This announcement prompted me to switch from portupgrade to portupgrade-devel (20120827 version) to see how it works with PKGNG. I encountered a couple issues: Portupgrade doesn't remov

Re: pkgng suggestion: renaming /usr/sbin/pkg to /usr/sbin/pkg-bootstrap

2012-08-30 Thread Tijl Coosemans
On 27-08-2012 18:24, John Baldwin wrote: > On Sunday, August 26, 2012 4:37:53 pm Doug Barton wrote: >> The problem is that we don't really support the idea of things in the >> base magically deleting themselves. >> >> As I have said in previous messages, the bootstrapping problem is being >> overbl

Re: make package fails in chroot: tar: getvfsbyname failed: No such file or directory

2012-08-30 Thread Konstantin Belousov
On Thu, Aug 30, 2012 at 04:07:48PM +0200, Bernhard Fr?hlich wrote: > On Mon, Aug 20, 2012 at 2:31 PM, Konstantin Belousov > wrote: > > On Mon, Aug 20, 2012 at 01:42:31PM +0200, Bernhard Fr?hlich wrote: > >> On Sun, Aug 19, 2012 at 10:01 PM, Tim Kientzle wrote: > >> > > >> > On Aug 19, 2012, at 12

pkg (aka pkgng) 1.0 released

2012-08-30 Thread Baptiste Daroussin
Hi all, Since Julien Laffaye and I started pkgng lots of things has happened and here we are now. After 2 years of development (first commit "Tue Sep 7 2010"), more than 2000 commits, 43 different contibutors. The pkgng team is proud to release pkg-1.0! Before going further I would like to than

Re: make package fails in chroot: tar: getvfsbyname failed: No such file or directory

2012-08-30 Thread Bernhard Fröhlich
On Mon, Aug 20, 2012 at 2:31 PM, Konstantin Belousov wrote: > On Mon, Aug 20, 2012 at 01:42:31PM +0200, Bernhard Fr?hlich wrote: >> On Sun, Aug 19, 2012 at 10:01 PM, Tim Kientzle wrote: >> > >> > On Aug 19, 2012, at 12:17 PM, Garrett Cooper wrote: >> > >> >> On Sun, Aug 19, 2012 at 9:45 AM, Tim K

Re: UFS journal error on 10.0-CURRENT

2012-08-30 Thread René Ladan
2012/8/30 Jakub Lach : > If I were you, I would try regular fsck, as here > (9-STABLE) using journal has left me with fs > inconsistencies. > I could do that, but I wonder why fsck_ufs is not able to figure that out by itself. René ___ freebsd-current@fr

Re: UFS journal error on 10.0-CURRENT

2012-08-30 Thread Jakub Lach
If I were you, I would try regular fsck, as here (9-STABLE) using journal has left me with fs inconsistencies. -- View this message in context: http://freebsd.1045724.n5.nabble.com/UFS-journal-error-on-10-0-CURRENT-tp5739231p5739274.html Sent from the freebsd-current mailing list archive at

Re: [CFT] Some updates to libc/rpc (second try)

2012-08-30 Thread Garrett Cooper
On Thu, Aug 30, 2012 at 2:21 AM, Andrey Simonenko wrote: > On Wed, Aug 29, 2012 at 09:57:37PM -0500, Pedro Giffuni wrote: >> >> This is rather critical stuff (libc) so I have no hurry and would >> like extensive testing before considering it for head. >> >> Please give it a try and report any issu

Re: [CFT] Some updates to libc/rpc (second try)

2012-08-30 Thread Andrey Simonenko
On Wed, Aug 29, 2012 at 09:57:37PM -0500, Pedro Giffuni wrote: > > This is rather critical stuff (libc) so I have no hurry and would > like extensive testing before considering it for head. > > Please give it a try and report any issue. > Looks like that their getnetconfig.c and getnetpath.c ha

UFS journal error on 10.0-CURRENT

2012-08-30 Thread René Ladan
Hi, after a power dip (don't ask how!) my 10.0-amd64 laptop running r239793 decided to check its file systems. On /usr it fixed some errors but I am stuck with: # fsck -y /usr ** /dev/ada0s1f USE JOURNAL? yes ** SU+J Recovering /dev/ada0s1f ** Reading 33554432 byte journal from inode 5 RECOVER? y