All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] package/e2fsprogs: Don't build docs for host
@ 2025-04-09  0:03 Charlie Jenkins
  2025-04-19 21:30 ` Thomas Petazzoni via buildroot
  2025-05-17 20:51 ` Peter Korsgaard
  0 siblings, 2 replies; 3+ messages in thread
From: Charlie Jenkins @ 2025-04-09  0:03 UTC (permalink / raw)
  To: buildroot; +Cc: Charlie Jenkins

texinfo isn't provided for the host in buildroot, but e2fsprogs always
attempts to build the documentation. The error that gets printed is as
follows:

/usr/bin/install: cannot stat 'libext2fs.info*': No such file or directory
make[3]: [Makefile:363: install-doc-libs] Error 1 (ignored)

This error is ignored but it is unnecessary.

Signed-off-by: Charlie Jenkins <charlie@rivosinc.com>
---
 package/e2fsprogs/e2fsprogs.mk | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/package/e2fsprogs/e2fsprogs.mk b/package/e2fsprogs/e2fsprogs.mk
index 7f33b256c2626430a4578a9d8ffd8258df364a43..ad65d5189e75808af011ec87f0bee9d252f53767 100644
--- a/package/e2fsprogs/e2fsprogs.mk
+++ b/package/e2fsprogs/e2fsprogs.mk
@@ -56,6 +56,12 @@ E2FSPROGS_CONF_OPTS = \
 	--disable-rpath \
 	--enable-symlink-install
 
+# docs will fail to build for the host because buildroot doesn't provide texinfo
+define HOST_E2FSPROGS_REMOVE_DOCS
+	rm -rf $(@D)/doc
+endef
+HOST_E2FSPROGS_PRE_INSTALL_HOOKS += HOST_E2FSPROGS_REMOVE_DOCS
+
 ifeq ($(BR2_PACKAGE_E2FSPROGS_FUSE2FS),y)
 E2FSPROGS_CONF_OPTS += --enable-fuse2fs
 E2FSPROGS_DEPENDENCIES += libfuse

---
base-commit: af094ed137d6967afb6270b69c516a22eb9d8091
change-id: 20250407-fix_e2fsprogs-68470f22d8cd
-- 
- Charlie

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

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [Buildroot] [PATCH] package/e2fsprogs: Don't build docs for host
  2025-04-09  0:03 [Buildroot] [PATCH] package/e2fsprogs: Don't build docs for host Charlie Jenkins
@ 2025-04-19 21:30 ` Thomas Petazzoni via buildroot
  2025-05-17 20:51 ` Peter Korsgaard
  1 sibling, 0 replies; 3+ messages in thread
From: Thomas Petazzoni via buildroot @ 2025-04-19 21:30 UTC (permalink / raw)
  To: Charlie Jenkins; +Cc: buildroot

Hello Charlie,

On Tue, 08 Apr 2025 17:03:05 -0700
Charlie Jenkins <charlie@rivosinc.com> wrote:

> texinfo isn't provided for the host in buildroot, but e2fsprogs always
> attempts to build the documentation. The error that gets printed is as
> follows:
> 
> /usr/bin/install: cannot stat 'libext2fs.info*': No such file or directory
> make[3]: [Makefile:363: install-doc-libs] Error 1 (ignored)
> 
> This error is ignored but it is unnecessary.
> 
> Signed-off-by: Charlie Jenkins <charlie@rivosinc.com>
> ---
>  package/e2fsprogs/e2fsprogs.mk | 6 ++++++
>  1 file changed, 6 insertions(+)

But why is that an issue for the host variant of e2fsprogs and not the
target variant?

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Buildroot] [PATCH] package/e2fsprogs: Don't build docs for host
  2025-04-09  0:03 [Buildroot] [PATCH] package/e2fsprogs: Don't build docs for host Charlie Jenkins
  2025-04-19 21:30 ` Thomas Petazzoni via buildroot
@ 2025-05-17 20:51 ` Peter Korsgaard
  1 sibling, 0 replies; 3+ messages in thread
From: Peter Korsgaard @ 2025-05-17 20:51 UTC (permalink / raw)
  To: Charlie Jenkins; +Cc: buildroot

>>>>> "Charlie" == Charlie Jenkins <charlie@rivosinc.com> writes:

 > texinfo isn't provided for the host in buildroot, but e2fsprogs always
 > attempts to build the documentation. The error that gets printed is as
 > follows:

 > /usr/bin/install: cannot stat 'libext2fs.info*': No such file or directory
 > make[3]: [Makefile:363: install-doc-libs] Error 1 (ignored)

 > This error is ignored but it is unnecessary.

 > Signed-off-by: Charlie Jenkins <charlie@rivosinc.com>

This is presumably not unique to the host version? Given that this is
intentional behaviour from upstream (hence the "ignored"), I don't think
it makes sense to add the extra complexity.

If you would like to get rid of the warning then please work with
upstream to handle it in a cleaner way (E.G. with a configure flag to
disable docs).

> ---
 >  package/e2fsprogs/e2fsprogs.mk | 6 ++++++
 >  1 file changed, 6 insertions(+)

 > diff --git a/package/e2fsprogs/e2fsprogs.mk b/package/e2fsprogs/e2fsprogs.mk
 > index 7f33b256c2626430a4578a9d8ffd8258df364a43..ad65d5189e75808af011ec87f0bee9d252f53767 100644
 > --- a/package/e2fsprogs/e2fsprogs.mk
 > +++ b/package/e2fsprogs/e2fsprogs.mk
 > @@ -56,6 +56,12 @@ E2FSPROGS_CONF_OPTS = \
 >  	--disable-rpath \
 >  	--enable-symlink-install
 
 > +# docs will fail to build for the host because buildroot doesn't provide texinfo
 > +define HOST_E2FSPROGS_REMOVE_DOCS
 > +	rm -rf $(@D)/doc
 > +endef
 > +HOST_E2FSPROGS_PRE_INSTALL_HOOKS += HOST_E2FSPROGS_REMOVE_DOCS
 > +
 >  ifeq ($(BR2_PACKAGE_E2FSPROGS_FUSE2FS),y)
 >  E2FSPROGS_CONF_OPTS += --enable-fuse2fs
 >  E2FSPROGS_DEPENDENCIES += libfuse

 > ---
 > base-commit: af094ed137d6967afb6270b69c516a22eb9d8091
 > change-id: 20250407-fix_e2fsprogs-68470f22d8cd
 > -- 

 > - Charlie

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


-- 
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-05-17 20:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-09  0:03 [Buildroot] [PATCH] package/e2fsprogs: Don't build docs for host Charlie Jenkins
2025-04-19 21:30 ` Thomas Petazzoni via buildroot
2025-05-17 20:51 ` Peter Korsgaard

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.