Skip to contentSkip to conversation

zsh: make gdbm a PACKAGECONFIG

PATCH In review Sean Nyekjaer 2 participants 5 messages Nov 2 – Nov 3

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 zsh: make gdbm a PACKAGECONFIG

gdbm was always in DEPENDS while configure was hard-coded with --disable-gdbm. Move it to a PACKAGECONFIG, disabled by default.

---
 meta-oe/recipes-shells/zsh/zsh_5.9.2.bb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
meta-oe/recipes-shells/zsh/zsh_5.9.2.bb +2 -2
index 2b2de3407e..47b9bfc18f 100644
@@ -8,7 +8,7 @@ SECTION = "base/shell"
 LICENSE = "LicenseRef-zsh"
 LIC_FILES_CHKSUM = "file://LICENCE;md5=1a4c4cda3e8096d2fd483ff2f4514fec"
 
-DEPENDS = "ncurses bison-native libcap libpcre2 gdbm groff-native"
+DEPENDS = "ncurses bison-native libcap libpcre2 groff-native"
 
 SRC_URI = "${SOURCEFORGE_MIRROR}/project/${BPN}/${BPN}/${PV}/${BP}.tar.xz"
 SRC_URI[sha256sum] = "36fa734374b44783582cec09bcd67822e2f992c779ec1624ab5596df078d2f81"
@@ -30,7 +30,6 @@ EXTRA_OECONF = " \
     --with-term-lib='ncursesw ncurses' \
     --enable-cap \
     --enable-multibyte \
-    --disable-gdbm \
     --disable-dynamic \
     zsh_cv_shared_environ=yes \
 "
@@ -45,6 +44,7 @@ ALTERNATIVE_LINK_NAME[sh] = "${base_bindir}/sh"
 ALTERNATIVE_TARGET[sh] = "${base_bindir}/${BPN}"
 ALTERNATIVE_PRIORITY = "90"
 
+PACKAGECONFIG[gdbm] = "--enable-gdbm,--disable-gdbm,gdbm"
 # Needed for manpages.bbclass, but they're always installed
 PACKAGECONFIG[manpages] = ""
 
Signature · 1 line
2.55.0
#1 lore raw

PATCH 2/2 zsh: make libpcre2 a PACKAGECONFIG

libpcre2 was always in DEPENDS. Move it to a PACKAGECONFIG, enabled by default, so it can be dropped.

---
 meta-oe/recipes-shells/zsh/zsh_5.9.2.bb | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
meta-oe/recipes-shells/zsh/zsh_5.9.2.bb +3 -1
index 47b9bfc18f..16a769612c 100644
@@ -8,7 +8,7 @@ SECTION = "base/shell"
 LICENSE = "LicenseRef-zsh"
 LIC_FILES_CHKSUM = "file://LICENCE;md5=1a4c4cda3e8096d2fd483ff2f4514fec"
 
-DEPENDS = "ncurses bison-native libcap libpcre2 groff-native"
+DEPENDS = "ncurses bison-native libcap groff-native"
 
 SRC_URI = "${SOURCEFORGE_MIRROR}/project/${BPN}/${BPN}/${PV}/${BP}.tar.xz"
 SRC_URI[sha256sum] = "36fa734374b44783582cec09bcd67822e2f992c779ec1624ab5596df078d2f81"
@@ -44,7 +44,9 @@ ALTERNATIVE_LINK_NAME[sh] = "${base_bindir}/sh"
 ALTERNATIVE_TARGET[sh] = "${base_bindir}/${BPN}"
 ALTERNATIVE_PRIORITY = "90"
 
+PACKAGECONFIG ??= "pcre"
 PACKAGECONFIG[gdbm] = "--enable-gdbm,--disable-gdbm,gdbm"
+PACKAGECONFIG[pcre] = "--enable-pcre,--disable-pcre,libpcre2"
 # Needed for manpages.bbclass, but they're always installed
 PACKAGECONFIG[manpages] = ""
 
Signature · 1 line
2.55.0
#2 lore raw

Re: [oe] [meta-oe][PATCH 2/2] zsh: make libpcre2 a PACKAGECONFIG

Quoted 24 lines · Sean Nyekjaer via openembedded-devel

libpcre2 was always in DEPENDS. Move it to a PACKAGECONFIG, enabled by default, so it can be dropped.

---
 meta-oe/recipes-shells/zsh/zsh_5.9.2.bb | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
meta-oe/recipes-shells/zsh/zsh_5.9.2.bb +1 -1
index 47b9bfc18f..16a769612c 100644
@@ -8,7 +8,7 @@ SECTION = "base/shell"
 LICENSE = "LicenseRef-zsh"
 LIC_FILES_CHKSUM = "file://LICENCE;md5=1a4c4cda3e8096d2fd483ff2f4514fec"
 
-DEPENDS = "ncurses bison-native libcap libpcre2 groff-native"
+DEPENDS = "ncurses bison-native libcap groff-native"
 
 SRC_URI = "${SOURCEFORGE_MIRROR}/project/${BPN}/${BPN}/${PV}/${BP}.tar.xz"
 SRC_URI[sha256sum] =

"36fa734374b44783582cec09bcd67822e2f992c779ec1624ab5596df078d2f81"

meta-oe/recipes-shells/zsh/zsh_5.9.2.bb ALTERNATIVE_LINK_NAME[sh] = "${base_bindir}/sh" · line 50

Quoted 7 lines
meta-oe/recipes-shells/zsh/zsh_5.9.2.bb +2 -0
@@ -44,7 +44,9 @@ ALTERNATIVE_LINK_NAME[sh] = "${base_bindir}/sh"
 ALTERNATIVE_TARGET[sh] = "${base_bindir}/${BPN}"
 ALTERNATIVE_PRIORITY = "90"
 
+PACKAGECONFIG ??= "pcre"
 PACKAGECONFIG[gdbm] = "--enable-gdbm,--disable-gdbm,gdbm"
+PACKAGECONFIG[pcre] = "--enable-pcre,--disable-pcre,libpcre2"
 

zsh/pcre module is link=dynamic only and the recipe uses --disable-dynamic, so the module is not built as such.

Making pcre a PACKAGECONFIG enabled by default, started passing --enable-pcre, which zsh never got before (its default is off). configure then runs pcre2-config, but libpcre2 inherits binconfig-disabled, so pcre2-config --cflags returns bogus stuff. One can fix that by using pkgconfig
or writing a small wrapper for pcre2-config using pkgconfig but servees no point if dynamic modules are disabled.

Other patch to turn gdbm into a packageconfig also has same problem.

Quoted 18 lines
meta-oe/recipes-shells/zsh/zsh_5.9.2.bb +0 -1
 # Needed for manpages.bbclass, but they're always installed
 PACKAGECONFIG[manpages] = ""
 
--

2.55.0

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#131748):
https://lists.openembedded.org/g/openembedded-devel/message/131748
Mute This Topic: https://lists.openembedded.org/mt/122055384/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#3 lore raw

Re: [oe] [meta-oe][PATCH 2/2] zsh: make libpcre2 a PACKAGECONFIG

Quoted 39 lines · Khem Raj

On Mon, Nov 2, 2026 at 2:35 AM Sean Nyekjaer via openembedded-devel <[email protected]> wrote:
libpcre2 was always in DEPENDS. Move it to a PACKAGECONFIG, enabled
by default, so it can be dropped.

---
 meta-oe/recipes-shells/zsh/zsh_5.9.2.bb | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
meta-oe/recipes-shells/zsh/zsh_5.9.2.bb +3 -1
index 47b9bfc18f..16a769612c 100644
@@ -8,7 +8,7 @@ SECTION = "base/shell"
 LICENSE = "LicenseRef-zsh"
 LIC_FILES_CHKSUM = "file://LICENCE;md5=1a4c4cda3e8096d2fd483ff2f4514fec"
 
-DEPENDS = "ncurses bison-native libcap libpcre2 groff-native"
+DEPENDS = "ncurses bison-native libcap groff-native"
 
 SRC_URI = "${SOURCEFORGE_MIRROR}/project/${BPN}/${BPN}/${PV}/${BP}.tar.xz"
 SRC_URI[sha256sum] = "36fa734374b44783582cec09bcd67822e2f992c779ec1624ab5596df078d2f81"
@@ -44,7 +44,9 @@ ALTERNATIVE_LINK_NAME[sh] = "${base_bindir}/sh"
 ALTERNATIVE_TARGET[sh] = "${base_bindir}/${BPN}"
 ALTERNATIVE_PRIORITY = "90"
 
+PACKAGECONFIG ??= "pcre"
 PACKAGECONFIG[gdbm] = "--enable-gdbm,--disable-gdbm,gdbm"
+PACKAGECONFIG[pcre] = "--enable-pcre,--disable-pcre,libpcre2"
 
 zsh/pcre module is link=dynamic only and the recipe uses --disable-dynamic,

so the module is not built as such.

Quoted 8 lines

Making pcre a PACKAGECONFIG enabled by default, started passing --enable-pcre, which zsh never got before (its default is off). configure then runs pcre2-config, but libpcre2 inherits binconfig-disabled, so pcre2-config --cflags returns bogus stuff. One can fix that by using pkgconfig or writing a small wrapper for pcre2-config using pkgconfig but servees no point if dynamic modules are disabled.

Other patch to turn gdbm into a packageconfig also has same problem.

What would be your solution here? Would you prefer the pkgconfig solution? Should we remove is "—disable-dynamic” if one is enabling pcre2?

gdbm is off by default. So should we remove it from DEPENDS and remove “—disable-gdbm” ?

/Sean

Quoted 15 lines

# Needed for manpages.bbclass, but they're always installed
PACKAGECONFIG[manpages] = ""

Signature · 10 lines
2.55.0


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#131748): https://lists.openembedded.org/g/openembedded-devel/message/131748
Mute This Topic: https://lists.openembedded.org/mt/122055384/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
#4 lore raw

Re: [oe] [meta-oe][PATCH 2/2] zsh: make libpcre2 a PACKAGECONFIG

Quoted 49 lines · Sean Nyekjaer
Quoted 7 lines · Khem Raj

On Mon, Nov 2, 2026 at 2:35 AM Sean Nyekjaer via openembedded-devel

Review

Quoted 9 lines · <[email protected]> wrote:

libpcre2 was always in DEPENDS. Move it to a PACKAGECONFIG, enabled by default, so it can be dropped.

---
 meta-oe/recipes-shells/zsh/zsh_5.9.2.bb | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
(quoted diff) +0 -0

b/meta-oe/recipes-shells/zsh/zsh_5.9.2.bb

meta-oe/recipes-shells/zsh/zsh_5.9.2.bb SECTION = "base/shell" · line 13

Quoted 11 lines

index 47b9bfc18f..16a769612c 100644

meta-oe/recipes-shells/zsh/zsh_5.9.2.bb +1 -1
@@ -8,7 +8,7 @@ SECTION = "base/shell"
 LICENSE = "LicenseRef-zsh"
 LIC_FILES_CHKSUM = "file://LICENCE;md5=1a4c4cda3e8096d2fd483ff2f4514fec"
 
-DEPENDS = "ncurses bison-native libcap libpcre2 groff-native"
+DEPENDS = "ncurses bison-native libcap groff-native"
 
 SRC_URI =

"${SOURCEFORGE_MIRROR}/project/${BPN}/${BPN}/${PV}/${BP}.tar.xz"

meta-oe/recipes-shells/zsh/zsh_5.9.2.bb SECTION = "base/shell" · line 14

Quoted 1 line
meta-oe/recipes-shells/zsh/zsh_5.9.2.bb +0 -0
 SRC_URI[sha256sum] =

"36fa734374b44783582cec09bcd67822e2f992c779ec1624ab5596df078d2f81"

Quoted 9 lines
meta-oe/recipes-shells/zsh/zsh_5.9.2.bb +2 -0
@@ -44,7 +44,9 @@ ALTERNATIVE_LINK_NAME[sh] = "${base_bindir}/sh"
 ALTERNATIVE_TARGET[sh] = "${base_bindir}/${BPN}"
 ALTERNATIVE_PRIORITY = "90"
 
+PACKAGECONFIG ??= "pcre"
 PACKAGECONFIG[gdbm] = "--enable-gdbm,--disable-gdbm,gdbm"
+PACKAGECONFIG[pcre] = "--enable-pcre,--disable-pcre,libpcre2"
 

zsh/pcre module is link=dynamic only and the recipe uses

--disable-dynamic,

Quoted 6 lines

so the module is not built as such.

Making pcre a PACKAGECONFIG enabled by default, started passing --enable-pcre, which zsh never got before (its default is off). configure then runs pcre2-config, but libpcre2 inherits binconfig-disabled, so pcre2-config --cflags returns bogus stuff. One can fix that by using

pkgconfig

Quoted 10 lines
Quoted 1 line

or writing a small wrapper for pcre2-config using pkgconfig but servees

no

Quoted 3 lines

point if dynamic modules are disabled.

Other patch to turn gdbm into a packageconfig also has same problem.

What would be your solution here? Would you prefer the pkgconfig solution? Should we remove is "—disable-dynamic” if one is enabling pcre2?

yes pkfconfig is preferred way to tool the knob and perhaps enable dynamic modules
but it would be good to know size/perf impact of doing it.

Quoted 26 lines

gdbm is off by default. So should we remove it from DEPENDS and remove “—disable-gdbm” ?

/Sean

Quoted 10 lines

# Needed for manpages.bbclass, but they're always installed
PACKAGECONFIG[manpages] = ""

--
2.55.0

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#131748):

https://lists.openembedded.org/g/openembedded-devel/message/131748

Quoted 3 lines

Mute This Topic: https://lists.openembedded.org/mt/122055384/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [

[email protected]]

Quoted 2 lines

-=-=-=-=-=-=-=-=-=-=-=-