FreeBSD Bugzilla – Attachment 242108 Details for
Bug 271316
textproc/augeas: fix build with clang 16
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
textproc/augeas: fix build with clang 16
textproc__augeas-fix-clang16-build-2.diff (text/plain), 2.13 KB, created by
Dimitry Andric
on 2023-05-10 18:01:59 UTC
(
hide
)
Description:
textproc/augeas: fix build with clang 16
Filename:
MIME Type:
Creator:
Dimitry Andric
Created:
2023-05-10 18:01:59 UTC
Size:
2.13 KB
patch
obsolete
>commit 3b8d5e202194c8e784a33add8d9e3b9d3ab45fba >Author: Dimitry Andric <dim@FreeBSD.org> >Date: 2023-05-08 10:37:41 +0200 > > 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 > >diff --git a/textproc/augeas/Makefile b/textproc/augeas/Makefile >index ec9ea9f669c0..3707e0ae68d4 100644 >--- a/textproc/augeas/Makefile >+++ b/textproc/augeas/Makefile >@@ -3,6 +3,9 @@ DISTVERSION= 1.14.0 > CATEGORIES= textproc > MASTER_SITES= https://github.com/hercules-team/augeas/releases/download/release-${DISTVERSION}/ > >+PATCH_SITES= https://github.com/hercules-team/augeas/commit/ >+PATCHFILES+= 7b26cbb74ed634d886ed842e3d5495361d8fd9b1.patch:-p1 # https://github.com/hercules-team/augeas/pull/792 >+ > MAINTAINER= puppet@FreeBSD.org > COMMENT= Configuration editing tool > WWW= https://augeas.net/ >diff --git a/textproc/augeas/distinfo b/textproc/augeas/distinfo >index dd0c8f9c11b3..da7e25700d38 100644 >--- a/textproc/augeas/distinfo >+++ b/textproc/augeas/distinfo >@@ -1,3 +1,5 @@ >-TIMESTAMP = 1683030743 >+TIMESTAMP = 1683741338 > SHA256 (augeas-1.14.0.tar.gz) = 8c101759ca3d504bd1d805e70e2f615fa686af189dd7cf0529f71d855c087df1 > SIZE (augeas-1.14.0.tar.gz) = 2651463 >+SHA256 (7b26cbb74ed634d886ed842e3d5495361d8fd9b1.patch) = 08b0dbf7f303cd7cb341e2dff13f9b5df7042c2171dcfc89ed00d1d8f4886983 >+SIZE (7b26cbb74ed634d886ed842e3d5495361d8fd9b1.patch) = 1239
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 271316
:
242062
| 242108