summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2015-08-12 11:03:06 -0400
committerMike Frysinger <vapier@gentoo.org>2015-08-12 11:03:40 -0400
commita1e9746ddab66a76492235b2ea4fda8385cac224 (patch)
treec4c5c265c6b684533d9825ceb6512470640fdb26 /app-text/pinfo/files
parentapp-text/kbibtex: version bump (diff)
downloadgentoo-a1e9746ddab66a76492235b2ea4fda8385cac224.tar.gz
gentoo-a1e9746ddab66a76492235b2ea4fda8385cac224.tar.bz2
gentoo-a1e9746ddab66a76492235b2ea4fda8385cac224.zip
app-text/pinfo: fix build w/newer glibc & ncurses
Diffstat (limited to 'app-text/pinfo/files')
-rw-r--r--app-text/pinfo/files/pinfo-0.6.10-libc-basename.patch33
-rw-r--r--app-text/pinfo/files/pinfo-0.6.10-ncurses-check.patch14
2 files changed, 47 insertions, 0 deletions
diff --git a/app-text/pinfo/files/pinfo-0.6.10-libc-basename.patch b/app-text/pinfo/files/pinfo-0.6.10-libc-basename.patch
new file mode 100644
index 000000000000..6e9d4954792a
--- /dev/null
+++ b/app-text/pinfo/files/pinfo-0.6.10-libc-basename.patch
@@ -0,0 +1,33 @@
+do not redefine the basename that the C library provides
+
+--- a/src/filehandling_functions.c
++++ b/src/filehandling_functions.c
+@@ -31,7 +31,6 @@ typedef struct
+ }
+ Suffixes;
+
+-char * basename(char *filename);
+
+
+ /******************************************************************************
+@@ -713,20 +712,6 @@ opendirfile(int number)
+ return NULL;
+ }
+
+-char *
+-basename(char *filename)
+-{
+- int len = strlen(filename);
+- char *a = filename + len;
+- while (a > filename)
+- {
+- a--;
+- if (*a == '/')
+- return a + 1;
+- }
+- return filename; /* when it was a basename */
+-}
+-
+ /*
+ * Note: openinfo is a function for reading info files, and putting
+ * uncompressed content into a temporary filename. For a flexibility, there
diff --git a/app-text/pinfo/files/pinfo-0.6.10-ncurses-check.patch b/app-text/pinfo/files/pinfo-0.6.10-ncurses-check.patch
new file mode 100644
index 000000000000..a5f14c593f44
--- /dev/null
+++ b/app-text/pinfo/files/pinfo-0.6.10-ncurses-check.patch
@@ -0,0 +1,14 @@
+curses_wchar is set to true/false, so trying to assign it to the compiler
+flags variable makes no sense. it's already been set up the right value
+at this point, so delete the assignment.
+
+--- a/macros/curses.m4
++++ b/macros/curses.m4
+@@ -130,7 +130,6 @@ AC_DEFUN([AC_CHECK_CURSES],[
+ else
+ AC_DEFINE(CURSES_WCHAR)
+ CURSES_WCHAR=true
+- CURSES_FLAGS=$curses_wchar
+ AC_SUBST(CURSES_FLAGS)
+ fi
+