Share

PS print tools: mp, mptool and mimep.

Tracker: Bugs

5 typo in configure option for duplex printing - ID: 2352576
Last Update: Comment added ( kheinz )

Hi,

in version 3.7.1 the file configure.in contains

AC_ARG_ENABLE(duplex,
[ --disable-duplex disable duplex printing
[default=yes]], ,
enable_duplex="yes")

If you look carefully at this autoconf snippet you
will see that this actually _enables_ duplex printing.

To correct this you can replace "disable" by "enable".
This keeps the current behaviour to have duplex
enabled by default, see the appended patch.


The trailing ":" in the patch prevents the configure
script from exiting with an error when duplex printing
is turned _off_.
This error occurs due to the trap function for signal
0 which uses the return code of the last command

test x"$enable_duplex" = xyes && ...

as the exit code for the whole configure script.

ciao
Klaus


Klaus Heinz ( kheinz ) - 2008-11-26 23:32

5

Open

None

Nobody/Anonymous

None

None

Public


Comment ( 1 )




Date: 2008-11-26 23:49
Sender: kheinz

Of course I found the entry in the ChangeLog concerning
the incorrectly reversed duplex setting _after_ I submitted
the patch...

The new version leaves the "--disable-duplex" syntax
and just changes the description.
File Added: patch-af


Log in to comment.

Attached File ( 1 )

Filename Description Download
patch-af Correct description of duplex option Download

Changes ( 3 )

Field Old Value Date By
File Added 303126: patch-af 2008-11-26 23:49 kheinz
File Deleted 303123: 2008-11-26 23:49 kheinz
File Added 303123: patch-af 2008-11-26 23:32 kheinz