From owner-freebsd-ports@FreeBSD.ORG Wed Jan 18 01:51:13 2012 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8131E106566C for ; Wed, 18 Jan 2012 01:51:13 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: from mail-we0-f182.google.com (mail-we0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id 13BE98FC0A for ; Wed, 18 Jan 2012 01:51:12 +0000 (UTC) Received: by werg1 with SMTP id g1so3695601wer.13 for ; Tue, 17 Jan 2012 17:51:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=s7+xWE+FMuR6H+c5KnvhmPbhNnRralrPY8UxHkakijE=; b=pTCdvnKn0al6gT1TJnOORPIrhZa0oW1AaLUjdSA4k78Kpp6J3MCCPCw4Wul2m6QFW5 dZlrzi6ozS44waOG5hj455HHP9T+1cXHPAJnmPdj8iM5l0DTR3W/zQtTi5sfwTFLodUF YozPd3Ho4i6+jVXNem1I3VKpNvJVnlKgH1qbs= MIME-Version: 1.0 Received: by 10.216.132.18 with SMTP id n18mr3653665wei.58.1326851472021; Tue, 17 Jan 2012 17:51:12 -0800 (PST) Received: by 10.223.101.196 with HTTP; Tue, 17 Jan 2012 17:51:11 -0800 (PST) Date: Tue, 17 Jan 2012 17:51:11 -0800 Message-ID: From: Kevin Oberman To: ports@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Upgrading libs with many dependent ports X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Jan 2012 01:51:13 -0000 I have just been cleaning up the mess caused by the upgrade of xcb-utils. On my systmes I have hundreds of ports that will be re-built by the methods listed in UPDATING, even though the vast majority of them are only dependent on other ports that are dependent on xcb-utils, but don't actually load any of the libraries in xcb-utils. It is a huge waste of time and CPU cycles. I think that I can see two ways of eliminating the rebuilding of ports that don't need it. One is rather manual but can be done now while the other wou;d be automatic, but would need to be written by someone who is far better at writing shell scripts than I. The manual method would be to install sysutils/bsdadminscripts and use a command like `pkg_libchk | grep -E "xcb-.+.so" | sort > tmpfile` to provide a list of ports that actually are linked to the libraries in question. This would be fed into portmaster to rebuild just these ports. (I guess I could use awk and uniq to remove repeats.) Should this become a preferred method of handling this problem? -- R. Kevin Oberman, Network Engineer E-mail: kob6558@gmail.com