David Leverton writes about adventure/crc.c: The 'adventure' game from the games-misc/bsd-games-2.13 package crashes when saving the game on AMD64 (and probably other 64-bit systems, but I haven't checked). Find attached to fix this. http://bugs.gentoo.org/show_bug.cgi?id=77032 About utmpentry.c: the utmpx structure defines the ut_tv member a little differently on 64bit hosts so that a 32bit and 64bit structure can be shared. So the ut_tv is a custom 32bit structure rather than the native 64bit timeval structure. Work around is to assign the submembers instead. http://bugs.gentoo.org/show_bug.cgi?id=102667 --- bsd-games/adventure/crc.c +++ bsd-games/adventure/crc.c @@ -134,7 +134,8 @@ if (step >= sizeof(crctab) / sizeof(crctab[0])) step = 0; } - crcval = (crcval << 8) ^ crctab[i]; + /* Mask to 32 bits. */ + crcval = ((crcval << 8) ^ crctab[i]) & 0xffffffff; } - return crcval & 0xffffffff; /* Mask to 32 bits. */ + return crcval; } --- bsd-games/dm/utmpentry.c +++ bsd-games/dm/utmpentry.c @@ -291,7 +291,8 @@ e->line[sizeof(e->line) - 1] = '\0'; (void)strncpy(e->host, up->ut_host, sizeof(up->ut_host)); e->name[sizeof(e->host) - 1] = '\0'; - e->tv = up->ut_tv; + e->tv.tv_sec = up->ut_tv.tv_sec; + e->tv.tv_usec = up->ut_tv.tv_usec; adjust_size(e); } #endif 074a533d8abf00488'>treecommitdiff
path: root/gnu/services/shepherd.scm
AgeCommit message (Expand)Author
2024-06-26services: shepherd: Support “free-form” services....* gnu/services/shepherd.scm (<shepherd-service>)[free-form]: New field. [start]: Add default value. (shepherd-service-file): Rename to… (shepherd-service-file/regular): … this. (shepherd-service-file/free-form): New procedure. (shepherd-service-file): Dispatch to one of the two procedures above. * doc/guix.texi (Shepherd Services): Document the ‘free-form’ field. Reviewed-by: Maxim Cournoyer <maxim.cournoyer@gmail.com> Change-Id: I206374e950ef6d1e4a996c0f507fb5fcd9cadde3 Ludovic Courtès
2024-05-25services: shepherd: Failure to load a service does not prevent booting....Fixes <https://issues.guix.gnu.org/71144>. Fixes a bug whereby, when loading a service file would fail, for instance due to an unbound variable, a REPL would be opened on the console, preventing the system from booting. This fixes that by isolating service load errors and making them non-fatal. * gnu/services/shepherd.scm (shepherd-configuration-file)[config]: Remove call to ‘call-with-error-handling’. Use ‘filter-map’ instead of ‘map’ to iterate over service files, and catch exceptions raised by ‘load-compiled’. Change-Id: Ie6e76ea514837f85386232f797bc77b2882b5c22 Ludovic Courtès
2024-03-21services: shepherd: Load each service file in a fresh module....Fixes <https://issues.guix.gnu.org/67649>. * gnu/home/services/shepherd.scm (home-shepherd-configuration-file)[config]: Define ‘make-user-module’. Call ‘load’ in ‘save-module-excursion’. * gnu/services/shepherd.scm (shepherd-configuration-file): Likewise. Reported-by: Attila Lendvai <attila@lendvai.name> Change-Id: I7df11c81b5bbbf2b24a8daa02502a000e0826fe0 Ludovic Courtès
2024-01-28services: shepherd: Add respawn-limit and respawn-delay....* gnu/services/shepherd.scm (<shepherd-service>): Add respawn-limit and respawn-delay. (shepherd-service-file): Emit the two values into the shepherd service constructor form. Change-Id: I54408e8fb4bcc0956d9610771bf5c566fdc2914c Signed-off-by: Ludovic Courtès <ludo@gnu.org> Attila Lendvai
2024-01-08services: shepherd: Use the 0.10.x GOOPS-less interface....* gnu/services/shepherd.scm (%default-modules): Remove (oop goops). (shepherd-service-file): Use (service …) instead of (make <service> …). Use ‘actions’ instead of ‘make-actions’. (scm->go): Remove use of (oop goops). (shepherd-configuration-file): Pass ‘register-services’ a list. Use ‘start-in-the-background’ unconditionally. Change-Id: I0ad1ba32e339c56ee31e59f160b53d3581277d97