* [Buildroot] [PATCH v2 1/2] package/leafnode2: fix build without pod2man
@ 2026-04-05 16:27 Bernd Kuhls
2026-04-05 16:27 ` [Buildroot] [PATCH v2 2/2] package/leafnode2: bump version to 2.0.0.alpha202601 Bernd Kuhls
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Bernd Kuhls @ 2026-04-05 16:27 UTC (permalink / raw)
To: buildroot
Fixes a build error when pod2man is missing on the host:
pod2man ./tools/lsmac.pl >lsmac.1 || { rm -f lsmac.1 ; false ; }
/bin/sh: line 1: pod2man: command not found
Fixes:
https://autobuild.buildroot.net/results/999/9996e81429f90f4615755827ac182094d416c467/
Although the build error only occurs since 2026-03-05 it should be
backported to LTS branches because the last change to the buildroot
package dates back to 2024.
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
---
v2: no changes
package/leafnode2/leafnode2.mk | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/package/leafnode2/leafnode2.mk b/package/leafnode2/leafnode2.mk
index 566aaf3d55..8c44071209 100644
--- a/package/leafnode2/leafnode2.mk
+++ b/package/leafnode2/leafnode2.mk
@@ -11,6 +11,12 @@ LEAFNODE2_LICENSE_FILES = COPYING COPYING.LGPL
LEAFNODE2_DEPENDENCIES = host-pcre pcre
LEAFNODE2_AUTORECONF = YES
+# pod2man doesn't work when cross compiling
+define LEAFNODE2_DISABLE_POD2MAN
+ $(SED) 's/GENERATED_MANS=lsmac.1/GENERATED_MANS=/' $(@D)/Makefile.am
+endef
+LEAFNODE2_POST_PATCH_HOOKS += LEAFNODE2_DISABLE_POD2MAN
+
LEAFNODE2_CONF_ENV = \
PCRECONFIG="$(STAGING_DIR)/usr/bin/pcre-config"
--
2.47.3
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [Buildroot] [PATCH v2 2/2] package/leafnode2: bump version to 2.0.0.alpha202601
2026-04-05 16:27 [Buildroot] [PATCH v2 1/2] package/leafnode2: fix build without pod2man Bernd Kuhls
@ 2026-04-05 16:27 ` Bernd Kuhls
2026-04-06 16:48 ` [Buildroot] [PATCH v2 1/2] package/leafnode2: fix build without pod2man Julien Olivain via buildroot
2026-04-14 15:46 ` Thomas Perale via buildroot
2 siblings, 0 replies; 4+ messages in thread
From: Bernd Kuhls @ 2026-04-05 16:27 UTC (permalink / raw)
To: buildroot
https://gitlab.com/leafnode-2/leafnode-2/-/blob/leafnode-2.0.0.alpha202601/NEWS
Rebased patch 0001.
Upstream switched from pcre to pcre2.
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
---
v2: fixed _CONF_ENV
package/leafnode2/0001-cross_makefile.patch | 7 ++++---
package/leafnode2/Config.in | 2 +-
package/leafnode2/leafnode2.hash | 2 +-
package/leafnode2/leafnode2.mk | 12 ++++++------
4 files changed, 12 insertions(+), 11 deletions(-)
diff --git a/package/leafnode2/0001-cross_makefile.patch b/package/leafnode2/0001-cross_makefile.patch
index 32116446c3..06d5722b05 100644
--- a/package/leafnode2/0001-cross_makefile.patch
+++ b/package/leafnode2/0001-cross_makefile.patch
@@ -7,14 +7,15 @@ Fix cross-compilation issues
cross-compiling. We're anyway not root, so simply remove the
chown/chgrp dance.
-Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
+[Bernd: rebased for 2.0.0.alpha202601]
+Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Index: b/Makefile.am
===================================================================
--- a/Makefile.am
+++ b/Makefile.am
-@@ -311,7 +311,7 @@
+@@ -324,7 +324,7 @@
configparam_data.c: $(srcdir)/config.table b_sortnl$(EXEEXT) genconfigparam_data.awk
rm -f config.table.sorted
@@ -23,7 +24,7 @@ Index: b/Makefile.am
$(AWK) -f $(srcdir)/genconfigparam_data.awk <config.table.sorted >$@ \
|| { rm -f $@ ; false ; }
-@@ -326,13 +326,7 @@
+@@ -339,13 +339,7 @@
install-data-hook:
$(INSTALL) -d -m 02770 $(DESTDIR)$(SPOOLDIR)
$(INSTALL) -d -m 02770 $(DESTDIR)$(SPOOLDIR)/leaf.node
diff --git a/package/leafnode2/Config.in b/package/leafnode2/Config.in
index df9b246946..dc6977925b 100644
--- a/package/leafnode2/Config.in
+++ b/package/leafnode2/Config.in
@@ -2,7 +2,7 @@ config BR2_PACKAGE_LEAFNODE2
bool "leafnode2"
depends on BR2_USE_MMU # fork()
select BR2_PACKAGE_LIBXCRYPT if BR2_TOOLCHAIN_USES_GLIBC
- select BR2_PACKAGE_PCRE
+ select BR2_PACKAGE_PCRE2
help
Leafnode-2 is a store-and-forward NNTP (or Usenet) proxy
server designed for small sites with just a few active
diff --git a/package/leafnode2/leafnode2.hash b/package/leafnode2/leafnode2.hash
index 9c86173ae1..040e0d92a4 100644
--- a/package/leafnode2/leafnode2.hash
+++ b/package/leafnode2/leafnode2.hash
@@ -1,4 +1,4 @@
# Locally calculated
-sha256 42f2185f29a74f683a962e9cf6e38bc5f8a342d0dde8b6a03457a165365e3445 leafnode2-9543ffaf82406f943d449d522d88baa554515e0f.tar.gz
+sha256 c98201dffc51addf4157ceb67f2ef7f2c0f3813e49342834f243244a872d90c1 leafnode2-2.0.0.alpha202601.tar.gz
sha256 59d37f745dc5a2d63a51dff344f4ad89f72e76f8c7b7d877f20880d838b1bec9 COPYING
sha256 dc626520dcd53a22f727af3ee42c770e56c97a64fe3adb063799d8ab032fe551 COPYING.LGPL
diff --git a/package/leafnode2/leafnode2.mk b/package/leafnode2/leafnode2.mk
index 8c44071209..3e11a65a70 100644
--- a/package/leafnode2/leafnode2.mk
+++ b/package/leafnode2/leafnode2.mk
@@ -4,11 +4,11 @@
#
################################################################################
-LEAFNODE2_VERSION = 9543ffaf82406f943d449d522d88baa554515e0f
-LEAFNODE2_SITE = $(call gitlab,leafnode-2,leafnode-2,$(LEAFNODE2_VERSION))
+LEAFNODE2_VERSION = 2.0.0.alpha202601
+LEAFNODE2_SITE = $(call gitlab,leafnode-2,leafnode-2,leafnode-$(LEAFNODE2_VERSION))
LEAFNODE2_LICENSE = LGPL-2.1
LEAFNODE2_LICENSE_FILES = COPYING COPYING.LGPL
-LEAFNODE2_DEPENDENCIES = host-pcre pcre
+LEAFNODE2_DEPENDENCIES = host-pcre2 pcre2
LEAFNODE2_AUTORECONF = YES
# pod2man doesn't work when cross compiling
@@ -18,7 +18,7 @@ endef
LEAFNODE2_POST_PATCH_HOOKS += LEAFNODE2_DISABLE_POD2MAN
LEAFNODE2_CONF_ENV = \
- PCRECONFIG="$(STAGING_DIR)/usr/bin/pcre-config"
+ PCRE2CONFIG="$(STAGING_DIR)/usr/bin/pcre2-config"
ifeq ($(BR2_PACKAGE_LIBXCRYPT),y)
LEAFNODE2_DEPENDENCIES += libxcrypt
@@ -35,13 +35,13 @@ LEAFNODE2_CONF_OPTS = \
# Leafnode2 needs the host version of b_sortnl during
# compilation. Instead of creating a separate host package and
# installing b_sortnl to $(HOST_DIR) this binary is compiled
-# on-the-fly, host-pcre is needed for this
+# on-the-fly, host-pcre2 is needed for this
define LEAFNODE2_BUILD_SORTNL_TOOL
cd $(@D); \
$(HOSTCC) $(HOST_CFLAGS) -o b_sortnl_host \
arc4random.c mergesort.c b_sortnl.c critmem_malloc.c \
critmem_realloc.c -DHAVE_CONFIG_H -I$(HOST_DIR)/include \
- -L $(HOST_DIR)/lib -Wl,-rpath,$(HOST_DIR)/lib -lpcre
+ -L $(HOST_DIR)/lib -Wl,-rpath,$(HOST_DIR)/lib -lpcre2-8
endef
LEAFNODE2_PRE_BUILD_HOOKS += LEAFNODE2_BUILD_SORTNL_TOOL
--
2.47.3
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [Buildroot] [PATCH v2 1/2] package/leafnode2: fix build without pod2man
2026-04-05 16:27 [Buildroot] [PATCH v2 1/2] package/leafnode2: fix build without pod2man Bernd Kuhls
2026-04-05 16:27 ` [Buildroot] [PATCH v2 2/2] package/leafnode2: bump version to 2.0.0.alpha202601 Bernd Kuhls
@ 2026-04-06 16:48 ` Julien Olivain via buildroot
2026-04-14 15:46 ` Thomas Perale via buildroot
2 siblings, 0 replies; 4+ messages in thread
From: Julien Olivain via buildroot @ 2026-04-06 16:48 UTC (permalink / raw)
To: Bernd Kuhls; +Cc: buildroot
On 05/04/2026 18:27, Bernd Kuhls wrote:
> Fixes a build error when pod2man is missing on the host:
>
> pod2man ./tools/lsmac.pl >lsmac.1 || { rm -f lsmac.1 ; false ; }
> /bin/sh: line 1: pod2man: command not found
>
> Fixes:
> https://autobuild.buildroot.net/results/999/9996e81429f90f4615755827ac182094d416c467/
>
> Although the build error only occurs since 2026-03-05 it should be
> backported to LTS branches because the last change to the buildroot
> package dates back to 2024.
>
> Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
Series applied to master, thanks.
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Buildroot] [PATCH v2 1/2] package/leafnode2: fix build without pod2man
2026-04-05 16:27 [Buildroot] [PATCH v2 1/2] package/leafnode2: fix build without pod2man Bernd Kuhls
2026-04-05 16:27 ` [Buildroot] [PATCH v2 2/2] package/leafnode2: bump version to 2.0.0.alpha202601 Bernd Kuhls
2026-04-06 16:48 ` [Buildroot] [PATCH v2 1/2] package/leafnode2: fix build without pod2man Julien Olivain via buildroot
@ 2026-04-14 15:46 ` Thomas Perale via buildroot
2 siblings, 0 replies; 4+ messages in thread
From: Thomas Perale via buildroot @ 2026-04-14 15:46 UTC (permalink / raw)
To: Bernd Kuhls; +Cc: Thomas Perale, buildroot
In reply of:
> Fixes a build error when pod2man is missing on the host:
>
> pod2man ./tools/lsmac.pl >lsmac.1 || { rm -f lsmac.1 ; false ; }
> /bin/sh: line 1: pod2man: command not found
>
> Fixes:
> https://autobuild.buildroot.net/results/999/9996e81429f90f4615755827ac182094d416c467/
>
> Although the build error only occurs since 2026-03-05 it should be
> backported to LTS branches because the last change to the buildroot
> package dates back to 2024.
>
> Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
Applied to 2025.02.x & 2026.02.x. Thanks
> ---
> v2: no changes
>
> package/leafnode2/leafnode2.mk | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/package/leafnode2/leafnode2.mk b/package/leafnode2/leafnode2.mk
> index 566aaf3d55..8c44071209 100644
> --- a/package/leafnode2/leafnode2.mk
> +++ b/package/leafnode2/leafnode2.mk
> @@ -11,6 +11,12 @@ LEAFNODE2_LICENSE_FILES = COPYING COPYING.LGPL
> LEAFNODE2_DEPENDENCIES = host-pcre pcre
> LEAFNODE2_AUTORECONF = YES
>
> +# pod2man doesn't work when cross compiling
> +define LEAFNODE2_DISABLE_POD2MAN
> + $(SED) 's/GENERATED_MANS=lsmac.1/GENERATED_MANS=/' $(@D)/Makefile.am
> +endef
> +LEAFNODE2_POST_PATCH_HOOKS += LEAFNODE2_DISABLE_POD2MAN
> +
> LEAFNODE2_CONF_ENV = \
> PCRECONFIG="$(STAGING_DIR)/usr/bin/pcre-config"
>
> --
> 2.47.3
>
> _______________________________________________
> buildroot mailing list
> buildroot@buildroot.org
> https://lists.buildroot.org/mailman/listinfo/buildroot
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2026-04-14 15:46 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-05 16:27 [Buildroot] [PATCH v2 1/2] package/leafnode2: fix build without pod2man Bernd Kuhls
2026-04-05 16:27 ` [Buildroot] [PATCH v2 2/2] package/leafnode2: bump version to 2.0.0.alpha202601 Bernd Kuhls
2026-04-06 16:48 ` [Buildroot] [PATCH v2 1/2] package/leafnode2: fix build without pod2man Julien Olivain via buildroot
2026-04-14 15:46 ` Thomas Perale via buildroot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox