pkgng: ignoring some papckaes in 'pkg upgrade'

2013-04-02 Thread Maurizio Vairani
Hello, is possible to ignore some packages with the 'pkg upgrade' command ? In particular I don't want the upgrade of the 'conky' package, because it is compiled with a non-standard options. Thanks Maurizio ___ freebsd-questions@freebsd.org mailing

Re: pkg upgrade?

2012-12-04 Thread Matthew Seaman
On 03/12/2012 22:10, Walter Hurry wrote: I think there's a problem with 'pkg info' irrespective of how the package is built. $ pkg info -s -F gcc-4.6.4.20121123.txz gcc-4.6.4.20121123 flat size is: 0 B gcc-4.6.4.20121123 package size is: 0 B $ pkg query -F gcc-4.6.4.20121123.txz %sh 567

Re: pkg upgrade?

2012-12-04 Thread Walter Hurry
On Tue, 04 Dec 2012 20:27:15 +, Matthew Seaman wrote: I just committed a fix to the release-1.0 branch which will be in the next release. Was already fixed in master. Thanks! Does that fix 'pkg info' reporting zero size, or the 'pkg update' misreporting of size difference, or both?

Re: pkg upgrade?

2012-12-04 Thread Matthew Seaman
On 04/12/2012 20:42, Walter Hurry wrote: On Tue, 04 Dec 2012 20:27:15 +, Matthew Seaman wrote: I just committed a fix to the release-1.0 branch which will be in the next release. Was already fixed in master. Thanks! Does that fix 'pkg info' reporting zero size, or the 'pkg update'

Re: pkg upgrade?

2012-12-04 Thread Matthew Seaman
' reporting zero size, or the 'pkg update' misreporting of size difference, or both? Oh, yes. That was to fix pkg info getting the installed size of packages wrong when reading a pkg tarball. The other issue with pkg update had temporarily escaped me. Yeah. Committed a fix for the pkg

Re: pkg upgrade?

2012-12-04 Thread Walter Hurry
temporarily escaped me. Yeah. Committed a fix for the pkg upgrade disk space thing too. If you upgraded to a package that was smaller than the one it was replacing it would report the change in space used as the sum of the old and new sizes, when clearly it should be the difference. D'Oh

Re: pkg upgrade?

2012-12-03 Thread Walter Hurry
On Mon, 03 Dec 2012 06:32:48 +, Matthew Seaman wrote: On 02/12/2012 21:51, Walter Hurry wrote: Copied from terminal and pasted here: -- $ sudo pkg upgrade Updating repository catalogue Repository catalogue is up-to-date, no need

Re: pkg upgrade?

2012-12-03 Thread Matthew Seaman
On 03/12/2012 15:34, Walter Hurry wrote: $ sudo pkg info -s -F gcc-4.6.4.20121102.txz gcc-4.6.4.20121102 flat size is: 0 B gcc-4.6.4.20121102 package size is: 0 B Ah. It turns out that querying any pkgng package directly for its installed size always returns 0 at the moment. You'ld need to

Re: pkg upgrade?

2012-12-03 Thread Walter Hurry
On Mon, 03 Dec 2012 15:49:48 +, Matthew Seaman wrote: On 03/12/2012 15:34, Walter Hurry wrote: $ sudo pkg info -s -F gcc-4.6.4.20121102.txz gcc-4.6.4.20121102 flat size is: 0 B gcc-4.6.4.20121102 package size is: 0 B Ah. It turns out that querying any pkgng package directly for its

Re: pkg upgrade?

2012-12-03 Thread Walter Hurry
On Mon, 03 Dec 2012 16:14:08 +, Walter Hurry wrote: pkg query against the .txz file in the cache appears to work though It seems to have got the difference calculation right this time: --- $ sudo pkg upgrade Updating repository

Re: pkg upgrade?

2012-12-03 Thread Matthew Seaman
On 03/12/2012 15:49, Matthew Seaman wrote: On 03/12/2012 15:34, Walter Hurry wrote: $ sudo pkg info -s -F gcc-4.6.4.20121102.txz gcc-4.6.4.20121102 flat size is: 0 B gcc-4.6.4.20121102 package size is: 0 B Ah. It turns out that querying any pkgng package directly for its installed size

Re: pkg upgrade?

2012-12-03 Thread Matthew Seaman
On 03/12/2012 18:18, Walter Hurry wrote: I wonder if there is some kind of overflow problem with the calculations on larger packages? It's not an overflow: the size is stored as the ascii representation of an integer value in the pkg tarball and read into an int64_t variable (good for file

Re: pkg upgrade?

2012-12-03 Thread Walter Hurry
On Mon, 03 Dec 2012 20:51:59 +, Matthew Seaman wrote: Curious. I can't reproduce the problem on my dev system: worm:...cache/pkg/All:# pkg info -s -F git-1.7.11.5.txz git-1.7.11.5 10 MB I wonder... I'm using portmaster to build packages on my dev box, and

Re: pkg upgrade?

2012-12-03 Thread Matthew Seaman
On 03/12/2012 22:10, Walter Hurry wrote: I think there's a problem with 'pkg info' irrespective of how the package is built. $ pkg info -s -F gcc-4.6.4.20121123.txz gcc-4.6.4.20121123 flat size is: 0 B gcc-4.6.4.20121123 package size is: 0 B $ pkg query -F gcc-4.6.4.20121123.txz %sh 567

pkg upgrade?

2012-12-02 Thread Walter Hurry
Copied from terminal and pasted here: -- $ sudo pkg upgrade Updating repository catalogue Repository catalogue is up-to-date, no need to fetch fresh copy The following packages will be upgraded: Upgrading gcc: 4.6.4.20121102

Re: pkg upgrade?

2012-12-02 Thread Matthew Seaman
On 02/12/2012 21:51, Walter Hurry wrote: Copied from terminal and pasted here: -- $ sudo pkg upgrade Updating repository catalogue Repository catalogue is up-to-date, no need to fetch fresh copy The following packages