Bug 81562 - dvips -R0 Failure to execute command
dvips -R0 Failure to execute command
Status: CLOSED DUPLICATE of bug 71650
Product: Red Hat Linux
Classification: Retired
Component: tetex (Show other bugs)
8.0
i686 Linux
medium Severity medium
: ---
: ---
Assigned To: Tim Waugh
David Lawrence
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2003-01-10 10:21 EST by Need Real Name
Modified: 2007-04-18 12:49 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2006-02-21 13:51:05 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Need Real Name 2003-01-10 10:21:49 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20021003

Description of problem:
dvips fails to execute an embedded command even with option -R0

example:

[jarioksa@pc112145 biogeo]$ dvips -R0 -q -o hm.ps prosptest2.dvi
dvips: Failure to execute /usr/local/bin/bmeps -p2 -er8 figs/florareg.png;
continuing

I found a discussion about this in the Debian lists, where it was identified as
a bug (Debian bug #156406). The suggested cure didn't work in my case, when I
tried with the following patch (or then I mucked up with using rpmbuild and
editing the spec file so that this was not applied):

--- teTeX-1.0/texk/dvipsk/output.c.orig 2003-01-10 12:55:43.000000000 +0200
+++ teTeX-1.0/texk/dvipsk/output.c      2003-01-10 12:56:29.000000000 +0200
@@ -174,7 +174,7 @@
       if (_osmode == OS2_MODE) {
 #endif
       if (secure == 0)
-         f = popen(s, FOPEN_RBIN_MODE) ;
+         f = popen(s, "r") ;
 #ifdef OS2
       }
 #endif

cheers, Jari Oksanen
Oulu, Finland

Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1. Put in LaTeX file an instruction to execute a command, such as:
\DeclareGraphicsRule{.png}{eps}{.bb}{`cat #1}

2. Run latex
3. dvips -R0 the output dvi
    

Actual Results:  Get a message like above:
dvips: Failure to execute...

Expected Results:  dvips to execute the command (like documented for -R0 switch)

Additional info:
Comment 1 Tim Waugh 2003-01-10 10:25:42 EST

*** This bug has been marked as a duplicate of 71650 ***
Comment 2 Red Hat Bugzilla 2006-02-21 13:51:05 EST
Changed to 'CLOSED' state since 'RESOLVED' has been deprecated.

Note You need to log in before you can comment on or make changes to this bug.