2
## gcc4_buildfixes.dpatch by Henrique de Moraes Holschuh <hmh@debian.org>
4
## All lines beginning with `## DP:' are a description of the patch.
5
## DP: fix FTBFS problems with gcc 4.0 on AMD64 (closes: #286353)
6
## DP: patch by Andreas Jochens <aj@andaco.de>
9
echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
13
[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts
14
patch_opts="${patch_opts:--f --no-backup-if-mismatch}"
17
-patch) patch $patch_opts -p1 < $0;;
18
-unpatch) patch $patch_opts -p1 -R < $0;;
20
echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
27
diff -urNad hplip/prnt/hpijs/ljcolor.cpp /tmp/dpep.EcmGCg/hplip/prnt/hpijs/ljcolor.cpp
28
--- hplip/prnt/hpijs/ljcolor.cpp 2005-01-21 00:19:51.000000000 -0200
29
+++ hplip/prnt/hpijs/ljcolor.cpp 2005-01-21 11:25:17.000000000 -0200
32
if (thePrinter->IOMode.bStatus)
34
- sprintf (res, "@PJL JOB NAME = \"%d\"\015\012", (int) (thePrinter));
35
+ sprintf (res, "@PJL JOB NAME = \"%ld\"\015\012", (long) (thePrinter));
36
err = thePrinter->Send ((const BYTE *) res, strlen (res));
40
DRIVER_ERROR err = NO_ERROR;
41
if (thePrinter->IOMode.bStatus)
43
- sprintf (szBuff, "\033E\033%%-12345X@PJL EOJ NAME = \"%d\"\015\012@PJL RESET\015\012",
44
- (int) (thePrinter));
45
+ sprintf (szBuff, "\033E\033%%-12345X@PJL EOJ NAME = \"%ld\"\015\012@PJL RESET\015\012",
46
+ (long) (thePrinter));
47
err = thePrinter->Send ((const BYTE *) szBuff, strlen (szBuff));
51
while (*tmpStr < '0' || *tmpStr > '9')
53
sscanf (tmpStr, "%d", &iErrorCode);
54
- if (iErrorCode != (int) (this))
55
+ if (iErrorCode != (long) (this))
56
return DISPLAY_PRINTING;
59
diff -urNad hplip/prnt/hpijs/ljmono.cpp /tmp/dpep.EcmGCg/hplip/prnt/hpijs/ljmono.cpp
60
--- hplip/prnt/hpijs/ljmono.cpp 2005-01-21 00:19:51.000000000 -0200
61
+++ hplip/prnt/hpijs/ljmono.cpp 2005-01-21 11:25:17.000000000 -0200
64
if (thePrinter->IOMode.bStatus)
66
- sprintf (res, "@PJL JOB NAME = \"%d\"\015\012", (int) (thePrinter));
67
+ sprintf (res, "@PJL JOB NAME = \"%ld\"\015\012", (long) (thePrinter));
68
err = thePrinter->Send ((const BYTE *) res, strlen (res));
72
DRIVER_ERROR err = NO_ERROR;
73
if (thePrinter->IOMode.bStatus)
75
- sprintf (szBuff, "\033E\033%%-12345X@PJL EOJ NAME = \"%d\"\015\012@PJL RESET\015\012",
76
- (int) (thePrinter));
77
+ sprintf (szBuff, "\033E\033%%-12345X@PJL EOJ NAME = \"%ld\"\015\012@PJL RESET\015\012",
78
+ (long) (thePrinter));
79
err = thePrinter->Send ((const BYTE *) szBuff, strlen (szBuff));
83
while (*tmpStr < '0' || *tmpStr > '9')
85
sscanf (tmpStr, "%d", &iErrorCode);
86
- if (iErrorCode != (int) (this))
87
+ if (iErrorCode != (long) (this))
88
return DISPLAY_PRINTING;