[Buildroot] [Bug 11416] check-uniq-files staging issue

bugzilla at busybox.net bugzilla at busybox.net
Mon Oct 22 07:33:41 UTC 2018


https://bugs.busybox.net/show_bug.cgi?id=11416

--- Comment #1 from Jean-pierre Cartal <jpcartal at free.fr> ---
The following patch avoids the false positive warnings regarding .la files: 
diff --git a/package/pkg-generic.mk b/package/pkg-generic.mk
index a689dde4d2..110f8ee4a5 100644
--- a/package/pkg-generic.mk
+++ b/package/pkg-generic.mk
@@ -276,7 +276,8 @@ $(BUILD_DIR)/%/.stamp_staging_installed:
                                $(addprefix
$(STAGING_DIR)/usr/bin/,$($(PKG)_CONFIG_SCRIPTS)) ;\
        fi
        @$(call MESSAGE,"Fixing libtool files")
-       $(Q)find $(STAGING_DIR)/usr/lib* -name "*.la" | xargs --no-run-if-empty
\
+       $(Q)for lafile in $$(find $(@D) -name *.la -exec basename {} \; | sort
-u); do \
+               ls $(STAGING_DIR)/usr/lib*/$${lafile}; done | xargs
--no-run-if-empty \
                $(SED) "s:$(BASE_DIR):@BASE_DIR@:g" \
                        -e "s:$(STAGING_DIR):@STAGING_DIR@:g" \
                        $(if $(TOOLCHAIN_EXTERNAL_INSTALL_DIR),\

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the buildroot mailing list