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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
|
From 89007e004d78582fd83651d0421045229ff2e838 Mon Sep 17 00:00:00 2001
From: Colin Watson <cjwatson@debian.org>
Date: Thu, 2 Jan 2014 13:13:21 +0000
Subject: Use /etc/papersize in preference to configure-time selection
Forwarded: not-needed
Last-Update: 2023-07-09
Patch-Name: papersize-config.patch
---
font/devdvi/devdvi.am | 4 ++--
font/devlbp/devlbp.am | 4 ++--
font/devlj4/devlj4.am | 4 ++--
font/devpdf/devpdf.am | 5 +++--
font/devps/devps.am | 4 ++--
5 files changed, 11 insertions(+), 10 deletions(-)
diff --git a/font/devdvi/devdvi.am b/font/devdvi/devdvi.am
index e7f5768d7..4d479de2b 100644
--- a/font/devdvi/devdvi.am
+++ b/font/devdvi/devdvi.am
@@ -81,9 +81,9 @@ font/devdvi/DESC: $(devdvi_srcdir)/DESC.in
$(AM_V_GEN)$(MKDIR_P) `dirname $@` \
&& cat $(devdvi_srcdir)/DESC.in >$@ \
&& if test "$(PAGE)" = A4; then \
- echo "papersize a4" >>$@; \
+ echo "papersize /etc/papersize a4" >>$@; \
else \
- echo "papersize letter" >>$@; \
+ echo "papersize /etc/papersize letter" >>$@; \
fi \
&& (test -z '$(DVIPRINT)' \
|| echo print '$(DVIPRINT)' >>$@)
diff --git a/font/devlbp/devlbp.am b/font/devlbp/devlbp.am
index 0702a2088..b60450caa 100644
--- a/font/devlbp/devlbp.am
+++ b/font/devlbp/devlbp.am
@@ -45,9 +45,9 @@ font/devlbp/DESC: $(devlbp_srcdir)/DESC.in
$(AM_V_GEN)$(MKDIR_P) `dirname $@` \
&& cat $(devlbp_srcdir)/DESC.in >$@ \
&& if test "$(PAGE)" = A4; then \
- echo "papersize a4" >>$@; \
+ echo "papersize /etc/papersize a4" >>$@; \
else \
- echo "papersize letter" >>$@; \
+ echo "papersize /etc/papersize letter" >>$@; \
fi \
&& (test -z '$(LBPPRINT)' \
|| echo print '$(LBPPRINT)' >>$@)
diff --git a/font/devlj4/devlj4.am b/font/devlj4/devlj4.am
index 9f17c4d72..d5cfe9b6d 100644
--- a/font/devlj4/devlj4.am
+++ b/font/devlj4/devlj4.am
@@ -90,9 +90,9 @@ font/devlj4/DESC: $(devlj4_srcdir)/DESC.in
&& echo "unitwidth `expr 7620000 / $(LJ4RES)`" >>$@ \
&& cat $(devlj4_srcdir)/DESC.in >>$@ \
&& if test "$(PAGE)" = A4; then \
- echo "papersize a4" >>$@; \
+ echo "papersize /etc/papersize a4" >>$@; \
else \
- echo "papersize letter" >>$@; \
+ echo "papersize /etc/papersize letter" >>$@; \
fi \
&& (test -z '$(LJ4PRINT)' \
|| echo print '$(LJ4PRINT)' >>$@)
diff --git a/font/devpdf/devpdf.am b/font/devpdf/devpdf.am
index edce36575..5ba6f93f7 100644
--- a/font/devpdf/devpdf.am
+++ b/font/devpdf/devpdf.am
@@ -92,9 +92,10 @@ font/devpdf/DESC: $(devpdf_srcdir)/DESC.in
&& cat $(devpdf_srcdir)/DESC.in \
>$(top_builddir)/font/devpdf/DESC \
&& if test "$(PAGE)" = A4; then \
- echo "papersize a4" >>$(top_builddir)/font/devpdf/DESC; \
+ echo "papersize /etc/papersize a4" \
+ >>$(top_builddir)/font/devpdf/DESC; \
else \
- echo "papersize letter" \
+ echo "papersize /etc/papersize letter" \
>>$(top_builddir)/font/devpdf/DESC; \
fi
diff --git a/font/devps/devps.am b/font/devps/devps.am
index 2664f3c91..656c603be 100644
--- a/font/devps/devps.am
+++ b/font/devps/devps.am
@@ -144,9 +144,9 @@ font/devps/DESC: $(devps_srcdir)/DESC.in
&& cat $(devps_srcdir)/DESC.in >$@.tmp \
&& echo broken $(BROKEN_SPOOLER_FLAGS) >>$@.tmp \
&& if test "$(PAGE)" = A4; then \
- echo "papersize a4" >>$@.tmp; \
+ echo "papersize /etc/papersize a4" >>$@.tmp; \
else \
- echo "papersize letter" >>$@.tmp; \
+ echo "papersize /etc/papersize letter" >>$@.tmp; \
fi \
&& (test -z '$(PSPRINT)' \
|| echo print '$(PSPRINT)' >>$@.tmp)
|