Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Julien Olivain via buildroot <buildroot@buildroot.org>
To: Francois Perrad <francois.perrad.86@gmail.com>
Cc: buildroot@busybox.net
Subject: Re: [Buildroot] [PATCH v3 4/8] package/hare: new host package
Date: Sun, 02 Aug 2026 17:28:05 +0200	[thread overview]
Message-ID: <5a38c59644b8e79fe2aa54580f94869f@free.fr> (raw)
In-Reply-To: <20260721093932.282565-5-francois.perrad.86@gmail.com>

Hi Francois,

Thanks for the update. I have few comments, see below.

On 21/07/2026 11:39, Francois Perrad wrote:
> Signed-off-by: Francois Perrad <francois.perrad.86@gmail.com>
> ---
[...]
> diff --git a/package/hare/hare.mk b/package/hare/hare.mk
> new file mode 100644
> index 000000000..9a85d4c14
> --- /dev/null
> +++ b/package/hare/hare.mk
> @@ -0,0 +1,47 @@
> +################################################################################
> +#
> +# hare
> +#
> +################################################################################
> +
> +HARE_VERSION = 0.26.0.1
> +HARE_SITE = https://git.sr.ht/~sircmpwn/hare/archive
> +HARE_SOURCE = $(HARE_VERSION).tar.gz
> +HARE_LICENSE = MPL-2.0
> +HARE_LICENSE_FILES = COPYING
> +
> +HOST_HARE_DEPENDENCIES = host-harec host-qbe host-scdoc
> +
> +ifeq ($(BR2_aarch64),y)
> +HOST_HARE_TARGET_ARCH = AARCH64
> +else ifeq ($(BR2_RISCV_64),y)
> +HOST_HARE_TARGET_ARCH = RISCV64
> +else ifeq ($(BR2_x86_64),y)
> +HOST_HARE_TARGET_ARCH = X86_64
> +endif
> +
> +HOST_HARE_CONF_OPTS = \
> +	ARCH=$(HOSTARCH) \
> +	DESTDIR="$(HOST_DIR)" \
> +	PREFIX=/usr \
> +	HAREC="$(HOST_DIR)/usr/bin/harec" \
> +	QBE="$(HOST_DIR)/usr/bin/qbe" \
> +	SCDOC="$(HOST_DIR)/usr/bin/scdoc" \
> +	HAREPATH="$(HOST_DIR)/usr/src/hare/stdlib" \

Buildroot decided a long time ago to avoid installing
files in "$(HOST_DIR)/usr/". This is reported by the command:
utils/docker-run make check-package

package/hare/hare.mk:27: install files to $(HOST_DIR)/ instead of 
$(HOST_DIR)/usr/
...

So the previous variables should bechanged to:

        PREFIX=/ \
        HAREC="$(HOST_DIR)/bin/harec" \
        QBE="$(HOST_DIR)/bin/qbe" \
        SCDOC="$(HOST_DIR)/bin/scdoc" \
        HAREPATH="$(HOST_DIR)/src/hare/stdlib" \

Changing those variables will require to updates other packages
in this series. I'll send separate messages.

> +	$(HOST_HARE_TARGET_ARCH)_AS=$(TARGET_AS) \
> +	$(HOST_HARE_TARGET_ARCH)_CC=$(TARGET_CC) \
> +	$(HOST_HARE_TARGET_ARCH)_LD=$(TARGET_LD)
> +
> +define HOST_HARE_CONFIGURE_CMDS
> +	cp $(@D)/configs/linux.mk $(@D)/config.mk
> +endef
> +
> +define HOST_HARE_BUILD_CMDS
> +	$(HOST_MAKE_ENV) $(MAKE) -C $(@D) $(HOST_HARE_CONF_OPTS) all
> +endef
> +
> +define HOST_HARE_INSTALL_CMDS
> +	$(HOST_MAKE_ENV) $(MAKE) -C $(@D) $(HOST_HARE_CONF_OPTS) install
> +endef
> +
> +$(eval $(host-generic-package))
> --
> 2.43.0

Could you send and updated series addressing those comments, please?

Best regards,

Julien.
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

  reply	other threads:[~2026-08-02 15:28 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-21  9:39 [Buildroot] [PATCH v3 0/8] support Hare language Francois Perrad
2026-07-21  9:39 ` [Buildroot] [PATCH v3 1/8] package/qbe: new host package Francois Perrad
2026-08-02 15:34   ` Julien Olivain via buildroot
2026-07-21  9:39 ` [Buildroot] [PATCH v3 2/8] package/scdoc: " Francois Perrad
2026-08-02 15:35   ` Julien Olivain via buildroot
2026-07-21  9:39 ` [Buildroot] [PATCH v3 3/8] package/harec: " Francois Perrad
2026-08-02 15:30   ` Julien Olivain via buildroot
2026-07-21  9:39 ` [Buildroot] [PATCH v3 4/8] package/hare: " Francois Perrad
2026-08-02 15:28   ` Julien Olivain via buildroot [this message]
2026-07-21  9:39 ` [Buildroot] [PATCH v3 5/8] package/pkg-hare.mk: new infrastructure Francois Perrad
2026-08-02 15:33   ` Julien Olivain via buildroot
2026-07-21  9:39 ` [Buildroot] [PATCH v3 6/8] package/hare-ev: new package Francois Perrad
2026-07-21  9:39 ` [Buildroot] [PATCH v3 7/8] package/hare-xml: " Francois Perrad
2026-07-21  9:39 ` [Buildroot] [PATCH v3 8/8] package/hare-dbus: " Francois Perrad
2026-08-02 15:38   ` Julien Olivain via buildroot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5a38c59644b8e79fe2aa54580f94869f@free.fr \
    --to=buildroot@buildroot.org \
    --cc=buildroot@busybox.net \
    --cc=francois.perrad.86@gmail.com \
    --cc=ju.o@free.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox