Skip to Content.
Sympa Menu

sm-commit - [[SM-Commit] ] GIT changes to master grimoire by Ismael Luceno (a42f3b7a187d3f125ed027868e66ab346616411e)

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: Ismael Luceno <scm AT sourcemage.org>
  • To: sm-commit AT lists.ibiblio.org, sm-commit AT lists.sourcemage.org
  • Subject: [[SM-Commit] ] GIT changes to master grimoire by Ismael Luceno (a42f3b7a187d3f125ed027868e66ab346616411e)
  • Date: Wed, 12 Jun 2024 13:40:25 +0000

GIT changes to master grimoire by Ismael Luceno <ismael AT sourcemage.org>:

ChangeLog | 5
devel/hare/BUILD | 4
devel/hare/DEPENDS | 3
devel/hare/DETAILS | 18 +
devel/hare/HISTORY | 3
devel/hare/PRE_BUILD | 3
devel/hare/patches/0001-std-fix-some-low-hanging-memory-leaks.patch | 97
++++++++++
devel/harec/DETAILS | 1
libs/tzdata/DETAILS | 1
libs/tzdata/HISTORY | 4
libs/tzdata/INSTALL | 5
11 files changed, 142 insertions(+), 2 deletions(-)

New commits:
commit a42f3b7a187d3f125ed027868e66ab346616411e
Author: Ismael Luceno <ismael AT sourcemage.org>
Commit: Ismael Luceno <ismael AT sourcemage.org>

ChangeLog: Fix typo

commit 8789891ccf19980f07fce8ed75f2aa7eefc5f0cb
Author: Ismael Luceno <ismael AT sourcemage.org>
Commit: Ismael Luceno <ismael AT sourcemage.org>

hare: new spell, The Hare programming language standard library

commit 2d8b40d03b1f1e7459bd75a74bfe755cbbc3cbc0
Author: Ismael Luceno <ismael AT sourcemage.org>
Commit: Ismael Luceno <ismael AT sourcemage.org>

tzdata: Install leap-seconds.list, PATCHLEVEL++

commit f9eba959e802a6c6e173479052ad96ca3562a882
Author: Ismael Luceno <ismael AT sourcemage.org>
Commit: Ismael Luceno <ismael AT sourcemage.org>

harec: Add Watch line

diff --git a/ChangeLog b/ChangeLog
index ed58f43..1e9f181 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,6 @@
+2024-06-12 Ismael Luceno <ismael AT sourcemage.org>
+ * devel/hare: new spell, The Hare standard library
+
2024-06-11 Ismael Luceno <ismael AT sourcemage.org>
* devel/shfmt: new spell, shfmt formats shell programs

@@ -110,7 +113,7 @@
* alt-kde/*: deleted, to be replaced by qt6/kde6 based version

2024-02-24 Treeve Jelbert <treeve AT sourcemage.org>
- * ibs/utfcpp: added, UTF-8 with C++ in a Portable Way
+ * libs/utfcpp: added, UTF-8 with C++ in a Portable Way

2024-02-18 Treeve Jelbert <treeve AT sourcemage.org>
* FUNCTIONS CMAKE_FUNCTIONS: tweak build dir, fixes jasper
diff --git a/devel/hare/BUILD b/devel/hare/BUILD
new file mode 100755
index 0000000..4ec83b7
--- /dev/null
+++ b/devel/hare/BUILD
@@ -0,0 +1,4 @@
+sed "
+ /^PREFIX *=/ s@=.*@= $INSTALL_ROOT/usr@
+" configs/linux.mk > config.mk &&
+make all check
diff --git a/devel/hare/DEPENDS b/devel/hare/DEPENDS
new file mode 100755
index 0000000..4c58261
--- /dev/null
+++ b/devel/hare/DEPENDS
@@ -0,0 +1,3 @@
+depends harec &&
+depends qbe &&
+depends scdoc
diff --git a/devel/hare/DETAILS b/devel/hare/DETAILS
new file mode 100755
index 0000000..d7bee6a
--- /dev/null
+++ b/devel/hare/DETAILS
@@ -0,0 +1,18 @@
+# Watch: https://git.sr.ht/~sircmpwn/hare/refs archive/([0-9.]+)[.]tar
+ SPELL=hare
+ VERSION=0.24.0
+ SOURCE="$SPELL-$VERSION.tar.gz"
+ SOURCE_URL[0]=https://git.sr.ht/~sircmpwn/$SPELL/archive/$VERSION.tar.gz
+
SOURCE_HASH=sha512:d7b96bc031d432e0ca0a9186a043d4cd4af4d4b57be5ce4b913d6acd26cdb708d8c9ad8e2c64c78c192a11a96977d3e916985a548238591b3c4d177b9cc811d9
+SOURCE_DIRECTORY="$BUILD_DIRECTORY/${SOURCE%.tar.gz}"
+ WEB_SITE="https://harelang.org/";
+ LICENSE[0]="GPL-3.0-only"
+ ENTERED=20240221
+ KEYWORDS=""
+ SHORT="The Hare standard library"
+cat << EOF
+This is the Hare standard library. For a guided introduction to the standard
+library, see the tutorial:
+
+https://harelang.org/tutorials/stdlib
+EOF
diff --git a/devel/hare/HISTORY b/devel/hare/HISTORY
new file mode 100644
index 0000000..163014c
--- /dev/null
+++ b/devel/hare/HISTORY
@@ -0,0 +1,3 @@
+2024-06-12 Ismael Luceno <ismael AT sourcemage.org>
+ * BUILD, DEPENDS, DETAILS, PRE_BUILD,
+ 0001-std-fix-some-low-hanging-memory-leaks.patch: spell created
diff --git a/devel/hare/PRE_BUILD b/devel/hare/PRE_BUILD
new file mode 100755
index 0000000..c230ad1
--- /dev/null
+++ b/devel/hare/PRE_BUILD
@@ -0,0 +1,3 @@
+default_pre_build &&
+cd "$SOURCE_DIRECTORY" &&
+apply_patch_dir patches
diff --git
a/devel/hare/patches/0001-std-fix-some-low-hanging-memory-leaks.patch
b/devel/hare/patches/0001-std-fix-some-low-hanging-memory-leaks.patch
new file mode 100644
index 0000000..2995506
--- /dev/null
+++ b/devel/hare/patches/0001-std-fix-some-low-hanging-memory-leaks.patch
@@ -0,0 +1,97 @@
+From d9962de8edaa5d641830e0c6e2037bce86347165 Mon Sep 17 00:00:00 2001
+From: Mykyta Holubakha <hilobakho AT gmail.com>
+Date: Wed, 29 May 2024 19:16:28 +0300
+Subject: [PATCH] std: fix some low-hanging memory leaks
+
+Origin: Upstream
+Upstream-Status: Backport [commit e6b95a90c0c9c863a40b2d6201d18a99d79600cf]
+Signed-off-by: Ismael Luceno <ismael AT sourcemage.org>
+---
+ net/uri/parse.ha | 4 ++++
+ regex/regex.ha | 2 ++
+ time/chrono/timescale.ha | 7 +++++++
+ 3 files changed, 13 insertions(+)
+
+diff --git a/net/uri/parse.ha b/net/uri/parse.ha
+index 74c390c9bfd4..03c1fde3ba45 100644
+--- a/net/uri/parse.ha
++++ b/net/uri/parse.ha
+@@ -91,6 +91,7 @@ export fn parse(in: str) (uri | invalid) = {
+ case let s: str =>
+ yield match (ip::parse(s)) {
+ case let a: ip::addr =>
++ free(s);
+ yield a;
+ case ip::invalid =>
+ yield s;
+@@ -167,6 +168,7 @@ fn parse_authority(
+ };
+
+ const addr = percent_decode(memio::string(&buf)!)?;
++ defer free(addr);
+ match (ip::parse(addr)) {
+ case let v6: ip::addr6 =>
+ host = v6;
+@@ -363,6 +365,7 @@ fn percent_decode_static(out: io::handle, s: str) (void
| invalid) = {
+ return invalid;
+ };
+
++ free(percent_data);
+ percent_data = [];
+ };
+
+@@ -377,6 +380,7 @@ fn percent_decode_static(out: io::handle, s: str) (void
| invalid) = {
+ return invalid;
+ };
+
++ free(percent_data);
+ percent_data = [];
+ };
+
+diff --git a/regex/regex.ha b/regex/regex.ha
+index 5d4792cd9e7b..bbdbb60ca842 100644
+--- a/regex/regex.ha
++++ b/regex/regex.ha
+@@ -909,6 +909,7 @@ fn parse_replace_target(targetstr: str) ([]([]u8 | size)
| error) = {
+
+ const r = match (strings::next(&iter)) {
+ case void =>
++ free(target);
+ return "Trailing backslash": error;
+ case let r: rune =>
+ yield r;
+@@ -919,6 +920,7 @@ fn parse_replace_target(targetstr: str) ([]([]u8 | size)
| error) = {
+ } else if (ascii::isdigit(r)) {
+ append(target, r: u32: size - 0x30);
+ } else {
++ free(target);
+ return "Backslash must be followed by
positive decimal number or a backslash": error;
+ };
+
+diff --git a/time/chrono/timescale.ha b/time/chrono/timescale.ha
+index 71c0007f78c5..d3b9ba504411 100644
+--- a/time/chrono/timescale.ha
++++ b/time/chrono/timescale.ha
+@@ -553,6 +553,10 @@ fn mtc_convfrom(ts: *timescale, i: time::instant)
([]time::instant | void) = {
+ },
+ ));
+ };
++ if (actual is []time::instant) {
++ free(actual as []time::instant);
++ };
++
+ };
+ };
+
+@@ -649,5 +653,8 @@ fn mtc_convfrom(ts: *timescale, i: time::instant)
([]time::instant | void) = {
+ },
+ ));
+ };
++ if (actual is []time::instant) {
++ free(actual as []time::instant);
++ };
+ };
+ };
+--
+2.44.0
+
diff --git a/devel/harec/DETAILS b/devel/harec/DETAILS
index a567223..3be6cb6 100755
--- a/devel/harec/DETAILS
+++ b/devel/harec/DETAILS
@@ -1,3 +1,4 @@
+# Watch: https://git.sr.ht/~sircmpwn/harec/refs archive/([0-9.]+)[.]tar
SPELL=harec
VERSION=0.24.0
SOURCE="$SPELL-$VERSION.tar.gz"
diff --git a/libs/tzdata/DETAILS b/libs/tzdata/DETAILS
index b1ec559..29c0fd7 100755
--- a/libs/tzdata/DETAILS
+++ b/libs/tzdata/DETAILS
@@ -1,5 +1,6 @@
SPELL=tzdata
VERSION=2024a
+ PATCHLEVEL=1
SOURCE="${SPELL}${VERSION}.tar.gz"
SOURCE2=$SOURCE.asc
# Watch: https://data.iana.org/time-zones/releases/ tzdata([0-9]+[a-z])[.]tar
diff --git a/libs/tzdata/HISTORY b/libs/tzdata/HISTORY
index d99795b..4d46468 100644
--- a/libs/tzdata/HISTORY
+++ b/libs/tzdata/HISTORY
@@ -1,3 +1,7 @@
+2024-06-12 Ismael Luceno <ismael AT sourcemage.org>
+ * INSTALL: added leap-seconds.list to install (used by hare std lib)
+ * DETAILS: PATCHLEVEL++
+
2024-02-19 Treeve Jelbert <treeve AT sourcemage.org>
* DETAILS: version 2024a

diff --git a/libs/tzdata/INSTALL b/libs/tzdata/INSTALL
index dda6c55..de955b3 100755
--- a/libs/tzdata/INSTALL
+++ b/libs/tzdata/INSTALL
@@ -18,7 +18,10 @@ zic -d "${INSTALL_ROOT}/usr/share/zoneinfo/right" -L
leapseconds ${TIMEZONES[@]
#If you want POSIX compatibility, use "America/New_York".
zic -d "${INSTALL_ROOT}/usr/share/zoneinfo" -p America/New_York
&&

-install -m444 -t "${INSTALL_ROOT}/usr/share/zoneinfo" iso3166.tab zone.tab &&
+install -m444 -t "${INSTALL_ROOT}/usr/share/zoneinfo" \
+ iso3166.tab \
+ leap-seconds.list \
+ zone.tab &&

if [ $SET_LOCALTIME == "y" ]; then
if [ -z "$LOCAL_TIMEZONE" ]; then


  • [[SM-Commit] ] GIT changes to master grimoire by Ismael Luceno (a42f3b7a187d3f125ed027868e66ab346616411e), Ismael Luceno, 06/12/2024

Archive powered by MHonArc 2.6.24.

Top of Page