From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1R3Tjf-0003Sg-TG for garchives@archives.gentoo.org; Tue, 13 Sep 2011 14:13:16 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B240B21C0F3; Tue, 13 Sep 2011 14:12:12 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id CE22D21C0D3 for ; Tue, 13 Sep 2011 14:09:03 +0000 (UTC) Received: from localhost.localdomain (77-255-22-60.adsl.inetia.pl [77.255.22.60]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: mgorny) by smtp.gentoo.org (Postfix) with ESMTPSA id 51CD11B401B; Tue, 13 Sep 2011 14:09:02 +0000 (UTC) From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= To: gentoo-dev@lists.gentoo.org Cc: reavertm@gentoo.org, =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Subject: [gentoo-dev] [PATCH autotools-utils 9/9] Explain .la removal reasons in output. Date: Tue, 13 Sep 2011 16:10:33 +0200 Message-Id: <1315923033-23397-9-git-send-email-mgorny@gentoo.org> X-Mailer: git-send-email 1.7.6.1 In-Reply-To: <1315923033-23397-1-git-send-email-mgorny@gentoo.org> References: <1315857465-8179-1-git-send-email-mgorny@gentoo.org> <1315923033-23397-1-git-send-email-mgorny@gentoo.org> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org X-Archives-Salt: X-Archives-Hash: e5b046747a1fe6a3b0fcdb94a67bb3b0 --- eclass/autotools-utils.eclass | 11 ++++++----- 1 files changed, 6 insertions(+), 5 deletions(-) diff --git a/eclass/autotools-utils.eclass b/eclass/autotools-utils.eclass index 2e01dcc..495244b 100644 --- a/eclass/autotools-utils.eclass +++ b/eclass/autotools-utils.eclass @@ -186,16 +186,17 @@ remove_libtool_files() { # - they are covered by a .pc file already, # - they don't provide any new information (no libs & no flags). local removing - if [[ ${removing_all} ]]; then removing=1 - elif [[ ! -f ${archivefile} ]]; then removing=1 - elif has "$(basename "${f}")" "${pc_libs[@]}"; then removing=1 + if [[ ${removing_all} ]]; then removing='forced' + elif [[ ! -f ${archivefile} ]]; then removing='no static archive' + elif has "$(basename "${f}")" "${pc_libs[@]}"; then + removing='covered by .pc' elif [[ ! $(sed -n -e \ "s/^\(dependency_libs\|inherited_linker_flags\)='\(.*\)'$/\2/p" \ - "${f}") ]]; then removing=1 + "${f}") ]]; then removing='no libs & flags' fi if [[ ${removing} ]]; then - einfo "Removing unnecessary ${f#${D%/}}" + einfo "Removing unnecessary ${f#${D%/}} (${removing})" rm -f "${f}" || die fi done -- 1.7.6.1