From owner-freebsd-x11@FreeBSD.ORG Thu Apr 9 14:27:44 2009 Return-Path: Delivered-To: freebsd-x11@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 61E071065674 for ; Thu, 9 Apr 2009 14:27:44 +0000 (UTC) (envelope-from richard.delaurell@gmail.com) Received: from mail-qy0-f134.google.com (mail-qy0-f134.google.com [209.85.221.134]) by mx1.freebsd.org (Postfix) with ESMTP id 069D28FC0C for ; Thu, 9 Apr 2009 14:27:43 +0000 (UTC) (envelope-from richard.delaurell@gmail.com) Received: by qyk40 with SMTP id 40so1088793qyk.3 for ; Thu, 09 Apr 2009 07:27:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=uacAwHXTXKilaH1nNa3+BEUBzwvUIRwKl2rbqKBhWxk=; b=uNvIFLeVgpa1tpm6a1i7ZGTZAqG8ap4D7X9fiVOSIsgwptyToUTMebGwFzqVrN/1LD 5DSlsHjjm0SbTQr/poOXp7kMhCB4wb9oaY35k7P42/31oh2A+OU6UiU5E7gVP+7paqdI wW9089Wq4f1nyCiCwfmLkpQ4zj5dCcfu7w4T4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=QN9te6usgeH1700an95cxUP2vj4gYXZ7Z5hZdHopGW5/E3zGk+entyfwQKECBzSGgI xyjHdY9ksIAMighXd6MWXd0FIE5zgoOO0GIXmXBe7Pq730eMqNhH3LbDsj1Wm/IXyVe8 oLKtlmbpY56bt88sTcIOTupnt1TUO6jWDR3/o= MIME-Version: 1.0 Received: by 10.220.44.200 with SMTP id b8mr3392031vcf.62.1239287263032; Thu, 09 Apr 2009 07:27:43 -0700 (PDT) In-Reply-To: <86ocv6tsoh.fsf@gmail.com> References: <4324dbec0904081532v3db0af8fnc10b51d1961a07d1@mail.gmail.com> <86ocv6tsoh.fsf@gmail.com> Date: Thu, 9 Apr 2009 09:27:42 -0500 Message-ID: <4324dbec0904090727m25768725ma49ac1eaf164055f@mail.gmail.com> From: Richard DeLaurell To: Anonymous , freebsd-x11@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Re: libxcb-xlib.la problem 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: Thu, 09 Apr 2009 14:27:44 -0000 Well, your xargs/sed script works very well; thanks very much for that. The diff script throws this error however: diff: extra operand '' It is not such a critical thing though; I checked "by hand" on a small group of 10 files or so first to make certain that all was well. Thanks for the help in any event-- Richard On Wed, Apr 8, 2009 at 10:25 PM, Anonymous wrote: > Richard DeLaurell writes: > > > I am not sure that this is the right list for this, but I'll give it a > go. > > > > I recently did a portupgrade which seems to have installed xcb in such a > way > > that all (or at least most of) my .la files were "infected' with a > reference > > to libxcb-xlib.la as a dependency. > > > > Many of my ports--related to X--won't build now because of this > reference. > > > > I can get ls to list all of the files endng in ".la" in my /usr/local/lib > > directory (and write it out to a .txt file), but I am not facile enough > to > > know how to have xargs/grep find this "/usr/local/lib/libxcb-xlib.la" > and > > delete it from all of the files in my list. > > # replace libxcb-xlib.la string with nul in all *.la files, > # and make backup files with .bak extension > $ find /usr/local/lib -name \*.la -exec sed -i '.bak' \ > 's|/usr/local/lib/libxcb-xlib.la||' {} + > > # You can use it with custom made list like so > $ cat list.txt | xargs sed -i '.bak' 's|/usr/local/lib/libxcb-xlib.la||' > > # compare results from previous command using diff(1) > $ find /usr/local/lib -name \*.la -exec diff -u {}.bak {} \; > > # delete backup files > $ find /usr/local/lib -name \*.bak -delete > > Note: specifying '' (nul) instead of '.bak' will leave *no* backup files > > > > > If anyone could help I'd appreciate it. > > > > Thank you for your time. > > > > RD > > > > uname -a = FreeBSD bighouse 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sat May > 31 > > 18:57:16 CDT 2008 root@bighouse:/usr/obj/usr/src/sys/MYKERNEL7 i386 >