package/pkg-generic: Add /usr/share/info/dir to $(2)_DROP_FILES_OR_DIRS

This is the file the original commit d889838098 ("package/pkg-generic.mk:
Remove Info documents dir entry") wanted to delete.

However, it only works for host packages. Target packages are (usually)
installed with prefix /usr, so the info dir is /usr/share/info. Simply
remove both of them, even if one of them only exists for host packages
and the other only for target packages.

Signed-off-by: John Ernberg <j@j-ernberg.se>
Signed-off-by: Arnout Vandecappelle <arnout@rnout.be>
(cherry picked from commit e5a723f35d)
Signed-off-by: Thomas Perale <thomas.perale@mind.be>
This commit is contained in:
John Ernberg
2026-05-27 22:41:25 +02:00
committed by Thomas Perale
parent 3fbf04200d
commit dee8d1caff

View File

@@ -870,7 +870,7 @@ endif
endif
# Globally remove following conflicting and useless files
$(2)_DROP_FILES_OR_DIRS += /share/info/dir
$(2)_DROP_FILES_OR_DIRS += /share/info/dir /usr/share/info/dir
ifeq ($$($(2)_TYPE),host)
$(2)_POST_INSTALL_HOOKS += REMOVE_CONFLICTING_USELESS_FILES_IN_HOST