Package Details: epstool 3.08-4

Git Clone URL: https://aur.archlinux.org/epstool.git (read-only)
Package Base: epstool
Description: Utility to create or extract preview images in EPS files, fix bounding boxes and convert to bitmaps
Upstream URL: http://pages.cs.wisc.edu/~ghost/gsview/epstool.htm
Licenses: GPL
Submitter: orivej
Maintainer: haawda
Last Packager: haawda
Votes: 44
Popularity: 0.166699
First Submitted: 2007-11-25 20:44
Last Updated: 2015-06-08 22:25

Dependencies (0)

Required by (1)

Sources (2)

Latest Comments

haawda commented on 2014-08-17 03:46

Sorry, fixed.

frankspace commented on 2014-08-16 22:25

In your PKGBUILD, you have "prepare" listed twice. The second one should be "package."

Gringo commented on 2013-04-12 16:08

You're welcome!

Gringo commented on 2013-04-11 14:57

The install directory was not specified correctly. It is probably better to use "${pkgdir}" as the prefix. I uploaded a working PKGBUILD to PasteBin: http://pastebin.com/QYmUw4DR

Gringo commented on 2013-04-11 10:29

The download link is broken again. One could use the original source package from the debian repository: http://ftp.de.debian.org/debian/pool/main/e/epstool/epstool_3.08+repack.orig.tar.gz

Updated and tested PKGBUILD (ready to use) can be found here: http://pastebin.com/xq1m5FMA

lainme commented on 2012-12-12 05:08

The download link is fixed. Thanks, Ambrevar

Ambrevar commented on 2012-06-28 16:15

Download link seems to be broken.
Anyway, you can still get the sources from CTAN:
http://mirrors.ctan.org/support/ghostscript/ghostgum/epstool-3.08.tar.gz

orivej commented on 2012-04-10 19:23

Thank you, Ambrevar! I've included a (Gentoo) patch.

Ambrevar commented on 2012-04-10 13:10

Compilation may fail.

I've found an error, or at least a "weakness" in the code of epstool.
Compilation with option

CFLAGS=-O2 -D_FORTIFY_SOURCE=2

will fail. (Both options must be set to reproduce the error).
Since epstool's makefile uses but does not set this variable, every compilation tool using these options by default will fail in compiling the program. (Portage trees are very likely to be affected).

The compiler reports the error to come from a missing argument in open() function called from epstool.c. As of version 3.08, open() is called at lines 2827 and 2835.
To fix the error, you need to set the creation mode. For example :

2827: handle = open(stdout_name, O_WRONLY | O_CREAT, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH);
2835: handle = open(stderr_name, O_WRONLY | O_CREAT, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH);

Note that the mode I've suggested is not necessarily ideal for the purpose of this tool.
I've just used an example from the fcntl.h manpage.

-------------

I've reported the issue to the author. Meanwhile, I suggest using a patch :
http://pastebin.com/U2hkgiVw

Ambrevar commented on 2012-04-10 13:08

Compilation may fail.

I've found an error, or at least a "weakness" in the code of epstool.
Compilation with option

CFLAGS=-O2 -D_FORTIFY_SOURCE=2

will fail. (Both options must be set to reproduce the error).
Since epstool's makefile uses but does not set this variable, every compilation tool using these options by default will fail in compiling the program. (Portage trees are very likely to be affected).

The compiler reports the error to come from a missing argument in open() function called from epstool.c. As of version 3.08, open() is called at lines 2827 and 2835.
To fix the error, you need to set the creation mode. For example :

2827: handle = open(stdout_name, O_WRONLY | O_CREAT, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH);
2835: handle = open(stderr_name, O_WRONLY | O_CREAT, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH);

Note that the mode I've suggested is not necessarily ideal for the purpose of this tool.
I've just used an example from the fcntl.h manpage.

-------------

I've reported the issue to the author. Meanwhile, I suggest using a patch :
http://pastebin.com/U2hkgiVw

All comments