Skip to content

Conversation

@yarda
Copy link

@yarda yarda commented Jan 31, 2024

gcc-14 is in Fedora Rawhide (f40). There are more things to fix, but with this patch it compiles in f40 with default CFLAGS.

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
gabifalk added a commit to gabifalk/gentoo that referenced this pull request May 19, 2024
Added the patch from the upstream pull request (thanks to
Jaroslav Škarvada).

Link: BuGlessRB/procmail#7
Fixes: https://bugs.gentoo.org/919024
Signed-off-by: Gabi Falk <gabifalk@gmx.com>
gabifalk added a commit to gabifalk/gentoo that referenced this pull request May 19, 2024
Added the patch from the upstream pull request (thanks to
Jaroslav Škarvada).

Link: BuGlessRB/procmail#7
Closes: https://bugs.gentoo.org/919024
Signed-off-by: Gabi Falk <gabifalk@gmx.com>
gentoo-bot pushed a commit to gentoo/gentoo that referenced this pull request May 22, 2024
Added the patch from the upstream pull request (thanks to
Jaroslav Škarvada).

Link: BuGlessRB/procmail#7
Closes: https://bugs.gentoo.org/919024
Signed-off-by: Gabi Falk <gabifalk@gmx.com>
Closes: #36747
Signed-off-by: Sam James <sam@gentoo.org>
@ArneBab
Copy link

ArneBab commented Jul 29, 2025

Without the moved code, the change to src/autoconf is this:

diff -u --label \#\<buffer\ guix-build-procmail-3.22.drv-0/autoconf\> --label \#\<buffer\ guix-build-procmail-3.22.drv-1/autoconf\> /tmp/buffer-content-sHksph /tmp/buffer-content-1e8jf1
--- #<buffer guix-build-procmail-3.22.drv-0/autoconf>
+++ #<buffer guix-build-procmail-3.22.drv-1/autoconf>
@@ -363,6 +363,7 @@
 #include <unistd.h>		/* getpid() getppid() */
 #endif
 #include <stdio.h>
+#include <stdlib.h>
 #include <time.h>
 #include <fcntl.h>
 #include <signal.h>		/* SIGKILL */
@@ -437,7 +438,7 @@
   return pid;
 }
 
-int main(argc,argv)char*argv[];
+int main(argc,argv)int argc;char*argv[];
 { int goodlock,testlock,i,pip[2],pipw[2];time_t otimet;unsigned dtimet;
   static char filename[]="_locktst.l0";
   close(0);goodlock=0;testlock=FIRST_lock;signal(SIGPIPE,SIG_DFL);
@@ -587,13 +588,13 @@
   return 0;
 }
 
-int sfdlock(fd)
+int sfdlock(int fd)
 { int i;unsigned gobble[GOBBLE>>2];
   for(i=GOBBLE>>2;i;gobble[--i]=~(unsigned)0);		 /* SunOS crash test */
   return fdlock(fd);
 }
 
-static oldfdlock;
+static int oldfdlock;
 #ifdef F_SETLKW
 static struct flock flck;		/* why can't it be a local variable? */
 #endif
@@ -601,7 +602,7 @@
 static off_t oldlockoffset;
 #endif
 
-int fdlock(fd)
+int fdlock(int fd)
 { int i;unsigned gobble[GOBBLE>>2];
   for(i=GOBBLE>>2;i;gobble[--i]=~(unsigned)0);		 /* SunOS crash test */
   oldfdlock=fd;fd=0;
@@ -658,6 +659,7 @@
      for(i=GOBBLE;i&&gobble[--i]==~(unsigned)0;);
   return i;
 }
+
 HERE
 
 if $MAKE _autotst >_autotst.rrr 2>&1
@@ -1033,6 +1035,10 @@
 #ifndef NO_COMSAT
 #include "network.h"
 #endif
+#include <string.h>
+#include <unistd.h>
+int setrgid();
+int setresgid();
 int main(){char a[2];
  endpwent();endgrent();memmove(a,"0",1);bcopy("0",a,1);strcspn(a,"0");
  strtol("0",(char**)0,10);strchr("0",'0');strpbrk(a,"0");rename(a,"0");
@@ -1059,7 +1065,7 @@
 echo '	rename, setrgid, setegid, pow, opendir, mkdir, waitpid, fsync,'
 echo '	ftruncate, strtod, strncasecmp, strerror, strlcat,'
 echo '	memset, bzero, and _exit'
-if $MAKE _autotst.$O >$DEVNULL 2>&1
+if $MAKE _autotst.$O >_autotst.rrr 2>&1
 then
 :
 else

Diff finished.  Tue Jul 29 09:00:31 2025

So this looks good to me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants