d9ff62c4cd
It's been ages (5 years at the next release) that we've not installed host packages in $(HOST_DIR)/usr, but we still have a few packages that reference it or install things in there. Drop all of those in one fell swoop. The run-time test still succeeds, and the following defconfig, which should exercise all touched packages [*], does build: BR2_x86_i686=y BR2_TOOLCHAIN_EXTERNAL=y BR2_INIT_NONE=y BR2_SYSTEM_BIN_SH_NONE=y # BR2_PACKAGE_BUSYBOX is not set BR2_PACKAGE_GAWK=y BR2_PACKAGE_GETTEXT=y BR2_PACKAGE_ABOOTIMG=y BR2_PACKAGE_DBUS_PYTHON=y BR2_PACKAGE_OLA=y BR2_PACKAGE_JIMTCL=y BR2_PACKAGE_LUA=y # BR2_PACKAGE_LUA_32BITS is not set BR2_PACKAGE_ARGPARSE=y BR2_PACKAGE_PERL=y BR2_PACKAGE_PHP=y BR2_PACKAGE_PHP_APCU=y BR2_PACKAGE_PHP_LUA=y BR2_PACKAGE_PHP_PAM=y BR2_PACKAGE_PHP_PECL_DBUS=y BR2_PACKAGE_PYTHON3=y BR2_PACKAGE_PYTHON_CRYPTOGRAPHY=y BR2_PACKAGE_PYTHON_PLY=y BR2_PACKAGE_PYTHON_PYBIND=y BR2_PACKAGE_LIBVA=y BR2_PACKAGE_BIND=y BR2_PACKAGE_BIND_SERVER=y BR2_PACKAGE_BIND_TOOLS=y BR2_PACKAGE_APPARMOR=y BR2_PACKAGE_APPARMOR_BINUTILS=y BR2_PACKAGE_APPARMOR_UTILS=y BR2_PACKAGE_APPARMOR_UTILS_EXTRA=y BR2_PACKAGE_APPARMOR_PROFILES=y BR2_PACKAGE_REFPOLICY=y BR2_PACKAGE_URANDOM_SCRIPTS=y BR2_PACKAGE_BASH=y # embiggen-disk to exercise go BR2_PACKAGE_EMBIGGEN_DISK=y BR2_TARGET_GRUB2=y BR2_TARGET_GRUB2_I386_PC=y BR2_TARGET_GRUB2_I386_EFI=y [*] exceptions: - zfs was not tested: it needs a kernel to be built; - compiler-rt was not tsted: it needs llvm to be built, that takes ages, and other packages already reference the correct location for llvm-config, so it was assumed that is OK. Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr> Cc: Angelo Compagnucci <angelo.compagnucci@gmail.com> Cc: Anisse Astier <anisse@astier.eu> Cc: Antoine Tenart <atenart@kernel.org> Cc: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Cc: Asaf Kahlon <asafka7@gmail.com> Cc: Bernd Kuhls <bernd.kuhls@t-online.de> Cc: Christian Stewart <christian@paral.in> Cc: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar> Cc: Francois Perrad <francois.perrad@gadz.org> Cc: Guillaume William Brs <guillaume.bressaix@gmail.com> Cc: Hervé Codina <herve.codina@bootlin.com> Cc: James Hilliard <james.hilliard1@gmail.com> Cc: José Luis Salvador Rufo <salvador.joseluis@gmail.com> Cc: Julien Boibessot <julien.boibessot@armadeus.com> Cc: Julien Olivain <ju.o@free.fr> Cc: Matt Weber <matthew.weber@collins.com> Cc: Nicolas Carrier <nicolas.carrier@orolia.com> Cc: Peter Korsgaard <peter@korsgaard.com> Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Cc: Vadim Kochan <vadim4j@gmail.com> Cc: Yegor Yefremov <yegorslists@googlemail.com> Reviewed-by: Romain Naour <romain.naour@smile.fr> --- Changes v1 -> v2: - fix new instance that have crept in (Romain)
108 lines
4.2 KiB
Makefile
108 lines
4.2 KiB
Makefile
################################################################################
|
|
#
|
|
# gettext-tiny
|
|
#
|
|
################################################################################
|
|
|
|
GETTEXT_TINY_VERSION = 0.3.2
|
|
GETTEXT_TINY_SITE = $(call github,sabotage-linux,gettext-tiny,v$(GETTEXT_TINY_VERSION))
|
|
GETTEXT_TINY_LICENSE = MIT, GPL-3.0+ (extra gettext)
|
|
GETTEXT_TINY_INSTALL_STAGING = YES
|
|
GETTEXT_TINY_LICENSE_FILES = LICENSE
|
|
HOST_GETTEXT_TINY_LICENSE_FILES = LICENSE extra/COPYING
|
|
|
|
GETTEXT_TINY_PROVIDES = gettext
|
|
|
|
# needed for gettextize
|
|
GETTEXT_TINY_ARCHIVE_VERSION = 0.20.1
|
|
|
|
GETTEXT_TINY_EXTRA_GETTEXT_FILES = \
|
|
gettext-tools/misc/gettextize.in \
|
|
gettext-tools/po/Makevars.template \
|
|
gettext-runtime/po/boldquot.sed \
|
|
gettext-runtime/po/en@boldquot.header \
|
|
gettext-runtime/po/en@quot.header \
|
|
gettext-runtime/po/insert-header.sin \
|
|
gettext-runtime/po/quot.sed \
|
|
gettext-runtime/po/remove-potcdate.sin \
|
|
gettext-runtime/po/Rules-quot \
|
|
gettext-runtime/po/Makefile.in.in \
|
|
COPYING
|
|
|
|
HOST_GETTEXT_TINY_EXTRA_DOWNLOADS = $(GETTEXT_GNU_SITE)/$(GETTEXT_GNU_SOURCE)
|
|
|
|
define HOST_GETTEXT_TINY_EXTRACT_GNU_GETTEXT
|
|
mkdir -p $(@D)/gettext-gnu
|
|
$(call suitable-extractor,$(GETTEXT_GNU_SOURCE)) \
|
|
$(GETTEXT_TINY_DL_DIR)/$(GETTEXT_GNU_SOURCE) | \
|
|
$(TAR) --strip-components=1 -C $(@D)/gettext-gnu $(TAR_OPTIONS) -
|
|
endef
|
|
HOST_GETTEXT_TINY_POST_EXTRACT_HOOKS += HOST_GETTEXT_TINY_EXTRACT_GNU_GETTEXT
|
|
|
|
define HOST_GETTEXT_TINY_COPY_EXTRA_FILES
|
|
$(foreach f,$(GETTEXT_TINY_EXTRA_GETTEXT_FILES),\
|
|
$(INSTALL) -D -m 0644 $(@D)/gettext-gnu/$(f) $(@D)/extra/$(notdir $(f))
|
|
)
|
|
$(INSTALL) -D -m 0755 $(@D)/gettext-gnu/build-aux/config.rpath \
|
|
$(@D)/build-aux/config.rpath
|
|
endef
|
|
HOST_GETTEXT_TINY_POST_PATCH_HOOKS += HOST_GETTEXT_TINY_COPY_EXTRA_FILES
|
|
|
|
define HOST_GETTEXT_TINY_BUILD_CMDS
|
|
$(HOST_MAKE_ENV) $(MAKE) -C $(@D) \
|
|
$(HOST_CONFIGURE_OPTS) \
|
|
prefix=$(HOST_DIR) \
|
|
CFLAGS="$(HOST_CFLAGS) -fPIC" \
|
|
LIBINTL=NONE
|
|
|
|
cp $(@D)/extra/gettextize.in $(@D)/gettextize
|
|
|
|
$(SED) 's,@PACKAGE@,gettext-tools,g;' $(@D)/gettextize
|
|
$(SED) 's,@VERSION@,$(GETTEXT_GNU_VERSION),g;' $(@D)/gettextize
|
|
$(SED) 's,@ARCHIVE_VERSION@,$(GETTEXT_TINY_ARCHIVE_VERSION),' $(@D)/gettextize
|
|
$(SED) 's,@prefix@,$(HOST_DIR),g;' $(@D)/gettextize
|
|
$(SED) 's,@datarootdir@,$${prefix}/share,g;' $(@D)/gettextize
|
|
$(SED) 's,@datadir@,$${prefix}/share,g;' $(@D)/gettextize
|
|
$(SED) 's,@PATH_SEPARATOR@,:,g;' $(@D)/gettextize
|
|
$(SED) 's,@RELOCATABLE@,no,g;' $(@D)/gettextize
|
|
$(SED) 's,@exec_prefix@,$${prefix},g;' $(@D)/gettextize
|
|
$(SED) 's,@bindir@,$${exec_prefix}/bin,g;' $(@D)/gettextize
|
|
endef
|
|
|
|
define HOST_GETTEXT_TINY_INSTALL_CMDS
|
|
$(Q)mkdir -p $(HOST_DIR)/share/gettext-tiny/po
|
|
$(Q)mkdir -p $(HOST_DIR)/share/gettext-tiny/m4
|
|
|
|
$(HOST_MAKE_ENV) $(MAKE) -C $(@D) \
|
|
$(HOST_CONFIGURE_OPTS) \
|
|
prefix=$(HOST_DIR) \
|
|
LIBINTL=NONE install
|
|
|
|
$(SED) '/read dummy/d' $(@D)/gettextize
|
|
|
|
$(INSTALL) -m 0755 -D $(@D)/gettextize $(HOST_DIR)/bin/gettextize
|
|
$(INSTALL) -m 0644 -D $(@D)/build-aux/config.rpath $(HOST_DIR)/share/gettext-tiny/config.rpath
|
|
$(INSTALL) -m 0644 -D $(@D)/extra/Makefile.in.in $(HOST_DIR)/share/gettext-tiny/po/Makefile.in.in
|
|
$(INSTALL) -m 0644 -D $(@D)/extra/boldquot.sed $(HOST_DIR)/share/gettext-tiny/po/boldquot.sed
|
|
$(INSTALL) -m 0644 -D $(@D)/extra/en@boldquot.header $(HOST_DIR)/share/gettext-tiny/po/en@boldquot.header
|
|
$(INSTALL) -m 0644 -D $(@D)/extra/en@quot.header $(HOST_DIR)/share/gettext-tiny/po/en@quot.header
|
|
$(INSTALL) -m 0644 -D $(@D)/extra/insert-header.sin $(HOST_DIR)/share/gettext-tiny/po/insert-header.sin
|
|
$(INSTALL) -m 0644 -D $(@D)/extra/quot.sed $(HOST_DIR)/share/gettext-tiny/po/quot.sed
|
|
$(INSTALL) -m 0644 -D $(@D)/extra/remove-potcdate.sin $(HOST_DIR)/share/gettext-tiny/po/remove-potcdate.sin
|
|
$(INSTALL) -m 0644 -D $(@D)/extra/Rules-quot $(HOST_DIR)/share/gettext-tiny/po/Rules-quot
|
|
$(INSTALL) -m 0644 -D $(@D)/extra/Makevars.template $(HOST_DIR)/share/gettext-tiny/po/Makevars.template
|
|
|
|
$(Q)touch $(HOST_DIR)/share/gettext-tiny/ABOUT-NLS
|
|
|
|
# for gettextize
|
|
ln -sf $(HOST_DIR)/share/gettext-tiny $(HOST_DIR)/share/gettext
|
|
endef
|
|
|
|
# Install simple echo wrapper for gettext tool
|
|
define GETTEXT_TINY_INSTALL_TARGET_CMDS
|
|
$(INSTALL) -m 0755 -D $(GETTEXT_TINY_PKGDIR)/gettext-wrapper $(TARGET_DIR)/usr/bin/gettext
|
|
endef
|
|
|
|
$(eval $(generic-package))
|
|
$(eval $(host-generic-package))
|