weechat: build with all plugins support?

Aperta
#30,788 4 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
cmake, lua, perl, python, ruby
Ambito
build-system

Direzione di ricerca

The relevant file is the weechat package Makefile, where the PKG_BUILD_DEPENDS line and the per-plugin CMAKE_OPTIONS blocks for Lua, Perl, Ruby and Tcl live. Start by reproducing a minimal build with CONFIG_WEECHAT_LUA enabled and read the CMake error output to see which Lua library or include path is not found. Done means weechat-minimal builds with the Lua plugin on x86/64 and the Perl, Ruby and Tcl options are checked the same way.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Feature request Low
Package Name

weechat

Maintainer

@BKPepe

OpenWrt Version

SNAPSHOT

OpenWrt Target/Subtarget

x86/64

Steps to Reproduce

Trying to compiling weechat minimal with all plugins enabled with this following changes :

diff -Naur a/Makefile b/Makefile
--- a/Makefile
+++ b/Makefile
@@ -27,7 +27,7 @@
 	CONFIG_WEECHAT_PERL \
 	CONFIG_WEECHAT_TCL
 
-PKG_BUILD_DEPENDS:=$(if $(CONFIG_WEECHAT_PYTHON),python3/host)
+PKG_BUILD_DEPENDS:=$(if $(CONFIG_WEECHAT_PYTHON),python3/host) $(if $(CONFIG_WEECHAT_PERL),perl/host) $(if $(CONFIG_WEECHAT_TCL),tcl/host)
 PKG_INSTALL:=1
 
 include $(INCLUDE_DIR)/package.mk
@@ -44,7 +44,7 @@
 	+WEECHAT_ZSTD:libzstd \
 	+WEECHAT_CJSON:cJSON \
 	+WEECHAT_PYTHON:python3-light \
-	+WEECHAT_LUA:liblua \
+	+WEECHAT_LUA:liblua5.4 \
 	+WEECHAT_RUBY:ruby \
 	+WEECHAT_PERL:perl \
 	+WEECHAT_TCL:tcl
@@ -138,6 +138,30 @@
 	-DPython_LIBRARY=$(STAGING_DIR)/usr/lib/libpython$(PYTHON3_VERSION).so
 endif
 
+ifneq ($(CONFIG_WEECHAT_RUBY),)
+CMAKE_OPTIONS += \
+	-DRuby_EXECUTABLE=$(STAGING_DIR_HOSTPKG)/bin/ruby \
+	-DRuby_CONFIG_INCLUDE_DIR=$(STAGING_DIR)/usr/include/ruby-4.0/x86_64-linux-gnu \
+	-DRuby_INCLUDE_DIR=$(STAGING_DIR)/usr/include/ruby-4.0 \
+	-Druby_LIBRARY=$(STAGING_DIR)/usr/lib/libruby.so
+endif
+
+ifneq ($(CONFIG_WEECHAT_PERL),)
+include ../../lang/perl/perlver.mk
+CMAKE_OPTIONS += \
+	-DPerl_EXECUTABLE=$(STAGING_DIR_HOSTPKG)/usr/bin/perl \
+	-DPERL_INCLUDE_PATH=$(BUILD_DIR)/perl/perl-$(PERL_VERSION) \
+	-DPERL_LIBRARY=$(STAGING_DIR)/usr/lib/perl5/$(PERL_VERSION2)/CORE/libperl.so
+endif
+
+ifneq ($(CONFIG_WEECHAT_TCL),)
+CMAKE_OPTIONS += \
+	-DTCL_TCLSH=$(STAGING_DIR_HOSTPKG)/bin/tclsh \
+	-DTK_INCLUDE_PATH=$(STAGING_DIR)/usr/include \
+	-DTK_LIBRARY=$(STAGING_DIR)/usr/lib/libtcl.so
+endif
+
+
 define Package/weechat-minimal/install
 	$(INSTALL_DIR) $(1)/usr/bin
 	$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/weechat-headless $(1)/usr/bin/weechat-headless

But whatever I have done, I cannot build with LUA enabled.

Also it's not possible to enable weechat-full if I have selected luci-app-weechat.

Actual Behaviour

Cannot build with lua 5.4 plugins

Confirmation Checklist
Lingua principale
Makefile
Stelle
4.7k
Fork
4k
Merge medio
2g 2h
PR unite (30g)
251

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di openwrt/packages

Tutte le issue di openwrt/packages

Issue simili

Altre issue su Build System

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.