git: 71866091735c - main - sysutils/{cdrkit,genisoimage}: remove sbrk use
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 18 Feb 2025 21:01:50 UTC
The branch main has been updated by brooks: URL: https://cgit.FreeBSD.org/ports/commit/?id=71866091735cd13883e453ee3576b48fbbd1fbd8 commit 71866091735cd13883e453ee3576b48fbbd1fbd8 Author: Brooks Davis <brooks@FreeBSD.org> AuthorDate: 2023-12-08 21:26:50 +0000 Commit: Brooks Davis <brooks@FreeBSD.org> CommitDate: 2025-02-18 21:00:22 +0000 sysutils/{cdrkit,genisoimage}: remove sbrk use The code has fallbacks for a lack of sbrk. Just remove the HAVE_SBRK define from xconfig.h.in to avoid using it needlessly. I've verified basic genisoimage functionality. PR: 275645 Approved by jharris@widomaker.com (maintainer) --- sysutils/cdrkit/Makefile | 2 +- sysutils/cdrkit/files/patch-include_xconfig.h.in | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/sysutils/cdrkit/Makefile b/sysutils/cdrkit/Makefile index 74ed7ac859bb..55165be1855e 100644 --- a/sysutils/cdrkit/Makefile +++ b/sysutils/cdrkit/Makefile @@ -14,7 +14,7 @@ LICENSE= GPLv2+ RUN_DEPENDS?= ${PORTNAME}-genisoimage>0:sysutils/genisoimage -USES= cmake iconv perl5 sbrk shebangfix +USES= cmake iconv perl5 shebangfix USE_PERL5= run SHEBANG_FILES= 3rd-party/dirsplit/dirsplit # Fix build with clang11 diff --git a/sysutils/cdrkit/files/patch-include_xconfig.h.in b/sysutils/cdrkit/files/patch-include_xconfig.h.in new file mode 100644 index 000000000000..2035480140f6 --- /dev/null +++ b/sysutils/cdrkit/files/patch-include_xconfig.h.in @@ -0,0 +1,10 @@ +--- include/xconfig.h.in.orig ++++ include/xconfig.h.in +@@ -147,7 +147,6 @@ + #define HAVE_POLL 1 /* poll() is present in libc */ + #define HAVE_SELECT 1 /* select() is present in libc */ + #define HAVE_LCHOWN 1 /* lchown() is present in libc */ +-#define HAVE_SBRK 1 /* sbrk() is present in libc */ + #define HAVE_VA_COPY 1 /* va_copy() is present in varargs.h/stdarg.h */ + #define HAVE_DUP2 1 /* dup2() is present in libc */ + #define HAVE_GETCWD 1 /* POSIX getcwd() is present in libc */