freebsd-ports/archivers/rpm4
Dimitry Andric b06956644e archivers/rpm4: fix build with clang 15
During an exp-run for llvm 15 (see bug 265425), it turned out that
archivers/rpm4 failed to build with clang 15:

  tools/rpmuncompress.c:101:23: warning: call to undeclared function 'basename'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
              const char *bn = basename(fn);
                               ^
  tools/rpmuncompress.c:101:18: error: incompatible integer to pointer conversion initializing 'const char *' with an expression of type 'int' [-Wint-conversion]
              const char *bn = basename(fn);
                          ^    ~~~~~~~~~~~~

This is because basename(3) is defined in <libgen.h>. After this include
is added to rpmuncompress.c, link errors still occur:

  ld: error: undefined symbol: WIFEXITED
  >>> referenced by rpmuncompress.c
  >>>               tools/rpmuncompress.o:(main)

  ld: error: undefined symbol: WEXITSTATUS
  >>> referenced by rpmuncompress.c
  >>>               tools/rpmuncompress.o:(main)

This is because WIFEXITED() and WEXITSTATUS() are macros defined in
<sys/wait.h>.

PR:		268341
Approved by:	rodrigo (maintainer)
MFH:		2022Q4
2022-12-13 17:20:38 +01:00
..
files archivers/rpm4: fix build with clang 15 2022-12-13 17:20:38 +01:00
distinfo archivers/rpm4: update to version 4.18.0 2022-12-01 15:03:36 +01:00
Makefile archivers/rpm4: update to version 4.18.0 2022-12-01 15:03:36 +01:00
pkg-deinstall
pkg-descr Remove WWW entries moved into port Makefiles 2022-09-07 23:58:51 +02:00
pkg-install
pkg-plist archivers/rpm4: update to version 4.18.0 2022-12-01 15:03:36 +01:00