X-Original-To: alpine-devel@lists.alpinelinux.org Delivered-To: alpine-devel@mail.alpinelinux.org Received: from karif.server-speed.net (karif.server-speed.net [78.46.56.141]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.alpinelinux.org (Postfix) with ESMTPS id AF0A8DC006F for ; Fri, 5 Dec 2014 18:25:57 +0000 (UTC) Received: from karif.server-speed.net (karif.server-speed.net [127.0.0.1]) by karif.server-speed.net (Postfix) with ESMTP id EE8CC141930; Fri, 5 Dec 2014 19:25:54 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on karif.server-speed.net X-Spam-Level: X-Spam-Status: No, score=-101.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.0 Received: from localhost (108-140.echostar.pl [213.156.108.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: barthalion) by karif.server-speed.net (Postfix) with ESMTPSA id B92211407C4; Fri, 5 Dec 2014 19:25:54 +0100 (CET) From: =?UTF-8?q?Bart=C5=82omiej=20Piotrowski?= To: alpine-devel@lists.alpinelinux.org Cc: =?UTF-8?q?Bart=C5=82omiej=20Piotrowski?= Subject: [alpine-devel] [PATCH] Remove *.la files by default Date: Fri, 5 Dec 2014 19:25:38 +0100 Message-Id: <1417803938-31292-1-git-send-email-b@bpiotrowski.pl> X-Mailer: git-send-email 2.1.3 X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: Libtool archives are useless in the most of cases and can be safely removed. A quick grep shows that *.la files are explicitly removed in 903 APKBUILDs, while intentionally preserved only in 17. postcheck() is discussable place to perform the deletion, but it's currently the only function being run for each subpackage, including the artifact of package(). --- abuild.in | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/abuild.in b/abuild.in index 5459a9b..1ccb1e4 100644 --- a/abuild.in +++ b/abuild.in @@ -616,13 +616,12 @@ postcheck() { return 1 fi fi - # look for *.la files - i=$(find "$dir" -name '*.la' | sed "s|^$dir|\t|") - if [ -n "$i" ] && ! options_has "libtool"; then - error "Libtool archives (*.la) files found and \$options has no 'libtool' flag:" - echo "$i" - return 1 + + # remove *.la files if libtool is not set + if ! options_has "libtool"; then + find "$dir" -name '*.la' -type f -delete fi + # look for /usr/lib/charset.alias if [ -e "$dir"/usr/lib/charset.alias ] \ && ! options_has "charset.alias"; then -- 2.1.3 --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---