* [Buildroot] [PATCH 1/1] package/octave: add libreadline search prefix
@ 2023-12-12 21:46 Julien Olivain
2023-12-24 18:18 ` Thomas Petazzoni via buildroot
0 siblings, 1 reply; 3+ messages in thread
From: Julien Olivain @ 2023-12-12 21:46 UTC (permalink / raw)
To: buildroot; +Cc: Julien Olivain
Since commit b36e4b10f3 "package/octave: bump to version 8.1.0",
Octave fails to find readline automatically if octave and readline
packages are both enabled in Buildroot the configuration.
The readline search prefix need to be explicitly passed during octave
configuration. This commit adds this search prefix to fix this build
issue.
Fixes:
checking for readline... (cached) no
checking for readline/readline.h... (cached) yes
checking for readline/history.h... (cached) yes
configure: WARNING: I need GNU Readline 4.2 or later
configure: error: this is fatal unless you specify --disable-readline
Signed-off-by: Julien Olivain <ju.o@free.fr>
---
package/octave/octave.mk | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/package/octave/octave.mk b/package/octave/octave.mk
index cae0de7620..f240a5057c 100644
--- a/package/octave/octave.mk
+++ b/package/octave/octave.mk
@@ -20,7 +20,9 @@ OCTAVE_DEPENDENCIES = \
pcre2
ifeq ($(BR2_PACKAGE_READLINE),y)
-OCTAVE_CONF_OPTS += --enable-readline
+OCTAVE_CONF_OPTS += \
+ --enable-readline \
+ --with-libreadline-prefix=$(STAGING_DIR)/usr
OCTAVE_DEPENDENCIES += readline
else
OCTAVE_CONF_OPTS += --disable-readline
--
2.43.0
_______________________________________________
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 1/1] package/octave: add libreadline search prefix
2023-12-12 21:46 [Buildroot] [PATCH 1/1] package/octave: add libreadline search prefix Julien Olivain
@ 2023-12-24 18:18 ` Thomas Petazzoni via buildroot
2024-01-06 12:59 ` Julien Olivain
0 siblings, 1 reply; 3+ messages in thread
From: Thomas Petazzoni via buildroot @ 2023-12-24 18:18 UTC (permalink / raw)
To: Julien Olivain; +Cc: buildroot
Hello Julien,
On Tue, 12 Dec 2023 22:46:10 +0100
Julien Olivain <ju.o@free.fr> wrote:
> Since commit b36e4b10f3 "package/octave: bump to version 8.1.0",
> Octave fails to find readline automatically if octave and readline
> packages are both enabled in Buildroot the configuration.
>
> The readline search prefix need to be explicitly passed during octave
> configuration. This commit adds this search prefix to fix this build
> issue.
>
> Fixes:
>
> checking for readline... (cached) no
> checking for readline/readline.h... (cached) yes
> checking for readline/history.h... (cached) yes
> configure: WARNING: I need GNU Readline 4.2 or later
> configure: error: this is fatal unless you specify --disable-readline
>
> Signed-off-by: Julien Olivain <ju.o@free.fr>
This looked good and relevant, but I'm unable to reproduce the issue,
which probably means there is something more to this.
Build:
BR2_arm=y
BR2_cortex_a9=y
BR2_ARM_ENABLE_VFP=y
BR2_TOOLCHAIN_EXTERNAL=y
BR2_TOOLCHAIN_EXTERNAL_BOOTLIN=y
BR2_INIT_NONE=y
BR2_SYSTEM_BIN_SH_NONE=y
# BR2_PACKAGE_BUSYBOX is not set
BR2_PACKAGE_OCTAVE=y
BR2_PACKAGE_READLINE=y
# BR2_TARGET_ROOTFS_TAR is not set
with:
./utils/docker-run make octave
and it builds just fine, readline is properly detected as it should be.
For the sake of completeness, I also re-did this build on commit
b36e4b10f3, which is when Octave was bumped to 8.1.0, which you said
was the commit that introduced the issue. But it also builds fine.
Could you double check what was your failing configuration, maybe
investigate what is different to understand the root cause?
Thanks a lot!
Thomas
--
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
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 1/1] package/octave: add libreadline search prefix
2023-12-24 18:18 ` Thomas Petazzoni via buildroot
@ 2024-01-06 12:59 ` Julien Olivain
0 siblings, 0 replies; 3+ messages in thread
From: Julien Olivain @ 2024-01-06 12:59 UTC (permalink / raw)
To: Thomas Petazzoni; +Cc: buildroot
Hi Thomas,
On 24/12/2023 19:18, Thomas Petazzoni wrote:
> Hello Julien,
>
> On Tue, 12 Dec 2023 22:46:10 +0100
> Julien Olivain <ju.o@free.fr> wrote:
>
>> Since commit b36e4b10f3 "package/octave: bump to version 8.1.0",
>> Octave fails to find readline automatically if octave and readline
>> packages are both enabled in Buildroot the configuration.
>>
>> The readline search prefix need to be explicitly passed during octave
>> configuration. This commit adds this search prefix to fix this build
>> issue.
>>
>> Fixes:
>>
>> checking for readline... (cached) no
>> checking for readline/readline.h... (cached) yes
>> checking for readline/history.h... (cached) yes
>> configure: WARNING: I need GNU Readline 4.2 or later
>> configure: error: this is fatal unless you specify
>> --disable-readline
>>
>> Signed-off-by: Julien Olivain <ju.o@free.fr>
>
> This looked good and relevant, but I'm unable to reproduce the issue,
> which probably means there is something more to this.
>
> Build:
>
> BR2_arm=y
> BR2_cortex_a9=y
> BR2_ARM_ENABLE_VFP=y
> BR2_TOOLCHAIN_EXTERNAL=y
> BR2_TOOLCHAIN_EXTERNAL_BOOTLIN=y
> BR2_INIT_NONE=y
> BR2_SYSTEM_BIN_SH_NONE=y
> # BR2_PACKAGE_BUSYBOX is not set
> BR2_PACKAGE_OCTAVE=y
> BR2_PACKAGE_READLINE=y
> # BR2_TARGET_ROOTFS_TAR is not set
>
> with:
>
> ./utils/docker-run make octave
>
> and it builds just fine, readline is properly detected as it should be.
>
> For the sake of completeness, I also re-did this build on commit
> b36e4b10f3, which is when Octave was bumped to 8.1.0, which you said
> was the commit that introduced the issue. But it also builds fine.
>
> Could you double check what was your failing configuration, maybe
> investigate what is different to understand the root cause?
You are right: I confirm I cannot reproduce the issue on the
Buildroot docker image.
The conditions in which the issue is triggering are more specific
than I initially thought.
I believe this patch is still needed. I'll send a v2 with a more
detailed analysis and explanation.
>
> Thanks a lot!
>
> Thomas
> --
> Thomas Petazzoni, co-owner and CEO, Bootlin
> Embedded Linux and Kernel engineering and training
> https://bootlin.com
Best regards,
Julien.
_______________________________________________
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:[~2024-01-06 12:59 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-12 21:46 [Buildroot] [PATCH 1/1] package/octave: add libreadline search prefix Julien Olivain
2023-12-24 18:18 ` Thomas Petazzoni via buildroot
2024-01-06 12:59 ` Julien Olivain
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox