Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package hare-libnotify-tools for
openSUSE:Factory checked in at 2025-07-26 13:41:32
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/hare-libnotify-tools (Old)
and /work/SRC/openSUSE:Factory/.hare-libnotify-tools.new.13279 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "hare-libnotify-tools"
Sat Jul 26 13:41:32 2025 rev:3 rq:1295887 version:1.0.1
Changes:
--------
---
/work/SRC/openSUSE:Factory/hare-libnotify-tools/hare-libnotify-tools.changes
2025-01-27 20:57:05.615182666 +0100
+++
/work/SRC/openSUSE:Factory/.hare-libnotify-tools.new.13279/hare-libnotify-tools.changes
2025-07-26 13:42:01.486956889 +0200
@@ -1,0 +2,11 @@
+Sat Jul 26 02:50:52 UTC 2025 - Soc Virnyl Estela
<[email protected]>
+
+- Set hare version to 0.25.2
+
+-------------------------------------------------------------------
+Sat Jul 26 02:44:07 UTC 2025 - Soc Virnyl Estela
<[email protected]>
+
+- Update to version 1.0.1:
+ * fix: handle `nomem` with `!`
+
+-------------------------------------------------------------------
Old:
----
1.0.0.tar.gz
New:
----
1.0.1.tar.gz
_scmsync.obsinfo
build.specials.obscpio
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ hare-libnotify-tools.spec ++++++
--- /var/tmp/diff_new_pack.0PFrbI/_old 2025-07-26 13:42:02.130983407 +0200
+++ /var/tmp/diff_new_pack.0PFrbI/_new 2025-07-26 13:42:02.130983407 +0200
@@ -22,10 +22,10 @@
License: MPL-2.0
Summary: Hare clone of the notify-send tool
URL: https://git.sr.ht/~uncomfy/hare-libnotify
-Version: 1.0.0
+Version: 1.0.1
Release: 0
Source0:
https://git.sr.ht/~uncomfy/hare-libnotify/archive/%{version}.tar.gz
-BuildRequires: hare
+BuildRequires: hare >= 0.25.2
BuildRequires: hare-libnotify = %{version}
BuildRequires: make
BuildRequires: pkgconfig(libnotify)
++++++ 1.0.0.tar.gz -> 1.0.1.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/hare-libnotify-1.0.0/README.md
new/hare-libnotify-1.0.1/README.md
--- old/hare-libnotify-1.0.0/README.md 2024-10-27 07:05:40.000000000 +0100
+++ new/hare-libnotify-1.0.1/README.md 2025-07-26 04:20:44.000000000 +0200
@@ -11,5 +11,5 @@
# Dependencies
- a c compiler e.g. `clang` or `gcc`.
-- a harelang installation
+- a harelang installation (version 0.25.2)
- a development package install of `libnotify` and its own dependencies.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/hare-libnotify-1.0.0/cmd/notify-send.ha
new/hare-libnotify-1.0.1/cmd/notify-send.ha
--- old/hare-libnotify-1.0.0/cmd/notify-send.ha 2024-10-27 07:05:40.000000000
+0100
+++ new/hare-libnotify-1.0.1/cmd/notify-send.ha 2025-07-26 04:20:44.000000000
+0200
@@ -4,7 +4,7 @@
use fmt;
use types::c;
-export const HARE_NOTIFY_VERSION = "1.0.0";
+export const HARE_NOTIFY_VERSION = "1.0.1";
export const MINIMUM_NUMBER_OF_ARGUMENTS = 1;
export fn main() void = {
@@ -77,7 +77,7 @@
{
fmt::fatalf("Invalid arguments for app
name");
};
- app_name = strings::concat(app_name,
maybe_flag_value);
+ app_name = strings::concat(app_name,
maybe_flag_value)!;
got_app_name += 1;
} else
if (got_icon == 1) {
@@ -91,7 +91,7 @@
{
fmt::fatalf("Invalid arguments for
icon");
};
- icon = strings::concat(icon, maybe_flag_value);
+ icon = strings::concat(icon, maybe_flag_value)!;
got_icon += 1;
} else {
if (maybe_flag_value == "-u"
@@ -105,10 +105,10 @@
fmt::fatalf("Invalid arguments");
};
if (got_summary == 0) {
- summary = strings::concat(summary,
maybe_flag_value);
+ summary = strings::concat(summary,
maybe_flag_value)!;
} else
if (got_summary == 1) {
- body = strings::concat(body,
maybe_flag_value);
+ body = strings::concat(body,
maybe_flag_value)!;
} else
if (got_summary > 1) {
fmt::fatalf("Invalid arguments");
@@ -124,9 +124,15 @@
fmt::fatalf("No summary specified.");
};
if (app_name == "") {
- app_name = strings::concat(app_name, "notify-send");
+ app_name = strings::concat(app_name, "notify-send")!;
};
+ // TODO: add null terminator
+ app_name = strings::concat(app_name, "\0")!;
+ summary = strings::concat(summary, "\0")!;
+ body = strings::concat(body, "\0")!;
+ icon = strings::concat(icon, "\0")!;
+
notify_send(app_name, summary, body, icon, urgency);
};
@@ -166,19 +172,13 @@
icon : str,
urgency : libnotify::NotifyUrgency,
) void = {
- let app_name = c::fromstr(app_name);
- let summary = c::fromstr(summary);
- let body = c::fromstr(body);
- let icon = c::fromstr(icon);
-
- libnotify::notify_init(app_name);
- const notification = libnotify::notify_notification_new(summary, body,
icon);
+ let c_app_name = c::fromstr(app_name)!;
+ let c_summary = c::fromstr(summary)!;
+ let c_body = c::fromstr(body)!;
+ let c_icon = c::fromstr(icon)!;
+ libnotify::notify_init(c_app_name);
+ const notification = libnotify::notify_notification_new(c_summary,
c_body, c_icon);
libnotify::notify_notification_set_urgency(notification, urgency);
libnotify::notify_notification_show(notification, null);
libnotify::notify_uninit();
- free(app_name);
- free(summary);
- free(body);
- free(icon);
- free(notification);
};
++++++ _scmsync.obsinfo ++++++
mtime: 1753498266
commit: 4c8274d0318c8a8e200b2807f505aae63a365acdb682a85f710c3750f3283d15
url: https://src.opensuse.org/hare/hare-libnotify-tools.git
revision: 4c8274d0318c8a8e200b2807f505aae63a365acdb682a85f710c3750f3283d15
projectscmsync: https://src.opensuse.org/hare/_ObsPrj.git