mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-08-01 21:23:51 -09:00
package/leafnode2: fix build without pod2man
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>
Signed-off-by: Julien Olivain <ju.o@free.fr>
This commit is contained in:
committed by
Julien Olivain
parent
37a21dc939
commit
ec62109990
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user