far2l
far2l copied to clipboard
openwrt adoption
В продолжение #1438: При использовании Makefile из #1438 не создается пакет OpenWrt для установки через opkg .ipk . Чтобы он создавался, нужно использовать следующий Makefile :
include $(TOPDIR)/rules.mk
PKG_NAME:=far2l
PKG_RELEASE:=1
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL=https://github.com/elfmz/far2l.git
PKG_SOURCE_DATE:=2022-12-04
PKG_SOURCE_VERSION:=master
PKG_ABI_VERSION:=$(call abi_version_str,$(PKG_SOURCE_DATE))
CMAKE_INSTALL:=1
PKG_LICENSE:=GPL-2
PKG_LICENSE_FILES:=LICENSE.txt
PKG_MAINTAINER:=Ivan Sorokin <[email protected]>
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/cmake.mk
define Package/far2l
SECTION:=utils
CATEGORY:=Utilities
TITLE:=Far2L File Manager
DEPENDS:=+libstdcpp +libpcre
endef
define Package/far2l/install
$(INSTALL_DIR) $(1)/usr/bin $(1)/usr/lib/far2l $(1)/usr/share/far2l
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/far2l $(1)/usr/bin
$(CP) $(PKG_INSTALL_DIR)/usr/lib/far2l/* $(1)/usr/lib/far2l/
$(CP) $(PKG_INSTALL_DIR)/usr/share/far2l/* $(1)/usr/share/far2l/
endef
CMAKE_OPTIONS += \
-DUSEUCD=OFF \
-DUSEWX=OFF \
-DCOLORER=OFF \
-DNETROCKS=OFF
ifdef CONFIG_USE_MUSL
CMAKE_OPTIONS += -DMUSL=ON
endif
ifdef CONFIG_PACKAGE_busybox
CMAKE_OPTIONS += -DTAR_LIMITED_ARGS=ON
endif
$(eval $(call BuildPackage,far2l))
Проверено на текущем OpenWrt toolchain для Xiaomi Redmi AX6000
Образ OpenWRT перестал собираться с far2l, т.к. OpenWRT перешел с pcre на pcre2.
Commit: Linhui Liu <[email protected]>
CommitDate: Sat May 20 13:20:53 2023 +0800
pcre2: switch to Github Releases and bump to 10.42
The mirror at SourceForge is an unofficial mirror and no longer maintained.
ChangeLogs:
https://github.com/PCRE2Project/pcre2/blob/pcre2-10.42/ChangeLog
Commit: Nick Hainke <[email protected]>
CommitDate: Thu May 18 10:14:13 2023 +0200
pcre: move package to packages feed
With the update of selinux no package depends anymore on pcre in the
base repository. Move it to packages feed.
При сборке стал выдавать ошибку:
Collected errors:
* pkg_hash_check_unresolved: cannot find dependency libpcre for far2l
* pkg_hash_fetch_best_installation_candidate: Packages for far2l found, but incompatible with the architectures configured
* opkg_install_cmd: Cannot install package far2l.
Замена в Makefile выше +libpcre на +libpcre2 проблему сборки решает.
Кто-нибудь пробовал запускать c colorer?
LoadPlugin: cache miss for '/usr/lib/far2l/Plugins/colorer/plug/colorer.far-plug-wide'
dlerror: Error relocating /usr/lib/far2l/Plugins/colorer/plug/colorer.far-plug-wide: _ZTIN11xercesc_3_211InputSourceE: symbol not found
libxerces-c установлен.
ldd
ldd /usr/lib/far2l/Plugins/colorer/plug/colorer.far-plug-wide
ldd (0x7f980a446000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x7f980a231000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x7f980a219000)
libc.so => ldd (0x7f980a446000)
Error relocating /usr/lib/far2l/Plugins/colorer/plug/colorer.far-plug-wide: _ZTIN11xercesc_3_211InputSourceE: symbol not found
Error relocating /usr/lib/far2l/Plugins/colorer/plug/colorer.far-plug-wide: _ZN11xercesc_3_211InputSource11setEncodingEPKDs: symbol not found
Error relocating /usr/lib/far2l/Plugins/colorer/plug/colorer.far-plug-wide: _ZN11xercesc_3_211InputSource11setEncodingEPKDs: symbol not found
Error relocating /usr/lib/far2l/Plugins/colorer/plug/colorer.far-plug-wide: _ZN11xercesc_3_211InputSource11setPublicIdEPKDs: symbol not found
Error relocating /usr/lib/far2l/Plugins/colorer/plug/colorer.far-plug-wide: _ZN11xercesc_3_211InputSource11setPublicIdEPKDs: symbol not found
Error relocating /usr/lib/far2l/Plugins/colorer/plug/colorer.far-plug-wide: _ZN11xercesc_3_211InputSource11setSystemIdEPKDs: symbol not found
Error relocating /usr/lib/far2l/Plugins/colorer/plug/colorer.far-plug-wide: _ZN11xercesc_3_211InputSource11setSystemIdEPKDs: symbol not found
Error relocating /usr/lib/far2l/Plugins/colorer/plug/colorer.far-plug-wide: _ZN11xercesc_3_211InputSourceC2EPNS_13MemoryManagerE: symbol not found
Error relocating /usr/lib/far2l/Plugins/colorer/plug/colorer.far-plug-wide: _ZNK11xercesc_3_217SAXParseException15getColumnNumberEv: symbol not found
Error relocating /usr/lib/far2l/Plugins/colorer/plug/colorer.far-plug-wide: _ZN11xercesc_3_220LocalFileInputSourceC1EPKDsS2_PNS_13MemoryManagerE: symbol not found
Error relocating /usr/lib/far2l/Plugins/colorer/plug/colorer.far-plug-wide: _ZN11xercesc_3_215XercesDOMParser20setXMLEntityResolverEPNS_17XMLEntityResolverE: symbol not found
Error relocating /usr/lib/far2l/Plugins/colorer/plug/colorer.far-plug-wide: _ZN11xercesc_3_217AbstractDOMParser5parseERKNS_11InputSourceE: symbol not found
Error relocating /usr/lib/far2l/Plugins/colorer/plug/colorer.far-plug-wide: _ZN11xercesc_3_29XMLString4trimEPDs: symbol not found
Error relocating /usr/lib/far2l/Plugins/colorer/plug/colorer.far-plug-wide: _ZNK11xercesc_3_217SAXParseException11getSystemIdEv: symbol not found
Error relocating /usr/lib/far2l/Plugins/colorer/plug/colorer.far-plug-wide: _ZN11xercesc_3_217AbstractDOMParser20setSkipDTDValidationEb: symbol not found
Error relocating /usr/lib/far2l/Plugins/colorer/plug/colorer.far-plug-wide: _ZN11xercesc_3_29XMLString10copyStringEPDsPKDs: symbol not found
Error relocating /usr/lib/far2l/Plugins/colorer/plug/colorer.far-plug-wide: _ZN11xercesc_3_218BinFileInputStreamC1EPKDsPNS_13MemoryManagerE: symbol not found
Error relocating /usr/lib/far2l/Plugins/colorer/plug/colorer.far-plug-wide: _ZN11xercesc_3_217AbstractDOMParser18setLoadExternalDTDEb: symbol not found
Error relocating /usr/lib/far2l/Plugins/colorer/plug/colorer.far-plug-wide: _ZN11xercesc_3_217AbstractDOMParser11getDocumentEv: symbol not found
Error relocating /usr/lib/far2l/Plugins/colorer/plug/colorer.far-plug-wide: _ZN11xercesc_3_27XMemorynwEm: symbol not found
Error relocating /usr/lib/far2l/Plugins/colorer/plug/colorer.far-plug-wide: _ZN11xercesc_3_211InputSourceD2Ev: symbol not found
Error relocating /usr/lib/far2l/Plugins/colorer/plug/colorer.far-plug-wide: _ZN11xercesc_3_216XMLPlatformUtils15fgMemoryManagerE: symbol not found
Error relocating /usr/lib/far2l/Plugins/colorer/plug/colorer.far-plug-wide: _ZN11xercesc_3_27XMemorydlEPv: symbol not found
Error relocating /usr/lib/far2l/Plugins/colorer/plug/colorer.far-plug-wide: WINPORT_CharUpperBuff: symbol not found
Error relocating /usr/lib/far2l/Plugins/colorer/plug/colorer.far-plug-wide: _ZN11xercesc_3_215XercesDOMParser15setErrorHandlerEPNS_12ErrorHandlerE: symbol not found
Error relocating /usr/lib/far2l/Plugins/colorer/plug/colorer.far-plug-wide: _ZN11xercesc_3_215XercesDOMParserC1EPNS_12XMLValidatorEPNS_13MemoryManagerEPNS_14XMLGrammarPoolE: symbol not found
Error relocating /usr/lib/far2l/Plugins/colorer/plug/colorer.far-plug-wide: _ZN11xercesc_3_216XMLPlatformUtils9TerminateEv: symbol not found
Error relocating /usr/lib/far2l/Plugins/colorer/plug/colorer.far-plug-wide: _ZN11xercesc_3_215XercesDOMParserD1Ev: symbol not found
Error relocating /usr/lib/far2l/Plugins/colorer/plug/colorer.far-plug-wide: WINPORT_GetConsoleColorPalette: symbol not found
Error relocating /usr/lib/far2l/Plugins/colorer/plug/colorer.far-plug-wide: _ZN11xercesc_3_29XMLString7findAnyEPKDsS2_: symbol not found
Error relocating /usr/lib/far2l/Plugins/colorer/plug/colorer.far-plug-wide: _ZN11xercesc_3_26XMLUni22fgXercescDefaultLocaleE: symbol not found
Error relocating /usr/lib/far2l/Plugins/colorer/plug/colorer.far-plug-wide: _ZN11xercesc_3_29XMLString14compareNStringEPKDsS2_m: symbol not found
Error relocating /usr/lib/far2l/Plugins/colorer/plug/colorer.far-plug-wide: _ZNK11xercesc_3_217SAXParseException13getLineNumberEv: symbol not found
Error relocating /usr/lib/far2l/Plugins/colorer/plug/colorer.far-plug-wide: _ZN11xercesc_3_216XMLPlatformUtils10InitializeEPKcS2_PNS_12PanicHandlerEPNS_13MemoryManagerE: symbol not found
Error relocating /usr/lib/far2l/Plugins/colorer/plug/colorer.far-plug-wide: _ZN11xercesc_3_29XMLString9transcodeEPKDsPNS_13MemoryManagerE: symbol not found
Кто-нибудь пробовал запускать c colorer?
Давно не проверял, но теперь с последними изменениями Colorer работает в 23.05.
А вот в 22.03 (gcc-11) ошибка при сборке compile.txt
@spvkgn попробуйте с таким патчем на файл colorer/src/Colorer-library/src/colorer/utils/Environment.cpp test.patch.txt
попробуйте с таким патчем на файл colorer/src/Colorer-library/src/colorer/utils/Environment.cpp
Да, с ним собирается в 22.03/21.02 Хорошо бы PR сделать