From owner-freebsd-x11@FreeBSD.ORG Sat Apr 14 19:54:43 2007 Return-Path: X-Original-To: x11@FreeBSD.org Delivered-To: freebsd-x11@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6B6CB16A401; Sat, 14 Apr 2007 19:54:43 +0000 (UTC) (envelope-from kris@obsecurity.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.freebsd.org (Postfix) with ESMTP id 5A1A613C48A; Sat, 14 Apr 2007 19:54:43 +0000 (UTC) (envelope-from kris@obsecurity.org) Received: from obsecurity.dyndns.org (elvis.mu.org [192.203.228.196]) by elvis.mu.org (Postfix) with ESMTP id 275DD1A3C1C; Sat, 14 Apr 2007 12:54:54 -0700 (PDT) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 12BD25309A; Sat, 14 Apr 2007 15:54:41 -0400 (EDT) Date: Sat, 14 Apr 2007 15:54:41 -0400 From: Kris Kennaway To: Kris Kennaway Message-ID: <20070414195441.GA17321@xor.obsecurity.org> References: <20070414194028.GB2313@xor.obsecurity.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="k1lZvvs/B4yU6o8G" Content-Disposition: inline In-Reply-To: <20070414194028.GB2313@xor.obsecurity.org> User-Agent: Mutt/1.4.2.2i Cc: lesi@FreeBSD.org, x11@FreeBSD.org Subject: Re: Upgrade script X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 Apr 2007 19:54:43 -0000 --k1lZvvs/B4yU6o8G Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Sat, Apr 14, 2007 at 03:40:28PM -0400, Kris Kennaway wrote: > * Before spamming /usr/local there needs to be a check that no files > will be skipped (since you are using tar -k to avoid overwriting > existing files). Probably something using find -type f -o -type l and > then comm(1) would be appropriate; the user should be warned about > these conflicts and either bail out until they resolve them, or just > proceed and let them deal with them by hand from the backup tarball. On the machine I have still running xorg 6.9, I see: rot13# cd /usr/X11R6; find . -type f -o -type l | sort > /tmp/x rot13# cd /usr/local; find . -type f -o -type l | sort > /tmp/l rot13# comm -1 -2 /tmp/l /tmp/x ./man/man3/Object.3.gz ./man/whatis ./share/applications/mimeinfo.cache ./share/gnome/applications/mimeinfo.cache ./share/mime/XMLnamespaces ./share/mime/aliases ./share/mime/globs ./share/mime/magic ./share/mime/mime.cache ./share/mime/subclasses I think most of these are OK (i.e. do not need to be resolved); maybe a whitelist of not-actually-conflicts would be useful to weed them out. The first one is a real conflict though: rot13# ls -l /usr/X11R6/man/man3/Object.3.gz /usr/local/man/man3/Object.3.gz -r--r--r-- 1 root wheel 1195 Sep 26 2006 /usr/X11R6/man/man3/Object.3.gz -r--r--r-- 1 root wheel 4850 Mar 29 15:41 /usr/local/man/man3/Object.3.gz rot13# pkg_which /usr/X11R6/man/man3/Object.3.gz /usr/local/man/man3/Object.3.gz [Updating the pkgdb in /var/db/pkg ... - 287 packages found (-0 +1) . done] open-motif-2.2.3_2 tcl-8.4.14_4,1 i.e. those ports now conflict when both in LOCALBASE. Kris --k1lZvvs/B4yU6o8G Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQFGITGAWry0BWjoQKURAjf9AJ9Y9pbBNkHjWYCZiWeeUpmS+qAuXwCfdNcg nqZTBtlSGikGPgS8oB0AoAA= =K1UJ -----END PGP SIGNATURE----- --k1lZvvs/B4yU6o8G--