diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-09-14 11:10:11 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-09-14 11:10:11 +0100 |
commit | 81b8f20732954c4508baf2f77472b5435e3f851f (patch) | |
tree | 4180177cb7ba85eab50159ce96218c2419fb24a6 /net-misc/suite3270/files | |
parent | 946859e0e36904cffb3e0ccbccb6b7b1347c1cc8 (diff) |
gentoo auto-resync : 14:09:2022 - 11:10:10
Diffstat (limited to 'net-misc/suite3270/files')
-rw-r--r-- | net-misc/suite3270/files/suite3270-4.2_p5-egrep.patch | 21 | ||||
-rw-r--r-- | net-misc/suite3270/files/suite3270-4.2_p5-ncurses-pkg-config.patch | 48 |
2 files changed, 69 insertions, 0 deletions
diff --git a/net-misc/suite3270/files/suite3270-4.2_p5-egrep.patch b/net-misc/suite3270/files/suite3270-4.2_p5-egrep.patch new file mode 100644 index 000000000000..629cbca5f9f3 --- /dev/null +++ b/net-misc/suite3270/files/suite3270-4.2_p5-egrep.patch @@ -0,0 +1,21 @@ +--- a/configure.in ++++ b/configure.in +@@ -29,6 +29,8 @@ AC_PREREQ([2.69]) + + AC_CANONICAL_HOST + ++AC_PROG_EGREP ++ + AC_ARG_ENABLE(unix,[ --enable-unix build all Unix emulators]) + AC_ARG_ENABLE(windows,[ --enable-windows build all Windows emulators]) + +--- a/lib/configure.in ++++ b/lib/configure.in +@@ -31,6 +31,7 @@ dnl Checks for programs. + AC_PROG_INSTALL + AC_PROG_CC + AC_PROG_RANLIB ++AC_PROG_EGREP + AC_CHECK_TOOLS(AR, [ar]) + + dnl Figure out what sort of host this is. diff --git a/net-misc/suite3270/files/suite3270-4.2_p5-ncurses-pkg-config.patch b/net-misc/suite3270/files/suite3270-4.2_p5-ncurses-pkg-config.patch new file mode 100644 index 000000000000..7142bb293c00 --- /dev/null +++ b/net-misc/suite3270/files/suite3270-4.2_p5-ncurses-pkg-config.patch @@ -0,0 +1,48 @@ +Needed to ensure we pick up definitions from ncurses' pkg-config file +like -DNCURSES_WIDECHAR (issue is observable on say, musl). +--- a/x3270if/configure.in ++++ b/x3270if/configure.in +@@ -65,6 +65,9 @@ AC_CHECK_HEADERS(getopt.h) + if test "$with_readline" != no; then + AC_CHECK_HEADERS(readline/history.h) + fi ++ ++dnl Try pkg-config first, and if it fails, try the traditional methods. ++PKG_CHECK_MODULES([ncurses], [ncursesw], [AC_DEFINE([HAVE_NCURSESW_NCURSES_H] ,[1]) AC_DEFINE([HAVE_NCURSESW_TERM_H], [1])], [ + dnl Find the best curses header file and hope it's consistent with the library + dnl we found. + AC_CHECK_HEADERS(ncursesw/ncurses.h, , +@@ -75,15 +78,16 @@ AC_CHECK_HEADERS(ncursesw/term.h, , + [AC_CHECK_HEADERS(ncurses/term.h, , + [AC_CHECK_HEADERS(term.h)])]) + ++ AC_SEARCH_LIBS(newterm, ncursesw ncurses curses, , [AC_MSG_ERROR(Can't find libncurses or new-enough libcurses)]) ++ AC_SEARCH_LIBS(setupterm, tinfow tinfo, , [AC_MSG_ERROR(Can't find terminfo library)]) ++ AC_CHECK_FUNCS(tiparm)]) ++ + dnl Check for --without-readline + AC_ARG_WITH(readline, [ --without-readline Don't use the readline library]) + + dnl Checks for library functions. + AC_CHECK_FUNCS(vasprintf) + AC_FUNC_FSEEKO +-AC_SEARCH_LIBS(newterm, ncursesw ncurses curses, , [AC_MSG_ERROR(Can't find libncurses or new-enough libcurses)]) +-AC_SEARCH_LIBS(setupterm, tinfow tinfo, , [AC_MSG_ERROR(Can't find terminfo library)]) +-AC_CHECK_FUNCS(tiparm) + if test "$with_readline" != no; then + AC_CHECK_LIB(readline, rl_initialize) + fi +--- a/x3270if/Makefile.obj.in ++++ b/x3270if/Makefile.obj.in +@@ -51,9 +51,9 @@ INSTALL_DATA = @INSTALL_DATA@ + + CCOPTIONS = @CCOPTIONS@ + XCPPFLAGS = -I$(THIS) -I$(TOP)/include -I$(TOP)/Common/x3270if @CPPFLAGS@ +-CFLAGS = $(CCOPTIONS) $(CDEBUGFLAGS) $(XCPPFLAGS) @CFLAGS@ ++CFLAGS = $(CCOPTIONS) $(CDEBUGFLAGS) $(XCPPFLAGS) @ncurses_CFLAGS@ @CFLAGS@ + LDFLAGS = @LDFLAGS@ +-LIBS = @LIBS@ ++LIBS = @LIBS@ @ncurses_LIBS@ + + XVERSION = xversion.c + version.o: mkversion.sh $(VOBJS) version.txt |