mirror of
https://git.freebsd.org/ports.git
synced 2025-04-28 09:36:41 -04:00
shells/schemesh: Update to 0.8.3
- Remove patch, present upstream - Update plist
This commit is contained in:
parent
4792e34d7c
commit
0b28fcc0b5
3 changed files with 5 additions and 25 deletions
|
@ -1,6 +1,6 @@
|
|||
PORTNAME= schemesh
|
||||
DISTVERSIONPREFIX= v
|
||||
DISTVERSION= 0.8.0
|
||||
DISTVERSION= 0.8.3
|
||||
CATEGORIES= shells
|
||||
|
||||
MAINTAINER= ashish@FreeBSD.org
|
||||
|
@ -24,6 +24,7 @@ LDFLAGS+= -L${LOCALBASE}/lib
|
|||
USE_LDCONFIG= yes
|
||||
|
||||
PLIST_FILES= bin/schemesh \
|
||||
bin/countdown \
|
||||
lib/schemesh/libschemesh_${DISTVERSION}.so
|
||||
|
||||
post-patch:
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
TIMESTAMP = 1741165842
|
||||
SHA256 (cosmos72-schemesh-v0.8.0_GH0.tar.gz) = cdeda6f2176ab801ab10e864c5d7bca42c81a15700614ff49d9f5bfe49d82def
|
||||
SIZE (cosmos72-schemesh-v0.8.0_GH0.tar.gz) = 271685
|
||||
TIMESTAMP = 1745351894
|
||||
SHA256 (cosmos72-schemesh-v0.8.3_GH0.tar.gz) = ed6698bff63f8e8887ed6ee3cb5df49f439b6e1792e56b16adc16b6a2ad055be
|
||||
SIZE (cosmos72-schemesh-v0.8.3_GH0.tar.gz) = 326144
|
||||
|
|
|
@ -1,21 +0,0 @@
|
|||
--- posix/posix.c.orig 2025-03-01 15:14:20 UTC
|
||||
+++ posix/posix.c
|
||||
@@ -849,12 +849,18 @@ static ptr c_get_hostname(void) {
|
||||
|
||||
/** return Scheme string, or Scheme integer on error */
|
||||
static ptr c_get_hostname(void) {
|
||||
+#ifdef __FreeBSD__
|
||||
+ int len = sysconf(_SC_HOST_NAME_MAX) + 1;
|
||||
+ char* buf = alloca(len);
|
||||
+ if (gethostname(buf, len) != 0) {
|
||||
+#else
|
||||
#ifdef HOST_NAME_MAX
|
||||
char buf[HOST_NAME_MAX + 1];
|
||||
#else
|
||||
char buf[256];
|
||||
#endif
|
||||
if (gethostname(buf, sizeof(buf)) != 0) {
|
||||
+#endif
|
||||
return Sinteger(c_errno());
|
||||
}
|
||||
return schemesh_Sstring_utf8b(buf, -1);
|
Loading…
Add table
Reference in a new issue