freebsd-ports/textproc/augeas
Dimitry Andric 67237e5afd textproc/augeas: fix build with clang 16
Clang 16 has a new error about incompatible integer to pointer
conversions, which shows up when building textproc/augeas:

  augprint.c:1477:24: warning: call to undeclared function 'basename'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    char *program_name = basename(argv[0]);
			 ^
  augprint.c:1477:9: error: incompatible integer to pointer conversion initializing 'char *' with an expression of type 'int' [-Wint-conversion]
    char *program_name = basename(argv[0]);
	  ^		 ~~~~~~~~~~~~~~~~~

This is because basename(3) is declared in <libgen.h>, but augprint.c
does not include it. Upstream has already fixed this, so apply the
commit until there is a new release.

PR:		271316
Approved by:	portmgr (build fix blanket)
MFH:		2023Q2
2023-05-18 13:33:25 +02:00
..
files
distinfo textproc/augeas: fix build with clang 16 2023-05-18 13:33:25 +02:00
Makefile textproc/augeas: fix build with clang 16 2023-05-18 13:33:25 +02:00
pkg-descr
pkg-plist textproc/augeas: Update to 1.14.0 2023-05-06 15:43:37 -10:00