Skip to content

Commit 6e75ec4

Browse files
upgpkg(packages/inetutils): Link against libandroid-glob
``` /root/.termux-build/inetutils/src/lib/glob.c:317:53: error: use of undeclared identifier '__GLOB_FLAGS' if (pattern == NULL || pglob == NULL || (flags & ~__GLOB_FLAGS) != 0) ^ /root/.termux-build/inetutils/src/lib/glob.c:326:14: error: use of undeclared identifier 'GLOB_ONLYDIR' flags |= GLOB_ONLYDIR; ^ /root/.termux-build/inetutils/src/lib/glob.c:505:32: error: use of undeclared identifier 'GLOB_TILDE_CHECK' if ((flags & (GLOB_TILDE|GLOB_TILDE_CHECK)) && pattern[0] == '~') ^ /root/.termux-build/inetutils/src/lib/glob.c:616:28: error: use of undeclared identifier 'GLOB_TILDE_CHECK' if ((flags & (GLOB_TILDE|GLOB_TILDE_CHECK)) && dirname[0] == '~') ^ /root/.termux-build/inetutils/src/lib/glob.c:693:27: error: use of undeclared identifier 'GLOB_TILDE_CHECK' if (flags & GLOB_TILDE_CHECK) ^ CC libgnu_a-i-ring.o CC libgnu_a-ialloc.o /root/.termux-build/inetutils/src/lib/glob.c:881:29: error: use of undeclared identifier 'GLOB_TILDE_CHECK' if (flags & GLOB_TILDE_CHECK) ^ /root/.termux-build/inetutils/src/lib/glob.c:1000:41: error: use of undeclared identifier 'GLOB_ONLYDIR' | GLOB_NOSORT | GLOB_ONLYDIR), ^ CC libgnu_a-imaxtostr.o /root/.termux-build/inetutils/src/lib/glob.c:1362:39: error: use of undeclared identifier 'GLOB_PERIOD' int fnm_flags = ((!(flags & GLOB_PERIOD) ? FNM_PERIOD : 0) ^ /root/.termux-build/inetutils/src/lib/glob.c:1386:27: error: use of undeclared identifier 'GLOB_ONLYDIR' if (flags & GLOB_ONLYDIR) ^ 9 errors generated. make[4]: *** [Makefile:3860: libgnu_a-glob.o] Error 1 ```
1 parent 2b1a504 commit 6e75ec4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/inetutils/build.sh

+3-1
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@ TERMUX_PKG_DESCRIPTION="Collection of common network programs"
33
TERMUX_PKG_LICENSE="GPL-3.0"
44
TERMUX_PKG_MAINTAINER="@termux"
55
TERMUX_PKG_VERSION=2.3
6+
TERMUX_PKG_REVISION=1
67
TERMUX_PKG_SRCURL=https://mirrors.kernel.org/gnu/inetutils/inetutils-${TERMUX_PKG_VERSION}.tar.xz
78
TERMUX_PKG_SHA256=0b01bb08e29623c4e3b940f233c961451d9af8c5066301add76a52a95d51772c
8-
TERMUX_PKG_DEPENDS="readline"
9+
TERMUX_PKG_DEPENDS="libandroid-glob, readline"
910
TERMUX_PKG_SUGGESTS="whois"
1011
TERMUX_PKG_RM_AFTER_INSTALL="bin/whois share/man/man1/whois.1"
1112
# These are old cruft / not suited for android
@@ -29,6 +30,7 @@ ac_cv_lib_crypt_crypt=no
2930
termux_step_pre_configure() {
3031
CFLAGS+=" -DNO_INLINE_GETPASS=1"
3132
CPPFLAGS+=" -DNO_INLINE_GETPASS=1 -DLOGIN_PROCESS=6 -DDEAD_PROCESS=8 -DLOG_NFACILITIES=24 -fcommon"
33+
LDFLAGS+=" -landroid-glob"
3234
touch -d "next hour" ./man/whois.1
3335
}
3436

0 commit comments

Comments
 (0)