aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/patches/guile-1.8-cpp-4.5.patch
blob: 638d071bafce55257670c9123e219c6d3ad22aae (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Fix doc snarfing with GCC 4.5+.
From <http://git.savannah.gnu.org/cgit/guile.git/commit/?h=branch_release-1-8&id=aac41d28358cea594bb30f6e547afb82bb6004a6>.

diff --git a/scripts/snarf-check-and-output-texi b/scripts/snarf-check-and-output-texi
index ea33e17..8cd42e8 100755
--- a/scripts/snarf-check-and-output-texi
+++ b/scripts/snarf-check-and-output-texi
@@ -267,6 +267,17 @@ exec ${GUILE-guile} -l $0 -c "(apply $main (cdr (command-line)))" "$@"
       (set! *file* file)
       (set! *line* line))
 
+     ;; newer gccs like to throw around more location markers into the
+     ;; preprocessed source; these (hash . hash) bits are what they translate to
+     ;; in snarfy terms.
+     (('location ('string . file) ('int . line) ('hash . 'hash))
+      (set! *file* file)
+      (set! *line* line))
+
+     (('location ('hash . 'hash) ('string . file) ('int . line) ('hash . 'hash))
+      (set! *file* file)
+      (set! *line* line))
+
      (('arglist rest ...)
       (set! *args* (do-arglist rest)))
ing Web server tests....Ludovic Courtès 2015-11-28lint: Do not report already-patched vulnerabilities....Ludovic Courtès 2015-11-26lint: Add "cve" checker....Ludovic Courtès 2015-09-18lint: Report lonely parentheses....Ludovic Courtès 2015-09-15lint: Add 'check-texinfo-markup' checker....Mathieu Lirzin 2015-09-14guix: lint: Check for meaningful origin file names....Eric Bavier 2015-09-06lint: Add 'license' checker....Ludovic Courtès 2015-08-19lint: Add 'formatting' checker....Ludovic Courtès 2015-04-13lint: Add a 'derivation' checker....Ludovic Courtès 2015-04-10lint: Report patches that cannot be found....Ludovic Courtès 2015-04-10lint: Rename 'check-patches' to 'check-patch-file-names'....Ludovic Courtès 2015-03-31tests: Fix module name for 'lint'....Ludovic Courtès 2015-03-05lint: Add tests for the 'source' checker....Ludovic Courtès 2015-03-05tests: Fix import....Ludovic Courtès 2015-01-13tests: Properly synchronize threads in the 'home-page' lint tests....Ludovic Courtès 2015-01-07tests: Add missing copyright line....Ludovic Courtès 2014-12-29tests: Make the 'lint' tests slightly more concise....Ludovic Courtès 2014-12-29tests: Factorize the 'dummy-package' macro....Ludovic Courtès 2014-12-29lint: Add tests for the 'home-page' checker....Ludovic Courtès 2014-11-07lint: Allow synopses that start with an abbreviation....Ludovic Courtès 2014-11-07lint: Improve check for synopses starting with package name....Ludovic Courtès 2014-11-07lint: Simplify no-warnings tests....Ludovic Courtès 2014-10-26guix: lint: Make exception for package name starting description....Eric Bavier 2014-10-26guix: lint: Allow digits at start of synopsis or description....Eric Bavier 2014-10-26guix: lint: Check for empty synopses and descriptions....Eric Bavier 2014-10-26guix: lint: Check for proper end-of-sentence space....Eric Bavier 2014-10-08guix lint: make sure synopses do not start with the package name....Cyril Roelandt 2014-10-08guix lint: Make sure a synopsis cannot start with a lower-case article....Cyril Roelandt 2014-10-08guix lint: check whether descriptions and synopses start with an upper-case l......Cyril Roelandt 2014-10-08guix lint: Make sure synopses are not too long....Cyril Roelandt 2014-09-03guix lint: Remove "guix lint: " prefix from warnings....Ludovic Courtès 2014-09-03scripts: add guix lint...Cyril Roelandt