Skip to contentSkip to conversation

alsa-plugins: improve .la removal

PATCH New Ross Burton 1 participant 2 messages Sep 15, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 alsa-plugins: improve .la removal

Don't assume that the .la files are installed, because some libtool alternatives don't install these.

---
 meta/recipes-multimedia/alsa/alsa-plugins_1.2.2.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-multimedia/alsa/alsa-plugins_1.2.2.bb +1 -1
index 52dee30126..e8402a6fcb 100644
@@ -51,7 +51,7 @@ FILES_${PN} = ""
 ALLOW_EMPTY_${PN} = "1"
 
 do_install_append() {
-	rm ${D}${libdir}/alsa-lib/*.la
+	rm -f ${D}${libdir}/alsa-lib/*.la
 
 	if [ "${@bb.utils.contains('PACKAGECONFIG', 'pulseaudio', 'yes', 'no', d)}" = "yes" ]; then
 		# We use the example as is. Upstream installs the file under
Signature · 1 line
2.28.0
#1 lore raw

PATCH 2/2 sato-screenshot: improve .la removal

Don't assume that the .la files are installed, because some libtool alternatives don't install these.

---
 meta/recipes-sato/sato-screenshot/sato-screenshot_0.3.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-sato/sato-screenshot/sato-screenshot_0.3.bb +1 -1
index f6dac2cf88..2b1f513f1c 100644
@@ -21,7 +21,7 @@ inherit autotools pkgconfig features_check
 FILES_${PN} += "${libdir}/matchbox-panel/*.so"
 
 do_install_append () {
-	rm ${D}${libdir}/matchbox-panel/*.la
+	rm -f ${D}${libdir}/matchbox-panel/*.la
 }
 
 # The matchbox-panel-2 requires x11 in DISTRO_FEATURES
Signature · 1 line
2.28.0