unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Maxime Devos <maximedevos@telenet.be>
To: Nicolas Graves <ngraves@ngraves.fr>, 57387@debbugs.gnu.org
Subject: [bug#57387] [PATCH] gnu: Add restartd.
Date: Wed, 24 Aug 2022 20:09:07 +0200	[thread overview]
Message-ID: <31ad9b2c-6bfe-c472-0ba2-ad14d689ef1d@telenet.be> (raw)
In-Reply-To: <87czcp8wet.fsf@ngraves.fr>


[-- Attachment #1.1.1: Type: text/plain, Size: 1612 bytes --]

On 24-08-2022 17:59, Nicolas Graves via Guix-patches via wrote:

> +         (revision "1.1"))

"1.1" -> "1" ('revision' must be a string with a number, as expected by 
https://issues.guix.gnu.org/53144).

Also, why is an unreleased version used? I assume because of lack of 
activity upstream, but a comment would have been useful.

> +                (substitute* "Makefile"
> +                  (("CC \\?= gcc") "CC = gcc"))))
For cross-compilation, use (cc-for-target)

According to Debian, the home-page is 
<https://github.com/ajraymond/restartd>.

Looking at some source files, it appears to be gpl2-or-later, not gpl2-only.

In restartd.c, it is missing error checking for 'fopen', 'malloc' and 
'strdup'.

in config.c, it is missing error checking for 'malloc'  (and for printf 
on stderr, but there isn't much that can be odone in that case). Also 
printf on stdout, though less important.

On the patches: IIUC, in case additional commits are added to the PR, 
the patch is updated appropriately, so these patches are volatile. Even 
if that doesn't happen, the patch generation algorithm could change 
later. As such, copying these into gnu/packages/patches + search-pathes 
is recommended

> You can execute a script or a program if the process is or is not running.
Maybe: 'The daemon runs an user-provided script based once a program 
starts running or stops running.' That seems a little clearer English to 
me ('it is running or not running' is always true, and scripts / 
programs can be run, but it's not a claim about restartd).

Greetings,
Maxime.


[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 929 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 236 bytes --]

  reply	other threads:[~2022-08-24 18:13 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-24 15:59 [bug#57387] [PATCH] gnu: Add restartd Nicolas Graves via Guix-patches via
2022-08-24 18:09 ` Maxime Devos [this message]
2022-08-24 18:14   ` ( via Guix-patches via
2022-08-25  9:14 ` Nicolas Graves via Guix-patches via
2022-08-25  9:16 ` Nicolas Graves via Guix-patches via
2022-08-25 10:34   ` Maxime Devos
2022-08-25 11:33   ` Maxime Devos
2022-08-26  7:32 ` Nicolas Graves via Guix-patches via
2022-08-26 14:03   ` Maxime Devos
2022-08-26 16:57     ` Nicolas Graves via Guix-patches via
2022-08-26 19:07       ` Maxime Devos
2022-08-26 22:16 ` Nicolas Graves via Guix-patches via
2022-08-28 17:38   ` Maxime Devos
2022-09-11 14:53   ` Mathieu Othacehe
2022-09-11 18:13     ` Nicolas Graves via Guix-patches via
2022-09-12  7:36       ` Mathieu Othacehe
2022-09-13  8:45         ` Nicolas Graves via Guix-patches via
2022-09-14  7:48   ` Mathieu Othacehe
2024-02-03 14:07     ` Nicolas Graves via Guix-patches via
2024-02-03 13:36 ` [bug#57387] [PATCH v2] " Nicolas Graves via Guix-patches via
2024-02-03 14:06 ` [bug#57387] [PATCH v3] " Nicolas Graves via Guix-patches via
2024-02-18 14:54   ` bug#57387: " Ludovic Courtès
     [not found] <87edvu1hy9.fsf@ngraves.fr>
2022-09-29 13:14 ` [bug#57387] [PATCH] " Nicolas Graves via Guix-patches via

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=31ad9b2c-6bfe-c472-0ba2-ad14d689ef1d@telenet.be \
    --to=maximedevos@telenet.be \
    --cc=57387@debbugs.gnu.org \
    --cc=ngraves@ngraves.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).