Bug 81562

Summary: dvips -R0 Failure to execute command
Product: [Retired] Red Hat Linux Reporter: Need Real Name <jari.oksanen>
Component: tetexAssignee: Tim Waugh <twaugh>
Status: CLOSED DUPLICATE QA Contact: David Lawrence <dkl>
Severity: medium Docs Contact:
Priority: medium    
Version: 8.0   
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-02-21 18:51:05 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Need Real Name 2003-01-10 15:21:49 UTC
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 15:25:42 UTC

*** This bug has been marked as a duplicate of 71650 ***

Comment 2 Red Hat Bugzilla 2006-02-21 18:51:05 UTC
Changed to 'CLOSED' state since 'RESOLVED' has been deprecated.