Page MenuHomeFreeBSD

No OneTemporary

Size
2 KB
Referenced Files
None
Subscribers
None
diff --git a/sysutils/coreutils/Makefile b/sysutils/coreutils/Makefile
index a346bdc5e090..9264909a27ab 100644
--- a/sysutils/coreutils/Makefile
+++ b/sysutils/coreutils/Makefile
@@ -1,47 +1,48 @@
PORTNAME= coreutils
PORTVERSION= 9.4
+PORTREVISION= 1
CATEGORIES= sysutils textproc
MASTER_SITES= GNU
MAINTAINER= jharris@widomaker.com
COMMENT= Free Software Foundation core utilities
WWW= https://www.gnu.org/software/coreutils/
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/COPYING
USES= cpe iconv perl5 charsetfix tar:xz
CPE_VENDOR= gnu
USE_PERL5= build # required for tests and man page generation
USE_LDCONFIG= yes
TEST_TARGET= check
PIE_UNSAFE= yes
GNU_CONFIGURE= yes
GNU_CONFIGURE_MANPREFIX=${PREFIX}/share
# A rather nasty hack to stop gnustat from conflicting with base gstat
# bugs.freebsd.org/160060
CONFIGURE_ARGS= --program-prefix=g \
--program-transform-name=s/stat/nustat/
CONFIGURE_ENV= FORCE_UNSAFE_CONFIGURE=1
CONFLICTS_INSTALL= gdu geneweb gexpr rubygem-god # bin/gdu bin/gexpr bin/god bin/gwc
INFO= coreutils
OPTIONS_DEFINE= GMP NLS
OPTIONS_SUB= yes
GMP_LIB_DEPENDS= libgmp.so:math/gmp
GMP_CONFIGURE_WITH= gmp
NLS_USES= gettext
NLS_CONFIGURE_ENABLE= nls
post-build:
@${REINPLACE_CMD} -e "s/ lib / /g" ${WRKSRC}/Makefile
@${TOUCH} ${WRKSRC}/doc/coreutils.info
post-install:
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/g* \
${STAGEDIR}${PREFIX}/libexec/coreutils/libstdbuf.so
.include <bsd.port.mk>
diff --git a/sysutils/coreutils/files/patch-lib_posixtm.c b/sysutils/coreutils/files/patch-lib_posixtm.c
new file mode 100644
index 000000000000..3265544a82bc
--- /dev/null
+++ b/sysutils/coreutils/files/patch-lib_posixtm.c
@@ -0,0 +1,24 @@
+commit 67c298c36f69b6906840b7584be06b7b5f33f829
+Author: Paul Eggert <eggert@cs.ucla.edu>
+Date: 2024-01-16T17:21:08-08:00
+
+ posixtm: pacify clang 18
+
+ Problem reported by Khem Raj in:
+ https://lists.gnu.org/r/bug-gnulib/2024-01/msg00045.html
+ * lib/posixtm.c (posixtime): Pacify clang 18 by converting bool to int.
+ Arguably this is a bug in draft C2x, since the non-pointer args to
+ ckd_add should promote just like any other expressions do;
+ but thats not clangs fault.
+
+--- lib/posixtm.c.orig 2023-01-01 13:39:11 UTC
++++ lib/posixtm.c
+@@ -191,7 +191,7 @@ posixtime (time_t *p, const char *s, unsigned int synt
+ | (tm0.tm_min ^ tm1.tm_min)
+ | (tm0.tm_sec ^ tm1.tm_sec)))
+ {
+- if (ckd_add (&t, t, leapsec))
++ if (ckd_add (&t, t, +leapsec))
+ return false;
+ *p = t;
+ return true;

File Metadata

Mime Type
application/octet-stream
Expires
Sat, Apr 25, 11:39 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28425204
Default Alt Text
(2 KB)

Event Timeline