gentoo-ebuilds/app-text/gv/files/gv-3.7.4-bounding-box.patch
Matt Turner bad533b896
app-text/gv: Version bump to 3.7.4
v3.7.4 was released in 2013, so this is a little overdue...

* Bump to EAPI=8
* Fix build with CFLAGS=-lflto (bug #855011)
* Fix build to call toolchain's AR (bug #729564)
* Add (+) to x11-libs/libXaw3d's unicode USE-dep
* Run gnuconfig_update since the included config.guess is ancient
* Apply a bunch of patches from Fedora

Closes: https://bugs.gentoo.org/729564
Closes: https://bugs.gentoo.org/855011
Signed-off-by: Matt Turner <mattst88@gentoo.org>
2022-08-27 11:29:37 -04:00

15 lines
477 B
Diff

Fix bounding box recognition
https://src.fedoraproject.org/rpms/gv/blob/rawhide/f/gv-bounding-box.patch
diff a/src/ps.c b/src/ps.c
--- a/src/ps.c
+++ b/src/ps.c
@@ -357,7 +357,7 @@ static int parse_boundingbox(const char *l, int *boundingbox) {
while (*p == ' ' || *p == '\t')
p++;
fury = strtod(p, &pe);
- if (*pe != '\n' && *pe != '\0' && *pe != ' ' && *pe != '\t') {
+ if (*pe != '\n' && *pe != '\r'&& *pe != '\0' && *pe != ' ' && *pe != '\t') {
return 0;
}