[LON-CAPA-cvs] cvs: doc /install/linux install.pl

raeburn raeburn at source.lon-capa.org
Fri Apr 26 18:22:52 EDT 2024


raeburn		Fri Apr 26 22:22:52 2024 EDT

  Modified files:              
    /doc/install/linux	install.pl 
  Log:
  - Support Fedora 40
    Patch pwauth.c before compiling pwauth to eliminate warnings
    (builtin-declaration-mismatch) and errors (implicit-function-declaration 
    and implicit-int errors). 
  
  
Index: doc/install/linux/install.pl
diff -u doc/install/linux/install.pl:1.84 doc/install/linux/install.pl:1.85
--- doc/install/linux/install.pl:1.84	Wed Apr 24 23:17:48 2024
+++ doc/install/linux/install.pl	Fri Apr 26 22:22:52 2024
@@ -78,7 +78,7 @@
           &mt('Stopping execution.')."\n";
     exit;
 } else {
-    print LOG '$Id: install.pl,v 1.84 2024/04/24 23:17:48 raeburn Exp $'."\n";
+    print LOG '$Id: install.pl,v 1.85 2024/04/26 22:22:52 raeburn Exp $'."\n";
 }
 
 #
@@ -2469,6 +2469,29 @@
 > #define SERVER_UIDS $num		/* user "www" */
 ENDPATCH
 
+    my $patch_code = <<"ENDPATCH";
+127a128
+> #include <string.h>
+214a216
+> #include <time.h>
+566c568
+< check_fails()
+---
+> int check_fails()
+589c591           
+< log_failure()   
+---               
+> void log_failure() 
+629c631           
+< snooze(int seconds)
+---               
+> void snooze(int seconds)
+653c655           
+< main(int argc, char **argv)
+---               
+> int main(int argc, char **argv)
+ENDPATCH
+
     if (! -e "/usr/bin/patch") {
 	print_and_log(&mt('You must install the software development tools package: [_1], when installing Linux.',"'patch'")."\n");
         print_and_log(&mt('Authentication installation not completed.')."\n");
@@ -2479,9 +2502,17 @@
         return;
     }
     my $dir = "/tmp/pwauth-2.2.8";
+    my $patchedok;
     if (open(PATCH,"| patch $dir/config.h")) {
         print PATCH $patch;
         close(PATCH);
+        if (open(PATCH,"| patch $dir/pwauth.c")) {
+            print PATCH $patch_code;
+            close(PATCH);
+            $patchedok = 1;
+        }
+    }
+    if ($patchedok) {
         print_and_log("\n");
         ##
         ## Compile patched pwauth




More information about the LON-CAPA-cvs mailing list