All of lore.kernel.org
 help / color / mirror / Atom feed
* [patch] autotools: Remove .la files by default
@ 2011-03-29 14:43 Colin Walters
  2011-03-29 16:03 ` Richard Purdie
  0 siblings, 1 reply; 7+ messages in thread
From: Colin Walters @ 2011-03-29 14:43 UTC (permalink / raw)
  To: poky

[-- Attachment #1: Type: text/plain, Size: 21 bytes --]

See attached patch.

[-- Attachment #2: 0001-autotools-Remove-.la-files-by-default.patch --]
[-- Type: text/x-patch, Size: 1346 bytes --]

From 487753f1bbef085c558befba7f03b6b4f01f392d Mon Sep 17 00:00:00 2001
From: Colin Walters <walters@verbum.org>
Date: Tue, 29 Mar 2011 10:41:34 -0400
Subject: [PATCH] autotools: Remove .la files by default

They are installed by libtool only to make automake's "make uninstall"
work; but we don't care about that, since no one sane bases an
operating system upgrade/uninstall procedure on automake.  Saner
people use higher level abstractions like "packages" or pure image
based synchronization.

They are otherwise unnecessary and actually can break things; see:
https://live.gnome.org/GnomeShell/RemovingLaFiles
http://wiki.debian.org/ReleaseGoals/LAFileRemoval
---
 meta/classes/autotools.bbclass |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/meta/classes/autotools.bbclass b/meta/classes/autotools.bbclass
index 7ebf833..1f77212 100644
--- a/meta/classes/autotools.bbclass
+++ b/meta/classes/autotools.bbclass
@@ -163,6 +163,11 @@ autotools_do_install() {
 	if [ -e "${D}${infodir}/dir" ]; then
 		rm -f ${D}${infodir}/dir
 	fi
+	# Also kill off .la files; they are wholly unnecessary and actually can
+	# break things; see:
+	# https://live.gnome.org/GnomeShell/RemovingLaFiles
+	# http://wiki.debian.org/ReleaseGoals/LAFileRemoval
+	find ${D}${libdir} -name '*.la' -delete
 }
 
 inherit siteconfig
-- 
1.7.4


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2011-03-29 22:19 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-29 14:43 [patch] autotools: Remove .la files by default Colin Walters
2011-03-29 16:03 ` Richard Purdie
2011-03-29 16:15   ` Colin Walters
2011-03-29 16:29     ` Richard Purdie
2011-03-29 17:04       ` Colin Walters
2011-03-29 22:18         ` Richard Purdie
2011-03-29 16:35     ` Koen Kooi

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.