Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 6 Aug 2007 02:42:20 -0400
From:      Kris Kennaway <kris@obsecurity.org>
To:        "Tuc at T-B-O-H.NET" <ml@t-b-o-h.net>
Cc:        freebsd-questions@freebsd.org, Kris Kennaway <kris@obsecurity.org>
Subject:   Re: portupgrade modifys EVERY +CONTENTS now?
Message-ID:  <20070806064220.GA31573@rot26.obsecurity.org>
In-Reply-To: <200708060601.l7661pfS054336@himinbjorg.tucs-beachin-obx-house.com>
References:  <20070806052213.GA30845@rot26.obsecurity.org> <200708060601.l7661pfS054336@himinbjorg.tucs-beachin-obx-house.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Aug 06, 2007 at 02:01:51AM -0400, Tuc at T-B-O-H.NET wrote:
> > 
> > On Mon, Aug 06, 2007 at 12:49:31AM -0400, Tuc at T-B-O-H.NET wrote:
> > > > 
> > > > On Sun, Aug 05, 2007 at 11:10:42PM -0400, Tuc at T-B-O-H.NET wrote:
> > > > > Hi,
> > > > > 
> > > > > 	I've noticed that recent version(s?) of portupgrade seem to update
> > > > > the +CONTENTS of *EVERY* package on my system, not just the ones it used to
> > > > > actually make a difference to. Is there a way to revert to the old behaviour?
> > > > > With 915 ports (WAS only around 600 before the recent Xorg upgrade) its a
> > > > > killer. On my Soekris with a CF drive, and only 57 ports, its still killing
> > > > > that CF chip.
> > > > 
> > > > Please show us how you came to this conclusion.
> > > > 
> > > > Kris
> > > >
> > > 	"script" output from a recent update :
> > > 
> > > --->  Upgrade of sysutils/bsdstats started at: Mon, 23 Jul 2007 10:52:00 -0400
> > > --->  Upgrading 'bsdstats-5.3' to 'bsdstats-5.3_4' (sysutils/bsdstats)
> > > OK? [yes] 
> > > --->  Build of sysutils/bsdstats started at: Mon, 23 Jul 2007 10:52:09 -0400
> > > --->  Building '/usr/ports/sysutils/bsdstats'
> > > ===>  Cleaning for bsdstats-5.3_4
> > > ===>  Vulnerability check disabled, database not found
> > > ===>  Extracting for bsdstats-5.3_4
> > > ===>  Patching for bsdstats-5.3_4
> > > ===>  Configuring for bsdstats-5.3_4
> > > --->  Build of sysutils/bsdstats ended at: Mon, 23 Jul 2007 10:52:10 -0400 (cons
> > > umed 00:00:00)
> > > --->  Updating dependency info
> > > --->  Modifying /var/db/pkg/Hermes-1.3.3_2/+CONTENTS
> > 
> > Is it actually writing to these files, or just examining them to see
> > whether they need to be updated?
> > 
> > Kris
> > 
> 	I was truthfully only going by what I believed it was saying, that
> it was really modifying them.
> 
> 	I upgraded fetchyahoo tonite after I emailed this, and if I do an
> "ls -lt" in /var/db/pkg I see :
> 
> -rw-r--r--  1 root  wheel  15891456 Aug  6 00:59 pkgdb.db
> drwxr-xr-x  2 root  wheel       512 Aug  6 00:59 fetchyahoo-2.10.9
> drwxr-xr-x  2 root  wheel       512 Aug  6 00:59 p5-Compress-Zlib-2.005
> drwxr-xr-x  2 root  wheel       512 Aug  6 00:59 p5-Crypt-SSLeay-0.56
> drwxr-xr-x  2 root  wheel       512 Aug  6 00:59 p5-IO-Compress-Zlib-2.005
> drwxr-xr-x  2 root  wheel       512 Aug  6 00:59 p5-libwww-5.805
> drwxr-xr-x  2 root  wheel       512 Aug  6 00:59 openssl-0.9.8e_1
> drwxr-xr-x  2 root  wheel       512 Aug  6 00:59 p5-Authen-SASL-2.10_1
> drwxr-xr-x  2 root  wheel       512 Aug  6 00:59 p5-Digest-MD5-2.36
> drwxr-xr-x  2 root  wheel       512 Aug  6 00:59 p5-MIME-Tools-5.420_1,2
> drwxr-xr-x  2 root  wheel       512 Aug  6 00:59 p5-Net-1.21,1
> drwxr-xr-x  2 root  wheel       512 Aug  6 00:59 p5-Compress-Raw-Zlib-2.005
> drwxr-xr-x  2 root  wheel       512 Aug  6 00:59 p5-Digest-HMAC-1.01
> drwxr-xr-x  2 root  wheel       512 Aug  6 00:59 p5-GSSAPI-0.24
> drwxr-xr-x  2 root  wheel       512 Aug  6 00:59 p5-HTML-Parser-3.56
> drwxr-xr-x  2 root  wheel       512 Aug  6 00:59 p5-HTML-Tagset-3.10
> drwxr-xr-x  2 root  wheel       512 Aug  6 00:59 p5-IO-Compress-Base-2.005
> drwxr-xr-x  2 root  wheel       512 Aug  6 00:59 p5-Convert-BinHex-1.119
> drwxr-xr-x  2 root  wheel       512 Aug  6 00:59 p5-Digest-1.15
> drwxr-xr-x  2 root  wheel       512 Aug  6 00:59 p5-IO-stringy-2.110
> drwxr-xr-x  2 root  wheel       512 Aug  6 00:59 p5-MIME-Base64-3.07
> drwxr-xr-x  2 root  wheel       512 Aug  6 00:59 p5-Mail-Tools-1.74
> 
> 			(etc)
> 
> 
> drwxr-xr-x  2 root  wheel       512 Aug  6 00:58 bsdstats-5.3_4
> drwxr-xr-x  2 root  wheel       512 Aug  6 00:58 Hermes-1.3.3_2
> drwxr-xr-x  2 root  wheel       512 Aug  6 00:58 ImageMagick-6.3.3.5_1
> drwxr-xr-x  2 root  wheel       512 Aug  6 00:58 ORBit-0.5.17_3
> drwxr-xr-x  2 root  wheel       512 Aug  6 00:58 ORBit2-2.14.8
> drwxr-xr-x  2 root  wheel       512 Aug  6 00:58 OpenEXR-1.4.0
> drwxr-xr-x  2 root  wheel       512 Aug  6 00:58 OpenSP-1.5.2
> drwxr-xr-x  2 root  wheel       512 Aug  6 00:58 Xaw3d-1.5E_2
> drwxr-xr-x  2 root  wheel       512 Aug  6 00:58 aalib-1.4.r5_3
> 
> 	I thought the timestamp of a directory only changes if a
> file was added or modified in the directory. 
> 
> 	If I do the "ls -lt */\+CONTENTS", I see :
> 
> -rw-r--r--  1 root  wheel    2386 Aug  6 00:59 fetchyahoo-2.10.9/+CONTENTS
> -rw-r--r--  1 root  wheel    1113 Aug  6 00:59 xset-1.0.2/+CONTENTS
> -rw-r--r--  1 root  wheel     976 Aug  6 00:59 xsetmode-1.0.0/+CONTENTS
> -rw-r--r--  1 root  wheel    1003 Aug  6 00:59 xsetpointer-1.0.0/+CONTENTS
> -rw-r--r--  1 root  wheel    1204 Aug  6 00:59 xsetroot-1.0.1/+CONTENTS
> -rw-r--r--  1 root  wheel    1597 Aug  6 00:59 xsm-1.0.1/+CONTENTS
> -rw-r--r--  1 root  wheel    1149 Aug  6 00:59 xstdcmap-1.0.1/+CONTENTS
> -rw-r--r--  1 root  wheel    5124 Aug  6 00:59 xterm-228/+CONTENTS
> -rw-r--r--  1 root  wheel    1157 Aug  6 00:59 xtrans-1.0.3/+CONTENTS
> -rw-r--r--  1 root  wheel    3097 Aug  6 00:59 xtrap-1.0.2/+CONTENTS
> -rw-r--r--  1 root  wheel    6643 Aug  6 00:59 xv-3.10a_7/+CONTENTS
> -rw-r--r--  1 root  wheel    4629 Aug  6 00:59 xvattr-1.3_3/+CONTENTS
> -rw-r--r--  1 root  wheel     414 Aug  6 00:59 xvid-1.1.3,1/+CONTENTS
> -rw-r--r--  1 root  wheel    1689 Aug  6 00:59 xvidtune-1.0.1/+CONTENTS
> -rw-r--r--  1 root  wheel    1017 Aug  6 00:59 xvinfo-1.0.1/+CONTENTS
> -rw-r--r--  1 root  wheel    1104 Aug  6 00:59 xwd-1.0.1/+CONTENTS
> -rw-r--r--  1 root  wheel    1149 Aug  6 00:59 xwininfo-1.0.2/+CONTENTS
> -rw-r--r--  1 root  wheel    5062 Aug  6 00:59 xword-0.07_3/+CONTENTS
> -rw-r--r--  1 root  wheel     777 Aug  6 00:59 xwud-1.0.1/+CONTENTS
> -rw-r--r--  1 root  wheel    3627 Aug  6 00:59 yasm-0.6.1/+CONTENTS
> -rw-r--r--  1 root  wheel     349 Aug  6 00:59 zh-chm2html-0.1a/+CONTENTS
> -rw-r--r--  1 root  wheel     441 Aug  6 00:59 zip-2.32/+CONTENTS
> -rw-r--r--  1 root  wheel   78239 Aug  6 00:59 zsh-4.3.4_1/+CONTENTS
> 
> 		(etc)
> 
> -rw-r--r--  1 root  wheel     301 Aug  6 00:58 bsdstats-5.3_4/+CONTENTS
> -rw-r--r--  1 root  wheel    2156 Aug  6 00:58 Hermes-1.3.3_2/+CONTENTS
> -rw-r--r--  1 root  wheel   64643 Aug  6 00:58 ImageMagick-6.3.3.5_1/+CONTENTS
> -rw-r--r--  1 root  wheel    8741 Aug  6 00:58 ORBit-0.5.17_3/+CONTENTS
> -rw-r--r--  1 root  wheel    7005 Aug  6 00:58 ORBit2-2.14.8/+CONTENTS
> -rw-r--r--  1 root  wheel   10787 Aug  6 00:58 OpenEXR-1.4.0/+CONTENTS
> -rw-r--r--  1 root  wheel   18170 Aug  6 00:58 OpenSP-1.5.2/+CONTENTS
> -rw-r--r--  1 root  wheel   10272 Aug  6 00:58 Xaw3d-1.5E_2/+CONTENTS
> -rw-r--r--  1 root  wheel   20576 Aug  6 00:58 aalib-1.4.r5_3/+CONTENTS
> 
> 	So I'm still going with the file being modified. I guess even if
> its opening the file, reading it, and then writing it back out unmodified,
> its still disk operations that the CF especially can't handle. (Then again,
> the laptop isn't doing too well. 
> 
> Aug  6 01:45:53 himinbjorg smartd[727]: Device: /dev/ad0, 2 Currently unreadable (pending) sectors
> Aug  6 01:45:53 himinbjorg smartd[727]: Device: /dev/ad0, 3 Offline uncorrectable sectors
> 
> 	(Thats only started too since it was pounded during Xorg upgrade)
> 
> 	I still really would only like it to touch the files it REALLY
> needs to. 

OK, talk to the maintainer.

Kris




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070806064220.GA31573>