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)
This commit is contained in:
Brooks Davis 2023-12-08 21:26:50 +00:00
parent 4bfc940087
commit 7186609173
2 changed files with 11 additions and 1 deletions

View file

@ -14,7 +14,7 @@ LICENSE= GPLv2+
RUN_DEPENDS?= ${PORTNAME}-genisoimage>0:sysutils/genisoimage RUN_DEPENDS?= ${PORTNAME}-genisoimage>0:sysutils/genisoimage
USES= cmake iconv perl5 sbrk shebangfix USES= cmake iconv perl5 shebangfix
USE_PERL5= run USE_PERL5= run
SHEBANG_FILES= 3rd-party/dirsplit/dirsplit SHEBANG_FILES= 3rd-party/dirsplit/dirsplit
# Fix build with clang11 # Fix build with clang11

View file

@ -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 */