aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/patches/plotutils-spline-test.patch
blob: 2f9feb96cf8252edd2f62366fa4f84cf3819a208 (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
25
26
27
28
29
30
31
32
33
34
Description: Work around i386 testsuite error
Author: Andreas Metzler <ametzler@debian.org>
Origin: vendor
Bug: http://lists.gnu.org/archive/html/bug-plotutils/2017-02/msg00001.html
Bug-Debian: https://bugs.debian.org/856134
Forwarded: http://lists.gnu.org/archive/html/bug-plotutils/2017-02/msg00002.html
Last-Update: 2017-02-25

--- a/test/spline.test
+++ b/test/spline.test
@@ -3,12 +3,21 @@
 echo 0 1 0.5 0.75 -0.25 0 | ../spline/spline -a -T 1 -n 120 \
 	--precision 5 -p >spline.out
 
+# Work around testsuite error
+# http://lists.gnu.org/archive/html/bug-plotutils/2016-04/msg00000.html
+#
 # work around line end problems in installations with DJGPP under DOS
-tr -d '\015' < spline.out > spline.dos
+tr -d '\015' < spline.out \
+	| head -n 120 | tail -n 119 \
+	> spline.dos
 
-if cmp -s $SRCDIR/spline.xout spline.dos
+# cannot patch spline.xout, it is used as input for graph.test.
+head -n 120 $SRCDIR/spline.xout | tail -n 119 > spline.xout.4comp
+
+if cmp -s spline.xout.4comp spline.dos
 	then retval=0;
 	else retval=1;
 	fi;
 
+rm -f spline.xout.4comp
 exit $retval
reby the cleanup expressions would come after (execl ".../shepherd"). This, in turn, would lead shepherd to error out at boot with EADDRINUSE on /var/run/shepherd/socket. * gnu/services.scm (%delete-service, %apply-clauses): Remove. (clause-alist): New macro. (apply-clauses): New procedure. (modify-services): Use it. Adjust docstring. * tests/services.scm ("modify-services: do nothing"): Remove 'sort' call. ("modify-services: delete service"): Likewise, and add 't4' service. ("modify-services: change value"): Remove 'sort' call and fix expected value. 2023-06-02services: Error in MODIFY-SERVICES when services don't existBrian Cully This patch causes MODIFY-SERVICES to raise an error if a reference is made to a service which isn't in its service list. This it to help users notice if they have an invalid rule, which is currently silently ignored. * gnu/services.scm (%delete-service): new procedure (%apply-clauses): new syntax rule (%modify-service): remove syntax rule Signed-off-by: Ludovic Courtès <ludo@gnu.org> 2023-05-16services: Add default values.Andrew Tropin * gnu/services.scm (boot-service-type, activation-service-type, etc-service-type, profile-service-type): Add default-value. * gnu/system/shadow.scm (account-service-type): Add default-value. 2023-03-16services: etc-service: Deprecate etc-service procedure.Bruno Victal * gnu/services.scm (etc-service): Deprecate procedure. * gnu/system.scm (operating-system-etc-service): Replace etc-service with etc-service-type. Signed-off-by: Ludovic Courtès <ludo@gnu.org>