[MacPorts] #69274: lnav fails to install: error: invalid command-line arguments, reason: -i excludes -t
MacPorts
noreply at macports.org
Sun Feb 4 05:12:06 UTC 2024
#69274: lnav fails to install: error: invalid command-line arguments, reason: -i
excludes -t
--------------------------+-------------------------
Reporter: barracuda156 | Owner: herbygillot
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.9.1
Keywords: | Port: lnav
--------------------------+-------------------------
To begin with, the port does not respect Macports compiler settings, since
nothing sets CC_FOR_BUILD. This can be fixed by:
{{{
--- src/Makefile.am 2023-07-03 12:16:02.000000000 +0800
+++ src/Makefile.am 2024-02-04 12:48:05.000000000 +0800
@@ -497,7 +497,7 @@
$(PLUGIN_SRCS)
ptimec$(BUILD_EXEEXT): ptimec.c
- $(AM_V_CC) $(CC_FOR_BUILD) $(CPPFLAGS_FOR_BUILD)
$(LDFLAGS_FOR_BUILD) -g3 -o $@ $?
+ $(AM_V_CC) $(CC) $(CPPFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) -g3 -o
$@ $?
if HAVE_RE2C
RE2C_FILES = data_scanner_re.cc log_level_re.cc
--- tools/Makefile.am 2023-07-03 12:16:02.000000000 +0800
+++ tools/Makefile.am 2024-02-04 12:42:06.000000000 +0800
@@ -2,7 +2,7 @@
all-local: bin2c$(BUILD_EXEEXT)
bin2c$(BUILD_EXEEXT): bin2c.c
- $(AM_V_CC) $(CC_FOR_BUILD) $(CPPFLAGS_FOR_BUILD)
$(LDFLAGS_FOR_BUILD) -g3 -o $@ $? -lz
+ $(AM_V_CC) $(CC) $(CPPFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) -g3 -o
$@ $? -lz
EXTRA_DIST = \
bin2c.c
}}}
However, eventually the build still fails:
{{{
/opt/local/bin/g++-mp-13 -std=c++14 -pipe -Os -D_GLIBCXX_USE_CXX11_ABI=0
-arch ppc -L/opt/local/lib -Wl,-headerpad_max_install_names
-L/opt/local/lib -lMacportsLegacySupport -arch ppc -L/opt/local/lib
-L/opt/local/lib -L/opt/local/lib -L/usr/local/lib -L/usr/lib -o lnav
lnav.o lnav.events.o lnav.indexing.o lnav.management_cli.o file_vtab.o
libdiag.a libdatascanner.a base/libbase.a formats/logfmt/liblogfmt.a
fmtlib/libcppfmt.a third-party/scnlib/src/libscnlib.a pcrepp/libpcrepp.a
pugixml/libpugixml.a tailer/libtailerservice.a tailer/libtailercommon.a
tailer/libtailerpp.a yajl/libyajl.a yajlpp/libyajlpp.a third-
party/base64/lib/libbase64.a -lreadline -lncursesw -lsqlite3 -larchive
-L/opt/local/lib -lcurl -lpcre2-8 -larchive -lbz2 -lz -lpthread
/opt/local/bin/g++-mp-13 -std=c++14 -pipe -Os -D_GLIBCXX_USE_CXX11_ABI=0
-arch ppc -L/opt/local/lib -Wl,-headerpad_max_install_names
-L/opt/local/lib -lMacportsLegacySupport -arch ppc -L/opt/local/lib
-L/opt/local/lib -L/opt/local/lib -L/usr/local/lib -L/usr/lib -o lnav-test
lnav.o lnav.events.o lnav.indexing.o lnav.management_cli.o test_override.o
file_vtab.o libdiag.a libdatascanner.a base/libbase.a
formats/logfmt/liblogfmt.a fmtlib/libcppfmt.a third-
party/scnlib/src/libscnlib.a pcrepp/libpcrepp.a pugixml/libpugixml.a
tailer/libtailerservice.a tailer/libtailercommon.a tailer/libtailerpp.a
yajl/libyajl.a yajlpp/libyajlpp.a third-party/base64/lib/libbase64.a
-lreadline -lncursesw -lsqlite3 -larchive -L/opt/local/lib -lcurl
-lpcre2-8 -larchive -lbz2 -lz -lpthread
if test -w ./internals; then \
env DUMP_INTERNALS_DIR=./internals DUMP_CRASH=1 ./lnav
Makefile; \
mv ./internals/*.schema.json ../docs/schemas; \
fi
✘ error: invalid command-line arguments
reason: -i excludes -t
mv: rename ./internals/*.schema.json to ../docs/schemas/*.schema.json: No
such file or directory
make[3]: *** [all-local] Error 1
}}}
--
Ticket URL: <https://trac.macports.org/ticket/69274>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list