Files
haikuports/sys-process/at/patches/at-3.2.5.patchset
augiedoggie 29c3b67529 at: add recipe for 3.2.5 (#10385)
The recipe needs the post-install script to fix directory and executable
permissions, similar to the `dma` recipe.
2024-04-30 17:48:19 -06:00

85 lines
2.1 KiB
Plaintext

From 1ee9f9d74dbd48544f3875e63152171bf23a8562 Mon Sep 17 00:00:00 2001
From: Chris Roberts <cpr420@gmail.com>
Date: Sun, 28 Apr 2024 22:13:12 -0600
Subject: disable pam since it causes problems
diff --git a/configure.ac b/configure.ac
index 073bc9f..a143109 100644
--- a/configure.ac
+++ b/configure.ac
@@ -95,10 +95,10 @@ dnl Checks for library functions.
AC_FUNC_VPRINTF
AC_FUNC_GETLOADAVG
AC_CHECK_FUNCS(getcwd mktime strftime setreuid setresuid sigaction waitpid)
-AC_CHECK_HEADERS(security/pam_appl.h, [
- PAMLIB="-lpam"
- AC_DEFINE(HAVE_PAM, 1, [Define to 1 for PAM support])
-])
+dnl AC_CHECK_HEADERS(security/pam_appl.h, [
+dnl PAMLIB="-lpam"
+dnl AC_DEFINE(HAVE_PAM, 1, [Define to 1 for PAM support])
+dnl ])
dnl Checking for programs
--
2.43.2
From ee9edcf456e61418faa7686a030bc7f040a6bd1b Mon Sep 17 00:00:00 2001
From: Chris Roberts <cpr420@gmail.com>
Date: Sun, 28 Apr 2024 22:14:01 -0600
Subject: use symlinks on Haiku
diff --git a/atd.c b/atd.c
index f3d85b0..6f5062b 100644
--- a/atd.c
+++ b/atd.c
@@ -322,7 +322,7 @@ run_file(const char *filename, uid_t uid, gid_t gid)
* fact and return.
*/
PRIV_START
- rc = link(filename, newname);
+ rc = symlink(filename, newname);
PRIV_END
if (rc == -1) {
syslog(LOG_WARNING, "could not lock job %lu: %m", jobno);
@@ -418,7 +418,8 @@ run_file(const char *filename, uid_t uid, gid_t gid)
* original.
*/
- unlink(filename);
+ unlink(newname);
+ rename(filename, newname);
fclose(stream);
if (chdir(ATSPOOL_DIR) < 0)
--
2.43.2
From 80de4567597c442f5c923fef66babd5635d51cb0 Mon Sep 17 00:00:00 2001
From: Chris Roberts <cpr420@gmail.com>
Date: Sun, 28 Apr 2024 22:43:26 -0600
Subject: respect docdir flag
diff --git a/Makefile.in b/Makefile.in
index 4ae194f..a814c1b 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -14,7 +14,7 @@ atdatadir = $(datadir)/at
man1dir = $(mandir)/man1
man5dir = $(mandir)/man5
man8dir = $(mandir)/man8
-docdir = $(prefix)/doc
+docdir = @docdir@
atdocdir = $(docdir)/at
etcdir = @ETCDIR@
atjobdir = @ATJBD@
--
2.43.2