Skip to content

Commit

Permalink
upgpkg(packages/inetutils): Link against libandroid-glob
Browse files Browse the repository at this point in the history
```
/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
```
  • Loading branch information
agnostic-apollo committed Aug 30, 2022
1 parent 2b1a504 commit 6e75ec4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/inetutils/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ TERMUX_PKG_DESCRIPTION="Collection of common network programs"
TERMUX_PKG_LICENSE="GPL-3.0"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=2.3
TERMUX_PKG_REVISION=1
TERMUX_PKG_SRCURL=https://mirrors.kernel.org/gnu/inetutils/inetutils-${TERMUX_PKG_VERSION}.tar.xz
TERMUX_PKG_SHA256=0b01bb08e29623c4e3b940f233c961451d9af8c5066301add76a52a95d51772c
TERMUX_PKG_DEPENDS="readline"
TERMUX_PKG_DEPENDS="libandroid-glob, readline"
TERMUX_PKG_SUGGESTS="whois"
TERMUX_PKG_RM_AFTER_INSTALL="bin/whois share/man/man1/whois.1"
# These are old cruft / not suited for android
Expand All @@ -29,6 +30,7 @@ ac_cv_lib_crypt_crypt=no
termux_step_pre_configure() {
CFLAGS+=" -DNO_INLINE_GETPASS=1"
CPPFLAGS+=" -DNO_INLINE_GETPASS=1 -DLOGIN_PROCESS=6 -DDEAD_PROCESS=8 -DLOG_NFACILITIES=24 -fcommon"
LDFLAGS+=" -landroid-glob"
touch -d "next hour" ./man/whois.1
}

Expand Down

0 comments on commit 6e75ec4

Please sign in to comment.