Skip to contentSkip to conversation

package/speechd: fix libltdl enable/disable configure option

PATCH Applied Peter Seiderer 2 participants 4 messages Feb 27, 2023 – Mar 9, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 package/speechd: fix libltdl enable/disable configure option

- libltdl usage is configured by --disable/enable-ltdl (see configure.ac 'AC_ARG_ENABLE([ltdl], [...])')

Fixes:

  configure: WARNING: unrecognized options: [...] --with-libltdl
---
 package/speechd/speechd.mk | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
package/speechd/speechd.mk +2 -2
index ec62980986..b545863035 100644
@@ -24,9 +24,9 @@ SPEECHD_PRE_CONFIGURE_HOOKS += SPEECHD_TOUCH_CONFIG_RPATH
 
 ifeq ($(BR2_PACKAGE_LIBTOOL),y)
 SPEECHD_DEPENDENCIES += libtool
-SPEECHD_CONF_OPTS += --with-libltdl
+SPEECHD_CONF_OPTS += --enable-ltdl
 else
-SPEECHD_CONF_OPTS += --without-libltdl
+SPEECHD_CONF_OPTS += --disable-ltdl
 endif
 
 define SPEECHD_INSTALL_INIT_SYSTEMD
Signature · 6 lines
2.39.2

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw

PATCH 2/2 package/speechd: add default configure options

- add default configure options for all optional speechd features/ output modules (disable all with additional library dependencies, enable oss)

---
 package/speechd/speechd.mk | 17 ++++++++++++++++-
 1 file changed, 16 insertions(+), 1 deletion(-)
package/speechd/speechd.mk +16 -1
index b545863035..5944ea3a28 100644
@@ -14,7 +14,22 @@ SPEECHD_AUTORECONF = YES
 SPEECHD_GETTEXTIZE = YES
 SPEECHD_DEPENDENCIES = host-pkgconf dotconf libglib2 libsndfile
 SPEECHD_CONF_ENV = ac_cv_prog_HELP2MAN=""
-SPEECHD_CONF_OPTS = --without-kali
+SPEECHD_CONF_OPTS = \
+	--disable-python \
+	--without-espeak \
+	--without-espeak-ng \
+	--without-flite \
+	--without-ibmtts \
+	--without-voxin \
+	--without-ivona \
+	--without-pico \
+	--without-baratinoo \
+	--without-kali \
+	--without-pulse \
+	--without-libao \
+	--without-alsa \
+	--with-oss \
+	--without-nas
 
 # fix missing config.rpath (needed for autoreconf) in the codebase
 define SPEECHD_TOUCH_CONFIG_RPATH
Signature · 6 lines
2.39.2

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#2 lore raw

Re: [Buildroot] [PATCH v1 2/2] package/speechd: add default configure options

Quoted 5 lines · Peter Seiderer

- add default configure options for all optional speechd features/ output modules (disable all with additional library dependencies, enable oss)

Applied to master, thanks.

Why not next, you will ask? Well, this is in fact a fix; otherwise, what gets
built will depend on the build order (if alsa or pulse or ... is built as well).

Quoted 19 lines
---
  package/speechd/speechd.mk | 17 ++++++++++++++++-
  1 file changed, 16 insertions(+), 1 deletion(-)
package/speechd/speechd.mk +6 -1
index b545863035..5944ea3a28 100644
@@ -14,7 +14,22 @@ SPEECHD_AUTORECONF = YES
  SPEECHD_GETTEXTIZE = YES
  SPEECHD_DEPENDENCIES = host-pkgconf dotconf libglib2 libsndfile
  SPEECHD_CONF_ENV = ac_cv_prog_HELP2MAN=""
-SPEECHD_CONF_OPTS = --without-kali
+SPEECHD_CONF_OPTS = \
+	--disable-python \
+	--without-espeak \
+	--without-espeak-ng \
+	--without-flite \
+	--without-ibmtts \

package/speechd/speechd.mk SPEECHD_AUTORECONF = YES · line 32

Quoted 10 lines
package/speechd/speechd.mk +10 -0
+	--without-voxin \
+	--without-ivona \
+	--without-pico \
+	--without-baratinoo \
+	--without-kali \
+	--without-pulse \
+	--without-libao \
+	--without-alsa \
+	--with-oss \
+	--without-nas

Since OSS is pretty solidly deprecated, this essentially makes the package
useless for producing actual audio output... How is it supposed to be used then? Peter, you introduced it, I assume you use it for something? Or was it just for qt5speech and you don't actually use it?

It would obviously be best to add either automatic or user-selectable
dependencies for at least pulse and alsa. And obviously, we have flite and espeak packages so those are relevant as well. Not to mention python.

Regards,
Arnout

package/speechd/speechd.mk SPEECHD_AUTORECONF = YES · line 35

Quoted 3 lines
package/speechd/speechd.mk +0 -0
  # fix missing config.rpath (needed for autoreconf) in the codebase
  define SPEECHD_TOUCH_CONFIG_RPATH

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#3 lore raw
In reply to Peter Seiderer
Quoted 8 lines · Peter Seiderer

- libltdl usage is configured by --disable/enable-ltdl (see configure.ac 'AC_ARG_ENABLE([ltdl], [...])')

Fixes:

   configure: WARNING: unrecognized options: [...] --with-libltdl

Applied to master, thanks.

Regards,
Arnout

Quoted 10 lines
---
  package/speechd/speechd.mk | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)
package/speechd/speechd.mk +0 -0
index ec62980986..b545863035 100644
@@ -24,9 +24,9 @@ SPEECHD_PRE_CONFIGURE_HOOKS += SPEECHD_TOUCH_CONFIG_RPATH
 

package/speechd/speechd.mk SPEECHD_PRE_CONFIGURE_HOOKS += SPEECHD_TOUCH_CONFIG_RPATH · line 32

Quoted 10 lines
package/speechd/speechd.mk +2 -2
  ifeq ($(BR2_PACKAGE_LIBTOOL),y)
  SPEECHD_DEPENDENCIES += libtool
-SPEECHD_CONF_OPTS += --with-libltdl
+SPEECHD_CONF_OPTS += --enable-ltdl
  else
-SPEECHD_CONF_OPTS += --without-libltdl
+SPEECHD_CONF_OPTS += --disable-ltdl
  endif
 
  define SPEECHD_INSTALL_INIT_SYSTEMD

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot