Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[xsrc/trunk]: xsrc/external/mit/makedepend/dist initial import of makedepend-...



details:   https://anonhg.NetBSD.org/xsrc/rev/b9c5cdae8d23
branches:  trunk
changeset: 7275:b9c5cdae8d23
user:      mrg <mrg%NetBSD.org@localhost>
date:      Mon Dec 19 00:54:12 2022 +0000

description:
initial import of makedepend-1.0.8

diffstat:

 external/mit/makedepend/dist/ChangeLog      |   32 ++++++++
 external/mit/makedepend/dist/aclocal.m4     |   22 +++---
 external/mit/makedepend/dist/configure      |   22 +++---
 external/mit/makedepend/dist/configure.ac   |    2 +-
 external/mit/makedepend/dist/include.c      |  101 +++++++++++++--------------
 external/mit/makedepend/dist/makedepend.man |   13 ++-
 6 files changed, 113 insertions(+), 79 deletions(-)

diffs (truncated from 431 to 300 lines):

diff -r 52b632e0d0bb -r b9c5cdae8d23 external/mit/makedepend/dist/ChangeLog
--- a/external/mit/makedepend/dist/ChangeLog    Mon Dec 19 00:44:57 2022 +0000
+++ b/external/mit/makedepend/dist/ChangeLog    Mon Dec 19 00:54:12 2022 +0000
@@ -1,3 +1,35 @@
+commit f7ad4c3164cf673bc30a2a038beb7cdb45ee3e94
+Author: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
+Date:   Mon Dec 12 11:07:08 2022 -0800
+
+    makedepend 1.0.8
+    
+    Signed-off-by: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
+
+commit 654f6355d501153fe1fbdbc073cb72fd6355e194
+Author: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
+Date:   Mon Dec 5 15:48:17 2022 -0800
+
+    Bug #2: fix regression introduced by fix for bug #1
+    
+    Refactor code to find the full file path before comparing against
+    existing items in the list so that we stop adding duplicate entries
+    for all the files in the system include path and with larger amounts
+    of code hitting the MAXFILES limit.
+    
+    Fixes: 3dc64b0 ("Add test case for bug #1 + proposed fix.")
+    Closes: #2
+    
+    Signed-off-by: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
+
+commit a17093a3f99f21bb999f3e0f9a45340eeed98da8
+Author: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
+Date:   Mon Dec 5 10:44:51 2022 -0800
+
+    man page: add line breaks in Synopsis section
+    
+    Signed-off-by: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
+
 commit d62a9e49c6b83f05c5692bbe4b80c485d08ecfd3
 Author: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
 Date:   Fri Oct 28 19:28:57 2022 -0700
diff -r 52b632e0d0bb -r b9c5cdae8d23 external/mit/makedepend/dist/aclocal.m4
--- a/external/mit/makedepend/dist/aclocal.m4   Mon Dec 19 00:44:57 2022 +0000
+++ b/external/mit/makedepend/dist/aclocal.m4   Mon Dec 19 00:54:12 2022 +0000
@@ -1793,7 +1793,7 @@
 # Documentation tools are not always available on all platforms and sometimes
 # not at the appropriate level. This macro enables a module to test for the
 # presence of the tool and obtain it's path in separate variables. Coupled with
-# the --with-xmlto option, it allows maximum flexibilty in making decisions
+# the --with-xmlto option, it allows maximum flexibility in making decisions
 # as whether or not to use the xmlto package. When DEFAULT is not specified,
 # --with-xmlto assumes 'auto'.
 #
@@ -2007,7 +2007,7 @@
 # Documentation tools are not always available on all platforms and sometimes
 # not at the appropriate level. This macro enables a module to test for the
 # presence of the tool and obtain it's path in separate variables. Coupled with
-# the --with-asciidoc option, it allows maximum flexibilty in making decisions
+# the --with-asciidoc option, it allows maximum flexibility in making decisions
 # as whether or not to use the asciidoc package. When DEFAULT is not specified,
 # --with-asciidoc assumes 'auto'.
 #
@@ -2077,7 +2077,7 @@
 # Documentation tools are not always available on all platforms and sometimes
 # not at the appropriate level. This macro enables a module to test for the
 # presence of the tool and obtain it's path in separate variables. Coupled with
-# the --with-doxygen option, it allows maximum flexibilty in making decisions
+# the --with-doxygen option, it allows maximum flexibility in making decisions
 # as whether or not to use the doxygen package. When DEFAULT is not specified,
 # --with-doxygen assumes 'auto'.
 #
@@ -2161,7 +2161,7 @@
 # Documentation tools are not always available on all platforms and sometimes
 # not at the appropriate level. This macro enables a module to test for the
 # presence of the tool and obtain it's path in separate variables. Coupled with
-# the --with-groff option, it allows maximum flexibilty in making decisions
+# the --with-groff option, it allows maximum flexibility in making decisions
 # as whether or not to use the groff package. When DEFAULT is not specified,
 # --with-groff assumes 'auto'.
 #
@@ -2269,7 +2269,7 @@
 # Documentation tools are not always available on all platforms and sometimes
 # not at the appropriate level. This macro enables a module to test for the
 # presence of the tool and obtain it's path in separate variables. Coupled with
-# the --with-fop option, it allows maximum flexibilty in making decisions
+# the --with-fop option, it allows maximum flexibility in making decisions
 # as whether or not to use the fop package. When DEFAULT is not specified,
 # --with-fop assumes 'auto'.
 #
@@ -2363,7 +2363,7 @@
 # Documentation tools are not always available on all platforms and sometimes
 # not at the appropriate level. This macro enables a module to test for the
 # presence of the tool and obtain it's path in separate variables. Coupled with
-# the --with-ps2pdf option, it allows maximum flexibilty in making decisions
+# the --with-ps2pdf option, it allows maximum flexibility in making decisions
 # as whether or not to use the ps2pdf package. When DEFAULT is not specified,
 # --with-ps2pdf assumes 'auto'.
 #
@@ -2418,7 +2418,7 @@
 # not at the appropriate level. This macro enables a builder to skip all
 # documentation targets except traditional man pages.
 # Combined with the specific tool checking macros XORG_WITH_*, it provides
-# maximum flexibilty in controlling documentation building.
+# maximum flexibility in controlling documentation building.
 # Refer to:
 # XORG_WITH_XMLTO         --with-xmlto
 # XORG_WITH_ASCIIDOC      --with-asciidoc
@@ -2451,7 +2451,7 @@
 #
 # This macro enables a builder to skip all developer documentation.
 # Combined with the specific tool checking macros XORG_WITH_*, it provides
-# maximum flexibilty in controlling documentation building.
+# maximum flexibility in controlling documentation building.
 # Refer to:
 # XORG_WITH_XMLTO         --with-xmlto
 # XORG_WITH_ASCIIDOC      --with-asciidoc
@@ -2484,7 +2484,7 @@
 #
 # This macro enables a builder to skip all functional specification targets.
 # Combined with the specific tool checking macros XORG_WITH_*, it provides
-# maximum flexibilty in controlling documentation building.
+# maximum flexibility in controlling documentation building.
 # Refer to:
 # XORG_WITH_XMLTO         --with-xmlto
 # XORG_WITH_ASCIIDOC      --with-asciidoc
@@ -2975,7 +2975,7 @@
 # Minimum version: 1.16.0
 #
 # Test if the compiler works when passed the given flag as a command line argument.
-# If it succeeds, the flag is appeneded to the given variable.  If not, it tries the
+# If it succeeds, the flag is appended to the given variable.  If not, it tries the
 # next flag in the list until there are no more options.
 #
 # Note that this does not guarantee that the compiler supports the flag as some
@@ -3132,7 +3132,7 @@
 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
 
-# Turn some warnings into errors, so we don't accidently get successful builds
+# Turn some warnings into errors, so we don't accidentally get successful builds
 # when there are problems that should be fixed.
 
 if test "x$SELECTIVE_WERROR" = "xyes" ; then
diff -r 52b632e0d0bb -r b9c5cdae8d23 external/mit/makedepend/dist/configure
--- a/external/mit/makedepend/dist/configure    Mon Dec 19 00:44:57 2022 +0000
+++ b/external/mit/makedepend/dist/configure    Mon Dec 19 00:54:12 2022 +0000
@@ -1,6 +1,6 @@
 #! /bin/sh
 # Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.71 for makedepend 1.0.7.
+# Generated by GNU Autoconf 2.71 for makedepend 1.0.8.
 #
 # Report bugs to <https://gitlab.freedesktop.org/xorg/util/makedepend/-/issues>.
 #
@@ -612,8 +612,8 @@
 # Identity of this package.
 PACKAGE_NAME='makedepend'
 PACKAGE_TARNAME='makedepend'
-PACKAGE_VERSION='1.0.7'
-PACKAGE_STRING='makedepend 1.0.7'
+PACKAGE_VERSION='1.0.8'
+PACKAGE_STRING='makedepend 1.0.8'
 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/util/makedepend/-/issues'
 PACKAGE_URL=''
 
@@ -1350,7 +1350,7 @@
   # Omit some internal or obsolete options to make the list less imposing.
   # This message is too long to be a string in the A/UX 3.1 sh.
   cat <<_ACEOF
-\`configure' configures makedepend 1.0.7 to adapt to many kinds of systems.
+\`configure' configures makedepend 1.0.8 to adapt to many kinds of systems.
 
 Usage: $0 [OPTION]... [VAR=VALUE]...
 
@@ -1421,7 +1421,7 @@
 
 if test -n "$ac_init_help"; then
   case $ac_init_help in
-     short | recursive ) echo "Configuration of makedepend 1.0.7:";;
+     short | recursive ) echo "Configuration of makedepend 1.0.8:";;
    esac
   cat <<\_ACEOF
 
@@ -1534,7 +1534,7 @@
 test -n "$ac_init_help" && exit $ac_status
 if $ac_init_version; then
   cat <<\_ACEOF
-makedepend configure 1.0.7
+makedepend configure 1.0.8
 generated by GNU Autoconf 2.71
 
 Copyright (C) 2021 Free Software Foundation, Inc.
@@ -1804,7 +1804,7 @@
 This file contains any messages produced by compilers while
 running configure, to aid debugging if configure makes a mistake.
 
-It was created by makedepend $as_me 1.0.7, which was
+It was created by makedepend $as_me 1.0.8, which was
 generated by GNU Autoconf 2.71.  Invocation command line was
 
   $ $0$ac_configure_args_raw
@@ -3078,7 +3078,7 @@
 
 # Define the identity of the package.
  PACKAGE='makedepend'
- VERSION='1.0.7'
+ VERSION='1.0.8'
 
 
 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
@@ -7110,7 +7110,7 @@
 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
 
-# Turn some warnings into errors, so we don't accidently get successful builds
+# Turn some warnings into errors, so we don't accidentally get successful builds
 # when there are problems that should be fixed.
 
 if test "x$SELECTIVE_WERROR" = "xyes" ; then
@@ -12114,7 +12114,7 @@
 # report actual input values of CONFIG_FILES etc. instead of their
 # values after options handling.
 ac_log="
-This file was extended by makedepend $as_me 1.0.7, which was
+This file was extended by makedepend $as_me 1.0.8, which was
 generated by GNU Autoconf 2.71.  Invocation command line was
 
   CONFIG_FILES    = $CONFIG_FILES
@@ -12182,7 +12182,7 @@
 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 ac_cs_config='$ac_cs_config_escaped'
 ac_cs_version="\\
-makedepend config.status 1.0.7
+makedepend config.status 1.0.8
 configured by $0, generated by GNU Autoconf 2.71,
   with options \\"\$ac_cs_config\\"
 
diff -r 52b632e0d0bb -r b9c5cdae8d23 external/mit/makedepend/dist/configure.ac
--- a/external/mit/makedepend/dist/configure.ac Mon Dec 19 00:44:57 2022 +0000
+++ b/external/mit/makedepend/dist/configure.ac Mon Dec 19 00:54:12 2022 +0000
@@ -3,7 +3,7 @@
 
 # Initialize Autoconf
 AC_PREREQ([2.60])
-AC_INIT([makedepend], [1.0.7],
+AC_INIT([makedepend], [1.0.8],
         [https://gitlab.freedesktop.org/xorg/util/makedepend/-/issues])
 AC_CONFIG_SRCDIR([Makefile.am])
 AC_CONFIG_HEADERS([makedepend-config.h])
diff -r 52b632e0d0bb -r b9c5cdae8d23 external/mit/makedepend/dist/include.c
--- a/external/mit/makedepend/dist/include.c    Mon Dec 19 00:44:57 2022 +0000
+++ b/external/mit/makedepend/dist/include.c    Mon Dec 19 00:54:12 2022 +0000
@@ -222,60 +222,17 @@
        }
 }
 
-struct inclist *
-inc_path(const char *file, const char *include, int type)
+/*
+ * Return full path for the "include" file of the given "type",
+ * which may be found relative to the source file "file".
+ */
+static const char *
+find_full_inc_path(const char *file, const char *include, int type)
 {
        static char             path[ BUFSIZ ];
        register const char     **pp, *p;
-       register struct inclist *ip;
        struct stat             st;
 
-       /*
-        * Check all previously found include files for a path that
-        * has already been expanded.
-        */
-       if ((type == INCLUDE) || (type == INCLUDEDOT))
-               inclistnext = inclist;
-       ip = inclistnext;
-
-       for (; ip->i_file; ip++) {
-               if ((strcmp(ip->i_incstring, include) == 0) &&
-                   !(ip->i_flags & INCLUDED_SYM)) {
-                       /*
-                        * Same filename but same file ?
-                        */
-                       char r_include[PATHMAX+1];
-                       char r_saved_path[PATHMAX+1];
-                       char* ptr;
-                       ptr = realpath(include, r_include);
-                       ptr = realpath(ip->i_file, r_saved_path);
-                       if (!strcmp(r_include, r_saved_path)) {
-                               inclistnext = ip + 1;
-                               return ip;
-                       }
-
-                       /*
-                        * Check if we have a header in the same dir
-                        */
-                       for (p=file+strlen(file); p>file; p--)
-                               if (*p == '/')
-                                       break;
-                       if (p == file) {
-                               strcpy(path, include);



Home | Main Index | Thread Index | Old Index