tools/elfutils: refresh portability patch for macOS
authorMichael Pratt <[email protected]>
Mon, 8 Apr 2024 19:15:31 +0000 (15:15 -0400)
committerRobert Marko <[email protected]>
Thu, 25 Apr 2024 19:33:51 +0000 (21:33 +0200)
Quilt refresh combined two sets of changes to the same file.

The switch from using libgen.h to dirname.h because of function poisoning
from gnulib's import of basename() was added as a new patch hunk instead
of an edit to the original one.

The original patch hunk was to fix build errors on an earlier version of
elfutils before the "dirname" module was being imported to fix further
build errors with the 0.191 version.

Tested-by: Georgi Valkov <[email protected]> # MacOS
Signed-off-by: Michael Pratt <[email protected]>
Signed-off-by: Tony Ambardar <[email protected]>
tools/elfutils/patches/100-portability.patch

index 9a111c76d9c9fa3fb5b587898559e9619e60c9d9..1a61455f483c766e9d3c7f8b2467079810237cdc 100644 (file)
  #include <libdwfl.h>
  #include <libebl.h>
 +#include <libeu.h>
-+#include <libgen.h>
++#include <dirname.h>
  #include <assert.h>
  #include <dirent.h>
  #include <errno.h>
 +#include <libeu.h>
  #include <libdw.h>
  #include <dwarf.h>
-+#include <libgen.h>
++#include <dirname.h>
  
  
  /* Known location expressions already decoded.  */
 @@ -27,6 +27,7 @@
     the GNU Lesser General Public License along with this program.  If
     not, see <http://www.gnu.org/licenses/>.  */
-
 +#include <config.h>
  #include <stddef.h>
-
-
---- a/libdw/libdwP.h
-+++ b/libdw/libdwP.h
-@@ -35,7 +35,7 @@
- #include <libeu.h>
- #include <libdw.h>
- #include <dwarf.h>
--#include <libgen.h>
-+#include <dirname.h>
-
-
- /* Known location expressions already decoded.  */
-
---- a/libdwfl/libdwflP.h
-+++ b/libdwfl/libdwflP.h
-@@ -32,7 +32,7 @@
- #include <libdwfl.h>
- #include <libebl.h>
- #include <libeu.h>
--#include <libgen.h>
-+#include <dirname.h>
- #include <assert.h>
- #include <dirent.h>
- #include <errno.h>
-