Globally replace $(HOST_DIR)/usr/share with $(HOST_DIR)/share
authorArnout Vandecappelle <arnout@mind.be>
Wed, 5 Jul 2017 11:14:23 +0000 (13:14 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Wed, 5 Jul 2017 13:21:31 +0000 (15:21 +0200)
Since things are no longer installed in $(HOST_DIR)/usr, the callers
should also not refer to it.

This is a mechanical change with
git grep -l '$(HOST_DIR)/usr/share' | xargs sed -i 's%$(HOST_DIR)/usr/share%$(HOST_DIR)/share%g'

Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
19 files changed:
boot/syslinux/syslinux.mk
fs/iso9660/iso9660.mk
package/Makefile.in
package/autoconf-archive/autoconf-archive.mk
package/automake/automake.mk
package/gettext/gettext.mk
package/gutenprint/gutenprint.mk
package/libselinux/libselinux.mk
package/libsemanage/libsemanage.mk
package/libsigrok/libsigrok.mk
package/libsvgtiny/libsvgtiny.mk
package/luarocks/luarocks.mk
package/luvi/luvi.mk
package/netsurf-buildsystem/netsurf-buildsystem.mk
package/python-cffi/python-cffi.mk
package/thrift/thrift.mk
package/ti-cgt-pru/ti-cgt-pru.mk
package/tz/tz.mk
package/tzdata/tzdata.mk

index 6eb2dd938da3783f87f703c9eecb71dc024aa596..13496414dd126ee975e8aa6524a8604cf223118e 100644 (file)
@@ -97,7 +97,7 @@ define SYSLINUX_INSTALL_IMAGES_CMDS
                $(INSTALL) -D -m 0755 $(@D)/$$i $(BINARIES_DIR)/syslinux/$${i##*/}; \
        done
        for i in $(SYSLINUX_C32); do \
-               $(INSTALL) -D -m 0755 $(HOST_DIR)/usr/share/syslinux/$${i} \
+               $(INSTALL) -D -m 0755 $(HOST_DIR)/share/syslinux/$${i} \
                        $(BINARIES_DIR)/syslinux/$${i}; \
        done
 endef
index fec6fe17c2a2d9a28f1ebe6528ae6148c7cf1235..fafe5b0e845530e237236b476217cbab009f22e7 100644 (file)
@@ -70,7 +70,7 @@ ROOTFS_ISO9660_BOOT_IMAGE = isolinux/isolinux.bin
 define ROOTFS_ISO9660_INSTALL_BOOTLOADER
        $(INSTALL) -D -m 0644 $(BINARIES_DIR)/syslinux/* \
                $(ROOTFS_ISO9660_TARGET_DIR)/isolinux/
-       $(INSTALL) -D -m 0644 $(HOST_DIR)/usr/share/syslinux/ldlinux.c32 \
+       $(INSTALL) -D -m 0644 $(HOST_DIR)/share/syslinux/ldlinux.c32 \
                $(ROOTFS_ISO9660_TARGET_DIR)/isolinux/ldlinux.c32
 endef
 endif
index 113c89b81b548cf8d78eacb6d3b4f7fe6971342c..b95e5e3fa86cece9f9ab46bb9c300b780e782cab 100644 (file)
@@ -282,7 +282,7 @@ HOST_MAKE_ENV = \
        PKG_CONFIG_SYSROOT_DIR="/" \
        PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 \
        PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 \
-       PKG_CONFIG_LIBDIR="$(HOST_DIR)/lib/pkgconfig:$(HOST_DIR)/usr/share/pkgconfig"
+       PKG_CONFIG_LIBDIR="$(HOST_DIR)/lib/pkgconfig:$(HOST_DIR)/share/pkgconfig"
 
 HOST_CONFIGURE_OPTS = \
        $(HOST_MAKE_ENV) \
index 6a7ac4da380d25e35a07b07200968742df8ae9fa..8a6d59578e2be5a05f310d752331fe6d946f4e4b 100644 (file)
@@ -9,6 +9,6 @@ AUTOCONF_ARCHIVE_SOURCE = autoconf-archive-$(AUTOCONF_ARCHIVE_VERSION).tar.xz
 AUTOCONF_ARCHIVE_SITE = $(BR2_GNU_MIRROR)/autoconf-archive
 AUTOCONF_ARCHIVE_LICENSE = GPL-3.0+ with exception
 AUTOCONF_ARCHIVE_LICENSE_FILES = COPYING COPYING.EXCEPTION
-HOST_AUTOCONF_ARCHIVE_INSTALL_OPTS = aclocaldir=$(HOST_DIR)/usr/share/autoconf-archive install
+HOST_AUTOCONF_ARCHIVE_INSTALL_OPTS = aclocaldir=$(HOST_DIR)/share/autoconf-archive install
 
 $(eval $(host-autotools-package))
index 13041213bbabbb982346ad3dd9c2f7f3f0314e70..88c4fb3ee94328bdc0f58863bfe4f28ee12a8e45 100644 (file)
@@ -12,7 +12,7 @@ AUTOMAKE_LICENSE_FILES = COPYING
 
 HOST_AUTOMAKE_DEPENDENCIES = host-autoconf
 
-ACLOCAL_HOST_DIR = $(HOST_DIR)/usr/share/aclocal
+ACLOCAL_HOST_DIR = $(HOST_DIR)/share/aclocal
 
 define GTK_DOC_M4_INSTALL
        $(INSTALL) -D -m 0644 package/automake/gtk-doc.m4 \
index 31f245998147f102cc069af1fefe942f13ef33e2..ec9588f8adcc05a198ee75afac32038c4083195d 100644 (file)
@@ -89,7 +89,7 @@ HOST_GETTEXT_POST_INSTALL_HOOKS += HOST_GETTEXT_GETTEXTIZE_CONFIRMATION
 # host, so do it manually
 define HOST_GETTEXT_ADD_ABOUT_NLS
        $(INSTALL) -m 0644 $(@D)/$(HOST_GETTEXT_SUBDIR)/ABOUT-NLS \
-               $(HOST_DIR)/usr/share/gettext/ABOUT-NLS
+               $(HOST_DIR)/share/gettext/ABOUT-NLS
 endef
 
 HOST_GETTEXT_POST_INSTALL_HOOKS += HOST_GETTEXT_ADD_ABOUT_NLS
index 2e0ff3d906a5f6ffff22e5b20ab3668416969f5a..65b8d310915305589c4bffaec9988c92da5cfb4f 100644 (file)
@@ -84,7 +84,7 @@ HOST_GUTENPRINT_POST_BUILD_HOOKS += HOST_GUTENPRINT_POST_BUILD_INSTAL_TMP_HEADER
 
 define GUTENPRINT_POST_INSTALL_TARGET_FIXUP
        mkdir -p $(TARGET_DIR)/usr/share/gutenprint/5.2
-       cp -rf $(HOST_DIR)/usr/share/gutenprint/5.2/xml $(TARGET_DIR)/usr/share/gutenprint/5.2
+       cp -rf $(HOST_DIR)/share/gutenprint/5.2/xml $(TARGET_DIR)/usr/share/gutenprint/5.2
 endef
 GUTENPRINT_POST_INSTALL_TARGET_HOOKS += GUTENPRINT_POST_INSTALL_TARGET_FIXUP
 
index 3f2aa4cbfed330ff72cad4cb82413ee72bd5097e..169894718454e3b473121202a99b512b6b918a3a 100644 (file)
@@ -36,7 +36,7 @@ endif
 LIBSELINUX_MAKE_OPTS += \
        PYINC="$(LIBSELINUX_PYINC)" \
        PYSITEDIR=$(TARGET_DIR)/usr/lib/$(LIBSELINUX_PYLIBVER)/site-packages \
-       SWIG_LIB="$(HOST_DIR)/usr/share/swig/$(SWIG_VERSION)/"
+       SWIG_LIB="$(HOST_DIR)/share/swig/$(SWIG_VERSION)/"
 
 LIBSELINUX_MAKE_INSTALL_TARGETS += install-pywrap
 
@@ -90,7 +90,7 @@ HOST_LIBSELINUX_MAKE_OPTS = \
        LDFLAGS="$(HOST_LDFLAGS) -lpcre -lpthread" \
        PYINC="$(HOST_LIBSELINUX_PYINC)" \
        PYSITEDIR="$(HOST_DIR)/lib/$(HOST_LIBSELINUX_PYLIBVER)/site-packages" \
-       SWIG_LIB="$(HOST_DIR)/usr/share/swig/$(SWIG_VERSION)/"
+       SWIG_LIB="$(HOST_DIR)/share/swig/$(SWIG_VERSION)/"
 
 define HOST_LIBSELINUX_BUILD_CMDS
        # DESTDIR is needed during the compile to compute library and
index efeb1fcd20c14bbfe99d775d04afae877204e352..5ef2d57e35a6e82e65722bbb698da259c3eebe4d 100644 (file)
@@ -30,7 +30,7 @@ endef
 HOST_LIBSEMANAGE_DEPENDENCIES = host-bison host-audit host-libsepol host-libselinux \
                                host-ustr host-bzip2 host-swig
 HOST_LIBSEMANAGE_MAKE_OPTS += $(HOST_CONFIGURE_OPTS) \
-       SWIG_LIB="$(HOST_DIR)/usr/share/swig/$(SWIG_VERSION)/"
+       SWIG_LIB="$(HOST_DIR)/share/swig/$(SWIG_VERSION)/"
 
 ifeq ($(BR2_PACKAGE_PYTHON3),y)
 HOST_LIBSEMANAGE_DEPENDENCIES += host-python3
index fe7d6c40b82a5fb83df5b3d220243a3654abb83b..ef7fab82bd256b333160e2f2ae9304e988f852f6 100644 (file)
@@ -39,7 +39,7 @@ endif
 
 ifeq ($(BR2_PACKAGE_LIBSIGROKCXX),y)
 LIBSIGROK_CONF_OPTS += --enable-cxx
-LIBSIGROK_AUTORECONF_OPTS += -I $(HOST_DIR)/usr/share/autoconf-archive
+LIBSIGROK_AUTORECONF_OPTS += -I $(HOST_DIR)/share/autoconf-archive
 LIBSIGROK_DEPENDENCIES += \
        host-autoconf-archive \
        glibmm \
index acd08d72d598588c128258b82d75216ca5946ce8..febd3fcec8a78d94d6c4e483b1fe68293dc153b2 100644 (file)
@@ -23,7 +23,7 @@ LIBSVGTINY_COMPONENT_TYPE = lib-static
 endif
 
 define LIBSVGTINY_CONFIGURE_CMDS
-       ln -sf $(HOST_DIR)/usr/share/netsurf-buildsystem $(@D)/build
+       ln -sf $(HOST_DIR)/share/netsurf-buildsystem $(@D)/build
 endef
 
 define LIBSVGTINY_BUILD_CMDS
index cf449ac52cf6a5dfc8e2015937789e621103edcb..e965ab2288431d6bcebf36385447c8c89a81f9f7 100644 (file)
@@ -53,7 +53,7 @@ endef
 
 $(eval $(host-generic-package))
 
-LUAROCKS_RUN_ENV = LUA_PATH="$(HOST_DIR)/usr/share/lua/$(LUAINTERPRETER_ABIVER)/?.lua"
+LUAROCKS_RUN_ENV = LUA_PATH="$(HOST_DIR)/share/lua/$(LUAINTERPRETER_ABIVER)/?.lua"
 LUAROCKS_RUN_CMD = $(LUA_RUN) $(HOST_DIR)/bin/luarocks
 
 define LUAROCKS_FINALIZE_TARGET
index 3b2094c4b9fc4d365c630df90303d91514e0a889..956c37ffab9abbc185d83cf1d8888931a2660127 100644 (file)
@@ -33,7 +33,7 @@ LUVI_CONF_OPTS = \
        -DBUILD_SHARED_LIBS=OFF \
        -DWithSharedLibluv=ON \
        -DTARGET_ARCH=$(LUVI_TARGET_ARCH) \
-       -DLUA_PATH=$(HOST_DIR)/usr/share/luajit-$(LUAJIT_VERSION)/?.lua
+       -DLUA_PATH=$(HOST_DIR)/share/luajit-$(LUAJIT_VERSION)/?.lua
 
 # Add "rex" module (PCRE via bundled lrexlib)
 ifeq ($(BR2_PACKAGE_PCRE),y)
index f316eb126b0e6eadfb42cfa2123f82bd81f067ee..d4efec0e1d71f6d1232de67796faa4193496bab2 100644 (file)
@@ -10,7 +10,7 @@ NETSURF_BUILDSYSTEM_SITE_METHOD = git
 NETSURF_BUILDSYSTEM_LICENSE = MIT, BSD-3-Clause (for llvm/* files)
 NETSURF_BUILDSYSTEM_LICENSE_FILES = llvm/LICENSE.TXT
 
-NETSURF_BUILDSYSTEM_INSTALL_DIR = $(HOST_DIR)/usr/share/netsurf-buildsystem
+NETSURF_BUILDSYSTEM_INSTALL_DIR = $(HOST_DIR)/share/netsurf-buildsystem
 
 define HOST_NETSURF_BUILDSYSTEM_INSTALL_CMDS
        mkdir -p $(NETSURF_BUILDSYSTEM_INSTALL_DIR)
index 723d87cb97cd0de3cfe0663f61323acc549c6f68..da95f7df08db1c4f59228204c1ac40392c37d484 100644 (file)
@@ -20,7 +20,7 @@ HOST_PYTHON_CFFI_ENV = \
        PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 \
        PKG_CONFIG="$(PKG_CONFIG_HOST_BINARY)" \
        PKG_CONFIG_SYSROOT_DIR="/" \
-       PKG_CONFIG_LIBDIR="$(HOST_DIR)/lib/pkgconfig:$(HOST_DIR)/usr/share/pkgconfig"
+       PKG_CONFIG_LIBDIR="$(HOST_DIR)/lib/pkgconfig:$(HOST_DIR)/share/pkgconfig"
 HOST_PYTHON_CFFI_DEPENDENCIES = host-pkgconf host-python-pycparser host-libffi
 
 $(eval $(python-package))
index cbd5401dce9baf3e9a639a098a3c088fcaa68db7..741d33f571b92d7def2989a659b7d3edc5abe164 100644 (file)
@@ -21,7 +21,7 @@ HOST_THRIFT_CONF_OPTS = --with-sysroot=$(HOST_DIR) \
        --disable-tests \
        --disable-tutorial
 THRIFT_AUTORECONF = YES
-THRIFT_AUTORECONF_OPTS = -I $(HOST_DIR)/usr/share/autoconf-archive
+THRIFT_AUTORECONF_OPTS = -I $(HOST_DIR)/share/autoconf-archive
 THRIFT_LICENSE = Apache-2.0
 THRIFT_LICENSE_FILES = LICENSE
 
index 4f8e70bfce1b089c0969385ce755f5adc676d78d..f923e835dc4f55ae8297610b6820f6f118cd62a4 100644 (file)
@@ -20,10 +20,10 @@ define HOST_TI_CGT_PRU_EXTRACT_CMDS
 endef
 
 # Since this is largely prebuilt toolchain and likes to live in its
-# own directory, put it in $(HOST_DIR)/usr/share/ti-cgt-pru/.
+# own directory, put it in $(HOST_DIR)/share/ti-cgt-pru/.
 # Packages wanting to use this toolchain need to use this path as TI's
 # standard PRU_CGT path e.g. make PRU_CGT=$(TI_CGT_PRU_INSTALLDIR)...
-TI_CGT_PRU_INSTALLDIR = $(HOST_DIR)/usr/share/ti-cgt-pru
+TI_CGT_PRU_INSTALLDIR = $(HOST_DIR)/share/ti-cgt-pru
 
 define HOST_TI_CGT_PRU_INSTALL_CMDS
        mkdir -p $(TI_CGT_PRU_INSTALLDIR)
index 73863610884cde0bafaf074184bf3b01b2f2eee5..1e797046d2ff5f836e1a412d56445e98b28c5b10 100644 (file)
@@ -10,7 +10,7 @@ TZ_LICENSE = Public domain
 TZ_LOCALTIME = $(call qstrip,$(BR2_TARGET_LOCALTIME))
 
 define TZ_BUILD_CMDS
-       (cd $(HOST_DIR)/usr/share/zoneinfo/posix/; \
+       (cd $(HOST_DIR)/share/zoneinfo/posix/; \
                for i in $$(find . -type f); do \
                        mkdir -p $(@D)/output/$$(dirname $$i); \
                        $(TZDUMP) -p . -q $${i#./} | sed '1d' > $(@D)/output/$$i; \
@@ -19,9 +19,9 @@ define TZ_BUILD_CMDS
 endef
 
 define TZ_INSTALL_TARGET_CMDS
-       $(INSTALL) -D -m 0644 $(HOST_DIR)/usr/share/zoneinfo/zone.tab \
+       $(INSTALL) -D -m 0644 $(HOST_DIR)/share/zoneinfo/zone.tab \
                $(TARGET_DIR)/usr/share/zoneinfo/zone.tab
-       $(INSTALL) -D -m 0644 $(HOST_DIR)/usr/share/zoneinfo/iso3166.tab \
+       $(INSTALL) -D -m 0644 $(HOST_DIR)/share/zoneinfo/iso3166.tab \
                $(TARGET_DIR)/usr/share/zoneinfo/iso3166.tab
        mkdir -p $(TARGET_DIR)/usr/share/zoneinfo/uclibc
        cp -a $(@D)/output/* $(TARGET_DIR)/usr/share/zoneinfo/uclibc
index 8c8d224e4fc592839849d1b070fb3ea47685cefb..3b7f5c194bb2ff58c65146575d3ca384cc89e2aa 100644 (file)
@@ -31,7 +31,7 @@ TZDATA_EXTRACT_CMDS =
 
 define TZDATA_INSTALL_TARGET_CMDS
        $(INSTALL) -d -m 0755 $(TARGET_DIR)/usr/share/zoneinfo
-       cp -a $(HOST_DIR)/usr/share/zoneinfo/* $(TARGET_DIR)/usr/share/zoneinfo
+       cp -a $(HOST_DIR)/share/zoneinfo/* $(TARGET_DIR)/usr/share/zoneinfo
        cd $(TARGET_DIR)/usr/share/zoneinfo; \
        for zone in posix/*; do \
            ln -sfn "$${zone}" "$${zone##*/}"; \
@@ -55,8 +55,8 @@ define HOST_TZDATA_BUILD_CMDS
 endef
 
 define HOST_TZDATA_INSTALL_CMDS
-       $(INSTALL) -d -m 0755 $(HOST_DIR)/usr/share/zoneinfo
-       cp -a $(@D)/_output/* $(@D)/*.tab $(HOST_DIR)/usr/share/zoneinfo
+       $(INSTALL) -d -m 0755 $(HOST_DIR)/share/zoneinfo
+       cp -a $(@D)/_output/* $(@D)/*.tab $(HOST_DIR)/share/zoneinfo
 endef
 
 $(eval $(generic-package))