Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37843337
en ru br
ALT Linux repos
S:5.2.0-alt1_13
5.0: 0.9.21.2-alt2
3.0: 0.8.10-alt1

Group :: System/Libraries
RPM: libprelude

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: libprelude-5.2.0-fix_libprelude-error_on_gnu.patch
Download


Description: Fix libprelude-error compilation on hurd-i386
Author: Thomas Andrejak <thomas.andrejak@gmail.com>
Last-Update: 2017-06-22
Forwarded: https://www.prelude-siem.org/issues/893
--- libprelude-3.1.0/src/libprelude-error/mkerrcodes.awk	2016-09-15 02:49:10.806000884 -0400
+++ libprelude-3.1.0/src/libprelude-error/mkerrcodes.awk	2017-06-24 10:17:40.419430220 -0400
@@ -62,7 +62,7 @@
 /^#/ { next; }
 
 header {
-  if ($0 ~ /^[ \t]*[0-9]+/)
+  if ($0 ~ /^[ \t]*[0-9]+/ || $0 ~ /^[ \t]*[(].*[)][ \tA-Za-z_0-9]*$/)
     {
       header = 0;
 
@@ -84,7 +84,10 @@
   if (/^$/)
     next;
 
-  print "  { " $1 ", \"" $2 "\" },";
+  nfbak=$NF;
+  $NF="";
+
+  print "  { " $0 ", \"" nfbak "\" },";
 }
 
 END {
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin